Beispiel #1
0
 def assemble(self):
     self.define_page(HTML5Page).use_layout(BasicPageLayout())
     detour_ui = self.define_user_interface('/uiWithDetour',
                                            UIWithDetour,
                                            IdentityDictionary(),
                                            name='second_ui')
     bookmark = detour_ui.get_bookmark(
         relative_path='/firstStepOfDetour')
     self.define_user_interface('/uiWithLink',
                                UIWithLink,
                                IdentityDictionary(),
                                name='first_ui',
                                bookmark=bookmark)
Beispiel #2
0
 def assemble(self):
     self.define_page(HTML5Page).use_layout(
         PageLayout(
             contents_layout=ColumnLayout('main').with_slots()))
     self.define_user_interface('/a_ui',
                                UIWithParameterisedUserInterfaces,
                                IdentityDictionary(),
                                name='myui')
Beispiel #3
0
 def assemble(self):
     self.define_page(HTML5Page).use_layout(
         PageLayout(
             contents_layout=ColumnLayout('main').with_slots()))
     self.define_user_interface('/a_ui',
                                UIWithDetour,
                                IdentityDictionary(),
                                name='test_ui')
Beispiel #4
0
 def assemble(self):
     self.define_page(HTML5Page).use_layout(BasicPageLayout())
     self.define_user_interface('/a_ui',
                                UIWithParameterisedUserInterfaces,
                                IdentityDictionary(),
                                name='myui')
Beispiel #5
0
 def assemble(self):
     self.define_page(HTML5Page)
     self.define_user_interface('/a_ui',  I18nUI,  IdentityDictionary(), name='test_ui')
Beispiel #6
0
 def assemble(self):
     self.define_page(HTML5Page).use_layout(BasicPageLayout())
     self.define_user_interface('/a_ui',  UIWithTwoViews,  IdentityDictionary(), name='test_ui')