2008/6/17 Tibor Simko <[email protected]>:
> On Tue, 03 Jun 2008, Alexandre Taschetto de Castro wrote:
>> In version 0.99, how is it possible to submit multiple files for one
>> record, such as what is done in the photo collections at CERN server?
>
> Hi Alexandre,
>       As you know in websubmit one uses a 'File Input' element type in
> order to upload a file. You may simply have multiple File Input element
> types in the form. The actual handling of the file is done by
> Move_Files_to_Storage - where you may pass it a dictionary of values...
>   In this way one can have (up to)N files uploaded - as long as there
> are N File Input elements.
> regards
> Tony Osborne
>

Ok, I have added the file input elements, but I get the error below
when I try to submit the files. I suppose some modification is needed
in the parameters of the Move_Files_to_Storage function. Is that
right? What would that be?

Best regards,
Alexandre

>>> Traceback details

Forced traceback (most recent call last)
 File "/usr/lib64/python2.5/site-packages/mod_python/importer.py",
line 1229, in _process_target
   result = _execute_target(config, req, object, arg)
 File "/usr/lib64/python2.5/site-packages/mod_python/importer.py",
line 1128, in _execute_target
   result = object(arg)
 File "/usr/lib64/python2.5/site-packages/invenio/webinterface_handler.py",
line 288, in _profiler
   return _handler(req)
Traceback (most recent call last):
 File "/usr/lib64/python2.5/site-packages/invenio/webinterface_handler.py",
line 304, in _handler
   return root._traverse(req, path)
 File "/usr/lib64/python2.5/site-packages/invenio/webinterface_handler.py",
line 210, in _traverse
   result = obj(req, form)
 File "/usr/lib64/python2.5/site-packages/invenio/websubmit_webinterface.py",
line 533, in index
   return _index(req, **args)
 File "/usr/lib64/python2.5/site-packages/invenio/websubmit_webinterface.py",
line 531, in _index
   nbPg, curpage, step, mode)
 File "/usr/lib64/python2.5/site-packages/invenio/websubmit_engine.py",
line 802, in endaction
   value = specialchars(formfield)
 File "/usr/lib64/python2.5/site-packages/invenio/websubmit_engine.py",
line 1506, in specialchars
   text = string.replace(text, "&#147;", "\042");
 File "/usr/lib64/python2.5/string.py", line 517, in replace
   return s.replace(old, new, maxsplit)
 File "/usr/lib64/python2.5/site-packages/mod_python/util.py", line
90, in __getattr__
   raise AttributeError, name
AttributeError: replace

Reply via email to