Skip to content

Commit

Permalink
Support --baskets parameter in Import/Export operations (API level, n…
Browse files Browse the repository at this point in the history
…ot GUI)
  • Loading branch information
gacarrillor committed Sep 3, 2020
1 parent e5525ee commit 1fb0124
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions QgisModelBaker/libili2db/ili2dbconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def __init__(self):
self.disable_validation = False
self.with_exporttid = False
self.db_ili_version = None
self.baskets = ''

def to_ili2db_args(self, extra_args=[], with_action=True):
args = list()
Expand All @@ -164,6 +165,9 @@ def to_ili2db_args(self, extra_args=[], with_action=True):
if self.db_ili_version == 3:
args += ["--export3"]

if self.baskets:
args += ["--baskets", self.baskets]

args += Ili2DbCommandConfiguration.to_ili2db_args(self)

args += [self.xtffile]
Expand Down Expand Up @@ -259,6 +263,7 @@ def __init__(self):
self.delete_data = False
self.disable_validation = False
self.with_importtid = False
self.baskets = ''

def to_ili2db_args(self, extra_args=[], with_action=True):
args = list()
Expand All @@ -278,6 +283,9 @@ def to_ili2db_args(self, extra_args=[], with_action=True):
if self.with_importtid:
args += ["--importTid"]

if self.baskets:
args += ["--baskets", self.baskets]

args += SchemaImportConfiguration.to_ili2db_args(self, extra_args=extra_args, with_action=False)

args += [self.xtffile]
Expand Down

0 comments on commit 1fb0124

Please sign in to comment.