# Path: nive_cms/i18n.py

# 
# Path: nive_cms/baseobjects.py
# class PageRootBase(ContainerCopy, Sort, AlternateRootPath, PageColumns, PageContainer, PageElementContainer, RootBase):
#     """
#     *Root with content element support*
#     
#     - handles sub pages
#     - handles page columns
#     - rendered as website page
#     - is an element container
#     - supports paste of elements and pages
#     - contained pages and elements are sortable 
#     
#     Interfaces: ``IPageContainer, IPageElementContainer, IContainer, IRoot``
#     """
#     implements(IPageContainer, IPageElementContainer)


from nive_cms.i18n import _
from nive_cms.baseobjects import PageRootBase
from nive.definitions import IWebsiteRoot, implements
from nive.definitions import RootConf, FieldConf
from nive.adminview.view import RootnameValidator



class root(PageRootBase):

    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 = [

# Path: nive_cms/i18n.py

# 
# Path: nive_cms/baseobjects.py
# class PageRootBase(ContainerCopy, Sort, AlternateRootPath, PageColumns, PageContainer, PageElementContainer, RootBase):
#     """
#     *Root with content element support*
#     
#     - handles sub pages
#     - handles page columns
#     - rendered as website page
#     - is an element container
#     - supports paste of elements and pages
#     - contained pages and elements are sortable 
#     
#     Interfaces: ``IPageContainer, IPageElementContainer, IContainer, IRoot``
#     """
#     implements(IPageContainer, IPageElementContainer)


# Path: nive_cms/root.py
from nive_cms.i18n import _
from nive_cms.baseobjects import PageRootBase
from nive.definitions import IWebsiteRoot, implements
from nive.definitions import RootConf, FieldConf
from nive.adminview.view import RootnameValidator




class root(PageRootBase):

    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")),