- working on a new type of database
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user