Changeset 871

Show
Ignore:
Timestamp:
03/10/10 23:33:13 (5 months ago)
Author:
francesco
Message:

si torna a casa .....

Location:
trunk/core/promogest
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/core/promogest/dao/TestataDocumento.py

    r868 r871  
    883883        "PV":relation(Vettore,primaryjoin = (testata_documento.c.id_vettore==vettore.c.id)), 
    884884        "DM":relation(DestinazioneMerce, primaryjoin=(testata_documento.c.id_destinazione_merce==DestinazioneMerce.id)), 
    885         "TM":relation(TestataMovimento,primaryjoin = (testata_documento.c.id==testata_movi.c.id_testata_documento),cascade="all, delete, delete-orphan", backref='TD'), 
     885        "TM":relation(TestataMovimento,primaryjoin = (testata_documento.c.id==testata_movi.c.id_testata_documento),cascade="all, delete", backref='TD'), 
    886886        "CLI":relation(Cliente,primaryjoin = (testata_documento.c.id_cliente==clie.c.id)), 
    887887        "FORN":relation(Fornitore,primaryjoin = (testata_documento.c.id_fornitore==fornitor.c.id)), 
  • trunk/core/promogest/ui/VistaPrincipale.py

    r870 r871  
    272272 
    273273    def on_promogest_button_clicked(self, button): 
    274         from promogest.dao.TestataMovimento import TestataMovimento 
    275         daos = TestataMovimento().select(batchSize=1000) 
    276         if daos: 
    277             for d in daos: 
    278                 print d 
    279     #            d.delete() 
    280                 Environment.session.delete(d) 
    281             Environment.session.commit() 
    282             print "FINITA QUESTA TRANCE da 1000" 
    283         else: 
    284             print "FINITTIIIIIIWW" 
     274#        from promogest.dao.TestataMovimento import TestataMovimento 
     275#        daos = TestataMovimento().select(batchSize=1000) 
     276#        if daos: 
     277#            for d in daos: 
     278#                print d 
     279#    #            d.delete() 
     280#                Environment.session.delete(d) 
     281#            Environment.session.commit() 
     282#            print "FINITA QUESTA TRANCE da 1000" 
     283#        else: 
     284#            print "FINITTIIIIIIWW" 
    285285 
    286286