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.

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

View that allows to edit user profile. This view is accessible to profile owners or site administrators

askbot.views.users.owner_or_moderator_required(f)
askbot.views.users.set_new_email(user, new_email, nomessage=False)
askbot.views.users.user(request, id, slug=None)

Main user view function that works as a switchboard

id - id of the profile owner

todo: decide what to do with slug - it is not used in the code in any way

askbot.views.users.user_email_subscriptions(request, profile_owner)
askbot.views.users.user_favorites(request, user)
askbot.views.users.user_moderate(request, subject)

user subview for moderation

askbot.views.users.user_recent(request, user)
askbot.views.users.user_reputation(request, user)
askbot.views.users.user_responses(request, profile_owner)

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

user - the profile owner

askbot.views.users.user_stats(request, user)
askbot.views.users.user_votes(request, profile_owner)
askbot.views.users.users(request)

This Page