Beispiel #1
0
    def __init__(self, dbsession=None, package=None):
        RawDataRepository.__init__(self, dbsession)
        self._package = package

        self.month = month.MonthData(self)
        self.year = year.YearData(self)
        self.prestation = prestation.PrestationData(self)
        self.salesman = salesman.SalesmanData(self)
Beispiel #2
0
    def __init__(self, dbsession=None, user_id=None, user=None):
        """Init the business object, create two interfaces for users and
        actions.

        Arguments:
            dbsession -- SQLA database session (patched with cache)
            user_id -- id of the user (*)
            user -- user (*)

        * at least one is required

        """
        RawDataRepository.__init__(self, dbsession)
        self.user = UserData(self)
        self.action = ActionData(self, user_id=user_id, user=user)