def addNamespace(self, node=None, ns='', hier=False):
		''' adds a namespace
			Params:
				node: node to add to
				ns: namespace to add
				hier: process hierarchy or not
			Returns: True/False
		'''
		if not node:
			moBuLogger.error("No node passed.")
		if not ns:
			moBuLogger.error("No namespace passed.")
		
		# skip if namespace already there
		if ns in node.LongName:
			moBuLogger.debug("'%s' already in object: '%s'" % (ns, node.LongName))
			return False
		
		try:
			if hier:
				node.ProcessNamespaceHierarchy(FBNamespaceAction.kFBConcatNamespace, ns, None, False)
			else:
				node.ProcessObjectNamespace(FBNamespaceAction.kFBConcatNamespace, ns, None, False)
		except:
			return False
		return True
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/moBu/core/moBuNamespace.py/MoBuNamespace.addNamespace/original