[prev in list] [next in list] [prev in thread] [next in thread]
List: zope3-users
Subject: Re: [Zope3-Users] Paul carduner z3c tutorial
From: Thierry Florac <thierry.florac () onf ! fr>
Date: 2010-03-11 17:09:24
Message-ID: 20100311180924.791e6393 () m03089 ! branche00 ! arbre ! foret ! onf ! fr
[Download RAW message or body]
Le jeudi 11 mars 2010,
Albert DURANTON <albert.duranton375@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@onf.fr
Web. : http://www.onf.fr
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
https://mail.zope.org/mailman/listinfo/zope3-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic