|
|
|
@ -411,7 +411,13 @@ class fileHeader(_terms):
|
|
|
|
|
|
|
|
|
|
self.comment = self._getComment()
|
|
|
|
|
self.fileType = self._getType()
|
|
|
|
|
self.typeAppend = self._getAppend()
|
|
|
|
|
typeAppend = self._getAppend()
|
|
|
|
|
if typeAppend:
|
|
|
|
|
self.typeAppend = typeAppend
|
|
|
|
|
else:
|
|
|
|
|
self.headerTerm = False
|
|
|
|
|
self.setError(_("incorrect header parameters - '%s'")\
|
|
|
|
|
%"append=%s"%self.params["append"]
|
|
|
|
|
if not incorrectParams and self.params:
|
|
|
|
|
incorrectParams = set(self.params.keys()) - set(self.allowParam)
|
|
|
|
|
if incorrectParams:
|
|
|
|
@ -428,9 +434,11 @@ class fileHeader(_terms):
|
|
|
|
|
|
|
|
|
|
def _getAppend(self):
|
|
|
|
|
"""Выдать тип добавления файла"""
|
|
|
|
|
if self.params.has_key("append") and self.params["append"] in\
|
|
|
|
|
self._fileAppend:
|
|
|
|
|
return self.params["append"]
|
|
|
|
|
if self.params.has_key("append"):
|
|
|
|
|
if self.params["append"] in self._fileAppend:
|
|
|
|
|
return self.params["append"]
|
|
|
|
|
else:
|
|
|
|
|
return False
|
|
|
|
|
else:
|
|
|
|
|
if self.fileType != "raw" and self.fileType != "bin" and\
|
|
|
|
|
self.fileType != "":
|
|
|
|
|