Roundup Tracker - Issues

Message1397

Author njs
Recipients
Date 2004-07-21.21:59:12
Message-id
In-reply-to
Running a tracker under ZRoundup (even the updated one
that fixes the bug I filed yesterday), file uploads
don't work.  Apparently something is expecting file
data to be passed as a string, but it's getting some
sort of Zope wrapper instead...

This is with the anydbm backend, though I suspect other
backends would see similar problems:

TypeError: argument must be string or read-only buffer,
not instance

/usr/lib/python2.1/site-packages/roundup/backends/blobfiles.py
in storefile(self=<back_anydbm instance at 92a514c>,
classname='file', nodeid='3', property=None,
content=<ZPublisher.HTTPRequest.FileUpload instance>)

/usr/lib/python2.1/site-packages/roundup/backends/back_anydbm.py
in create(self=<hyperdb.Class "file">,
**propvalues={'name': 'ZRoundup.py', 'type':
'text/x-python'})

/usr/lib/python2.1/site-packages/roundup/cgi/actions.py
in _createnode(self=<roundup.cgi.actions.EditItemAction
instance>, cn='file', props={'content':
<ZPublisher.HTTPRequest.FileUpload instance>, 'name':
'ZRoundup.py', 'type': 'text/x-python'})

/usr/lib/python2.1/site-packages/roundup/cgi/actions.py
in _editnodes(self=<roundup.cgi.actions.EditItemAction
instance>, all_props={('file', '-1'): {'content':
<ZPublisher.HTTPRequest.FileUpload instance>, 'name':
'ZRoundup.py', 'type': 'text/x-python'}, ('issue',
'1'): {}}, all_links=[('issue', '1', 'files', [('file',
'-1')]), ('issue', '1', 'messages', [('msg', '-1')])],
newids=None)

[...]

(oh, in case you're puzzled, it says ZRoundup.py
everywhere because the new version of that file was the
file I had lying around and used to test adding an
attachment...)
History
Date User Action Args
2009-02-03 14:20:52adminlinkissue995565 messages
2009-02-03 14:20:52admincreate