Commit 4bc59ae1 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

Use Base class's methods for properties instead of patched PropertyManager's...

Use Base class's methods for properties instead of patched PropertyManager's in CategotyTool and TestTool, that will fill TestERP5Core.test_getPropertyForUid.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35981 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cdcb897c
...@@ -1741,6 +1741,12 @@ class CategoryTool( UniqueObject, Folder, Base ): ...@@ -1741,6 +1741,12 @@ class CategoryTool( UniqueObject, Folder, Base ):
return obj return obj
# Use Base class's methods for properties instead of patched PropertyManager's
_propertyMap = Base._propertyMap
_setProperty = Base._setProperty
getProperty = Base.getProperty
hasProperty = Base.hasProperty
InitializeClass( CategoryTool ) InitializeClass( CategoryTool )
# Psyco # Psyco
......
...@@ -76,6 +76,12 @@ try: ...@@ -76,6 +76,12 @@ try:
# """ Record the results of a test run. # """ Record the results of a test run.
# """ # """
# return self.TestTool_reportResult(REQUEST) # return self.TestTool_reportResult(REQUEST)
# Use BaseTool class's methods for properties instead of patched PropertyManager's
_propertyMap = BaseTool._propertyMap
_setProperty = BaseTool._setProperty
getProperty = BaseTool.getProperty
hasProperty = BaseTool.hasProperty
except ImportError: except ImportError:
class TestTool (BaseTool): class TestTool (BaseTool):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment