[Zope] Deleting Zaml breaks SQL Method Advanced Tab - Zope 2.2.2

Brad Clements bkc@murkworks.com
Fri, 22 Sep 2000 12:02:34 -0400


I'm not sure how SQL Methods are related to Zaml (XML widgets editor) 
but removing the XML Widgets and Zaml editor from the products 
directory has broken the advanced tab on my SQL Methods.

I had installed XML Widgets and Zaml and the sample.zexp files. 
Played with it, then deleted the product directory contents for these 
items and then deleted objects of that type from ZODB.

Now when I attempt to set the advanced options on an SQL Method, I 
get this traceback:


ImportError

Sorry, a Zope error occurred.

Traceback (innermost last):
  File E:\ZOPEST~1\lib\python\ZPublisher\Publish.py, line 222, in publish_module
  File E:\ZOPEST~1\lib\python\ZPublisher\Publish.py, line 187, in publish
  File E:\ZOPEST~1\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook
    (Object: SQLPackage)
  File E:\ZOPEST~1\lib\python\ZPublisher\Publish.py, line 171, in publish
  File E:\ZOPEST~1\lib\python\ZPublisher\mapply.py, line 160, in mapply
    (Object: manage_advancedForm)
  File E:\ZOPEST~1\lib\python\ZPublisher\Publish.py, line 112, in call_object
    (Object: manage_advancedForm)
  File E:\ZOPEST~1\lib\python\App\special_dtml.py, line 120, in __call__
    (Object: manage_advancedForm)
    (Info: E:\ZOPEST~1\lib\python\Shared\DC\ZRDB\advanced.dtml)
  File E:\ZOPEST~1\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__
    (Object: manage_advancedForm)
  File E:\ZOPEST~1\lib\python\Shared\DC\ZRDB\DA.py, line 509, in manage_product_zclass_info
    (Object: SQLPackage)
  File E:\ZOPEST~1\lib\python\ZODB\Connection.py, line 447, in setstate
ImportError: No module named ZamlBase


--

Also when starting Zope up, I get an oid not found error:

2000-09-22T15:47:53 ERROR(200) ZODB Couldn't load state for '\000\000\000\000\00
0\000\001E'
Traceback (innermost last):
  File E:\ZOPEST~1\lib\python\ZODB\Connection.py, line 447, in setstate
  File E:\ZOPEST~1\lib\python\ZODB\Connection.py, line 213, in _persistent_load
    (Info:       ??)
  File E:\ZOPEST~1\lib\python\ZODB\Connection.py, line 154, in __getitem__
    (Info: ('\000\000\000\000\000\000\036\035', '(cExtensionClass\012ExtensionCl
ass\012q\001(U\012ZamlViewerq\002(cZClasses.ZClass\012PersistentClass\012q\003cP
roducts.ZamlBase.ZamlViewerBase\012ZamlViewerBase\012q\004U\010\000\000\000\000\
000\000\036 q\005QcOFS.SimpleItem\012SimpleItem\012q\006tq\007}q\010(U\004iconq\
011U\000U\012_p_changedq\012K\001U\007__doc__q\013U\012ZamlViewerq\014U\006_p_oi
dq\015U\010\000\000\000\000\000\000<\036q\016U\011meta_typeq\017U\012ZamlViewerq
\020U\016propertysheetsq\021U\010\000\000\000\000\000\000\036"q\022QU\016manage_
optionsq\023(}q\024(U\005labelq\025U\010Securityq\026U\006actionq\027U\015manage
_accessq\030utq\031U\015render_helperq\032(U\010\000\000\000\000\000\000\036#q\0
33(U\017ZClasses.Methodq\034U\003MWpq\035ttq\036QU\022__ac_permissions__q\037)U\
006renderq (U\010\000\000\000\000\000\000\036$q!(h\034U\003MWpq"tq#tq$QU\011_p_s
erialq%U\010\0034/\301\222z\265\356q&U\012__module__q\'U\031*CaoR/kOGVoComHwx/uH
VTg==q(utq)t.N.'))
Could not load oid       ??, pickled data in traceback info may            conta
in clues

I can't find any Zaml related objects in my ZODB, but something still 
thinks it exists.. How can I be sure all references are deleted? (I haven't 
packed my .fs ever)

I suppose there needs to be a fix in DA.py .. or in  Connection.py, not 
sure.



Brad Clements,                bkc@murkworks.com   (315)268-1000
http://www.murkworks.com                          (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com               AOL-IM: BKClements