[Zope] Renderable ZClass and Zope 2.2

Jeff Sasmor jeff@janix.com
Wed, 26 Jul 2000 14:12:58 -0400


Hi-
I am trying to 'update' my EventFolder product to
Zope 2.2 but a  really wierd thing is going on:

When I try to create an instance (an EventFolder, which is
subclassed from Renderable and ObjectManager) I get an
error shown in the traceback below.

There EventFolder_add method in the ZClass creates a
catalog (Catalog) which does not seem to be accessable...

yet, why is the instance being renedered at all?  It appears
as if the instance is being rendered before the transaction
is committed and therefore there's no Catalog-- this I get. But
why is the instance being rendered at all?

Is there some incompatability with Renderable and 2.2?

Confusedly,

Jeff Sasmor
jeff@sasmor.com

-------------------------------------------------------------------------------------------------------
Error Type: AttributeError
Error Value: Catalog

Traceback (innermost last):
  File /usr/local/Zope220/lib/python/ZPublisher/Publish.py, line 222, in publish_module
  File /usr/local/Zope220/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /usr/local/Zope220/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook
    (Object: RoleManager)
  File /usr/local/Zope220/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /usr/local/Zope220/lib/python/ZPublisher/mapply.py, line 160, in mapply
    (Object: EventFolder_add)
  File /usr/local/Zope220/lib/python/ZPublisher/Publish.py, line 112, in call_object
    (Object: EventFolder_add)
  File /usr/local/Zope220/lib/python/OFS/DTMLMethod.py, line 167, in __call__
    (Object: EventFolder_add)
  File /usr/local/Zope220/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__
    (Object: EventFolder_add)
  File /usr/local/Zope220/lib/python/DocumentTemplate/DT_Let.py, line 147, in render
    (Object: folder="EventFolder.createInObjectManager(REQUEST['id'], REQUEST)")
  File /usr/local/Zope220/lib/python/DocumentTemplate/DT_With.py, line 146, in render
    (Object: folder)
  File /usr/local/Zope220/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval
    (Object: manage_addProduct['ZCatalog'].manage_addZCatalog(this(),'Catalog','EventCatalog' ))
    (Info: this)
  File <string>, line 0, in ?
  File /usr/local/Zope220/lib/python/Products/ZCatalog/ZCatalog.py, line 112, in manage_addZCatalog
  File /usr/local/Zope220/lib/python/Products/Renderable/Renderable.py, line 17, in __str__
    (Object: Renderable)
  File /usr/local/Zope220/lib/python/OFS/DTMLMethod.py, line 167, in __call__
    (Object: render)
  File /usr/local/Zope220/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__
    (Object: render)
  File /usr/local/Zope220/lib/python/DocumentTemplate/DT_With.py, line 146, in render
    (Object: ZopeTime)
  File /usr/local/Zope220/lib/python/DocumentTemplate/DT_Let.py, line 147, in render
    (Object: tdate="'%s/%s/1' % (tyear,tmonth) "
          this_month="'%s/%s' % (tyear,tmonth) "
          ddate="_.DateTime(tdate)")
  File /usr/local/Zope220/lib/python/DocumentTemplate/DT_Let.py, line 147, in render
    (Object: smeth="dateSearch.absolute_url()")
  File /usr/local/Zope220/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval
    (Object: renderMonth(ddate,smeth,bodyFgColor,bodyBgColor,headingFgColor,headingBgColor, 'showyear' , moderated))
    (Info: smeth)
  File <string>, line 0, in ?
  File /usr/local/Zope220/lib/python/Products/ExternalMethod/ExternalMethod.py, line 270, in __call__
    (Object: renderMonth)
    (Info: ((DateTime('2000/07/01'), 'http://www.ptang.com:8080/test/asdasd/dateSearch', '#000000', '#ffffff',
'#ffffff', '#000000', 'showyear', 'on'), {}, None))
  File /usr/local/Zope220/lib/python/Products/EventFolder/Extensions/rendercal.py, line 97, in renderMonth
    (Object: Renderable)
AttributeError: (see above)