-cdef void *request_authorize (account.PurpleAccount *account,
- const_char *remote_user, const_char *id,
- const_char *alias, const_char *message,
- glib.gboolean on_list,
- account.PurpleAccountRequestAuthorizationCb authorize_cb,
- account.PurpleAccountRequestAuthorizationCb deny_cb,
- void *user_data):
- debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "account",
- "request_authorize\n")
- try:
- (<object>account_cbs["request_authorize"])("request_authorize")
- return NULL
- except KeyError:
- pass
+cdef void *request_authorize(account.PurpleAccount *account, \
+ const_char *remote_user, const_char *id, const_char *alias, \
+ const_char *message, glib.gboolean on_list, \
+ account.PurpleAccountRequestAuthorizationCb authorize_cb, \
+ account.PurpleAccountRequestAuthorizationCb deny_cb, \
+ void *user_data):
+ """
+ Prompt for authorization when someone adds this account to their buddy
+ list. To authorize them to see this account's presence, call
+ authorize_cb(user_data) otherwise call deny_cb(user_data).
+ @return a UI-specific handle, as passed to #close_account_request.
+ """
+ debug.purple_debug_info("account", "%s", "request-authorize\n")
+ if account_cbs.has_key("request-authorize"):
+ (<object> account_cbs["request-authorize"])("request-authorize: TODO")