web/contentment/taxonomy.py
def replaceWith(self, source):
		"""Replace this asset with an asset specified by the parameter."""
		
		source = self.clone().get(id=source) if isinstance(source, ObjectId) else source
		obj = self.clone().first()
		
		source.name = obj.name
		source.parent = obj.parent
		source.parents = obj.parents
		source.path = obj.path
		source.order = obj.order
		
		obj.delete()
		source.save()
		
		return self
Replace this asset with an asset specified by the parameter.
Replace this asset with an asset specified by the parameter.
Replace this asset with an asset specified by the parameter .
def replaceWith(self, source):
		source = self.clone().get(id=source) if isinstance(source, ObjectId) else source
		obj = self.clone().first()
		source.name = obj.name
		source.parent = obj.parent
		source.parents = obj.parents
		source.path = obj.path
		source.order = obj.order
		obj.delete()
		source.save()
		return self
def replaceWith ( self , source ) : source = self . clone ( ) . get ( id = source ) if isinstance ( source , ObjectId ) else source obj = self . clone ( ) . first ( ) source . name = obj . name source . parent = obj . parent source . parents = obj . parents source . path = obj . path source . order = obj . order obj . delete ( ) source . save ( ) return self
Replace this asset with an asset specified by the parameter.
Replace this asset with an asset specified by the parameter .
"""Replace this asset with an asset specified by the parameter."""
self
source