Package django :: Package contrib :: Package databrowse :: Package plugins :: Module fieldchoices :: Class FieldChoicePlugin
[hide private]
[frames] | no frames]

Class FieldChoicePlugin

source code

            object --+    
                     |    
sites.DatabrowsePlugin --+
                         |
                        FieldChoicePlugin

Instance Methods [hide private]
 
__init__(self, field_filter=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
field_dict(self, model)
Helper function that returns a dictionary of all fields in the given model.
source code
 
model_index_html(self, request, model, site)
Returns a snippet of HTML to include on the model index page.
source code
 
urls(self, plugin_name, easy_instance_field)
Given an EasyInstanceField object, returns a list of URLs for this plugin's views of this object.
source code
 
model_view(self, request, model_databrowse, url)
Handles main URL routing for a plugin's model-specific pages.
source code
 
homepage_view(self, request) source code
 
field_view(self, request, field, value=None) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, field_filter=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

field_dict(self, model)

source code 

Helper function that returns a dictionary of all fields in the given model. If self.field_filter is set, it only includes the fields that match the filter.

model_index_html(self, request, model, site)

source code 

Returns a snippet of HTML to include on the model index page.

Overrides: sites.DatabrowsePlugin.model_index_html
(inherited documentation)

urls(self, plugin_name, easy_instance_field)

source code 

Given an EasyInstanceField object, returns a list of URLs for this plugin's views of this object. These URLs should be absolute.

Returns None if the EasyInstanceField object doesn't get a list of plugin-specific URLs.

Overrides: sites.DatabrowsePlugin.urls
(inherited documentation)

model_view(self, request, model_databrowse, url)

source code 

Handles main URL routing for a plugin's model-specific pages.

Overrides: sites.DatabrowsePlugin.model_view
(inherited documentation)