Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/l/a/largeblue.order-0.2/src/bop/who.py   largeblue.order(Download)
def default_owns(obj):
    dc = bop.shortcut.dc(obj, None)
    if dc is not None and dc.creators:
        return dc.creators[0]
    return None
def default_authors(obj):
    bare = zope.proxy.removeAllProxies(obj)
    dc = bop.shortcut.dc(bare, None)
    if dc is not None and dc.creators:
        return dc.creators
def default_contributors(obj):
    bare =  zope.proxy.removeAllProxies(obj)
    dc = bop.shortcut.dc(bare, None)
    if dc is not None and dc.contributors:
        return dc.contributors
    def setContributors(self, contributors):
        bop.shortcut.dc(self.context).contributors = contributors
 
    contributors = property(getContributors, setContributors)