I basicly copy what I have from 2.8 to 2.9
its the same problem with the self generated python constructor and the self constructor that I made
both worked in 2.8 but won't for 2.9
my constructor look like this using
<dtml-with "shpTypeClass.createInObjectManager(REQUEST['id'], REQUEST)">
<dtml-call "propertysheets.shpTypePoint_desc.manage_editProperties(REQUEST)">
<dtml-if NoRedir>
<dtml-return name="this">
<dtml-else>
<dtml-if DestinationURL>
<dtml-call "RESPONSE.redirect(DestinationURL+'/manage_workspace')">
<dtml-else>
<dtml-call "RESPONSE.redirect(URL2+'/manage_workspace')">
</dtml-if>
</dtml-if>
</dtml-with>
the error is
| Time |
2006/12/27 19:48:33.523 GMT+8 |
| User Name (User Id) |
admin (admin) |
| Request URL |
http://localhost/test/manage_addProduct/shpProcessing/shpTypeClass_factory/shpTypeClass_add |
| Exception Type |
TypeError |
| 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 transaction._transaction, line 380, in commit
- Module transaction._transaction, line 378, 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
what is the problem??
----- Original Message ----
From: Andreas Jung <lists@zopyx.com>
To: Allen Huang <swapp0@yahoo.com>; Zope <zope@zope.org>
Sent: Wednesday, December 27, 2006 7:35:42 PM
Subject: Re: [Zope] usering module problem on zope 2.8.8
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- --On 27. Dezember 2006 03:26:28 -0800 Allen Huang <swapp0@yahoo.com> wrote:
> I couldn't make a Z Class like I
> use to do when I'm was using Zope 2.8.
>
Why not? Where is your error description?
- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
iD8DBQFFklqOCJIWIbr9KYwRAhK1AKCaei70217Ma7gMn/1bdCUBNl5ciQCff99b
KAMazCP5qofY2mIhe/OIetc=
=2Vxi
-----END PGP SIGNATURE-----