Portal Views

inyoka.portal.views

All views for the portal including the user control panel, private messages, static pages and the login/register.

copyright:
  1. 2007-2024 by the Inyoka Team, see AUTHORS for more details.

license:

BSD, see LICENSE for more details.

class inyoka.portal.views.InyokaPasswordChangeView(**kwargs)

User control panel view for changing the password.

success_message = 'Your password was changed successfully.'
success_url = 'http://ubuntuusers.local:8080/usercp/'
template_name = 'portal/usercp/change_password.html'
class inyoka.portal.views.InyokaPasswordResetConfirmView(**kwargs)

With the correct one time token this view allows to set a new password for an account.

success_message = 'You successfully changed your password and are now able to login.'
success_url = 'http://ubuntuusers.local:8080/login/'
template_name = 'portal/set_new_password.html'
class inyoka.portal.views.InyokaPasswordResetView(**kwargs)

If a users has lost his password, it is here possible to send an email with a one time link to his account-email-address. With this link he can set a new password at InyokaPasswordResetConfirmView.

Customized to show an error, if the user is already logged in and to show a success message.

dispatch(*args, **kwargs)
email_template_name = 'mails/new_user_password.txt'
form_class

alias of LostPasswordForm

subject_template_name = 'mails/new_user_password_subject.txt'
success_message = 'An email with further instructions was sent to you.'
success_url = 'http://ubuntuusers.local:8080/login/'
template_name = 'portal/lost_password.html'
class inyoka.portal.views.MemberlistView(**kwargs)

Shows a list of all registered users.

columns = ('id', 'username', 'location', 'date_joined')
context_object_name = 'users'
model

alias of User

permission_required = ()
post(request, *args, **kwargs)
template_name = 'portal/memberlist.html'
class inyoka.portal.views.UserCPSubscriptions(**kwargs)

This page shows all subscriptions for the current user and allows him to manage them.

columns = ('notified',)
context_object_name = 'subscriptions'
filtersets = [<class 'inyoka.portal.filters.SubscriptionFilter'>]
get_queryset()

Return the list of items for this view.

The return value must be an iterable and may be an instance of QuerySet in which case QuerySet specific behavior will be enabled.

order_by = ['-notified', '-id']
permission_required = ()
post(request, *args, **kwargs)
required_login = True
template_name = 'portal/usercp/subscriptions.html'
inyoka.portal.views.about_inyoka(request, *args, **kwargs)

Render a inyoka information page.

inyoka.portal.views.activate(request, action='', username='', activation_key='')

Activate a user with the activation key send via email.

inyoka.portal.views.admin_resend_activation_mail(request)
inyoka.portal.views.calendar_detail(request, *args, **kwargs)
inyoka.portal.views.calendar_ical(request, slug)
inyoka.portal.views.calendar_month(request, *args, **kwargs)
inyoka.portal.views.calendar_overview(request, *args, **kwargs)
inyoka.portal.views.config(request, *args, **kwargs)
inyoka.portal.views.confirm(request, *args, **kwargs)
inyoka.portal.views.csrf_failure(request, reason=None)
inyoka.portal.views.feedselector(request, *args, **kwargs)
inyoka.portal.views.group(request, *args, **kwargs)

Shows the informations about the group named name.

inyoka.portal.views.group_edit(request, *args, **kwargs)
inyoka.portal.views.group_edit_forum_permissions(request, *args, **kwargs)
inyoka.portal.views.group_edit_global_permissions(request, *args, **kwargs)
inyoka.portal.views.group_new(request, *args, **kwargs)
inyoka.portal.views.grouplist(request, *args, **kwargs)

Shows the group list.

page represents the current page in the pagination.

inyoka.portal.views.ikhaya_redirect(request, id)
inyoka.portal.views.index(request, *args, **kwargs)

Startpage that shows the latest ikhaya articles and some records of ubuntuusers.de

inyoka.portal.views.linkmap_edit(request, *args, **kwargs)
inyoka.portal.views.linkmap_export(request)

Exports all current links of the Linkmap. Useful f.e. for InyokaEdit.

inyoka.portal.views.login(request, *args, **kwargs)

Login dialog that supports permanent logins

inyoka.portal.views.logout(request)

Simple logout view that flashes if the process was done successful or not (e.g. if the user wasn’t logged in).

inyoka.portal.views.memberlist(request, *args, **kwargs)

Shows a list of all registered users.

inyoka.portal.views.page_edit(request, *args, **kwargs)
inyoka.portal.views.pages(request, *args, **kwargs)
inyoka.portal.views.privmsg(request, *args, **kwargs)
inyoka.portal.views.privmsg_new(request, *args, **kwargs)
inyoka.portal.views.profile(request, *args, **kwargs)

Show the user profile if the user is logged in.

inyoka.portal.views.register(request, *args, **kwargs)

Register a new user.

inyoka.portal.views.static_page(request, *args, **kwargs)

Renders static pages

inyoka.portal.views.subscribe_user(request, username)

Subscribe to a user to follow all of his activities.

inyoka.portal.views.unsubscribe_user(request, username)

Remove a user subscription.

inyoka.portal.views.user_edit(request, *args, **kwargs)
inyoka.portal.views.user_edit_groups(request, *args, **kwargs)
inyoka.portal.views.user_edit_profile(request, *args, **kwargs)
inyoka.portal.views.user_edit_settings(request, *args, **kwargs)
inyoka.portal.views.user_edit_status(request, *args, **kwargs)
inyoka.portal.views.user_mail(request, *args, **kwargs)
inyoka.portal.views.user_new(request, *args, **kwargs)
inyoka.portal.views.usercp(request, *args, **kwargs)

User control panel index page

inyoka.portal.views.usercp_deactivate(request, *args, **kwargs)

This page allows the user to deactivate his account.

inyoka.portal.views.usercp_profile(request, *args, **kwargs)

User control panel view for changing the user’s profile

inyoka.portal.views.usercp_settings(request, *args, **kwargs)

User control panel view for changing various user settings

inyoka.portal.views.usercp_subscriptions(request, *args, **kwargs)

This page shows all subscriptions for the current user and allows him to manage them.

inyoka.portal.views.usermap(request)
inyoka.portal.views.whoisonline(request, *args, **kwargs)

Shows who is online and a link to the page the user views.