Beispiel #1
0
 def __init__(self, db, classname, **properties):
     """The newly-created class automatically includes the "content" property.,
     """
     properties["content"] = hyperdb.String(indexme="yes")
     Class.__init__(self, db, classname, **properties)
Beispiel #2
0
 def create(self, **propvalues):
     # figure the mime type
     if self.getprops().has_key("type") and not propvalues.get("type"):
         propvalues["type"] = self.default_mime_type
     return Class.create(self, **propvalues)
Beispiel #3
0
 def __init__(self, db, classname, **properties):
     '''The newly-created class automatically includes the "content" property.,
     '''
     properties['content'] = hyperdb.String(indexme='yes')
     Class.__init__(self, db, classname, **properties)