openpack/basepack.py
def add(self, part, override=True):
		"""Add a part to the package.

		It will also add a content-type - by default an override.  If
		override is False then it will add a content-type for the extension
		if one isn't already present.
		"""
		ct_add_method = [
			self.content_types.add_default,
			self.content_types.add_override,
                ][override]
		self[part.name] = part
		ct_add_method(part)
def add(self, part, override=True):
		"""Add a part to the package.

		It will also add a content-type - by default an override.  If
		override is False then it will add a content-type for the extension
		if one isn't already present.
		"""
		ct_add_method = [
			self.content_types.add_default,
			self.content_types.add_override,
                ][override]
		self[part.name] = part
		ct_add_method(part)
Add a part to the package.

		It will also add a content-type - by default an override.  If
		override is False then it will add a content-type for the extension
		if one isn't already present.