<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE type=text/css>DIV {
        MARGIN: 0px
}
</STYLE>
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>You could 'bite the bullet' and replace your
ZClasses with standard python classes (create a very simple 'product' that
just contains the class definitions). I am doing this for an
application that needs to be running for several years to come, and have
decided that the best course for long term sustainability is to remove the
ZClasses (a serious pita, but worth it in the long run as it simplifies
future zope updates).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jonathan</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=swapp0@yahoo.com href="mailto:swapp0@yahoo.com">Allen Huang</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=zope@zope.org
href="mailto:zope@zope.org">Zope</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, December 28, 2006 8:39
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Zope] usering module
problem on zope 2.8.8</DIV>
<DIV><BR></DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<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 <<A
href="mailto:lists@zopyx.com">lists@zopyx.com</A>><BR>To: Allen Huang
<<A href="mailto:swapp0@yahoo.com">swapp0@yahoo.com</A>>; Zope <<A
href="mailto:zope@zope.org">zope@zope.org</A>><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
<P>
<HR>
<P></P>_______________________________________________<BR>Zope maillist
-
Zope@zope.org<BR>http://mail.zope.org/mailman/listinfo/zope<BR>**
No cross posts or HTML encoding! **<BR>(Related lists -
<BR> http://mail.zope.org/mailman/listinfo/zope-announce<BR> http://mail.zope.org/mailman/listinfo/zope-dev
)<BR></BLOCKQUOTE></BODY></HTML>