Beispiel #1
0
 def _get_register_fields(cls, real_class=None):
     """
     See Account._get_register_fields
     """
     if real_class is None:
         real_class = cls
     return PresenceAccount.get_register_fields(real_class) + \
         [("login", "text-single", None,
           validate_login, lambda bare_from_jid: ""),
          ("password", "text-private", None, validate_password,
           lambda bare_from_jid: ""),
          ("host", "text-single", None, validate_host,
           lambda bare_from_jid: ""),
          ("port", "text-single", None,
           account.int_post_func,
           lambda bare_from_jid: real_class.get_default_port()),
          ("ssl", "boolean", None,
           account.boolean_post_func,
           lambda bare_from_jid: False),
          ("store_password", "boolean", None,
           account.boolean_post_func,
           lambda bare_from_jid: True),
          ("live_email_only", "boolean", None,
           account.boolean_post_func,
           lambda bare_from_jid: False),
          ("interval", "text-single", None,
           account.int_post_func,
           lambda bare_from_jid: 5)]
Beispiel #2
0
 def _get_register_fields(cls, real_class=None):
     if real_class is None:
         real_class = cls
     return PresenceAccount.get_register_fields(real_class) + \
         [("test_new_int", "text-single", None, account.int_post_func,
           lambda bare_from_jid: 43)]