[Zope] getPropertyType

Dieter Maurer dieter@handshake.de
Sat, 5 May 2001 20:34:44 +0200 (CEST)

Tim Hicks writes:
 > ... problem with "PropertySheet.getPropertyType" ...
This might be a bug.

I looked in the code at "OFS.PropertySheets".

  "getPropertyType" is very differently implemented
  than "hasProperty".
  "getPropertyType" looks at "self.p_self()._properties" while
  "hasProperty" looks at "self._propertyMap".

  This is very suspicious.

  At your place, I would make "getPropertyType" similar to
  "hasProperty" and if that gives you the correct result,
  file a bug report into the collector.