DeprecationWarning: the regsub module ...
1. Does anyone know if this DeprecationWarning has to be fixed and if so how? * $ /zope251/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) 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
----- Original Message ----- From: <eric.n.dunn@bankofamerica.com> To: <zope@zope.org> Sent: Friday, May 17, 2002 10:01 Subject: [Zope] DeprecationWarning: the regsub module ...
1. Does anyone know if this DeprecationWarning has to be fixed and if so how?
This is a warning that you are using a third party product that still uses the old regsub module. It reminds you that this module might disappear in a later Python version. -aj
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
participants (3)
-
Andreas Jung -
eric.n.dunn@bankofamerica.com -
hans