<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">I'm sorry Andreas. But I still don't see any solution to this problem. Do you have a solution? or there is no solution at all?<BR><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Andreas Jung <lists@zopyx.com><BR>To: Allen Huang <swapp0@yahoo.com>; Zope <zope@zope.org><BR>Sent: Thursday, December 28, 2006 3:33:44 PM<BR>Subject: Re: [Zope] usering module problem on zope 2.8.8<BR><BR>
<DIV>-----BEGIN PGP SIGNED MESSAGE-----<BR>Hash: SHA1<BR><BR><BR><BR>- --On 27. Dezember 2006 16:12:23 -0800 Allen Huang <swapp0@yahoo.com> wrote:<BR><BR>> I basicly copy what I have from 2.8 to 2.9<BR>> its the same problem with the self generated python constructor and the<BR>> self constructor that I made both worked in 2.8 but won't for 2.9<BR>><BR>> my constructor look like this using<BR>><BR>> <dtml-with "shpTypeClass.createInObjectManager(REQUEST['id'], REQUEST)"><BR>> <dtml-call<BR>> "propertysheets.shpTypePoint_desc.manage_editProperties(REQUEST)"><BR>> <dtml-if NoRedir><BR>> <dtml-return name="this"><BR>> <dtml-else><BR>> <dtml-if DestinationURL><BR>> <dtml-call "RESPONSE.redirect(DestinationURL+'/manage_workspace')"><BR>>
<dtml-else><BR>> <dtml-call "RESPONSE.redirect(URL2+'/manage_workspace')"><BR>> </dtml-if><BR>> </dtml-if><BR>> </dtml-with><BR>><BR>> the error is<BR>><BR>> Time2006/12/27 19:48:33.523 GMT+8<BR>> User Name (User Id)admin (admin)<BR>> Request<BR>> URL<A href="http://localhost/test/manage_addProduct/shpProcessing/shpTypeClass_fac" target=_blank>http://localhost/test/manage_addProduct/shpProcessing/shpTypeClass_fac</A><BR>> tory/shpTypeClass_add Exception TypeTypeError<BR>> Exception Valuedefault __new__ takes no parameters<BR>><BR>> Traceback (innermost last):<BR>> Module ZPublisher.Publish, line 121, in publish<BR>> Module Zope2.App.startup, line 240, in commit<BR>> Module transaction._manager, line 96, in commit<BR>> Module transaction._transaction, line 380, in commit<BR>> Module transaction._transaction, line 378, in commit<BR>>
Module transaction._transaction, line 433, in _commitResources<BR>> Module ZODB.Connection, line 484, in commit<BR>> Module ZODB.Connection, line 526, in _commit<BR>> Module ZODB.Connection, line 553, in _store_objects<BR>> Module ZODB.serialize, line 407, in serialize<BR>> Module ZODB.serialize, line 416, in _dump<BR>> Module copy_reg, line 70, in _reduce_ex<BR>> TypeError: default __new__ takes no parameters<BR>><BR>> what is the problem??<BR><BR><<A href="http://www.zope.org/Collectors/Zope/2005" target=_blank>http://www.zope.org/Collectors/Zope/2005</A>><BR><BR>- -aj<BR>-----BEGIN PGP SIGNATURE-----<BR>Version: GnuPG v1.4.6 (Darwin)<BR><BR>iD8DBQFFk3NZCJIWIbr9KYwRAgXnAKDc609jQzO/7J1DFWVsAUAwruTSJgCgmJuO<BR>c00q/FmZLZlfb1wkpobNtuI=<BR>=75fR<BR>-----END PGP SIGNATURE-----</DIV></DIV><BR></DIV></div><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around
<br>http://mail.yahoo.com </body></html>