Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
evildmp committed Dec 14, 2011
1 parent dfaa126 commit e582f1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/arkestra_generic_models.rst
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,11 @@ ArkestraGenericPlugin provides a number of methods, mostly called by ``render()`
* calls set_layout_classes() to work out the overall structure (rows/columns) of the plugin output
Everything it needs to set for the overall information about what's going on in the plugin is set as an attribute of ``instance``, which is then passed to the template as ``everything``. ``lists`` is made an attribute of ``instance``.

``get_items()`` isn't provided by ArkestraGenericPlugin, except as a dummy that sets an empty ``lists`` - it needs to be provided by whatever subclasses it. This is because ArkestraGenericPlugin won't have any idea how to get items.

::

class CMSNewsAndEventsPlugin(ArkestraGenericPlugin, NewsAndEventsPluginMixin, AutocompleteMixin, CMSPluginBase):
class CMSNewsAndEventsPlugin(ArkestraGenericPlugin, CMSPluginBase):
model = NewsAndEventsPlugin
name = _("News & events")
form = NewsAndEventsPluginForm
Expand Down

0 comments on commit e582f1c

Please sign in to comment.