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)
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.
On 18 syys, 17:53, "Vallant.biz" <vallant....@gmail.com> wrote:
> I'm using eCampaingning 2.0 beta onhttp://vallant.biz/campaignfor > 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
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.
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
On Sep 20, 3:56 pm, Petri Savolainen <petr...@gmail.com> wrote:
> On 18 syys, 17:53, "Vallant.biz" <vallant....@gmail.com> wrote:
> > I'm using eCampaingning 2.0 beta onhttp://vallant.biz/campaignfor > > 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
> 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.