[Zope-dev] request.get vs request.form.get
I have been busy with zope.formlib. See this weblog entry for some background: http://maurits.vanrees.org/weblog/archive/2007/11/search-forms-with-zope-formlib-and-batching This is Plone 3 with Zope 2.10.4 btw. I discovered there is a difference between getting a value from the request or from request.form when unicode is involved. From a pdb session: >>> request.form.get('SearchableText') u'\xff' >>> request.get('SearchableText') '\xc3\xbf' This is the character ÿ: a y with something extra on top. :) You can see the same in a python prompt (I hope this is readable for everyone): >>> u"ÿ" u'\xff' >>> "ÿ" '\xc3\xbf' This gave me problems while using zope.formlib. In the method zope.app.form.browser.textwidgets.TextWidget._getFormInput() the value is fetched from the request and not request.form. So you get a UnicodeDecodeError. In the weblog entry I mentioned I post some code to guard against that in a setUpWidgets method in your own form page: deliberately overwrite the variable in the request by the variable in request.form. But what I want to ask here is: does something need to be fixed somewhere in zope? Should the value in request and request.form really be the same always? Probably: always unicode? Should zope.app.form.browser.textwidgets.TextWidget._getFormInput() get the value from the form instead of from the request? Thanks, -- Maurits van Rees | http://maurits.vanrees.org/ [NL] Work | http://zestsoftware.nl/ "Do not worry about your difficulties in computers, I can assure you mine are still greater." ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Hivurt new open source CMS 0.1.3pre-alfa released
Hi everybody, Key Solutions (http://keysolutions.ru/) and Hivurt team (http://hivurt.org/) proud to announce first public release of our Zope3-based content management system. Hivurt giving you strength of Zope 3 in easy to use environment. This is release aimed for developers and everybody who love new cool products, we want take first feedback from community and looking for new members. What you get: - Component architect - Easy switch between ZODB and Postgres data storage - Search and indexes - Easy editor UI (sorry we cut off some functionality, so there is still some dead links) - Easy frontend skin - L10n and i18n support, as in Zope 3 What's inside: - Pluggable Content Types and content types registry - Base conent types: - Folder - TextDocument - News Item - NewsFolder - Event - Event Folder - Site Folder - Form keeper, for quick and easy Feedback forms and quizes - Interface switcher, to easy switch interfaces provided by objects (we use it for quick skin switching) - Revolutionary SQLTools giving you freedom choose between ZODB and RDBMS, so you can easy integrate Hivurt in your company with existent infrastructure. Easy way to interact with existence data stored inside RDBMS as Zope objects (it is not only RDB Mapper) - Quick search and index - and many other features - Hivurt is fast, quick growing and supported. Requirements (You need to have before installing Hivurt) * Zope 3.3.x (3.4.x untested) * PostgreSQL 8.2 * Python 2.4.4 with psycopg2 and json libs * Tested on Mac OS X and Linux (Ubunty and ALTLiniux) Hivurt released under **ZPL**. You can download it: - Release 0.1.3 http://hivurt.org/downloads/ks.hivurtcms-0.1.3.tar.gz Include 10 minutes Install tutorial and demo site inside. Links: - Project home-page - http://hivurt.org/ - Blog - http://hivurt.wordpress.com/ (ok! we switch to something soon) - Bugs and translations - https://launchpad.net/hivurt/ P.S. Wow! We made it. P.P.S. We are looking for new clients, feel free to contacts us. -- Mikhail Kashkin, skype:mkashkin, jabber:[EMAIL PROTECTED] Key Solutions (http://keysolutions.ru/) Offshore Zope3 development ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope Tests: 5 OK
Summary of messages to the zope-tests list. Period Thu Nov 22 13:00:00 2007 UTC to Fri Nov 23 13:00:00 2007 UTC. There were 5 messages: 5 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2.7 Python-2.3.6 : Linux From: Zope Unit Tests Date: Thu Nov 22 20:52:48 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-November/008686.html Subject: OK : Zope-2.8 Python-2.3.6 : Linux From: Zope Unit Tests Date: Thu Nov 22 20:54:18 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-November/008687.html Subject: OK : Zope-2.9 Python-2.4.4 : Linux From: Zope Unit Tests Date: Thu Nov 22 20:55:49 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-November/008688.html Subject: OK : Zope-2.10 Python-2.4.4 : Linux From: Zope Unit Tests Date: Thu Nov 22 20:57:19 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-November/008689.html Subject: OK : Zope-trunk Python-2.4.4 : Linux From: Zope Unit Tests Date: Thu Nov 22 20:58:49 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-November/008690.html ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )