Beispiel #1
0
                raise
            except:
                print('failed to process {}'.format(tableName))
    else:
        # Process bulkdata tables
        for tableName in cfg.tables:
            try:
                rowSet = getattr(cfg, tableName)
                processRowSet(tableName, rowSet)
            except KeyboardInterrupt:
                raise
            except:
                print('failed to process {}'.format(tableName))

        # Process remote service calls
        for serviceName, serviceArgs, callName, callArgs in discoverSvc(eve):
            try:
                tableName = u'{}({})_{}({})'.format(
                    serviceName,
                    ', '.join(unicode(arg) for arg in serviceArgs),
                    callName,
                    ', '.join(unicode(arg) for arg in callArgs)
                )
                if len(serviceArgs) > 0:
                    service = (serviceName, serviceArgs)
                else:
                    service = serviceName
                rowSet = getattr(eve.RemoteSvc(service), callName)(*callArgs)
                processRowSet(tableName, rowSet)
            except KeyboardInterrupt:
                raise
Beispiel #2
0
                processRowSet(tableName, rowSet)
            except KeyboardInterrupt:
                raise
            except:
                print("failed to process {}".format(tableName))
    else:
        # Process bulkdata tables
        for tableName in cfg.tables:
            try:
                rowSet = getattr(cfg, tableName)
                processRowSet(tableName, rowSet)
            except KeyboardInterrupt:
                raise
            except:
                print("failed to process {}".format(tableName))

        # Process remote service calls
        for service, call in discoverSvc(eve):
            tableName = "{}_{}".format(service, call)
            try:
                rowSet = getattr(eve.RemoteSvc(service), call)()
                processRowSet(tableName, rowSet)
            except KeyboardInterrupt:
                raise
            except:
                print("failed to process {}".format(tableName))

    processMetadata()

    print("all done")