Commit 7feb8a41 authored by Alexandre Boeglin's avatar Alexandre Boeglin

As tests are not part of the ZODB (they are not used as normal objects, they...

As tests are not part of the ZODB (they are not used as normal objects, they are just included in business templates for convenience), there is no need to use a ImportLocalSomething() in the install method.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2279 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 773665fd
...@@ -724,7 +724,6 @@ class TestTemplateItem(BaseTemplateItem): ...@@ -724,7 +724,6 @@ class TestTemplateItem(BaseTemplateItem):
BaseTemplateItem.install(self, context, **kw) BaseTemplateItem.install(self, context, **kw)
for id,text in self._archive.items(): for id,text in self._archive.items():
writeLocalTest(id, text, create=1) # This raises an exception if the file exists. writeLocalTest(id, text, create=1) # This raises an exception if the file exists.
importLocalPropertySheet(id)
def uninstall(self, context, **kw): def uninstall(self, context, **kw):
for id in self._archive.keys(): for id in self._archive.keys():
......
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