Hey AJ,<br><br> Thanks. Full traceback below. Regarding storing files, I meant the File Zope Object, as added by the following API call:<br>newFolder.manage_addFile(id,title=title, content_type="text/plain", file=content).<br>
<br><table><tbody><tr><th align="left" valign="top">Exception Type</th>
<td>AttributeError</td>
</tr>
<tr>
<th align="left" valign="top">Exception Value</th>
<td>'unicode' object has no attribute 'seek'</td>
</tr>
</tbody></table>
<p>Traceback (innermost last):
</p><ul><li> Module ZPublisher.Publish, line 115, in publish</li><li> Module ZPublisher.mapply, line 88, in mapply</li><li> Module ZPublisher.Publish, line 41, in call_object</li><li> Module Shared.DC.Scripts.Bindings, line 311, in __call__</li>
<li> Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec</li><li> Module Products.PythonScripts.PythonScript, line 326, in _exec</li><li> Module None, line 17, in updateWireFeed<br>
<b><PythonScript at /GallopStaging/gallopWire/updateWireFeed></b><br>
<b>Line 17</b></li><li> Module Shared.DC.Scripts.Bindings, line 311, in __call__</li><li> Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec</li><li> Module Products.PythonScripts.PythonScript, line 326, in _exec</li>
<li> Module None, line 20, in createWireItem<br>
<b><PythonScript at /GallopStaging/gallopWire/createWireItem></b><br>
<b>Line 20</b></li><li> Module OFS.Image, line 62, in manage_addFile</li><li> Module OFS.Image, line 468, in manage_upload</li><li> Module OFS.Image, line 504, in _read_data</li></ul>AttributeError: 'unicode' object has no attribute 'seek'
<br><br>Thanks,<br><br>Thibaud<br><br><div class="gmail_quote">On Sun, Dec 14, 2008 at 2:19 AM, Andreas Jung <span dir="ltr"><<a href="mailto:lists@zopyx.com">lists@zopyx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On 14.12.2008 1:13 Uhr, Thibaud Morel l'Horset wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
Hello,<br>
<br>
I'm trying to store strings with certain unicode characters that don't<br>
convert to ascii in the ZODB. Specifically, as a file object and as<br>
properties of that file object. I get the following errors (from a script):<br>
<br>
*Error Type: AttributeError*<br></div>
*Error Value: 'unicode' object has no attribute 'seek'*<br>
<br>
<br>
</blockquote>
<br>
First we need a full traceback. Second, it does not make sense to persistent file objects within the ZODB. Objects must be pickleable.<br><font color="#888888">
<br>
-aj<br>
</font></blockquote></div><br>