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
|
@ -161,6 +161,9 @@ class AdapterBase(object):
|
||||||
for c in self.context.getChildren():
|
for c in self.context.getChildren():
|
||||||
yield adapted(c, self.languageInfo)
|
yield adapted(c, self.languageInfo)
|
||||||
|
|
||||||
|
def getLongTitle(self):
|
||||||
|
return self.title
|
||||||
|
|
||||||
|
|
||||||
class ResourceAdapterBase(AdapterBase):
|
class ResourceAdapterBase(AdapterBase):
|
||||||
|
|
||||||
|
|
|
@ -165,6 +165,9 @@ class Concept(Contained, Persistent):
|
||||||
pi.relations.append(rel)
|
pi.relations.append(rel)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
def getLongTitle(self):
|
||||||
|
return self.title
|
||||||
|
|
||||||
# concept relations
|
# concept relations
|
||||||
|
|
||||||
def getClients(self, relationships=None):
|
def getClients(self, relationships=None):
|
||||||
|
|
|
@ -139,7 +139,7 @@ class Search(BaseView):
|
||||||
return ConceptQuery(self).query(**kw)
|
return ConceptQuery(self).query(**kw)
|
||||||
|
|
||||||
def getRowName(self, obj):
|
def getRowName(self, obj):
|
||||||
return obj.title
|
return obj.getLongTitle()
|
||||||
|
|
||||||
def getRowLabel(self, obj, name):
|
def getRowLabel(self, obj, name):
|
||||||
if isinstance(obj, AdapterBase):
|
if isinstance(obj, AdapterBase):
|
||||||
|
|
Loading…
Add table
Reference in a new issue