Example #1
0
 def __init__(self, oDb, tsNow, cPeriods, cHoursPerPeriod, sSubject, aidSubjects):
     ModelLogicBase.__init__(self, oDb);
     # Public so the report generator can easily access them.
     self.tsNow           = tsNow;               # (Can be None.)
     self.cPeriods        = cPeriods;
     self.cHoursPerPeriod = cHoursPerPeriod;
     self.sSubject        = sSubject;
     self.aidSubjects     = aidSubjects;
Example #2
0
 def __init__(self, oDb, tsNow, cPeriods, cHoursPerPeriod, sSubject, aidSubjects):
     ModelLogicBase.__init__(self, oDb);
     # Public so the report generator can easily access them.
     self.tsNow           = tsNow;               # (Can be None.)
     self.cPeriods        = cPeriods;
     self.cHoursPerPeriod = cHoursPerPeriod;
     self.sSubject        = sSubject;
     self.aidSubjects     = aidSubjects;
    def __init__(self, oDb, tsNow = None, sPeriodBack = None, cHoursBack = None):
        ModelLogicBase.__init__(self, oDb);

        self.tsNow       = tsNow;
        self.sPeriodBack = sPeriodBack;
        if sPeriodBack is None and cHoursBack is not None:
            self.sPeriodBack = '%u hours' % cHoursBack;

        self._adCache    = (
            dict(), dict(), dict(), dict(),
            dict(), dict(), dict(), dict(),
            dict(),
        );
        assert(len(self._adCache) == self.ksObjType_End);
Example #4
0
    def __init__(self, oDb, tsNow = None, sPeriodBack = None, cHoursBack = None):
        ModelLogicBase.__init__(self, oDb);

        self.tsNow       = tsNow;
        self.sPeriodBack = sPeriodBack;
        if sPeriodBack is None and cHoursBack is not None:
            self.sPeriodBack = '%u hours' % cHoursBack;

        self._adCache    = (
            dict(), dict(), dict(), dict(),
            dict(), dict(), dict(), dict(),
            dict(),
        );
        assert(len(self._adCache) == self.ksObjType_End);
Example #5
0
 def __init__(self, oDb):
     ModelLogicBase.__init__(self, oDb)
     self.dCache = None
Example #6
0
 def __init__(self, oDb):
     ModelLogicBase.__init__(self, oDb)
Example #7
0
 def __init__(self, oDb):
     ModelLogicBase.__init__(self, oDb)
Example #8
0
 def __init__(self, oDb):
     ModelLogicBase.__init__(self, oDb)
     self.dCache = None
     self.dCacheNameAndCat = None
     self.oCategoryLogic = None
     self.oUserAccountLogic = None
 def __init__(self, oDb):
     ModelLogicBase.__init__(self, oDb)
     self.dCache = None;
 def __init__(self, oDb):
     ModelLogicBase.__init__(self, oDb)
     self.dCache = None;
     self.dCacheNameAndCat = None;
     self.oCategoryLogic = None;
     self.oUserAccountLogic = None;