Hi,
 I want to write a reusable form using TableForm as base class. I tried
with this:

class RuleForm(TableForm):
  def __init__(self, id=None, parent=None, children=[], host_filter=[],
**kw):
    super(RuleForm, self).__init__(id,parent,children, **kw)
    self.fields = [
        TextField(id = 'description', label = 'Description'),
    ]

and this:

class RuleForm(TableForm):
  def __init__(self, id=None, parent=None, children=[], host_filter=[],
**kw):
    children = [
        TextField(id = 'description', label = 'Description'),
    ]
    super(RuleForm, self).__init__(id,parent,children, **kw)

without sucess.

What it the recommended way to write a reusable form. The complete form
will have some select fields that changes in each use of the forms.


regards,
 Diego

-- 
Diego Woitasen
XTECH - Soluciones Linux para empresas
(54) 011 5219-0678


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to