Hey AJ,
Thanks. Full traceback below. Regarding storing files, I meant the File Zope Object, as added by the following API call:
newFolder.manage_addFile(id,title=title, content_type="text/plain", file=content).
| Exception Type |
AttributeError |
| Exception Value |
'unicode' object has no attribute 'seek' |
Traceback (innermost last):
- Module ZPublisher.Publish, line 115, in publish
- Module ZPublisher.mapply, line 88, in mapply
- Module ZPublisher.Publish, line 41, in call_object
- Module Shared.DC.Scripts.Bindings, line 311, in __call__
- Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
- Module Products.PythonScripts.PythonScript, line 326, in _exec
- Module None, line 17, in updateWireFeed
<PythonScript at /GallopStaging/gallopWire/updateWireFeed>
Line 17 - Module Shared.DC.Scripts.Bindings, line 311, in __call__
- Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
- Module Products.PythonScripts.PythonScript, line 326, in _exec
- Module None, line 20, in createWireItem
<PythonScript at /GallopStaging/gallopWire/createWireItem>
Line 20 - Module OFS.Image, line 62, in manage_addFile
- Module OFS.Image, line 468, in manage_upload
- Module OFS.Image, line 504, in _read_data
AttributeError: 'unicode' object has no attribute 'seek'
Thanks,
Thibaud
On Sun, Dec 14, 2008 at 2:19 AM, Andreas Jung
<lists@zopyx.com> wrote:
On 14.12.2008 1:13 Uhr, Thibaud Morel l'Horset wrote:
Hello,
I'm trying to store strings with certain unicode characters that don't
convert to ascii in the ZODB. Specifically, as a file object and as
properties of that file object. I get the following errors (from a script):
*Error Type: AttributeError*
*Error Value: 'unicode' object has no attribute 'seek'*
First we need a full traceback. Second, it does not make sense to persistent file objects within the ZODB. Objects must be pickleable.
-aj