コード例 #1
0
ファイル: server.py プロジェクト: chrischeyne/cassandra-dev
 def welcome(self):
     # the overall frame
     frame = lc.frame(title='my application')
     # a document in the frame
     doc = frame.document(title='Hello world!', id='doc1')
     # a button in the document
     b = lc.button(label='click me to show an alert'); doc.add(b)
     b.onclick = lc.alert('clicked!')
     # another button
     b2 = lc.button(label='click me to add a new paragraph'); doc.add(b2)
     b2.onclick = lc.load(routine='onbutton2')
     # weave to produce html
     return self.weaver.weave(frame)
コード例 #2
0
ファイル: login.py プロジェクト: ruoitrau86/vnf
    def createFrame(self, post_authorization_action='', director=None):
        """create the default login frame for vnf.
        This frame has the footer, header, and a login form, some
        documentation, some status monitor for vnf.
        """
        visual = self.createFrontPageContent(post_authorization_action,
                                             director)

        frame = lc.frame(title='Virtual neutron facility: please login')
        frame.add(visual)

        dock = lc.dock(id='dock', hidden=True)
        frame.add(dock)

        return frame
コード例 #3
0
ファイル: login.py プロジェクト: danse-inelastic/vnf
    def createFrame(self, post_authorization_action='', director=None):
        """create the default login frame for vnf.
        This frame has the footer, header, and a login form, some
        documentation, some status monitor for vnf.
        """
        visual = self.createFrontPageContent(
            post_authorization_action, director)
        
        frame = lc.frame(title='Virtual neutron facility: please login')
        frame.add(visual)

        dock = lc.dock(id='dock', hidden=True)
        frame.add(dock)
        
        return frame
コード例 #4
0
def welcome(self):
    frame = lc.frame(title='my application')
    doc = frame.document(title='hello world',id='doc1')
    return self.weaver.weave(frame)