(Allow, 'group:editor', 'view'), (Allow, 'group:author', 'view'), (Allow, 'group:reviewer', 'view'), (Allow, 'group:reader', 'view'), (Allow, 'group:admin', 'view'), (Deny, Everyone, 'view'), ) # Root definition ------------------------------------------------------------------ #@nive_module configuration = RootConf( id="editor", context="nive_cms.cmsview.cmsroot.cmsroot", template="root.pt", default=False, subtypes="*", name=_(u"Home"), extensions=("nive.extensions.persistentRoot.Persistent", ), description=__doc__) configuration.data = [ FieldConf(id=u"pool_filename", datatype="string", size=30, required=1, name=_(u"Root url name"), settings={"validator": RootnameValidator}, default=u""), FieldConf(id=u"title", datatype="string",
try: return base64.decodestring(string) except: return string # Root definition ------------------------------------------------------------------ #@nive_module configuration = RootConf( id = "udb", context = "nive.userdb.root.root", template = "root.pt", views = ["nive.userdb.userview.view"], default = 1, subtypes = "*", name = _(u"User account"), description = __doc__ ) from nive.components.reform.schema import Invalid from nive.components.reform.schema import Email def UsernameValidator(node, value): """ Validator which succeeds if the username does not exist. Can be used for the name input field in a sign up form. """ # lookup name in database
implements(ICMSRoot) extension = u"html" def Init(self): self.__acl__ = ( (Allow, 'group:editor', 'view'), (Allow, 'group:author', 'view'), (Allow, 'group:reviewer', 'view'), (Allow, 'group:reader', 'view'), (Allow, 'group:admin', 'view'), (Deny, Everyone, 'view'), ) # Root definition ------------------------------------------------------------------ #@nive_module configuration = RootConf( id = "editor", context = "nive_cms.cmsview.cmsroot.cmsroot", template = "root.pt", default = False, subtypes = "*", name = _(u"Home"), extensions = ("nive.extensions.persistentRoot.Persistent",), description = __doc__ ) configuration.views = []
# -*- coding: utf-8 -*- # Copyright 2012, 2013 Arndt Droullier, Nive GmbH. All rights reserved. # Released under GPL3. See license.txt # __doc__ = """ Root for context to run adminview """ from nive.definitions import RootConf from nive_userdb.root import root from nive_userdb.i18n import _ class adminroot(root): """ """ # Root definition ------------------------------------------------------------------ #@nive_module configuration = RootConf(id="usermanagement", context="nive_userdb.useradmin.adminroot.adminroot", default=False, subtypes="*", name=_(u"User listing"), description="")
implements(IWebsiteRoot) extension = u"html" def Init(self): self.queryRestraints = {"pool_state": 1}, {} # Root definition ------------------------------------------------------------------ #@nive_module configuration = RootConf( id="content", context="nive_cms.root.root", template="root.pt", default=True, subtypes="*", extensions=("nive.extensions.persistentRoot.Persistent", ), name=_(u"Home"), description= _(u"The root is the home page of the website. All contained pages and elements are stored in the database." )) # Disabled "nive_cms.extensions.path.PersistentRootPath" configuration.data = [ FieldConf(id=u"description", datatype="text", size=5000, required=0, name=_(u"Root description")), ]
""" Root ---- The *root* is the entry point of the data storage. All contained items are stored in the database. The root itself does not store anything in the database by default. The system supports multiple roots with unique urls to access items. Also this object provides search functions and sql query wrappers. """ from nive_datastore.i18n import _ from nive.components.objects.base import RootBase from nive.definitions import RootConf from nive.definitions import AllTypesAllowed class root(RootBase): def Init(self): self.queryRestraints = {}, {} # Root definition ------------------------------------------------------------------ #@nive_module configuration = RootConf(id="api", context="nive_datastore.root.root", default=True, subtypes=AllTypesAllowed, extensions=("nive_datastore.pydispatch.Dispatcher", ), name=_(u"Data root"), description=u"")
class cmsroot(PageRootBase): #implements(IWebsiteRoot, ICMSRoot) implements(ICMSRoot) extension = u"html" def Init(self): self.__acl__ = ( (Allow, 'group:editor', 'view'), (Allow, 'group:author', 'view'), (Allow, 'group:reviewer', 'view'), (Allow, 'group:reader', 'view'), (Allow, 'group:admin', 'view'), (Deny, Everyone, 'view'), ) # Root definition ------------------------------------------------------------------ #@nive_module configuration = RootConf( id="editor", context="nive_cms.cmsview.cmsroot.cmsroot", template="root.pt", default=False, subtypes="*", name=_(u"Home"), extensions=("nive.extensions.persistentRoot.Persistent", ), description=__doc__) configuration.views = []
implements(IWebsiteRoot) extension = u"html" def Init(self): self.queryRestraints = {"pool_state": 1}, {} # Root definition ------------------------------------------------------------------ #@nive_module configuration = RootConf( id = "content", context = "nive_cms.root.root", template = "root.pt", default = True, subtypes = "*", extensions = ("nive.extensions.persistentRoot.Persistent",), name = _(u"Home"), description = _(u"The root is the home page of the website. All contained pages and elements are stored in the database.") ) # Disabled "nive_cms.extensions.path.PersistentRootPath" configuration.data = [ FieldConf(id=u"description", datatype="text", size=5000, required=0, name=_(u"Root description")), ] fields = ["title", "description", #FieldConf(id=u"pool_filename", datatype="string", size=30, required=1, name=_(u"Root url name"), # settings={"validator": RootnameValidator}, default=u""),
(Allow, 'group:reviewer', 'view'), (Allow, 'group:reader', 'view'), (Allow, 'group:admin', 'view'), (Deny, Everyone, 'view'), ) # Root definition ------------------------------------------------------------------ #@nive_module configuration = RootConf( id = "editor", context = "nive_cms.cmsview.cmsroot.cmsroot", template = "root.pt", default = False, subtypes = "*", name = _(u"Home"), extensions = ("nive.extensions.persistentRoot.Persistent",), description = __doc__ ) configuration.data = [ FieldConf(id=u"pool_filename", datatype="string", size=30, required=1, name=_(u"Root url name"), settings={"validator": RootnameValidator}, default=u""), FieldConf(id=u"title", datatype="string", size=255, required=0, name=_(u"Root title"), default=configuration.name), FieldConf(id=u"description", datatype="text", size=5000, required=0, name=_(u"Root description")), FieldConf(id=u"pool_groups", datatype="checkbox", size=250, required=0, name=_(u"Permission"), default=u"", description=_(u"Only displayed to users in the selected group")) ]
from nive_cms.i18n import _ from nive_cms.baseobjects import PageRootBase from nive.definitions import IWebsiteRoot, implements from nive.definitions import RootConf class root(PageRootBase): implements(IWebsiteRoot) extension = u"html" def Init(self): self.queryRestraints = {"pool_state": 1}, {} # Root definition ------------------------------------------------------------------ #@nive_module configuration = RootConf( id = "root", context = "nive_cms.root.root", template = "root.pt", default = True, subtypes = "*", extensions = ("nive.extensions.persistentRoot.Persistent","nive_cms.extensions.path.PersistentRootPath"), name = _(u"Home"), description = _(u"The root is the home page of the website. All contained pages and elements are stored in the database.") )