Пример #1
0
    sessionuser=("name", "email", "surname", "lastname", "groups", "notify",
                 "lastlogin"),

    # system
    context="nive_userdb.app.UserDB",
    translations="nive_userdb:locale/")

configuration.modules = [
    "nive_userdb.root",
    "nive_userdb.user",
    # session user cache
    "nive_userdb.extensions.sessionuser",
    # user actions
    "nive_userdb.userview.view",
    "nive.components.reform.reformed",
    # user administration
    "nive_userdb.useradmin.adminroot",
    "nive_userdb.useradmin",
    # tools
    "nive.tools.dbStructureUpdater",
    # administration and persistence
    "nive.adminview",
    "nive.extensions.persistence.dbPersistenceConfiguration"
]

configuration.acl = [
    #(Allow, Everyone,         "signup"), # signup is disabled by default
    (Allow, Everyone, "view"),
    (Allow, Authenticated, "updateuser"),
    (Allow, "group:useradmin", "contactuser"),
    (Allow, "group:useradmin", "removeuser"),
Пример #2
0
configuration.modules = [
    # objects
    "nive.cms.box",
    "nive.cms.column",
    "nive.cms.menublock",
    "nive.cms.file",
    "nive.cms.image",
    "nive.cms.media",
    "nive.cms.note",
    "nive.cms.text",
    "nive.cms.news",
    "nive.cms.spacer",
    "nive.cms.link",
    "nive.cms.code",
    # page, root
    "nive.cms.root",
    "nive.cms.page",
    # cms editor
    "nive.cms.cmsview",
    # design: not included by default
    #"nive.cms.design.view"
    # workflow
    "nive.cms.workflow",
    "nive.cms.workflow.wf.wfProcess",
    #extensions
    "nive.components.extensions.fulltextpage",
    #"nive.components.extensions.localgroups",
    # tools
    "nive.components.tools.dbStructureUpdater",
    "nive.components.tools.dbSqldataDump",
    "nive.components.tools.cmsstatistics",
    "nive.components.tools.gcdump",
    # administration and persistence
    "nive.adminview",
    "nive.components.extensions.persistence.dbPersistenceConfiguration"
]
Пример #3
0
configuration = AppConf()
configuration.id = "userdb"
configuration.title = _(u"Users")
configuration.context = "nive.userdb.app.UserDB"
configuration.loginByEmail = False

# configuration.systemAdmin = (u"email", u"display name")
# configuration.admin = {"name": "admin", "password": "******", "email": "*****@*****.**"}

configuration.modules = [
    "nive.userdb.root", 
    "nive.userdb.user", 
    # session user cache
    "nive.components.extensions.sessionuser",
    # user administration
    "nive.userdb.useradmin", 
    # tools
    "nive.components.tools.dbStructureUpdater", 
    # administration and persistence
    "nive.adminview",
    #"nive.components.extensions.persistence.dbPersistenceConfiguration"
]

configuration.acl= [
    (Allow, Everyone, 'view'),
    (Allow, Everyone, 'updateuser'),
    (Allow, "group:useradmin", 'signup'), 
    (Allow, "group:useradmin", 'manage users'),
    (Allow, "group:admin", ALL_PERMISSIONS),
]
Пример #4
0
configuration.meta.append(FieldConf(id="pool_groups", datatype="checkbox", size=250, default="",
                                    name=_(u"Permission"), 
                                    description=_(u"Only displayed to users in the selected group")))

configuration.modules = [
    # objects
    "nive_cms.box", "nive_cms.column", "nive_cms.menublock", "nive_cms.file", 
    "nive_cms.image", "nive_cms.media", "nive_cms.note", "nive_cms.text",
    "nive_cms.news", "nive_cms.spacer", "nive_cms.link", "nive_cms.codeblock",
    # page, root
    "nive_cms.root", "nive_cms.page", 
    # cms editor
    "nive_cms.cmsview",
    # design: not included by default
    #"nive_cms_design_bs3"
    # workflow
    "nive_cms.workflow",
    "nive_cms.workflow.wf.wfProcess", 
    #extensions
    "nive_cms.extensions.fulltextpage", 
    "nive_cms.extensions.localgroups",
    # tools
    "nive.tools.dbStructureUpdater", "nive.tools.cmsstatistics",
    "nive.tools.exportJson", "nive.tools.dbSqlDump", "nive.tools.dbJsonDump", 
    # administration and persistence
    "nive.adminview",
    "nive.extensions.persistence.dbPersistenceConfiguration"
]

configuration.acl = [
    # basic permissions. explicit view definitions are part of the view modules' conf.
    (Allow, Everyone, 'view'),
Пример #5
0
                        copy.deepcopy(list(UserFlds)) +
                        copy.deepcopy(list(WorkflowFlds)),
                        translations="nive_datastore:locale/")

configuration.modules = [
    # items / collections
    # -> no collections defined by default. See documentation how to define collections
    #    based on 'nive.definitions.ObjectConf'
    # root
    "nive_datastore.root",
    # workflow
    #"nive_datastore.workflow",
    # web api (view layer)
    "nive_datastore.webapi",
    "nive_datastore.webapi.view.stringRendererConf",
    # extensions
    "nive.extensions.filename",
    "nive.extensions.localgroups",
    # tools
    "nive.tools.dbStructureUpdater",
    "nive.tools.cmsstatistics",
    "nive.tools.exportJson",
    "nive.tools.dbSqlDump",
    "nive.tools.dbJsonDump",
    # administration and persistence
    "nive.adminview",
    "nive.extensions.persistence.dbPersistenceConfiguration"
]

configuration.acl = [
    (Allow, Everyone, 'view'),
    (Allow, 'group:admin', ALL_PERMISSIONS),
Пример #6
0
    workflowEnabled = True,
    meta = copy.deepcopy(list(SystemFlds)) + copy.deepcopy(list(UserFlds)) + copy.deepcopy(list(WorkflowFlds)),
    translations="nive_datastore:locale/"
)

configuration.modules = [
    # items / collections
    # -> no collections defined by default. See documentation how to define collections 
    #    based on 'nive.definitions.ObjectConf' 
    # root 
    "nive_datastore.root",
    # workflow
    #"nive_datastore.workflow",
    # web api (view layer)
    "nive_datastore.webapi",
    "nive_datastore.webapi.view.stringRendererConf",
    # extensions
    "nive.extensions.filename",
    "nive.extensions.localgroups",
    # tools
    "nive.tools.dbStructureUpdater", "nive.tools.cmsstatistics",
    "nive.tools.exportJson", "nive.tools.dbSqlDump", "nive.tools.dbJsonDump", 
    # administration and persistence
    "nive.adminview",
    "nive.extensions.persistence.dbPersistenceConfiguration"
]


configuration.acl = [
    (Allow, Everyone, 'view'),
    (Allow, 'group:admin', ALL_PERMISSIONS),