Esempio n. 1
0
 def __init__(self, id=None):
     """ return a SmurlFolder instance """
     self.minlength_alpha = 1
     self.minlength_numeric = 1
     self.upper_and_lower = False
     self.avoid_duplicates = True
     BTreeFolder2.__init__(self, id)
Esempio n. 2
0
 def __init__(self, id, title, automatic=False):
     self.id = id
     self.title = title
     self.creation_date = DateTime()
     self.closing_date = None
     self.automatic = automatic
     self.last_msg_id = 0
     BTreeFolder2.__init__(self)
Esempio n. 3
0
 def __init__(self, id, title, automatic=False):
     self.id = id
     self.title = title
     self.creation_date = DateTime()
     self.closing_date = None
     self.automatic = automatic
     self.last_msg_id = 0
     BTreeFolder2.__init__(self)
    def __init__(self):
        BTreeFolder2.__init__(self)
        # Defaults from CMFCore.MemberDataTool
        self._setProperty('email', '', 'string')
        self._setProperty('portal_skin', '', 'string')
        self._setProperty('listed', '', 'boolean')
        self._setProperty('login_time', '2000/01/01', 'date')
        self._setProperty('last_login_time', '2000/01/01', 'date')

        # Compatibility with Plone's MemberData tool
        self.portraits=BTreeFolder2(id='portraits')
Esempio n. 5
0
    def __init__(self):
        BTreeFolder2.__init__(self)
        # Defaults from CMFCore.MemberDataTool
        self._setProperty('email', '', 'string')
        self._setProperty('portal_skin', '', 'string')
        self._setProperty('listed', '', 'boolean')
        self._setProperty('login_time', '2000/01/01', 'date')
        self._setProperty('last_login_time', '2000/01/01', 'date')

        # Compatibility with Plone's MemberData tool
        self.portraits = BTreeFolder2(id='portraits')
 def __init__(self, id, title, description, sortorder, start_date, end_date, public_registration, allow_file, contributor, releasedate, lang):
     """ """
     self.id = id
     NyValidation.__dict__['__init__'](self)
     NyCheckControl.__dict__['__init__'](self)
     NyContainer.__dict__['__init__'](self)
     BTreeFolder2.__init__(self)
     self.contributor = contributor
     try: del self.title
     except: pass
     self.save_properties(title, description, sortorder, start_date, end_date, public_registration, allow_file, releasedate, lang)
     NyProperties.__dict__['__init__'](self)
     self.submitted = 1
 def __init__(self, id, admin_mail):
     """ Create Bitakora community """
     BTreeFolder2.__init__(self, id)
     self.id = id
     self.admin_mail = admin_mail
     self.management_page_charset = 'UTF-8'
     self.title = u'blog community'
     self._addLocalizer()
     self._addCatalog()
     self._addMethods()
     self._addTemplates()
     self._addContent()
     self._addOthers()
     self._buildIndexes()
Esempio n. 8
0
 def __init__(self, id, title, author, body,
              tags=[], date=u'', publish=1, comment_allowed=1):
     """ """
     BTreeFolder2.__init__(self, id)
     self.id = str(id)
     self.title = title
     self.author = author
     self.body = body
     self.tags = tags
     self.date = date
     self.comment_allowed = comment_allowed
     self.reference_allowed = comment_allowed
     self.published = publish
     self.reindex_object()
 def __init__(self, id, title, description, sortorder, start_date, end_date,
              public_registration, allow_file, contributor, releasedate,
              lang):
     """ """
     self.id = id
     NyValidation.__dict__['__init__'](self)
     NyCheckControl.__dict__['__init__'](self)
     NyContainer.__dict__['__init__'](self)
     BTreeFolder2.__init__(self)
     self.contributor = contributor
     try:
         del self.title
     except:
         pass
     self.save_properties(title, description, sortorder, start_date,
                          end_date, public_registration, allow_file,
                          releasedate, lang)
     NyProperties.__dict__['__init__'](self)
     self.submitted = 1
Esempio n. 10
0
 def __init__(self, id, title, subtitle, description, contact_mail):
     """ Constructor """
     BTreeFolder2.__init__(self, id)
     self.id = id
     self.title = title
     self.subtitle = subtitle
     self.description = description
     self.contact_mail = contact_mail
     self.management_page_charset = u'UTF-8'
     self.sidebar_html = u''
     self._setObject('Catalog', ZCatalog.ZCatalog('Catalog', 'Catalog'))
     self._buildIndexes()
     self._addMethods()
     self._setObject('pingback', PingMethodContainer())
     self.postcount = 0
     self._links = IOBTree()
     # if 0 not allowed, 1 allowed, 2 allowed but moderated
     self.comment_allowed = 1
     self.reference_allowed = 1
     #self.imageUrl = None
     self.imagename = ''
     self.CAPTCHA_ENABLED = 1
Esempio n. 11
0
 def __init__(self, *args, **kw):
     BTreeFolder2.__init__(self, *args, **kw)
     self._create_catalog()
     self._linkrange = (1,3)  # currently unused; just a marker
Esempio n. 12
0
 def __init__(self):
     BTreeFolder2.__init__(self, id=self.id)
 def __init__(self, id):
     BTreeFolder2.__init__(self, id)
     self._default_storage = None
     self._storage_map = {}
     self._all_storages = []
 def __init__(self, id, title):
     BTreeFolder2.__init__(self, id)
     self.title = title
     self.profiles_meta = {}
Esempio n. 15
0
 def __init__(self, id, title):
     BTreeFolder2.__init__(self, id)
     self.title = title
     self.profiles_meta = {}
 def __init__(self, objId):
     BTreeFolder2.__init__(self, objId)
     XWFFileStorage2.__init__(self, objId)
 def __init__(self, objId):
     BTreeFolder2.__init__(self, objId)
     XWFFileStorage2.__init__(self, objId)
Esempio n. 18
0
 def __init__(self, id, title, vocab_id, extra):
     BTreeFolder2.__init__(self, id)
     ZCatalog.__init__(self, id, title, vocab_id, extra)
Esempio n. 19
0
 def __init__(self, id=None):
     BTreeFolder2.__init__(self, id)
     self._last_pin_index = -1
Esempio n. 20
0
 def __init__(self, *args, **kw):
     BTreeFolder2.__init__(self, *args, **kw)
     self._create_catalog()
     self._linkrange = (1, 3)  # currently unused; just a marker