Logo Search packages:      
Sourcecode: zope-cmfbibliographyat version File versions  Download package

def CMFBibliographyAT::content::base::BaseEntry::getMembers (   self  ) 

For use when members are authors, return a DisplayList of members

Definition at line 348 of file base.py.

00348                         :
        """
        For use when members are authors, return a DisplayList of members
        """
        value = DisplayList()
        value.add('', '<no reference>')
        if self.showMemberAuthors():
            md = getToolByName(self, 'portal_memberdata')
            membertypes = md.getAllowedMemberTypes()
            catalog = getToolByName(self, 'portal_catalog')
            results = catalog(portal_type=membertypes)
            for r in results:
                uid = getattr(aq_base(r), 'UID', r.getObject().UID())
                title = r.Title or r.id
                value.add(uid, title)
        return value

    security.declareProtected(View, 'getSiteMembers')
    def getSiteMembers(self, *args, **kw):


Generated by  Doxygen 1.6.0   Back to index