use a Jeep object for listing columns so that they may be retrieved by name
This commit is contained in:
parent
42aa8ac1b6
commit
ed06f60790
1 changed files with 3 additions and 2 deletions
|
@ -25,6 +25,7 @@ from zope.cachedescriptors.property import Lazy
|
|||
|
||||
from cybertools.composer.interfaces import IInstance
|
||||
from cybertools.composer.report.base import BaseQueryCriteria
|
||||
from cybertools.util.jeep import Jeep
|
||||
|
||||
|
||||
class BaseRow(object):
|
||||
|
@ -56,7 +57,7 @@ class Row(BaseRow):
|
|||
|
||||
@Lazy
|
||||
def displayedColumns(self):
|
||||
return self.parent.context.getActiveOutputFields()
|
||||
return self.parent.displayedColumns
|
||||
|
||||
def useRowProperty(self, attr):
|
||||
return getattr(self, attr)
|
||||
|
@ -116,5 +117,5 @@ class ResultSet(object):
|
|||
|
||||
@Lazy
|
||||
def displayedColumns(self):
|
||||
return self.context.getActiveOutputFields()
|
||||
return Jeep(self.context.getActiveOutputFields())
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue