示例#1
0
	def __init__(self):
		
		# Create a reference to MangleHostname on THIS object. 
		# Why?  To facilitate replacing it without having to use __dict__
		object.__setattr__(self, 'MangleHost', self.MangleHost)
		
		# Other useful data
		object.__setattr__(self, 'Default_MySQL_Port', 3306)
		object.__setattr__(self, 'Default_MySQL_Host', 'localhost')
	
		# Call parent constructor
		Node.__init__(self)
示例#2
0
	def __init__(self, oInstance, oProject):
		object.__setattr__(self, 'ParentInstance', oInstance)
		object.__setattr__(self, 'ParentProject', oProject)
		Node.__init__(self)
示例#3
0
	def __init__(self, oInstance):
		object.__setattr__(self, 'ParentInstance', oInstance)
		Node.__init__(self)