[Zope] "Duplicate Class Ids" Problem while refreshing an ZClass-Based Products
iap@t-mode.com.tw
iap@t-mode.com.tw
Thu, 6 Feb 2003 15:01:36 +0800
This is a multi-part message in MIME format.
------=_NextPart_000_0005_01C2CDF0.A518B460
Content-Type: text/plain;
charset="big5"
Content-Transfer-Encoding: quoted-printable
Hi,
I have a ZClass-based product ClassA.
Then, I create a folder: $INATANCE_HOME/Products/ClassA
And Then `touch refresh.txt` under that folder.
And also create a __init__.py (for allowing PythonScripts to use more =
modules.)
After all, I execute manage_refresh to fresh my ClassA(thought, the =
"Refresh" tab doesn't show up).
Below is what I got:
---------------------------------------------------------------
An exception occurred during the last refresh.
Exception type: Duplicate Class Ids=20
Exception value: None=20
Traceback (innermost last):
Module App.RefreshFuncs, line 182, in performSafeRefresh
Module App.RefreshFuncs, line 171, in performRefresh
Module OFS.Application, line 759, in reinstall_product
Module OFS.Application, line 637, in install_product
- __traceback_info__: eNotice
Module App.Product, line 524, in initializeProduct
Module OFS.ObjectManager, line 272, in _setObject
Module OFS.ObjectManager, line 280, in manage_afterAdd
Module ZClasses.ZClass, line 419, in manage_afterAdd
Module ZClasses.ZClass, line 373, in _register
Duplicate Class Ids
-------------------------------------------------------------------Can I =
take this issue as a "bug" or I shouldn't abuse ZClass/Refresh like =
that.Thanks for your attention.Iap, Singuan
------=_NextPart_000_0005_01C2CDF0.A518B460
Content-Type: text/html;
charset="big5"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5">
<META content=3D"MSHTML 6.00.2800.1126" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DMingLiu size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DMingLiu size=3D2>I have a ZClass-based product=20
ClassA.</FONT></DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9></FONT> </DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9>Then, I create a folder:=20
$INATANCE_HOME/Products/ClassA</FONT></DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9></FONT> </DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9>And Then `touch refresh.txt` =
under that=20
folder.</FONT></DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9></FONT> </DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9>And also create a __init__.py (for =
allowing PythonScripts to=20
use more modules.)</FONT></DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9></FONT> </DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9>After all, I execute manage_refresh =
to fresh my=20
ClassA(thought, the "Refresh" tab doesn't show up).</FONT></DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9></FONT> </DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9>Below is what I got:</FONT></DIV>
<DIV><FONT=20
face=3D=B2=D3=A9=FA=C5=E9>-----------------------------------------------=
----------------</FONT></DIV>
<DIV>
<P><B>An exception occurred during the last refresh.</B><BR>Exception =
type:=20
<B>Duplicate Class Ids</B> <BR>Exception value: <B>None</B> =
</P><PRE>Traceback (innermost last):
Module App.RefreshFuncs, line 182, in performSafeRefresh
Module App.RefreshFuncs, line 171, in performRefresh
Module OFS.Application, line 759, in reinstall_product
Module OFS.Application, line 637, in install_product
- __traceback_info__: eNotice
Module App.Product, line 524, in initializeProduct
Module OFS.ObjectManager, line 272, in _setObject
Module OFS.ObjectManager, line 280, in manage_afterAdd
Module ZClasses.ZClass, line 419, in manage_afterAdd
Module ZClasses.ZClass, line 373, in _register
Duplicate Class Ids
-------------------------------------------------------------------</PRE>=
<PRE>Can I take this issue as a "bug" or I shouldn't abuse =
ZClass/Refresh like that.</PRE><PRE>Thanks for your =
attention.</PRE><PRE>Iap, Singuan</PRE></DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9></FONT> </DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9></FONT> </DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9></FONT> </DIV></BODY></HTML>
------=_NextPart_000_0005_01C2CDF0.A518B460--