Commit b9d42921 authored by Yoshinori Okuji's avatar Yoshinori Okuji

No reason to use setDescription any longer; use _setDescription instead.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22638 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cc13c1ea
...@@ -250,7 +250,7 @@ class TestCMFActivity(ERP5TypeTestCase): ...@@ -250,7 +250,7 @@ class TestCMFActivity(ERP5TypeTestCase):
""" """
portal = self.getPortal() portal = self.getPortal()
def DeferredSetDescription(self,value): def DeferredSetDescription(self,value):
self.setDescription(value) self._setDescription(value)
def DeferredSetTitle(self,value): def DeferredSetTitle(self,value):
self._setTitle(value) self._setTitle(value)
from Products.ERP5Type.Document.Organisation import Organisation from Products.ERP5Type.Document.Organisation import Organisation
...@@ -278,7 +278,7 @@ class TestCMFActivity(ERP5TypeTestCase): ...@@ -278,7 +278,7 @@ class TestCMFActivity(ERP5TypeTestCase):
def DeferredSetTitle(self,value): def DeferredSetTitle(self,value):
self.activate(activity=activity)._setTitle(value) self.activate(activity=activity)._setTitle(value)
def DeferredSetDescription(self,value): def DeferredSetDescription(self,value):
self.activate(activity=activity).setDescription(value) self.activate(activity=activity)._setDescription(value)
from Products.ERP5Type.Document.Organisation import Organisation from Products.ERP5Type.Document.Organisation import Organisation
Organisation.DeferredSetTitle = DeferredSetTitle Organisation.DeferredSetTitle = DeferredSetTitle
Organisation.DeferredSetDescription = DeferredSetDescription Organisation.DeferredSetDescription = DeferredSetDescription
...@@ -309,7 +309,7 @@ class TestCMFActivity(ERP5TypeTestCase): ...@@ -309,7 +309,7 @@ class TestCMFActivity(ERP5TypeTestCase):
def DeferredSetDescription(self,value,commit_sub=0): def DeferredSetDescription(self,value,commit_sub=0):
if commit_sub: if commit_sub:
get_transaction().commit(1) get_transaction().commit(1)
self.activate(activity=second or activity,priority=4).setDescription(value) self.activate(activity=second or activity,priority=4)._setDescription(value)
from Products.ERP5Type.Document.Organisation import Organisation from Products.ERP5Type.Document.Organisation import Organisation
Organisation.DeferredSetTitle = DeferredSetTitle Organisation.DeferredSetTitle = DeferredSetTitle
Organisation.DeferredSetDescription = DeferredSetDescription Organisation.DeferredSetDescription = DeferredSetDescription
......
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