Пример #1
0
 def getLastPropriosChanges(self):
     """
     Get last proprios changes in origin DB for hebs that are in the 2 databases
     """
     if self.origin == 'PIVOT':
         last_changes = ContactView.get()
     elif self.origin == 'GDW':
         last_changes = Proprio.get_last_changes(self.date, session=self.pg_session)
     return last_changes
Пример #2
0
 def getLastPropriosChanges(self):
     """
     Get last proprios changes in origin DB for hebs that are in the 2 databases
     """
     if self.origin == 'PIVOT':
         last_changes = ContactView.get()
     elif self.origin == 'GDW':
         last_changes = Proprio.get_last_changes(self.date,
                                                 session=self.pg_session)
     return last_changes
Пример #3
0
 def test_proprio_link(self):
     PK = 98
     heb = Hebergement(heb_pk=PK, heb_pro_fk=PK)
     pro = Proprio(pro_pk=PK)
     sess = session()
     sess.add(heb)
     sess.add(pro)
     sess.flush()
     self.assertEqual(heb.proprio.pro_pk, Proprio.first(pro_pk=PK).pro_pk)
     heb = sess.query(Hebergement).first()
     heb.proprio