Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes Class Reference
Inheritance diagram for
Inheritance graph
Collaboration diagram for
Collaboration graph

List of all members.

Public Member Functions

def __init__
def __call__

Static Public Attributes

tuple template = ViewPageTemplateFile('')

Detailed Description

A widget using Plone's wysiwyg_support.

Definition at line 8 of file

Constructor & Destructor Documentation

def (   self,

Definition at line 14 of file

00015     def __init__(self, field, request):
00016         super(TextWidget, self).__init__(field, request)

Here is the caller graph for this function:

Member Function Documentation

Definition at line 17 of file

00018     def __call__(self):
00019         value = self._getFormValue()
00020         if value is None or value == self.context.missing_value:
00021             value = ''
00023         # Evil acquisition majik to find the site root. This is made tricky
00024         # by the fact that the widget doesn't have a direct path to its
00025         # context (you can go self.context.context, but this may be an
00026         # adapter on the context, not the context itself.). We can find
00027         # the root using getUtility(ISiteRoot), but this isn't wrapped
00028         # in the request container. We can use getSite(), but there may be
00029         # other sites in-between, not at least the KSS site-in-a-view. Sigh.
00031         site = getSite()
00032         while site is not None and not ISiteRoot.providedBy(site):
00033             site = aq_parent(site)
00035         return self.template(form_context=site,

Here is the caller graph for this function:

Member Data Documentation

tuple = ViewPageTemplateFile('') [static]

Definition at line 12 of file

The documentation for this class was generated from the following file: