def related(self, reltype):
parts = []<EOL>package = getattr(self, '<STR_LIT>', None) or self<EOL>for rel in self.relationships.types.get(reltype, []):<EOL><INDENT>parts.append(package[posixpath.join(self.base, rel.target)])<EOL><DEDENT>return parts<EOL>
Return a list of parts related to this one via reltype.