askbot.views.users

synopsis:user-centric views for askbot

This module includes all views that are specific to a given user - his or her profile, and other views showing profile-related information.

Also this module includes the view listing all forum users.

class askbot.views.users.Response(type, title, question_id, answer_id, time, username, user_id, content)

class that abstracts any kind of response answer, comment, mention, post edits, etc.

class askbot.views.users.UserView(id, tab_title, tab_description, page_title, view_func, template_file, data_size=0)
askbot.views.users.account_settings
index pages to changes some basic account settings :
  • change password
  • change email
  • associate a new openid
  • delete account

url : /

template : authopenid/settings.html

askbot.views.users.edit_user
askbot.views.users.moderate_user

ajax handler of user moderation

askbot.views.users.set_new_email(user, new_email, nomessage=False)
askbot.views.users.user(request, id, slug=None)
askbot.views.users.user_email_subscriptions(request, user_id, user_view)
askbot.views.users.user_favorites(request, user_id, user_view)
askbot.views.users.user_recent(request, user_id, user_view)
askbot.views.users.user_reputation(request, user_id, user_view)
askbot.views.users.user_responses(request, user_id, user_view)

We list answers for question, comments, and answer accepted by others for this user. as well as mentions of the user

user_id - id of the profile owner user_view - id of the user who is looking at the

page
askbot.views.users.user_stats(request, user_id, user_view)
askbot.views.users.user_votes(request, user_id, user_view)
askbot.views.users.users(request)

This Page