1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 07:01:12 +00:00

Add secret key generator

This commit is contained in:
xiez
2012-07-05 21:07:49 +08:00
parent f5f076a3f1
commit f99250938e
4 changed files with 42 additions and 6 deletions

View File

@@ -1,11 +1,10 @@
#!/usr/bin/env python
# encoding: utf-8
import settings
import os
import re
import time
import os
import stat
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.utils.hashcompat import sha_constructor
@@ -15,12 +14,11 @@ from django.core.cache import cache
from seaserv import seafserv_rpc, ccnet_threaded_rpc, seafserv_threaded_rpc, \
get_repo, get_commits, get_group_repoids
EMPTY_SHA1 = '0000000000000000000000000000000000000000'
import settings
from settings import PREVIEW_FILEEXT
EMPTY_SHA1 = '0000000000000000000000000000000000000000'
def go_permission_error(request, msg=None):
"""
Return permisson error page.