Back to index

plone3  3.1.7
Namespaces | Functions | Variables
plone.app.form Namespace Reference

Namespaces

namespace  _named
namespace  _patches
namespace  base
namespace  events
namespace  exception
namespace  interfaces
namespace  kss
namespace  tests
namespace  validators
namespace  widgets

Functions

def render_submit_button

Variables

tuple __all__ = ('named_template_adapter', 'default_named_template')
tuple _template = pagetemplatefile.ViewPageTemplateFile('pageform.pt')
tuple default_named_template_adapter = named_template_adapter(_template)
tuple _subpage_template = pagetemplatefile.ViewPageTemplateFile('subpageform.pt')
tuple default_subpage_template = named_template_adapter(_subpage_template)
tuple adding_named_template_adapter = named_template_adapter(_template)

Function Documentation

A custom version of the submit button that uses plone's context class

Definition at line 10 of file __init__.py.

00010 
00011 def render_submit_button(self):
00012     """A custom version of the submit button that uses plone's context class"""
00013     if not self.available():
00014         return ''
00015     label = self.label
00016     if isinstance(label, i18n.Message):
00017         label = i18n.translate(self.label, context=self.form.request)
00018     return ('<input type="submit" id="%s" name="%s" value="%s"'
00019             ' class="context" />' %
00020             (self.__name__, self.__name__, label)
00021             )


Variable Documentation

tuple plone.app.form.__all__ = ('named_template_adapter', 'default_named_template')

Definition at line 22 of file __init__.py.

tuple plone.app.form._subpage_template = pagetemplatefile.ViewPageTemplateFile('subpageform.pt')

Definition at line 27 of file __init__.py.

tuple plone.app.form._template = pagetemplatefile.ViewPageTemplateFile('pageform.pt')

Definition at line 24 of file __init__.py.

Definition at line 31 of file __init__.py.

Definition at line 25 of file __init__.py.

Definition at line 28 of file __init__.py.