# Path: nive_cms/i18n.py

# 
# Path: nive_cms/baseobjects.py
# class PageElementBase(ObjCopy, PageElement, ObjectBase):
#     """
#     *Page element* 
#     
#     - stored in database
#     - does not store subobjects
#     - stored in element containers 
#     - cut, copy and paste support
#     
#     Interfaces: ``INonContainer, IObject, IPageElement``
#     """
#     implements(IPageElement)


from nive_cms.i18n import _
from nive.definitions import StagPageElement, ObjectConf, FieldConf
from nive_cms.baseobjects import PageElementBase
#

__doc__ = """
Code
-----
Text element to add code snippets to web pages. Supports Javascript, raw HTML and CSS. 
"""



class code(PageElementBase):
    """
    """
    



# text type definition ------------------------------------------------------------------
#@nive_module
configuration = ObjectConf(
    id = "code",
    name = _(u"Code"),
    dbparam = "codes",
    context = "nive_cms.codeblock.code",
    template = "code.pt",
    selectTag = StagPageElement,
    icon = "nive_cms.cmsview:static/images/types/code.png",
    description = _(u"Text element to add code snippets to web pages. Supports Javascript, HTML and CSS.")
)


# Path: nive_cms/i18n.py

# 
# Path: nive_cms/baseobjects.py
# class PageElementBase(ObjCopy, PageElement, ObjectBase):
#     """
#     *Page element* 
#     
#     - stored in database
#     - does not store subobjects
#     - stored in element containers 
#     - cut, copy and paste support
#     
#     Interfaces: ``INonContainer, IObject, IPageElement``
#     """
#     implements(IPageElement)


# Path: nive_cms/codeblock.py
from nive_cms.i18n import _
from nive.definitions import StagPageElement, ObjectConf, FieldConf
from nive_cms.baseobjects import PageElementBase

#

__doc__ = """
Code
-----
Text element to add code snippets to web pages. Supports Javascript, raw HTML and CSS. 
"""



class code(PageElementBase):
    """
    """
    



# text type definition ------------------------------------------------------------------
#@nive_module
configuration = ObjectConf(
    id = "code",
    name = _(u"Code"),
    dbparam = "codes",
    context = "nive_cms.codeblock.code",
    template = "code.pt",
    selectTag = StagPageElement,
    icon = "nive_cms.cmsview:static/images/types/code.png",
    description = _(u"Text element to add code snippets to web pages. Supports Javascript, HTML and CSS.")
)


ct =[ {'id': u'raw', 'name': _(u'No format')},