openpack/basepack.py
def related(self, reltype):
		"""Return a list of parts related to this one via reltype."""
		parts = []
		package = getattr(self, 'package', None) or self
		for rel in self.relationships.types.get(reltype, []):
			parts.append(package[posixpath.join(self.base, rel.target)])
		return parts
def related(self, reltype):
		parts = []
		package = getattr(self, 'package', None) or self
		for rel in self.relationships.types.get(reltype, []):
			parts.append(package[posixpath.join(self.base, rel.target)])
		return parts
def related ( self , reltype ) : parts = [ ] package = getattr ( self , 'package' , None ) or self for rel in self . relationships . types . get ( reltype , [ ] ) : parts . append ( package [ posixpath . join ( self . base , rel . target ) ] ) return parts
Return a list of parts related to this one via reltype.
Return a list of parts related to this one via reltype .