-
Notifications
You must be signed in to change notification settings - Fork 3
/
vars.py
55 lines (47 loc) · 1.29 KB
/
vars.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
from lib.Core.vars import *
from collections import namedtuple
PostBatchRequestStub = namedtuple("PostBatchRequestStub", "files uri")
class PostBatchStub(object):
def __init__(self, files, uri):
self.request = PostBatchRequestStub(files, uri)
unveillance_cookie = namedtuple("unveillance_cookie", "ADMIN USER PUBLIC")
UnveillanceCookie = unveillance_cookie("uv_admin", "uv_user", "uv_public")
FILE_NON_OVERWRITES = []
IMPORTER_SOURCES = ["file_added"]
USER_CREDENTIAL_PACK = {
"username" : "",
"saved_searches" : [],
"session_log" : [],
"annex_key_sent" : False
}
CONTENT_TYPES = {
'json' : "application/json",
'js' : "application/javascript",
'html' : "text/html",
'jpg' : "image/jpeg",
'png' : "image/png",
'css' : "text/css",
'mp4' : "video/mp4",
'ogg' : "video/ogg",
'ogv' : "video/ogg"
}
MIME_TYPES = {
'txt' : "text/plain",
'zip' : "application/zip",
'image' : "image/jpeg",
'wildcard' : "application/octet-stream",
'pgp' : "application/pgp",
'gzip' : "application/x-gzip",
'json' : "application/json"
}
MIME_TYPE_MAP = {
'text/plain' : "txt",
'application/zip' : "zip",
'image/jpeg' : "jpg",
'application/octet-stream' : "wildcard",
'application/pgp' : "pgp",
'application/x-gzip' : "gzip",
'application/json' : "json"
}
MIME_TYPE_TASK_REQUIREMENTS = []
AVAILABLE_CLUSTERS = {}