Commit 90acee04 authored by Jean-Paul Smets's avatar Jean-Paul Smets

title_or_is not en ERP5 method. Use getTitleOrId.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26496 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ba6fd2bf
...@@ -179,7 +179,7 @@ class Amount(Base, Variated): ...@@ -179,7 +179,7 @@ class Amount(Base, Variated):
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getVariationBaseCategoryItemList') 'getVariationBaseCategoryItemList')
def getVariationBaseCategoryItemList(self,display_id='title_or_id',**kw): def getVariationBaseCategoryItemList(self,display_id='getTitleOrId',**kw):
""" """
Returns a list of base_category tuples. Returns a list of base_category tuples.
""" """
...@@ -455,6 +455,7 @@ class Amount(Base, Variated): ...@@ -455,6 +455,7 @@ class Amount(Base, Variated):
def getNetTargetQuantity(self): def getNetTargetQuantity(self):
""" """
Take into account efficiency in target quantity Take into account efficiency in target quantity
XXX - dreprecated
""" """
quantity = self.getTargetQuantity() quantity = self.getTargetQuantity()
efficiency = self.getTargetEfficiency() efficiency = self.getTargetEfficiency()
......
...@@ -322,12 +322,6 @@ class EmailDocument(File, TextDocument): ...@@ -322,12 +322,6 @@ class EmailDocument(File, TextDocument):
subject = ''.join(subject.split('\n')) subject = ''.join(subject.split('\n'))
return subject return subject
def title_or_id(self):
"""Return the title if it is not blank and the id otherwise.
XXX - What is this !!!! why here ???
"""
return self.getTitleOrId()
security.declareProtected(Permissions.AccessContentsInformation, 'getStartDate') security.declareProtected(Permissions.AccessContentsInformation, 'getStartDate')
def getStartDate(self, default=_MARKER): def getStartDate(self, default=_MARKER):
""" """
......
...@@ -317,7 +317,7 @@ class Image(File, OFSImage): ...@@ -317,7 +317,7 @@ class Image(File, OFSImage):
portal_transforms = getToolByName(self, 'portal_transforms') portal_transforms = getToolByName(self, 'portal_transforms')
result = portal_transforms.convertToData(mime_type, content, result = portal_transforms.convertToData(mime_type, content,
object=self, context=self, object=self, context=self,
filename=self.title_or_id(), filename=self.getTitleOrId(),
mimetype=src_mimetype) mimetype=src_mimetype)
if result is None: if result is None:
# portal_transforms fails to convert. # portal_transforms fails to convert.
......
...@@ -114,7 +114,7 @@ class Transformation(XMLObject, Predicate, Variated): ...@@ -114,7 +114,7 @@ class Transformation(XMLObject, Predicate, Variated):
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getVariationRangeBaseCategoryItemList') 'getVariationRangeBaseCategoryItemList')
def getVariationRangeBaseCategoryItemList(self,display_id='title_or_id',**kw): def getVariationRangeBaseCategoryItemList(self, display_id='getTitleOrId', **kw):
""" """
Returns possible variations of the transformation Returns possible variations of the transformation
as a list of tuples (id, title). This is mostly as a list of tuples (id, title). This is mostly
......
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