[Zope-Coders] bug in ZPublisher.BaseRequest

Shane Hathaway shane@zope.com
Wed, 25 Sep 2002 09:49:38 -0400


Jeremy Hylton wrote:
> Here's another bug Neal reported that I don't know how to fix.  In
> BaseRequest, there's a method that refers to the global variable
> type_converters.  This variable doesn't exist -- didn't even exist in
> revision 1.1.  What's supposed to happen?
> 
> Jeremy
> 
> try:
>     from ExtensionClass import Base
>     class RequestContainer(Base):
>         __roles__=None
>         def __init__(self,**kw):
>             for k,v in kw.items(): self.__dict__[k]=v
> 
>         def manage_property_types(self):
>             return type_converters.keys()
> 
> except:
>     class RequestContainer:
>         __roles__=None
>         def __init__(self,**kw):
>             for k,v in kw.items(): self.__dict__[k]=v

According to "grep", nothing uses "manage_property_types".  The 
manage_property_types method should be removed.  (It looks like 
temporary debugging code that accidentally slipped in.)

Shane