hi, every one I'm a novice to zope. when I follow the example of zoopBook2.7 (http://www.plope.com/Books/2_7Edition/CustomZopeObjects.stx#2-47), I failed in adding ZClass instance. And the errlog is below. Can someone tell me what's wrong or how sould I to fix it or where to find the answer. Thanks. by nienfeng Exception Value default __new__ takes no parameters Traceback (innermost last): * Module ZPublisher.Publish, line 121, in publish * Module Zope2.App.startup, line 240, in commit * Module transaction._manager, line 96, in commit * Module Products.CPSCompat.PatchZODBTransaction, line 175, in commit * Module transaction._transaction, line 433, in _commitResources * Module ZODB.Connection, line 484, in commit * Module ZODB.Connection, line 526, in _commit * Module ZODB.Connection, line 553, in _store_objects * Module ZODB.serialize, line 407, in serialize * Module ZODB.serialize, line 416, in _dump * Module copy_reg, line 70, in _reduce_ex TypeError: default __new__ takes no parameters
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 - --On 13. Dezember 2006 17:31:29 +0800 nienfeng <nienfeng@multisuns.com.tw> wrote:
hi, every one I'm a novice to zope. when I follow the example of zoopBook2.7 (http://www.plope.com/Books/2_7Edition/CustomZopeObjects.stx#2-47), I failed in adding ZClass instance.
If you're a novice: don't use ZClasses anymore. They are deprecated and a one-way road. Don't use them. - -aj -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (Darwin) iD8DBQFFf8dYCJIWIbr9KYwRArZXAKCvRp3V7zPKrUkolllVsQVAx1pErgCgsVWJ +gz8TgZbSGeUUwDnJ618cXI= =nwut -----END PGP SIGNATURE-----
thank you. Andreas Jung ??:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
- --On 13. Dezember 2006 17:31:29 +0800 nienfeng <nienfeng@multisuns.com.tw> wrote:
hi, every one I'm a novice to zope. when I follow the example of zoopBook2.7 (http://www.plope.com/Books/2_7Edition/CustomZopeObjects.stx#2-47), I failed in adding ZClass instance.
If you're a novice: don't use ZClasses anymore. They are deprecated and a one-way road. Don't use them.
- -aj -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (Darwin)
iD8DBQFFf8dYCJIWIbr9KYwRArZXAKCvRp3V7zPKrUkolllVsQVAx1pErgCgsVWJ +gz8TgZbSGeUUwDnJ618cXI= =nwut -----END PGP SIGNATURE-----
participants (2)
-
Andreas Jung -
nienfeng