Formulator 1.6.0 and Zope 2.7.0-b3
Nik Klever <klever-PMHQyWuJmk++LfC2eorUQoDa77dxoHvws0AfqQuZ5sE@public.gmane.org> Mon, 05 Jan 2004 11:14:24 +0100
| Newsgroups | gmane.comp.web.zope.formulator.devel |
|---|---|
| Organization | FH Augsburg - DiZ Bayern |
| Message-ID | <[email protected]> |
Hi all,
I got a Type Error "cannot concatenate 'str' and 'Python Method'
objects" using Formulator 1.6.0 on Zope 2.7.0-b3
This comes from an Eval-Call of
"RESPONSE.setHeader('Content-Type','text/html;charset='+management_page_charset)"
I fixed the problem with the following patch, but I didn't tested it
with all previous versions (but it works also with 2.6.2).
In the moment, I can't imagine the sense of the def
management_page_charset() - I also didn't find the caller
manage_before_header !? management_page_charset is normally a REQUEST
key-value-pair !?
Any Hints ?
I wish you all a Happy New Year!
Regards
Nik
472,481c472,486
< security.declareProtected('Access contents information',
< 'management_page_charset')
< def management_page_charset(self):
< """manage_before_header calls this to determine management
< screen encodings.
< """
< if not self.unicode_mode:
< return self.stored_encoding
< else:
< return 'UTF-8'
---
> #
> # in Zope-2.7.0-b3:
> # TypeError: cannot concatenate 'str' and 'Python Method' objects
> # but also not needed in Zope-2.6.2 ??
> #
> #security.declareProtected('Access contents information',
> # 'management_page_charset')
> #def management_page_charset(self):
> # """manage_before_header calls this to determine management
> # screen encodings.
> # """
> # if not self.unicode_mode:
> # return self.stored_encoding
> # else:
> # return 'UTF-8'