I'm using eCampaingning 2.0 beta on http://vallant.biz/campaign for
Petition for Protection of Slovenia's Nature (only Slovenian language
version available and published at this time). It's great, but have
some problems with it. Using it on Plone 2.1.2, Zope (Zope 2.8.5-
final, python 2.3.5, linux2), Python 2.3.5 (#1, Jan 10 2006, 10:47:38)
[GCC 3.3.5 (Debian 1:3.3.5-13)], PIL 1.1.5. My Campaign actions
portlet stoped working after three joins to petition, I suspect
portlet is only counting member joins and not anonymus joins to
petition. Also More link in portlet is displaying news items and not
campaign action items. Also I can't get data from eCampaigning get
data link, I get the following error:
=====================================================
Site error
This site encountered an error trying to fulfill your request. The
errors were:
Error Type
UnicodeDecodeError
Error Value
'ascii' codec can't decode byte 0xc5 in position 36: ordinal not in
range(128)
Exception Details
Back to Error Log
Time
2007/09/18 15:55:18.793 GMT+2
User Name (User Id)
primoz (primoz)
Request URL
http://vallant.biz/campaign/peticija-za-zascito-pohorja/records/datafile
Exception Type
UnicodeDecodeError
Exception Value
'ascii' codec can't decode byte 0xc5 in position 36: ordinal not in
range(128)
Traceback (innermost last):
Module ZPublisher.Publish, line 113, in publish Module
ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line
40, in call_object Module Products.CMFCore.FSPythonScript, line 108,
in __call__ Module Shared.DC.Scripts.Bindings, line 311, in __call__
Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec Module
Products.CMFCore.FSPythonScript, line 163, in _exec Module None, line
70, in datafile <FSPythonScript at /plone/datafile used for /plone/
campaign/peticija- za-zascito-pohorja/records> Line 70
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position
36: ordinal not in range(128)
Display traceback as text
REQUEST
form
cookies
tree-s
'eJzTyCkw5NLIKTDiClZ3hANXW3WuAmOuRKCECUjWFEk2yBAsawaWNQfJWiDLmnqCZC3BsoYGIGlDQyT54PRskLyhEVciFOgBAE01IPk'
AnonymousVoteddb064d994dd9a323be63b96c6f3ecf59 '108655'
areYourCookiesEnabled ''
AnonymousVotedf39ad2bbaaa67cccf6f9662687648695 '118767'
_ZopeId '02060921A3Bp9gFybQA'
lazy items
SESSION <bound method SessionDataManager.getSessionData of
<SessionDataManager at /session_data_manager>>
other
TraversalRequestNameStack []
LANGUAGE 'en'
AUTHENTICATED_USER primoz
URL 'http://vallant.biz/campaign/peticija-za-zascito-pohorja/records/
datafile'
VirtualRootPhysicalPath ('', 'plone')
_pts_catalog_names_plone_en ['FileSystemStorage.i18n-fss_plone_en.po',
'KBannerAd.i18n-kbannerad-plone-en.po', 'PloneTranslations.i18n-
archetypes-en.po', 'PloneTranslations.i18n-plone-en.po',
'SimpleBlog.i18n-SimpleBlog-plone-en.po', 'eCampaigning.i18n-plone-
en.po'] VIRTUAL_URL 'http://vallant.biz/campaign/peticija-za-zascito-
pohorja/
records/datafile'
SERVER_URL 'http://vallant.biz'
LANGUAGE_TOOL <Products.PloneLanguageTool.LanguageTool.LanguageBinding
instance at 0xb29f5acc>
AUTHENTICATION_PATH 'plone/virtual_hosting'
traverse_subpath []
PUBLISHED <FSPythonScript at /plone/datafile used for /plone/campaign/
peticija-za-zascito-pohorja/records>
_pts_negotiator_cache_language {('mi', 'cs', 'ar', 'ca', 'zh-cn',
'it', 'ja', 'fi', 'fr', 'sr-latn', 'ko', 'zh', 'bn', 'sr', 'nn', 'et',
'eo', 'hu', 'de', 'fa', 'hr', 'vi', 'my', 'sm', 'es', 'uk', 'to',
'af', 'pt', 'lt', 'en', 'zh-hk', 'sv', 'tr', 'zh-tw', 'da', 'hy', 'pt-
br', 'nl', 'sl', 'ru', 'hi', 'eu', 'sk', 'ta', 'bg', 'kn', 'el', 'id',
'ka', 'sq', 'ro', 'no', 'he', 'pl', 'te', 'en-nz', 'zh-mo', 'nn-no',
'no-nyn', 'fr-be', 'es-pe', 'sv-fi', 'zh-cn', 'es-ar', 'es-es', 'ja-
jp', 'es-us', 'ca-fr', 'nb', 'zh', 'en-bz', 'fr-lu', 'en-gb', 'de-lu',
'es-do', 'en-us', 'en-ca', 'es-cr', 'en-uk', 'en-ph', 'no-bok', 'de-
at', 'eu-es', 'es-pr', 'ca-ad', 'es-pa', 'es-cl', 'de-li', 'zh-sg',
'fr-ca', 'es-hn', 'es-co', 'es-gt', 'en-tt', 'tr-tr', 'ko-kr', 'en-
au', 'en-jm', 'es-mx', 'es-py', 'zh-hk', 'ca-es', 'fr-ch', 'es-uy',
'fr-mc', 'de-de', 'es-bo', 'en-ie', 'es-sv', 'fr-fr', 'it-it', 'nl-
be', 'en-zw', 'it-ch', 'es-ec', 'de', 'nb-no', 'de-ch', 'es-ve', 'en-
za', 'ca-it', 'es-ni'): 'en'} _pts_is_rtl False ACTUAL_URL 'http://
vallant.biz/campaign/peticija-za-zascito-pohorja/
records/datafile'
VIRTUAL_URL_PARTS ('http://vallant.biz', 'campaign/peticija-za-
zascito-
pohorja/records/datafile')
URL0 http://vallant.biz/campaign/peticija-za-zascito-pohorja/records/datafile
URL1 http://vallant.biz/campaign/peticija-za-zascito-pohorja/records
URL2 http://vallant.biz/campaign/peticija-za-zascito-pohorja
URL3 http://vallant.biz/campaign
URL4 http://vallant.biz
BASE0 http://vallant.biz
BASE1 http://vallant.biz
BASE2 http://vallant.biz/campaign
BASE3 http://vallant.biz/campaign/peticija-za-zascito-pohorja
BASE4 http://vallant.biz/campaign/peticija-za-zascito-pohorja/records
BASE5 http://vallant.biz/campaign/peticija-za-zascito-pohorja/records/datafile
environ
HTTP_MAX_FORWARDS '10'
HTTP_REFERER 'http://vallant.biz/campaign/peticija-za-zascito-
pohorja/'
HTTP_ACCEPT_LANGUAGE 'sl'
SERVER_SOFTWARE 'Zope/(Zope 2.8.5-final, python 2.3.5, linux2)
ZServer/
1.1 Plone/Unknown'
SCRIPT_NAME ''
REQUEST_METHOD 'GET'
PATH_INFO '/VirtualHostBase/http/vallant.biz:80/plone/VirtualHostRoot/
campaign/peticija-za-zascito-pohorja/records/datafile'
SERVER_PROTOCOL 'HTTP/1.1'
channel.creation_time 1190123718
HTTP_X_FORWARDED_SERVER 'vallant.biz'
HTTP_USER_AGENT 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;
InfoPath.1; .NET CLR 2.0.50727)'
HTTP_COOKIE 'areYourCookiesEnabled=;
AnonymousVoteddb064d994dd9a323be63b96c6f3ecf59="108655";
areYourCookiesEnabled=;
AnonymousVotedf39ad2bbaaa67cccf6f9662687648695="118767";
_ZopeId="02060921A3Bp9gFybQA"; tree-
s="eJzTyCkw5NLIKTDiClZ3hANXW3WuAmOuRKCECUjWFEk2yBAsawaWNQfJWiDLmnqCZC3BsoYGIGlDQyT54PRskLyhEVciFOgBAE01IPk";
__ac="cHJpbW96Ok95NTBEWVRq"'
SERVER_NAME 'saw2.nidelven-it.no'
REMOTE_ADDR '83.143.86.11'
PATH_TRANSLATED '/VirtualHostBase/http/vallant.biz:80/plone/
VirtualHostRoot/campaign/peticija-za-zascito-pohorja/records/
datafile'
SERVER_PORT '35080'
HTTP_HOST '83.143.86.11:35080'
HTTP_UA_CPU 'x86'
HTTP_ACCEPT '*/*'
GATEWAY_INTERFACE 'CGI/1.1'
HTTP_X_FORWARDED_FOR '213.161.4.216'
HTTP_X_FORWARDED_HOST 'vallant.biz'
HTTP_ACCEPT_ENCODING 'gzip, deflate'
=================================================
I suspect it has something to do with ascii/utf8 settings. Tried
changing this in zope.config to default_zpublisher_encoding utf-8, but
this only freezed/crashed my zope/plone. Not a python expert, where
should I change the Python UTF-8 encoding? I don't have root access to
Python on my server. My eCampaign is already live, because of time
pressure. I have duplicated joins and same wrong country entries in
the join data is it possible to repair/delete this?
Thank you.
Regards,
Primoz Vallant
Vallant.biz
Innovative Business Think Tank & Factory
http://vallant.biz
Checked, it has nothing to do with member or users joins to petition,
in both ways the action portlet stoped counting. Also rebulding and
updating the catalog doesn't help. Bye.
We currently develop on Plone 2.5.3, so if you can upgrade, that would
probably increase the chances your problems can be solved.
> My Campaign actions
> portlet stoped working after three joins to petition, I suspect
> portlet is only counting member joins and not anonymus joins to
> petition.
> Also More link in portlet is displaying news items and not
> campaign action items.
Thanks for the feedback - the portlet is indeed in need of some love.
It was put together quickly for just a demonstration.
Also I can't get data from eCampaigning get
> data link, I get the following error:
> =====================================================
> Site error
> Error Type
> UnicodeDecodeError
> Error Value
> 'ascii' codec can't decode byte 0xc5 in position 36: ordinal not in
> range(128)
As you suggested, it might be possible to fix this by changing the
default site-encoding of python to "utf-8" - by default, it is
unfortunately still "ascii". This can be changed in site.py file of
the python installation.
There's also been some fixes in the datafile export in the 0.2 branch
in the subversion repository, if you can update from that. We hope to
release a new beta incorporating those fixes, within a few days. If
you still get the same UnicodeDecodeError after upgrading, I can try &
take a closer look.
Thanks,
Petri
Thank you for your replay and answers. Can't ugprade Zope and Plone
right now, but will in the near future. Regarding Get data, your
sugest for geting updated build from branch 2.0 helped, it was not
ascii. Now it works, but not completly, i get only 4 records out of
28, which I can all access from zmi. Seems it has something to do with
ascii signs, because all records after the first record with utf-8
sign don't get exported. I can't attach excel spread sheet and post it
on group, because it cointains privat data. Also in the eCampaigning
portlet, count number of signatures still not working properly, stoped
at 3, managed to figure out the More link. I would also ask you how
can I get all join records in separate page, so I have all signatures
listed? Any help is appreciated.
Regards,
Primoz Vallant
Vallant.biz - Innovative Business Think Tank & Factory http://vallant.biz