<!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&nbsp;'product' that 
just contains the class definitions).&nbsp;I am&nbsp;doing this for an 
application that&nbsp;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&nbsp;serious pita, but worth it in the long run as it simplifies 
future zope updates).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Jonathan</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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 &lt;<A 
  href="mailto:lists@zopyx.com">lists@zopyx.com</A>&gt;<BR>To: Allen Huang 
  &lt;<A href="mailto:swapp0@yahoo.com">swapp0@yahoo.com</A>&gt;; Zope &lt;<A 
  href="mailto:zope@zope.org">zope@zope.org</A>&gt;<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 &lt;swapp0@yahoo.com&gt; 
  wrote:<BR><BR>&gt; I basicly copy what I have from 2.8 to 2.9<BR>&gt; its the 
  same problem with the self generated python constructor and the<BR>&gt; self 
  constructor that I made both worked in 2.8 but won't for 2.9<BR>&gt;<BR>&gt; 
  my constructor look like this using<BR>&gt;<BR>&gt; &lt;dtml-with 
  "shpTypeClass.createInObjectManager(REQUEST['id'], 
  REQUEST)"&gt;<BR>&gt;&nbsp;&nbsp;&lt;dtml-call<BR>&gt; 
  "propertysheets.shpTypePoint_desc.manage_editProperties(REQUEST)"&gt;<BR>&gt;&nbsp;&nbsp;&lt;dtml-if 
  NoRedir&gt;<BR>&gt;&nbsp;&nbsp; &lt;dtml-return 
  name="this"&gt;<BR>&gt;&nbsp;&nbsp;&lt;dtml-else&gt;<BR>&gt;&nbsp;&nbsp; 
  &lt;dtml-if DestinationURL&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;dtml-call 
  "RESPONSE.redirect(DestinationURL+'/manage_workspace')"&gt;<BR>&gt;&nbsp;&nbsp; 
  &lt;dtml-else&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;dtml-call 
  "RESPONSE.redirect(URL2+'/manage_workspace')"&gt;<BR>&gt;&nbsp;&nbsp; 
  &lt;/dtml-if&gt;<BR>&gt;&nbsp;&nbsp;&lt;/dtml-if&gt;<BR>&gt; 
  &lt;/dtml-with&gt;<BR>&gt;<BR>&gt; the error is<BR>&gt;<BR>&gt; Time2006/12/27 
  19:48:33.523 GMT+8<BR>&gt; User Name (User Id)admin (admin)<BR>&gt; 
  Request<BR>&gt; URL<A 
  href="http://localhost/test/manage_addProduct/shpProcessing/shpTypeClass_fac" 
  target=_blank>http://localhost/test/manage_addProduct/shpProcessing/shpTypeClass_fac</A><BR>&gt; 
  tory/shpTypeClass_add Exception TypeTypeError<BR>&gt; Exception Valuedefault 
  __new__ takes no parameters<BR>&gt;<BR>&gt; Traceback (innermost 
  last):<BR>&gt; Module ZPublisher.Publish, line 121, in publish<BR>&gt; Module 
  Zope2.App.startup, line 240, in commit<BR>&gt; Module transaction._manager, 
  line 96, in commit<BR>&gt; Module transaction._transaction, line 380, in 
  commit<BR>&gt; Module transaction._transaction, line 378, in commit<BR>&gt; 
  Module transaction._transaction, line 433, in _commitResources<BR>&gt; Module 
  ZODB.Connection, line 484, in commit<BR>&gt; Module ZODB.Connection, line 526, 
  in _commit<BR>&gt; Module ZODB.Connection, line 553, in _store_objects<BR>&gt; 
  Module ZODB.serialize, line 407, in serialize<BR>&gt; Module ZODB.serialize, 
  line 416, in _dump<BR>&gt; Module copy_reg, line 70, in _reduce_ex<BR>&gt; 
  TypeError: default __new__ takes no parameters<BR>&gt;<BR>&gt; what is the 
  problem??<BR><BR>&lt;<A href="http://www.zope.org/Collectors/Zope/2005" 
  target=_blank>http://www.zope.org/Collectors/Zope/2005</A>&gt;<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&nbsp; 
  -&nbsp; 
  Zope@zope.org<BR>http://mail.zope.org/mailman/listinfo/zope<BR>**&nbsp;&nbsp; 
  No cross posts or HTML encoding!&nbsp; **<BR>(Related lists - 
  <BR>&nbsp;http://mail.zope.org/mailman/listinfo/zope-announce<BR>&nbsp;http://mail.zope.org/mailman/listinfo/zope-dev 
  )<BR></BLOCKQUOTE></BODY></HTML>