Commit 2dbb38ae authored by Enrico Zini's avatar Enrico Zini
Browse files

Sync with master. refs: #68

parents 16646055 7a10e01e
......@@ -26,6 +26,10 @@ class ValidUser:
self._tree = octofuss.xmlrpc.Client(self.server_url, self.api_key)
return self._tree
def __str__(self):
return self.username
class AnonymousUser:
def __init__(self):
self.server_url = None
# coding: utf-8
from django.core.exceptions import PermissionDenied
from django.core.urlresolvers import reverse
from django.shortcuts import redirect
from django.utils.encoding import force_text
from django.utils.translation import ugettext_lazy as _
from django import http
from django.utils.six.moves.urllib.parse import urlparse, urlunparse
import octofuss
......@@ -42,6 +45,15 @@ class OctonetMixin:
def get_context_data(self, **kw):
ctx = super().get_context_data(**kw)
ctx["user"] = self.request.user
ctx['langs'] = (
("de", force_text(_("German"))),
("en", force_text(_("English"))),
("en-us", force_text(_("American English"))),
("en-gb", force_text(_("British English"))),
("fr", force_text(_("French"))),
("it", force_text(_("Italian"))),
("es", force_text(_("Spanish"))),
return ctx
def dispatch(self, request, *args, **kw):
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/* */
body {
margin-top: 55px;
padding-top: 65px;
@media screen and (max-width: 768px) {
body {
padding-top: 0px;
.required label:after{
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment