Make component works with Account subclasses

darcs-hash:20070117173408-86b55-eaf9be902109c4269dbbfc589e7284e55bc1d3eb.gz
This commit is contained in:
David Rousselie
2007-01-17 18:34:08 +01:00
parent 51334ed5f7
commit 56209ddff1
5 changed files with 60 additions and 19 deletions

View File

@@ -43,7 +43,8 @@ class AccountExample(Account):
return None
return password
return [("login", "text-single", account.string_not_null_post_func, \
return Account.get_register_fields() + \
[("login", "text-single", account.string_not_null_post_func, \
account.mandatory_field), \
("password", "text-private", password_post_func, \
(lambda field_name: None)), \
@@ -78,3 +79,4 @@ class PresenceAccountExample(PresenceAccount):
PresenceAccountExample.DO_SOMETHING_ELSE)}
get_presence_actions_fields = classmethod(_get_presence_actions_fields)