LongTitle for Categories
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3656 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
e2d01962c1
commit
5435e418aa
3 changed files with 7 additions and 1 deletions
|
@ -160,6 +160,9 @@ class AdapterBase(object):
|
|||
def getChildren(self):
|
||||
for c in self.context.getChildren():
|
||||
yield adapted(c, self.languageInfo)
|
||||
|
||||
def getLongTitle(self):
|
||||
return self.title
|
||||
|
||||
|
||||
class ResourceAdapterBase(AdapterBase):
|
||||
|
|
|
@ -164,6 +164,9 @@ class Concept(Contained, Persistent):
|
|||
elif rel not in pi.relations:
|
||||
pi.relations.append(rel)
|
||||
return result
|
||||
|
||||
def getLongTitle(self):
|
||||
return self.title
|
||||
|
||||
# concept relations
|
||||
|
||||
|
|
|
@ -139,7 +139,7 @@ class Search(BaseView):
|
|||
return ConceptQuery(self).query(**kw)
|
||||
|
||||
def getRowName(self, obj):
|
||||
return obj.title
|
||||
return obj.getLongTitle()
|
||||
|
||||
def getRowLabel(self, obj, name):
|
||||
if isinstance(obj, AdapterBase):
|
||||
|
|
Loading…
Add table
Reference in a new issue