mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Updated Readme
This commit is contained in:
@@ -15,7 +15,7 @@ links = {
|
||||
requires = [
|
||||
"bottle>=0.12.16",
|
||||
"waitress>=1.3",
|
||||
"doreah>=1.6.8",
|
||||
"doreah>=1.6.9",
|
||||
"nimrodel>=0.6.3",
|
||||
"setproctitle>=1.1.10",
|
||||
"wand>=0.5.4",
|
||||
|
||||
@@ -23,11 +23,12 @@ def copy_initial_local_files():
|
||||
#shutil.copy(folder,DATA_DIR)
|
||||
dir_util.copy_tree(folder,datadir(),update=False)
|
||||
|
||||
charset = list(range(10)) + list("abcdefghijklmnopqrstuvwxyz") + list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
|
||||
def randomstring(length=32):
|
||||
import random
|
||||
key = ""
|
||||
for i in range(length):
|
||||
key += str(random.choice(list(range(10)) + list("abcdefghijklmnopqrstuvwxyz") + list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")))
|
||||
key += str(random.choice(charset))
|
||||
return key
|
||||
|
||||
def setup():
|
||||
|
||||
@@ -178,6 +178,10 @@ def static(name,ext):
|
||||
return response
|
||||
|
||||
|
||||
aliases = {
|
||||
"admin": "admin_overview",
|
||||
"manual": "admin_manual"
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -231,6 +235,7 @@ def static_html_public(name):
|
||||
return static_html(name)
|
||||
|
||||
def static_html(name):
|
||||
if name in aliases: redirect(aliases[name])
|
||||
linkheaders = ["</style.css>; rel=preload; as=style"]
|
||||
keys = remove_identical(FormsDict.decode(request.query))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user