Show More
@@ -900,6 +900,13 b' class bundlepart(object):' | |||||
900 | return tuple(self._advisoryparams) |
|
900 | return tuple(self._advisoryparams) | |
901 |
|
901 | |||
902 | def addparam(self, name, value='', mandatory=True): |
|
902 | def addparam(self, name, value='', mandatory=True): | |
|
903 | """add a parameter to the part | |||
|
904 | ||||
|
905 | If 'mandatory' is set to True, the remote handler must claim support | |||
|
906 | for this parameter or the unbundling will be aborted. | |||
|
907 | ||||
|
908 | The 'name' and 'value' cannot exceed 255 bytes each. | |||
|
909 | """ | |||
903 | if self._generated is not None: |
|
910 | if self._generated is not None: | |
904 | raise error.ReadOnlyPartError('part is being generated') |
|
911 | raise error.ReadOnlyPartError('part is being generated') | |
905 | if name in self._seenparams: |
|
912 | if name in self._seenparams: |
General Comments 0
You need to be logged in to leave comments.
Login now