git_sitools_idoc / webstatDev / idoc_Maison / webstat / models.py @ master
1 |
#!/usr/bin/env python
|
---|---|
2 |
#-*-coding:utf-8-*-
|
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 |
('PICARD', 'PICARD'), |
19 |
) |
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 |
#is_access_stat = models.BooleanField(default=False)
|
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 |
# is_access_vo_by_ip = models.BooleanField(default=False)
|
36 |
# is_access_vo_by_months = models.BooleanField(default=False)
|
37 |
# is_access_vo_by_country = models.BooleanField(default=False)
|
38 |
|
39 |
#is_down_stat = models.BooleanField(default=False)
|
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 |
#nb_element = models.IntegerField()
|
49 |
|