I think this will work.

class BaseUserFields(widgets.WidgetsList):
    email_address = widgets.TextField()
    display_name = widgets.TextField()
    password = widgets.PasswordField()

class EditUser(widgets.WidgetsList):
    # ID of the user we're editing
    user_id = widgets.HiddenField()

class AddUser(widgets.WidgetsList):
    # We don't have a username yet, so get one
    user_name = widgets.TextField()


...(  fields = BaseUserFields() + AddUser(), ... )
...(  fields = BaseUserFields() + EditUser(), ... )
 



Glauco


-- 
+------------------------------------------------------------+
 Glauco Uri  
 glauco(at)sferacarta.com 
                               
          Sfera Carta Software®       info(at)sferacarta.com
  Via Bazzanese,69  Casalecchio di Reno(BO) - Tel. 051591054
+------------------------------------------------------------+



--~--~---------~--~----~------------~-------~--~----~
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