Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91248378
functions.html.wml
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
Sat, Nov 9, 08:34
Size
3 KB
Mime Type
text/x-c
Expires
Mon, Nov 11, 08:34 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22229383
Attached To
R3600 invenio-infoscience
functions.html.wml
View Options
## $Id$
## This file is part of the CERN Document Server Software (CDSware).
## Copyright (C) 2002, 2003, 2004, 2005 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.
#include "configbis.wml"
#include "cdspage.wml" \
title="Functions" \
navtrail_previous_links="<a class=navtrail href=<WEBURL>/admin/<lang:star: index.*.html>><MSG_ADMIN_AREA></a> > <a class=navtrail href=<WEBURL>/admin/websubmit/><MSG_ADMIN_SUBMIT></a> > <a class=navtrail href=<lang:star: index.*.html>><MSG_GUIDE></a>" \
navbar_name="admin" \
navbar_select="websubmit-admin-guide"
<h3>Description:</h3>
<BLOCKQUOTE>
<span class="guideheader">I</span>n webSubmit, each action process is divided into two phases: the
gathering of data (through a web form) and the treatment of the data.<br><br>
<span class="guideheader">T</span>he treatment is organised in a succession of functions, each of
which has its own input and output.<BR><BR>
<span class="guideheader">T</span>he functions themselves are stored in separate files (one per
function) in the <LIBDIR>/python/cdsware/websubmit_functions directory. A file containing a function MUST
be named after the function name itself. For example, a function called "Move_to_Done" MUST be stored in a
file called Move_to_Done.py. The case is important here.<br><BR>
<span class="guideheader">F</span>or a description of what should be inside the file, have a look to
the "create a new function" page of this guide.<br><br>
<span class="guideheader">T</span>o each function you can associate one or several parameters,
which may have different values according to the document type the function is used for. One parameter may
be used for different functions. For example one standard parameter used in several functions is called "edsrn".
It contains the name of the file in which the reference of the document is stored.
</BLOCKQUOTE>
<h3>See also:</h3>
<BLOCKQUOTE>
<li><A HREF="functionnew.<lang:star: *>.html">create a new function</A><BR>
<li><A HREF="functiondelete.<lang:star: *>.html">delete a function</A><BR>
<li><A HREF="functionedit.<lang:star: *>.html">edit a function</A><BR>
</BLOCKQUOTE>
Event Timeline
Log In to Comment