Logo Search packages:      
Sourcecode: zope-i18nlayer version File versions

def zope-i18nlayer-0.5.5::I18NLayer::I18NLayer::setI18NLayerAttributes (   self,
  id,
  ob = None 
)

stores required attributes to a given object
either to a subobject of myself or to ob

Definition at line 325 of file I18NLayer.py.

00325                                                  :
        '''
        stores required attributes to a given object
        either to a subobject of myself or to ob
        '''
        if not ob:
            if not hasattr(aq_base(self),id): raise "AttributeError", id
            ob=getattr(self,id)

        if not _checkPermission(ModifyPortalContent, ob):
            raise "Unauthorized"

        # the language is the same as the id
        lang=id
        setattr(ob,'i18nContent_language', lang)


    security.declarePublic('listFolderContents')
    def listFolderContents(self, spec=None, contentFilter=None):


Generated by  Doxygen 1.6.0   Back to index