
dev101 at magma
May 2, 2008, 3:37 AM
Post #2 of 2
(62 views)
Permalink
|
|
Re: problem attach file / Zfile - more informations
[In reply to]
|
|
----- Original Message ----- From: "Frederique Blondelle" <fbe[at]abes.fr> To: <zope[at]zope.org> Sent: Friday, May 02, 2008 6:16 AM Subject: [Zope] problem attach file / Zfile - more informations > Hello, > > I have created a zclass with zfile as basic class. > With this class, users could, via a web form, send an attached file if > they want. > With zope 2.5 (my previous version) if users don't attach a file, there > is no problem > with zope 2.10, if there is no file attached, I have an error message : > 'file not specified". It seems that attach file is mandatory. > > Here, the complete message from the events log : > > Traceback (innermost last): > Module ZPublisher.Publish, line 119, in publish > Module ZPublisher.mapply, line 88, in mapply > Module ZPublisher.Publish, line 42, in call_object > Module OFS.DTMLMethod, line 144, in __call__ > - <DTMLMethod at /assistance/do_add> > - URL: http://assistance.abes.fr/do_add/manage_main > - Physical Path: /assistance/do_add > Module DocumentTemplate.DT_String, line 476, in __call__ > Module DocumentTemplate.DT_With, line 76, in render > Module DocumentTemplate.DT_Util, line 196, in eval > - __traceback_info__: _ > Module <string>, line 1, in <expression> > Module OFS.DTMLMethod, line 137, in __call__ > - <DTMLMethod at /assistance/Quest_susvp_add> > - URL: http://assistance.abes.fr/Quest_susvp_add/manage_main > - Physical Path: /assistance/Quest_susvp_add > Module DocumentTemplate.DT_String, line 476, in __call__ > Module DocumentTemplate.DT_With, line 61, in render > Module DocumentTemplate.DT_Util, line 196, in eval > - __traceback_info__: REQUEST > Module <string>, line 1, in <expression> > Module ZClasses.ZClass, line 454, in createInObjectManager > Module ZClasses.ZClass, line 485, in fromRequest > Module ZPublisher.mapply, line 89, in mapply > Module OFS.Image, line 120, in __init__ > Module OFS.Image, line 501, in _read_data > ValueError: File not specified I don't know if this is the cause of your problem, but as of Zope 2.10 ZClasses are deprecated. Jonathan _______________________________________________ Zope maillist - Zope[at]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 )
|