Project

General

Profile

Download (1.63 KB) Statistics
| Branch: | Revision:

git_sitools_idoc / webstatDev / idoc_Maison.OLD / webstat / models.py @ master

1 9791e4f3 Marc Nicolas
#!/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
        ('SDO', 'SDO'),
18
        ('SZCLUSTER', 'SZCLUSTER'),
19
        ('COROT', 'COROT'),
20
    )
21
22
    application = models.CharField(max_length=55, choices=appChoices, default=HESIOD)
23
24
    all_date = models.BooleanField(default=False)
25
    period_date = models.BooleanField(default=False)
26
27
    start_date = models.DateField(blank=True, null=True)
28
    end_date = models.DateField(blank=True, null=True)
29
30
    #is_access_stat = models.BooleanField(default=False)
31
32
    is_access_access_by_ip = models.BooleanField(default=False)
33
    is_access_access_by_months = models.BooleanField(default=False)
34
    is_access_access_by_country = models.BooleanField(default=False)
35
36
#    is_access_vo_by_ip = models.BooleanField(default=False)
37
#    is_access_vo_by_months = models.BooleanField(default=False)
38
#    is_access_vo_by_country = models.BooleanField(default=False)
39
40
    #is_down_stat = models.BooleanField(default=False)
41
42
    is_down_stat_by_user = models.BooleanField(default=False)
43
    is_down_stat_by_ip = models.BooleanField(default=False)
44
    is_down_stat_by_country = models.BooleanField(default=False)
45
    is_down_stat_by_months = models.BooleanField(default=False)
46
    is_down_stat_by_project = models.BooleanField(default=False)
47
    is_just_down_stat = models.BooleanField(default=True)
48
49
    #nb_element = models.IntegerField()