Package Camelot :: Package camelot :: Package admin :: Module section
[frames] | no frames]

Module section

source code

Classes
  Section
A Section as displayed in the left pane of the application. Each Section contains a list of SectionItems the user can click on. Sections should be used in the definition of the ApplicationAdmin.
  SectionItem
An item inside a section, the user can click on and trigger an action
Functions
 
structure_to_sections(structure)
Convert a list of python objects to a list of sections, using applying these rules on each of the elements in the list :
source code
 
structure_to_section_items(structure) source code
Variables
  __package__ = 'Camelot.camelot.admin'
Function Details

structure_to_sections(structure)

source code 

Convert a list of python objects to a list of sections, using applying these rules on each of the elements in the list :

  • if the element is a instance of Section, leave it as it is
  • if the element is an instance of a basestr, construct a Section for it