[Zope3-Users] Paul carduner z3c tutorial

Thierry Florac thierry.florac at onf.fr
Thu Mar 11 12:09:24 EST 2010


Le jeudi 11 mars 2010,
  Albert DURANTON <albert.duranton375 at orange.fr> a écrit :
======================================================================
> I learn the paulcarduner/z3ctutorial.
> I am the form but when i click add i get:URL:
> http://localhost:8080/%2B%2Bskin%2B%2BZContact/%40%40addContact.html
>
> Module zcontact.browser.contact:14 in create 
> << 
> def create(self, data):
> contact = Contac()
> form.applyChanges(self, contact, data)
> return contact>> contact = Contac()
> NameError: global name 'Contac' is not defined
> 
> I all verified.
> Some can help me ?
> Thank you
======================================================================

Hi,

Shouldn't you have :

  contact = Contact()   # Missing 't'

instead of :

  contact = Contac()


Otherwise it looks like a missing import...


Thierry
-- 
Chef de projets intranet/internet
Office National des Forêts - Département Informatique
2, Avenue de Saint-Mandé
75570 Paris Cedex 12
Tél. : 01 40 19 59 64
Fax. : 01 40 19 58 85
Mél. : thierry.florac at onf.fr
Web. : http://www.onf.fr



More information about the Zope3-users mailing list