openpack/basepack.py
def relate(self, part, id=None):
		"""Relate this package component to the supplied part."""
		assert part.name.startswith(self.base)
		name = part.name[len(self.base):].lstrip('/')
		rel = Relationship(self, name, part.rel_type, id=id)
		self.relationships.add(rel)
		return rel
def relate(self, part, id=None):
		"""Relate this package component to the supplied part."""
		assert part.name.startswith(self.base)
		name = part.name[len(self.base):].lstrip('/')
		rel = Relationship(self, name, part.rel_type, id=id)
		self.relationships.add(rel)
		return rel
Relate this package component to the supplied part.