Exemplo n.º 1
0
 def __init__(self, message, action, cancel='index',
              actiontext='Yes', canceltext='Cancel', **args):
     Form.__init__(self, action=action, **args)
     self.message = Paragraph(message)
     self.append(self.message)
     self.submit_btn = Input(type='submit', value=actiontext)
     self.append(self.submit_btn)
     self.cancel_btn = Anchor(canceltext, href=cancel)
     self.append(self.cancel_btn)
Exemplo n.º 2
0
 def __init__(self, action='doLogin', method='post', fromPage=None, **args):
     Form.__init__(self, action=action, method=method, **args)
     self.user_inp = Input(type='text', name='login', value='')
     self.passwd_inp = Input(type='password', name='password', value='')
     self.submit_btn = Submit('login')
     self.clear_btn = Input(type='reset', value='clear entries')
     self.append(Paragraph('User:'******'Password:'******'hidden', name='fromPage', value=fromPage))
Exemplo n.º 3
0
 def __init__(self, action, method='post', **args):
     Form.__init__(self, action=action, method=method, **args)
     self._inputs = {}
     self.submit_btn = Submit(action)
     self.append(Paragraph(self.submit_btn))