Beispiel #1
0
    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"))
]

fields = ["title", "description", "pool_filename", "pool_groups"]
Beispiel #2
0

# 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""),
          "pool_groups"]
configuration.forms = {"edit": {"fields":fields}}

configuration.toJson = tuple(fields)

Beispiel #3
0
    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""),
    "pool_groups"
]
configuration.forms = {"edit": {"fields": fields}}

configuration.toJson = tuple(fields)
Beispiel #4
0
# 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"))
]


fields = ["title", "description", "pool_filename", "pool_groups"]
configuration.forms = {"edit": {"fields":fields}}

configuration.toJson = tuple(fields)

configuration.views = []