src/reportlab/platypus/doctemplate.py
branchpy33
changeset 3723 99aa837b6703
parent 3721 0c93dd8ff567
child 3731 b233dd0577ff
equal deleted inserted replaced
3722:29c11b905751 3723:99aa837b6703
   461         """create a document template bound to a filename (see class documentation for keyword arguments)"""
   461         """create a document template bound to a filename (see class documentation for keyword arguments)"""
   462         self.filename = filename
   462         self.filename = filename
   463         self._nameSpace = dict(doc=self)
   463         self._nameSpace = dict(doc=self)
   464         self._lifetimes = {}
   464         self._lifetimes = {}
   465 
   465 
   466         for k in list(self._initArgs.keys()):
   466         for k in self._initArgs.keys():
   467             if k not in kw:
   467             if k not in kw:
   468                 v = self._initArgs[k]
   468                 v = self._initArgs[k]
   469             else:
   469             else:
   470                 if k in self._invalidInitArgs:
   470                 if k in self._invalidInitArgs:
   471                     raise ValueError("Invalid argument %s" % k)
   471                     raise ValueError("Invalid argument %s" % k)