Follow PEP-0249 for Transaction and backends

This commit is contained in:
jmartin 2016-03-10 13:34:50 +01:00
parent cb54b53193
commit 1fbbac9b48
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ class CarrierManifest:
__name__ = 'carrier.manifest'
def get_manifest_seurvalencia(self, api, from_date, to_date):
dbname = Transaction().cursor.dbname
dbname = Transaction().database.name
with Picking(api.username, api.password, api.debug) as picking_api:
manifest_file = picking_api.info()

View File

@ -48,7 +48,7 @@ class ShipmentOut:
errors = []
default_service = CarrierApi.get_default_carrier_service(api)
dbname = Transaction().cursor.dbname
dbname = Transaction().database.name
with Picking(api.username, api.password, api.debug) as picking_api:
for shipment in shipments: