##// END OF EJS Templates
bundle2: split parameter retrieval and processing...
Pierre-Yves David -
r26541:d40029b4 default
parent child Browse files
Show More
@@ -657,7 +657,14 class unbundle20(unpackermixin):
657 raise error.BundleValueError('negative bundle param size: %i'
657 raise error.BundleValueError('negative bundle param size: %i'
658 % paramssize)
658 % paramssize)
659 if paramssize:
659 if paramssize:
660 for p in self._readexact(paramssize).split(' '):
660 params = self._readexact(paramssize)
661 params = self._processallparams(params)
662 return params
663
664 def _processallparams(self, paramsblock):
665 """"""
666 params = {}
667 for p in paramsblock.split(' '):
661 p = p.split('=', 1)
668 p = p.split('=', 1)
662 p = [urllib.unquote(i) for i in p]
669 p = [urllib.unquote(i) for i in p]
663 if len(p) < 2:
670 if len(p) < 2:
@@ -666,6 +673,7 class unbundle20(unpackermixin):
666 params[p[0]] = p[1]
673 params[p[0]] = p[1]
667 return params
674 return params
668
675
676
669 def _processparam(self, name, value):
677 def _processparam(self, name, value):
670 """process a parameter, applying its effect if needed
678 """process a parameter, applying its effect if needed
671
679
General Comments 0
You need to be logged in to leave comments. Login now