kotti.views.edit.content

class kotti.views.edit.content.ContentSchema(*arg, **kw)[source]
class kotti.views.edit.content.DocumentSchema(*arg, **kw)[source]
class kotti.views.edit.content.DocumentAddForm(context, request, **kwargs)[source]
schema_factory

alias of DocumentSchema

add

alias of kotti.resources.Document

class kotti.views.edit.content.DocumentEditForm(context, request, **kwargs)[source]
schema_factory

alias of DocumentSchema

class kotti.views.edit.content.FileAddForm(context, request, **kwargs)[source]
item_class

alias of kotti.resources.File

class kotti.views.edit.content.FileEditForm(context, request, **kwargs)[source]
before(form)[source]

Performs some processing on the form prior to rendering.

By default, this method does nothing. Override this method in your dervived class to modify the form. Your function will be executed immediately after instansiating the form instance in __call__() (thus before obtaining widget resources, considering buttons, or rendering).

kotti.views.edit.content.includeme(config)[source]

Pyramid includeme hook.

Parameters:config (pyramid.config.Configurator) – app config