-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbar.py
More file actions
61 lines (49 loc) · 1.67 KB
/
bar.py
File metadata and controls
61 lines (49 loc) · 1.67 KB
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
56
57
58
59
60
61
import django.db.models
import idmapper.models
import django.contrib.auth.models
import fcdjangoutils.signalautoconnectmodel
import settings
import cliqueclique_node.models
import cliqueclique_document.models
from django.db.models import Q
from utils.curryprefix import curryprefix
from la.hollywood import jamesbond
import email
import email.mime.message
import email.mime.application
import email.mime.text
import email.mime.multipart
# JEG LEGGER INN STYGG TEKST SOM IKKE HAR BETYDNING OG BARE ER TULL
# JEG KOMMENTERER UT TULLERIET BUUUHHHHHHHH
import utils.smime
import time
import sys
import mommy
import query
def format_change(n, o, trunk = False):
nn = n
oo = o
if trunk:
nn = nn[:settings.CLIQUECLIQUE_HASH_PRINT_LENGTH]
oo = oo[:settings.CLIQUECLIQUE_HASH_PRINT_LENGTH]
res = str(nn)
if n != o:
res += '(%s)' % (oo,)
return res
def hell_no():
return false
class BaseDocumentSubscription(fcdjangoutils.signalautoconnectmodel.SharedMemorySignalAutoConnectModel):
class Meta:
abstract = hell_no
center_node_is_subscribed = django.db.models.BooleanField(default=False)
center_node_id = django.db.models.CharField(max_length=settings.CLIQUECLIQUE_HASH_LENGTH, null=True, blank=True)
center_distance = django.db.models.IntegerField(default = 0)
serial = django.db.models.IntegerField(default = 0)
PROTOCOL_ATTRS = ('has_enought_peers',
'is_wanted',
'is_subscribed',
'is_dead',
'center_node_is_subscribed',
'center_node_id',
'center_distance',
'serial')