Esempio n. 1
0
 def _():
     for n, (tab, page) in enumerate(pages):
         tID = '%s_tab_%i'%(name, n)
         pID = '%s_page_%i'%(name, n)
         yield (t.li(class_='nevow-tabbedpane-tab', id_=tID)[tab],
                t.div(class_='nevow-tabbedpane-pane', id_=pID)[page],
                flt(js[tID,pID], quote = False))
Esempio n. 2
0
 def _():
     for n, (tab, page) in enumerate(pages):
         tID = '%s_tab_%i'%(name, n)
         pID = '%s_page_%i'%(name, n)
         yield (t.li(id_=tID)[tab],
                t.div(id_=pID)[page],
                flt(js[tID,pID], quote = False))
Esempio n. 3
0
 def tabbedPane(self, ctx, data):
     tab_names = [element[0] for element in data]
     
     return t.invisible[
     t.div(class_='tabbedPane')[
         t.ul(class_='tabs')[
             [t.li(id_="tab-"+name.replace(' ', '_'))[name] for name in tab_names]
         ],
         [t.div(id_="page-"+name.replace(' ', '_'))[fragment] for name, fragment in data]
     ],
     t.inlineJS('setupTabbedPane(['+','.join([le.flt(le.js['tab-'+name.replace(' ', '_'),'page-'+name.replace(' ', '_')], quote=False) for name, junk in data])+']);')
     ]
Esempio n. 4
0
    def tabbedPane(self, ctx, data):
        tab_names = [element[0] for element in data]

        return t.invisible[t.div(class_='tabbedPane')[t.ul(class_='tabs')[[
            t.li(id_="tab-" + name.replace(' ', '_'))[name]
            for name in tab_names
        ]], [
            t.div(id_="page-" + name.replace(' ', '_'))[fragment]
            for name, fragment in data
        ]],
                           t.inlineJS('setupTabbedPane([' + ','.join([
                               le.flt(le.js['tab-' + name.replace(' ', '_'),
                                            'page-' + name.replace(' ', '_')],
                                      quote=False) for name, junk in data
                           ]) + ']);')]
Esempio n. 5
0
    def tabbedPane(self, ctx, data):
        tab_names = [element[0] for element in data]

        return t.invisible[
            t.div(class_="tabbedPane")[
                t.ul(class_="tabs")[[t.li(id_="tab-" + name.replace(" ", "_"))[name] for name in tab_names]],
                [t.div(id_="page-" + name.replace(" ", "_"))[fragment] for name, fragment in data],
            ],
            t.inlineJS(
                "setupTabbedPane(["
                + ",".join(
                    [
                        le.flt(le.js["tab-" + name.replace(" ", "_"), "page-" + name.replace(" ", "_")], quote=False)
                        for name, junk in data
                    ]
                )
                + "]);"
            ),
        ]
Esempio n. 6
0
 def flt(self, what):
     return livepage.flt(what, quote=False, client=self.livepage)
Esempio n. 7
0
 def flt(self, what, quote=False):
     return livepage.flt(what, quote=quote, client=self.livepage, handlerFactory=self.livepage)
Esempio n. 8
0
 def flt(self, what):
     return livepage.flt(what, quote=False, client=self.livepage)