#!/usr/bin/python
-
-
import io
import logging
import os.path
return self.request.locale
-#class Image1(ImageObject):
-# id = 0
-#
-# default_size = 500, 50
-#
-# def draw(self):
-# # Background
-# self.paint.rectangle(((0, 0), self.default_size), fill="#000000")
-#
-# # Release information
-# self.paint.text((10, 10), "%s" % self.profile.release)
-#
-# # Hardware information
-# hw = [
-# self.profile.cpu.model_string,
-# "Mem: %.1fG" % (self.profile.memory / 1024**2),
-# ]
-#
-# if self.profile.virtual:
-# virt = "V-%s" % self.profile.hypervisor.vendor
-# if self.profile.hypervisor.type == "para":
-# virt = "%s-PV" % virt
-# hw.append(virt)
-#
-# if self.profile.cpu.capable_64bit:
-# hw.append("64")
-#
-# self.paint.text((10, 30), "%s" % " | ".join(hw))
-#
-#
-#IUse().add_imagetype(Image1)
-
-
class Image1(ImageObject):
id = 0
import logging
import os
import re
-import urllib.request, urllib.parse, urllib.error
import urllib.parse
from . import database
@property
def url(self):
- return urllib.parse.urljoin("https://downloads.ipfire.org", self.filename)
+ return urllib.parse.urljoin("https://downloads.ipfire.org", self.filename)
@property
def desc(self):
self.clear_cookie("session_id")
-
class LoginHandler(AuthenticationMixin, base.BaseHandler):
def get(self):
next = self.get_argument("next", None)