1 |
8792cad8
|
Marc NICOLAS
|
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
__version__ = "0.1"
|
5 |
|
|
__license__ = "GPL"
|
6 |
|
|
__author__ = "Marc NICOLAS"
|
7 |
|
|
__credit__ = "Marc NICOLAS"
|
8 |
|
|
__maintainer__ = "Marc NICOLAS"
|
9 |
|
|
__email__ = "marc.nicolas@ias.u-psud.fr"
|
10 |
|
|
from django.db import models
|
11 |
|
|
|
12 |
|
|
|
13 |
|
|
class webstatModel(models.Model):
|
14 |
|
|
HESIOD = 'HESIOD'
|
15 |
|
|
appChoices = (
|
16 |
|
|
('HESIOD', 'HESIOD'),
|
17 |
|
|
('SZCLUSTER', 'SZCLUSTER'),
|
18 |
9791e4f3
|
Marc Nicolas
|
('PICARD', 'PICARD'),
|
19 |
8792cad8
|
Marc NICOLAS
|
)
|
20 |
|
|
|
21 |
|
|
application = models.CharField(max_length=55, choices=appChoices, default=HESIOD)
|
22 |
|
|
|
23 |
|
|
all_date = models.BooleanField(default=False)
|
24 |
|
|
period_date = models.BooleanField(default=False)
|
25 |
|
|
|
26 |
|
|
start_date = models.DateField(blank=True, null=True)
|
27 |
|
|
end_date = models.DateField(blank=True, null=True)
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
is_access_access_by_ip = models.BooleanField(default=False)
|
32 |
|
|
is_access_access_by_months = models.BooleanField(default=False)
|
33 |
|
|
is_access_access_by_country = models.BooleanField(default=False)
|
34 |
|
|
|
35 |
|
|
|
36 |
|
|
|
37 |
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
|
|
is_down_stat_by_user = models.BooleanField(default=False)
|
42 |
|
|
is_down_stat_by_ip = models.BooleanField(default=False)
|
43 |
|
|
is_down_stat_by_country = models.BooleanField(default=False)
|
44 |
|
|
is_down_stat_by_months = models.BooleanField(default=False)
|
45 |
|
|
is_down_stat_by_project = models.BooleanField(default=False)
|
46 |
|
|
is_just_down_stat = models.BooleanField(default=True)
|
47 |
|
|
|
48 |
|
|
|