openpack/basepack.py
def _load_part(self, rel_type, name, data):
		"""
		Load a part into this package based on its relationship type
		"""
		if self.content_types.find_for(name) is None:
			log.warning('no content type found for part %(name)s' % vars())
			return
		cls = Part.classes_by_rel_type[rel_type]
		part = cls(self, name)
		part.load(data)
		self[name] = part
		return part
def _load_part(self, rel_type, name, data):
		if self.content_types.find_for(name) is None:
			log.warning('no content type found for part %(name)s' % vars())
			return
		cls = Part.classes_by_rel_type[rel_type]
		part = cls(self, name)
		part.load(data)
		self[name] = part
		return part
def _load_part ( self , rel_type , name , data ) : if self . content_types . find_for ( name ) is None : log . warning ( 'no content type found for part %(name)s' % vars ( ) ) return cls = Part . classes_by_rel_type [ rel_type ] part = cls ( self , name ) part . load ( data ) self [ name ] = part return part
Load a part into this package based on its relationship type
Load a part into this package based on its relationship type