示例#1
0
 def __init__(self, name = None, fullname = None):
     BaseType.__init__(self)
     self.name = name
     self.fullname = fullname
     self.email = None
     self.url = None
     self.groups = None
示例#2
0
 def __init__(self, name=None, fullname=None):
     BaseType.__init__(self)
     self.name = name
     self.fullname = fullname
     self.email = None
     self.url = None
     self.groups = None
示例#3
0
 def __init__(self, attachmentDict):
     BaseType.__init__(self)
     self.version = None
     for key, value in attachmentDict.iteritems():
         setattr(self, key, str(value))
     self.version = urlparse.parse_qs(urlparse.urlparse(
         self.url).query)['version'][0]
示例#4
0
 def __init__(self, key=None, name=None, description=''):
     BaseType.__init__(self)
     self.key = key
     self.name = name
     self.description = description
     self.homePage = None
     self.pages = None
     self.url = None
     self.type = None
    def __init__(self, config, name):
        BaseType.__init__(self)
        self._section_name = name
        self._config = config
        if not self._config.checkSection(self._section_name):
            self._config.addSection(self._section_name)
            self._config.write()

        for attrName, config in self.pm_property_metadata.iteritems():
            self._setProperty(attrName, config['self'], config['default'])
            self._config.setParam(self._section_name, attrName, getattr(self, attrName))
示例#6
0
    def __init__(self, config, name):
        BaseType.__init__(self)
        self._section_name = name
        self._config = config
        if not self._config.checkSection(self._section_name):
            self._config.addSection(self._section_name)
            self._config.write()

        for attrName, config in self.pm_property_metadata.iteritems():
            self._setProperty(attrName, config['self'], config['default'])
            self._config.setParam(self._section_name, attrName,
                                  getattr(self, attrName))
示例#7
0
 def __init__(self, space = None, title = None, content = '', parent = None):
     BaseType.__init__(self)
     self.space = space
     self.title = title
     self.content = content
     self.parent = parent
     self.version = None
     self.id = None
     self.url = None
     self.locks = None
     self.created = None
     self.creator = None
     self.modified = None
     self.modifier = None
     self.homePage = None
     self.contentStatus = None
     self.current = None
     self.attachements = None
     self.subPages = None
     self.comments = None
示例#8
0
 def __init__(self, name = None):
     BaseType.__init__(self)
     self.name = name
示例#9
0
 def __init__(self, name = None):
     BaseType.__init__(self)
     self.name = name
     self.owner = None
     self.namespace = None
     self.id = None
 def __init__(self, attachmentDict):
     BaseType.__init__(self)
     self.version = None
     for key, value in attachmentDict.iteritems():
         setattr(self, key, str(value))
     self.version = urlparse.parse_qs(urlparse.urlparse(self.url).query)['version'][0]
示例#11
0
 def __init__(self, id = None, space = None, title =None, content = ''):
     BaseType.__init__(self)
     self.id = id
     self.space = space
     self.title = title
     self.content = content