Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92066754
submit.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Nov 17, 02:04
Size
2 KB
Mime Type
text/x-c
Expires
Tue, Nov 19, 02:04 (2 d)
Engine
blob
Format
Raw Data
Handle
22369905
Attached To
R3600 invenio-infoscience
submit.py
View Options
## $Id$
## This file is part of the CERN Document Server Software (CDSware).
## Copyright (C) 2002 CERN.
##
## The CDSware is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, or (at your option) any later version.
##
## The CDSware is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with CDSware; if not, write to the Free Software Foundation, Inc.,
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
## read config variables:
#include "config.wml"
#include "configbis.wml"
pylibdir
=
"<LIBDIR>/python"
<
protect
>
## $Id$
## DO NOT EDIT THIS FILE! IT WAS AUTOMATICALLY GENERATED FROM CDSware WML SOURCES.
## import interesting modules:
import
string
import
os
import
sys
import
time
import
types
import
re
import
MySQLdb
sys
.
path
.
append
(
'
%s
'
%
pylibdir
)
from
cdsware.config
import
*
from
cdsware.dbquery
import
run_sql
from
cdsware.access_control_engine
import
acc_authorize_action
from
cdsware.access_control_admin
import
acc_isRole
from
cdsware.specialchars
import
*
from
cdsware.webpage
import
page
,
create_error_box
from
cdsware.webuser
import
getUid
,
get_email
from
cdsware.messages
import
*
from
mod_python
import
apache
from
cdsware.websubmit_config
import
*
from
cdsware.websubmit_engine
import
*
def
index
(
req
,
c
=
cdsname
,
ln
=
cdslang
,
doctype
=
""
,
act
=
""
,
startPg
=
1
,
indir
=
""
,
access
=
""
,
mainmenu
=
""
,
fromdir
=
""
,
file
=
""
,
nextPg
=
""
,
nbPg
=
""
,
curpage
=
1
,
step
=
0
,
mode
=
"U"
):
if
doctype
==
""
:
return
home
(
req
,
c
,
ln
)
elif
act
==
""
:
return
action
(
req
,
c
,
ln
,
doctype
)
elif
int
(
step
)
==
0
:
return
interface
(
req
,
c
,
ln
,
doctype
,
act
,
startPg
,
indir
,
access
,
mainmenu
,
fromdir
,
file
,
nextPg
,
nbPg
,
curpage
)
else
:
return
endaction
(
req
,
c
,
ln
,
doctype
,
act
,
startPg
,
indir
,
access
,
mainmenu
,
fromdir
,
file
,
nextPg
,
nbPg
,
curpage
,
step
,
mode
)
return
errorMsg
(
"Bad parameters"
,
req
)
</
protect
>
Event Timeline
Log In to Comment