Пример #1
0
 def set_data_for(self, main_date):
     on, end = self.parent.on_date(), self.parent.end_date()
     rapports = last_mouvement_report(on, end)
     self.data = [(rap.magasin, rap.produit, \
                  rap.nbr_carton, rap.restant,
                  rap.date_rapp.strftime(u'%x %Hh:%Mmn'))
                  for rap in rapports]
Пример #2
0
    def set_data_for(self, *args):

        if args:
            reports = last_mouvement_report(args[0][0], args[0][1])
            self.data = [(rap.magasin, rap.produit, rap.restant,"", "")
                          for rap in reports]
Пример #3
0
 def set_data_for(self):
     """ """
     self.data = [(op.magasin, op.produit, formatted_number(op.restant),
                   op.date_rapp.strftime(_(u'%x %Hh:%Mmn')))
                  for op in last_mouvement_report()]