##// END OF EJS Templates
bundle2: introduce a ``params`` dictionary on unbundled parts...
Pierre-Yves David -
r21610:d6056805 default
parent child Browse files
Show More
@@ -689,6 +689,7 b' class unbundlepart(unpackermixin):'
689 self.type = None
689 self.type = None
690 self.mandatoryparams = None
690 self.mandatoryparams = None
691 self.advisoryparams = None
691 self.advisoryparams = None
692 self.params = None
692 self._payloadstream = None
693 self._payloadstream = None
693 self._readheader()
694 self._readheader()
694
695
@@ -711,6 +712,9 b' class unbundlepart(unpackermixin):'
711 # make it read only to prevent people touching it by mistake.
712 # make it read only to prevent people touching it by mistake.
712 self.mandatoryparams = tuple(mandatoryparams)
713 self.mandatoryparams = tuple(mandatoryparams)
713 self.advisoryparams = tuple(advisoryparams)
714 self.advisoryparams = tuple(advisoryparams)
715 # user friendly UI
716 self.params = dict(self.mandatoryparams)
717 self.params.update(dict(self.advisoryparams))
714
718
715 def _readheader(self):
719 def _readheader(self):
716 """read the header and setup the object"""
720 """read the header and setup the object"""
General Comments 0
You need to be logged in to leave comments. Login now