Exemplo n.º 1
0
 def exportSelectedRecord(self, event):
     if not self.currentRecord:
         print "No record selected"
         return
     oldRecords = [self.currentRecord]
     print "Exporting current record to repository %s" % self.exportFileName
     repository = Repository(self.exportFileName)
     repository.addRecordsFromAnotherRepository(oldRecords)
     print "Done"
Exemplo n.º 2
0
 def exportAllRecordsForSelectedEntity(self, event):
     entityName = self.getCurrentEntityName()
     if not entityName:
        print "No entity selected" 
        return
     print "Exporting all records for entity '%s' to repository %s" % (entityName, self.exportFileName)
     oldRecords = self.repository.findAllRecordsForEntity(entityName)
     oldRecords.reverse()
     repository = Repository(self.exportFileName)
     repository.addRecordsFromAnotherRepository(oldRecords)
     print "Done"
Exemplo n.º 3
0
 def exportLatestRecordsForSelectedEntity(self, event):
     entityName = self.getCurrentEntityName()
     if not entityName:
        print "No entity selected" 
        return
     print "Exporting latest records for all entity '%s' attributes to repository %s" % (entityName, self.exportFileName)
     oldRecords = self.repository.findLatestRecordsForAllEntityAttributes(entityName)
     oldRecords.reverse()
     repository = Repository(self.exportFileName)
     repository.addRecordsFromAnotherRepository(oldRecords)
     print "Done"