[Zope] DeprecationWarning: the regsub module ...
hans
hans@beehive.de
Fri, 17 May 2002 16:51:21 +0100
eric.n.dunn@bankofamerica.com wrote:
> 2. What's the best way to fix these two ZDConfera issues?
> ------
> ** 2002-05-17T13:49:00 PROBLEM(100) Init Ambiguous name for method of
> Products.ZDConfera.ZDConfera.ZDConferaItem: "manage_editForm" != "manage"
> ------
> ** 2002-05-17T13:49:00 PROBLEM(100) Init Ambiguous name for method of
> Products.ZDConfera.ZDConfera.ZDConferaItem: "manage_editForm" !=
> "manage_main"
>
> Original code running in /lib/python/Products/ZDConfera/ZDConfera.py:
>
> class ZDConferaItem(ZDiscussions.ZDItem):
> """This class provides some compatability functions to help
> make it looks like a Confera Message/Reply"""
>
> meta_type = 'Message'
> icon = 'misc_/ZDConfera/message.gif'
> root = 0
>
> manage_editForm = HTMLFile('editMessageForm', globals())
> manage = manage_main = manage_editForm
afaik this is a 2.4+ problem
either append
<code>
manage=manage_main=manage__editForm
</code>
with
<code>
try: # Zope 2.4+
manage_main._setName( 'manage_main' )
except: # lesser zopes dont need&know _setName
pass
</code>.
alternativly change
<code>
manage = manage_main = HTMLFile('www/UserCounterStats', globals())
</code>
to:
<code>
manage_main = HTMLFile('www/UserCounterStats', globals())
</code>
--
-------------------------------------------------------------
Who's got only a hammer sees the world as a nail
hans augustin (software developer) hans@beehive.de
beehive elektronische medien GmbH http://www.beehive.de
phone: +49 30 847-82 0 fax: +49 30 847-82 299