Пример #1
0
 def __init__(self):
     self.conf = get_config()
     self.root_dir = dirname(findconffolder())
     self.metadata = get_metadata()
     self.num_groups = 0
     self.num_subjects = 0
     self.num_deliveries = 0
     self.num_feedbacks = 0
     groups_subject = 0
     groups_period = 0
     groups_assignment = 0
Пример #2
0
    def __init__(self, soi=None, aoi=None):
        """
        Get the interesting values from .devilry/config

        :param soi: Subject of interest; Get only information about
        this subject

        :param aoi: Assignment of interest; Get only information about
        this assignment
        """

        self.conf_dir = findconffolder()
        self.root_dir = dirname(self.conf_dir)
        self.conf = get_config()
        self.metadata = get_metadata()

        # Read stuff from .devilry/config
        self.user = self.conf.get('resources', 'user')
        self.server = self.conf.get('resources', 'url')

        self.soi = soi
        self.aoi = aoi
Пример #3
0
    def __init__(self, soi=None, aoi=None):
        """
        Get the interesting values from .devilry/config

        :param soi: Subject of interest; Get only information about
        this subject

        :param aoi: Assignment of interest; Get only information about
        this assignment
        """

        self.conf_dir = findconffolder()
        self.root_dir = dirname(self.conf_dir)
        self.conf = get_config()
        self.metadata = get_metadata()

        # Read stuff from .devilry/config
        self.user = self.conf.get('resources', 'user')
        self.server = self.conf.get('resources', 'url')

        self.soi = soi
        self.aoi = aoi
Пример #4
0
 def __init__(self):
     self.conf = get_config()
     self.root_dir = dirname(findconffolder()) + sep
     f = open(join(findconffolder(), 'metadata'), 'r')
     self.metadata = eval(f.read())
Пример #5
0
 def __init__(self):
     self.conf = get_config()
     self.confdir = findconffolder()
     self.metadata = get_metadata()
Пример #6
0
 def __init__(self):
     self.conf = get_config()
     self.root_dir = dirname(findconffolder()) + sep
     self.metadata = get_metadata()
Пример #7
0
 def __init__(self):
     self.conf = get_config()
     self.root_dir = dirname(findconffolder()) + sep
     f = open(join(findconffolder(), 'metadata'), 'r')
     self.metadata = eval(f.read())