first steps towards getting favorites (and other personalization stuff) to work
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@2396 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
de75dc50e9
commit
f244f58479
1 changed files with 4 additions and 2 deletions
|
@ -58,6 +58,7 @@ class Track(Persistent):
|
|||
|
||||
metadata_attributes = ('taskId', 'runId', 'userName', 'timeStamp')
|
||||
index_attributes = metadata_attributes
|
||||
typeName = 'Track'
|
||||
|
||||
@property
|
||||
def metadata(self):
|
||||
|
@ -81,8 +82,9 @@ class Track(Persistent):
|
|||
def __repr__(self):
|
||||
md = self.metadata
|
||||
md['timeStamp'] = timeStamp2ISO(md['timeStamp'])
|
||||
return '<Track %s: %s>' % (`[md[a] for a in self.metadata_attributes]`,
|
||||
`self.data`)
|
||||
return '<%s %s: %s>' % (self.typeName,
|
||||
repr([md[a] for a in self.metadata_attributes]),
|
||||
repr(self.data))
|
||||
|
||||
|
||||
class TrackingStorage(BTreeContainer):
|
||||
|
|
Loading…
Add table
Reference in a new issue