Hi, I find the solution, I changed this: documents.manage_addProduct['ExternalFile'].manage_add(efid ... with this: documents.manage_addProduct['ExternalFile'].addExternalFile(efid ... Lp, Jadran Jadran Prodan wrote:
Hi,
I upgraded Zope 2.5.1 to 2.7.2 and i have a problem with ExternalFile.
The script which worked before:
... documents.manage_addProduct['ExternalFile'].manage_add(efid, '', '', target_filepath) ...
Now produce error: ... Traceback (innermost last):
Module ZPublisher.Publish, line 101, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Shared.DC.Scripts.Bindings, line 306, in __call__ Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec Module Products.PythonScripts.PythonScript, line 323, in _exec Module None, line 14, in addDocument <PythonScript at /todolist/scripts/addDocument> Line 14 AttributeError: manage_add ...
Any tip? Thank you.
LP, Jadran
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )