Пример #1
0
 def __init__(self, **kw):
     self.disabled = False
     self.klass = kw.get('class','')
     if self.klass:
         kw = kw.copy()
         del kw['class']
     IdInput.__init__(self,**kw)
     return
Пример #2
0
 def __str__(self):
     result = IdInput.__str__(self)
     if (self.disabled):
         result = result.replace('>',' disabled>')
     if (self.klass):
         result = result.replace('>',' class="%s">' % self.klass)
     return result