Changeset 834

Show
Ignore:
Timestamp:
06/14/07 11:11:51 (2 years ago)
Author:
sgillies
Message:

add responsibility properties

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Bibliomane/trunk/bibliomane/browser/principals.py

    r832 r834  
    7979        return [w for w in self.widgets] 
    8080 
     81    @property 
     82    def creations(self): 
     83        return find_sources(self.context, ICreatedBy) 
     84 
     85    @property 
     86    def realizations(self): 
     87        return find_sources(self.context, IRealizedBy) 
     88 
     89    @property 
     90    def productions(self): 
     91        return find_sources(self.context, IProducedBy) 
     92 
     93    @property 
     94    def items(self): 
     95        return find_sources(self.context, IOwnedBy) 
     96 
    8197 
    8298class CorporateBodyAddForm(AddForm):