浏览代码

Fix indentations.

Bentley James Oakes 7 年之前
父节点
当前提交
068c424a35

+ 2 - 2
src/python_sccd/python_sccd_runtime/libs/utils.py

@@ -15,5 +15,5 @@ class utils:
 			after:  d['a'] = d.a
 	"""
 	class _bunch:
-  		def __init__(self, **kwds):
- 			self.__dict__.update(kwds)
+		def __init__(self, **kwds):
+			self.__dict__.update(kwds)

文件差异内容过多而无法显示
+ 1286 - 1286
textualnotations/bouncing_balls.py


文件差异内容过多而无法显示
+ 1286 - 1286
textualnotations/launcher_examples/bouncing_balls.py


+ 18 - 18
textualnotations/mvk_loader.py

@@ -101,15 +101,15 @@ class ClassRepresenter(object):
 	def store(self, context, target):
 
 		location = context.location + '.' + self.name
- 		self.create(context.mvk, MappingValue({CreateConstants.TYPE_KEY: LocationValue(location),
- 			CreateConstants.LOCATION_KEY: LocationValue(target),
- 			CreateConstants.ATTRS_KEY: MappingValue(
- 				self.buildDict(context.mvk, target, location, self.body)
- 			)}))
+		self.create(context.mvk, MappingValue({CreateConstants.TYPE_KEY: LocationValue(location),
+			CreateConstants.LOCATION_KEY: LocationValue(target),
+			CreateConstants.ATTRS_KEY: MappingValue(
+				self.buildDict(context.mvk, target, location, self.body)
+			)}))
 
- 		key = self.getIdField(context, target, location)
- 		element = target + '.' + str(self.body[key])
- 		self.classname = element
+		key = self.getIdField(context, target, location)
+		element = target + '.' + str(self.body[key])
+		self.classname = element
 
 	def getNthOfType(self, context, index, typename):
 		searchid = 0
@@ -304,14 +304,14 @@ class ModelRepresenter(ClassRepresenter):
 
 	def store(self, context, target):
 		location = context.location
- 		self.create(context.mvk, MappingValue({CreateConstants.TYPE_KEY: LocationValue(location),
- 			CreateConstants.LOCATION_KEY: LocationValue(target),
- 			CreateConstants.ATTRS_KEY: MappingValue(
- 				self.buildDict(context.mvk, target, location, self.body)
- 			)}))
+		self.create(context.mvk, MappingValue({CreateConstants.TYPE_KEY: LocationValue(location),
+			CreateConstants.LOCATION_KEY: LocationValue(target),
+			CreateConstants.ATTRS_KEY: MappingValue(
+				self.buildDict(context.mvk, target, location, self.body)
+			)}))
 
- 		key = self.getIdField(context, target, location)
- 		self.modelname = str(self.body[key])
+		key = self.getIdField(context, target, location)
+		self.modelname = str(self.body[key])
 
 class AssociationRepresenter(ClassRepresenter):
 	def __init__(self, name, body, fromid, toid):
@@ -355,9 +355,9 @@ class AssociationRepresenter(ClassRepresenter):
 					})
 
 
- 		self.create(context.mvk, MappingValue({CreateConstants.TYPE_KEY: LocationValue(location),
- 			CreateConstants.LOCATION_KEY: LocationValue(target),
- 			CreateConstants.ATTRS_KEY: MappingValue(values)}))
+		self.create(context.mvk, MappingValue({CreateConstants.TYPE_KEY: LocationValue(location),
+			CreateConstants.LOCATION_KEY: LocationValue(target),
+			CreateConstants.ATTRS_KEY: MappingValue(values)}))