- working on a new type of database

This commit is contained in:
Marius Stanciu
2020-03-01 00:52:24 +02:00
committed by Marius
parent acc61d460b
commit 70d3895799
43 changed files with 1515 additions and 540 deletions

View File

@@ -78,7 +78,7 @@ class TclCommand(object):
:return: current command
"""
command_string = list()
command_string = []
command_string.append(self.aliases[0])
if self.original_args is not None:

View File

@@ -52,7 +52,7 @@ class TclCommandBounds(TclCommand):
:return:
"""
obj_list = list()
obj_list = []
if 'objects' in args:
try:
obj_list = [str(obj_name) for obj_name in str(args['objects']).split(",") if obj_name != '']
@@ -68,7 +68,7 @@ class TclCommandBounds(TclCommand):
_("Expected a list of objects names separated by comma. Got"), str(args['objects'])))
return 'fail'
result_list = list()
result_list = []
for name in obj_list:
obj = self.app.collection.get_by_name(name)

View File

@@ -188,7 +188,7 @@ class TclCommandCopperClear(TclCommand):
"paintcontour": self.app.defaults["tools_paintcontour"],
"paintoverlap": self.app.defaults["tools_paintoverlap"]
})
ncc_tools = dict()
ncc_tools = {}
tooluid = 0
for tool in tools:

View File

@@ -178,7 +178,7 @@ class TclCommandPaint(TclCommand):
"paintcontour": self.app.defaults["tools_paintcontour"],
"paintoverlap": self.app.defaults["tools_paintoverlap"]
})
paint_tools = dict()
paint_tools = {}
tooluid = 0
for tool in tools:

View File

@@ -228,7 +228,7 @@ class TclCommandPanelize(TclCommand):
def translate_recursion(geom):
if type(geom) == list:
geoms = list()
geoms = []
for local_geom in geom:
geoms.append(translate_recursion(local_geom))
return geoms

View File

@@ -66,7 +66,7 @@ class TclCommandSetOrigin(TclCommand):
:return:
"""
loc = list()
loc = []
if 'auto' in args:
if bool(args['auto']) is True:
objs = self.app.collection.get_list()