示例#1
0
    def __getattr__(self, name):
        try:
            return DexterityContent.__getattr__(self, name)
        except AttributeError:
            pass

        # Be specific about the implementation we use
        return CMFOrderedBTreeFolderBase.__getattr__(self, name)
示例#2
0
    def __getattr__(self, name):
        try:
            return DexterityContent.__getattr__(self, name)
        except AttributeError:
            pass

        # Be specific about the implementation we use
        return CMFOrderedBTreeFolderBase.__getattr__(self, name)
示例#3
0
 def __getattr__(self, name):
     
     # attribute was not found; try to look it up in the schema and return
     # a default
     
     schema = SCHEMA_CACHE.get(self.portal_type)
     if schema is not None:
         field = schema.get(name, None)
         if field is not None:
             return deepcopy(field.default)
     
     # Be specific about the implementation we use
     return CMFOrderedBTreeFolderBase.__getattr__(self, name)
示例#4
0
    def __getattr__(self, name):

        # attribute was not found; try to look it up in the schema and return
        # a default

        schema = SCHEMA_CACHE.get(self.portal_type)
        if schema is not None:
            field = schema.get(name, None)
            if field is not None:
                return deepcopy(field.default)

        # Be specific about the implementation we use
        return CMFOrderedBTreeFolderBase.__getattr__(self, name)