Hello,
 
I have a small problem with defining syntax of report number. My institution 
requires it is in the form of the URL: www.nusl.cz/ntk/nusl-xxx.
 
The problem consists in forward slashes. I have tried write them either to the 
parameter "rnformat" of the Report_Number_Generation, i.e.,
 
<A 
href="http://www.nusl.cz/ntk/nusl-file:SNwww.nusl.cz/ntk/nusl-<PA>file:SN</PA>,
 
or directly to the Python file Report_Number_Generation.py, line 240,
 
reference = "www.nusl.cz/ntk/%s" % (ref_format).
 
The corresponding error message is bellow. I have also tried various variations 
of '/' to escape this problem as '\/' etc. but without success. By collegue I 
was told that there should be no problem with forward slashes within Python, so 
I don't know..
 
Thanks for advice.
 
Jindrich Dolansky
 
The error message:
 
"Hello:
        
The following problem occurred on <http://vmnusl.ntkcz.cz>
 
>>> Registered exception
 
2010-04-21 11:40:17 -> IOError: [Errno 2] No such file or directory: 
'/opt/cds-invenio/var/tmp/www.nusl.cz/ntk/nusl-1701_2010-04-21_11:40:17'
 
>>> User details
 
       agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) 
Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)
apache_group: []
 apache_user: None
       email: [email protected] 
       group: []
       guest: 0
    language: en
  last_login: 2010-04-14 10:49:45
login_method: Local
    nickname: admin
     referer: 
<http://vmnusl.ntkcz.cz/submit?doctype=TEST&indir=running&access=1271842795_21253&act=SBI&startPg=1&mainmenu=%2Fsubmit%3Fdoctype%3DTEST%26ln%3Dcs&ln=cs&comboTEST=TESTSUBMIT>
 remote_host: 
   remote_ip: 10.0.0.143
         uid: 1
         uri: </submit>
 
>>> Traceback details
 
Forced traceback (most recent call last)
  File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1229, in 
_process_target
    result = _execute_target(config, req, object, arg)
  File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1128, in 
_execute_target
    result = object(arg)
  File "/usr/lib/python2.5/site-packages/invenio/webinterface_handler.py", line 
298, in _profiler
    return _handler(req)
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/invenio/webinterface_handler.py", line 
316, in _handler
    return root._traverse(req, path)
  File "/usr/lib/python2.5/site-packages/invenio/webinterface_handler.py", line 
210, in _traverse
    result = _check_result(req, obj(req, form))
  File "/usr/lib/python2.5/site-packages/invenio/websubmit_webinterface.py", 
line 490, in index
    return _index(req, **args)
  File "/usr/lib/python2.5/site-packages/invenio/websubmit_webinterface.py", 
line 488, in _index
    nbPg, curpage, step, mode)
  File "/usr/lib/python2.5/site-packages/invenio/websubmit_engine.py", line 
887, in endaction
    ln=ln)
  File "/usr/lib/python2.5/site-packages/invenio/websubmit_engine.py", line 
1412, in print_function_calls
    user_info=user_info)
  File 
"/opt/cds-invenio/lib/python/invenio/websubmit_functions/Insert_Record.py", 
line 40, in Insert_Record
    shutil.copy(initialfile,finalfile)
  File "/usr/lib/python2.5/shutil.py", line 80, in copy
    copyfile(src, dst)
  File "/usr/lib/python2.5/shutil.py", line 47, in copyfile
    fdst = open(dst, 'wb')
IOError: [Errno 2] No such file or directory: 
'/opt/cds-invenio/var/tmp/www.nusl.cz/ntk/nusl-1701_2010-04-21_11:40:17'"

Reply via email to