Package Camelot :: Package camelot :: Package empty_project :: Module application_admin |
[frames] | no frames]

# Source Code for Module Camelot.camelot.empty_project.application_admin

     1  from camelot.view.art import Icon
     2  from camelot.admin.application_admin import ApplicationAdmin
     3  from camelot.admin.section import Section
     4

     5 -class MyApplicationAdmin(ApplicationAdmin):
     6

     7 -    def get_sections(self):
     8          from camelot.model.memento import Memento
     9          from camelot.model.authentication import Person, Organization
    10          from camelot.model.i18n import Translation
    11          return [Section('relation',

    12                          Icon('tango/22x22/apps/system-users.png'),

    13                          items = [Person, Organization]),

    14                  Section('configuration',

    15                          Icon('tango/22x22/categories/preferences-system.png'),

    16                          items = [Memento, Translation])

    17                  ]
    18