##// END OF EJS Templates
bundle2: warn about error during initialization in ``newpart`` docstring...
Pierre-Yves David -
r21602:cc33ae50 default
parent child Browse files
Show More
@@ -408,7 +408,14 b' class bundle20(object):'
408 408 self._parts.append(part)
409 409
410 410 def newpart(self, typeid, *args, **kwargs):
411 """create a new part and add it to the containers"""
411 """create a new part and add it to the containers
412
413 As the part is directly added to the containers. For now, this means
414 that any failure to properly initialize the part after calling
415 ``newpart`` should result in a failure of the whole bundling process.
416
417 You can still fall back to manually create and add if you need better
418 control."""
412 419 part = bundlepart(typeid, *args, **kwargs)
413 420 self.addpart(part)
414 421 return part
General Comments 0
You need to be logged in to leave comments. Login now