On 4/9/11 5:52 PM, nikolaj wrote:
[..]


Now to the errors (please comment):

--------------------------------------------------------------------------
utf-8 and iso8859-1: when running buildout:

SyntaxError: ("'return' outside function",
('build/bdist.freebsd-8.0-RELEASE-p2-i386/egg/Products/EasyNewsletter/skins/EasyNewsletter/enl_isOrderable.py',
2, None, "return context.portal_interface.objectImplements(context,
'OFS.OrderSupport.IOrderedContainer')\n"))

SyntaxError: ("'return' outside function",
('/usr/local/Plone/buildout-cache/eggs/tmpbefJLY/Products.EasyNewsletter-2.5.10a2-py2.6.egg/Products/EasyNewsletter/skins/EasyNewsletter/enl_isOrderable.py',
2, None, "return context.portal_interface.objectImplements(context,
'OFS.OrderSupport.IOrderedContainer')\n"))


These two you can safely ignore.
They result from Restricted Python Scripts not being fully
Python compatible. I know it looks frightening but it is
a non-issue.


--------------------------------------------------------------------------
utf-8 and iso8859-1: after installing:

------
2011-04-09T10:37:00 WARNING PlacelessTranslationService Error while
compiling
/usr/local/Plone/buildout-cache/eggs/Products.EasyNewsletter-2.5.10a2-py2.6.egg/Products/EasyNewsletter/i18n/easynewsletter-plone-de.po

------
2011-04-09T10:37:00 WARNING PlacelessTranslationService Error while
compiling
/usr/local/Plone/buildout-cache/eggs/Products.EasyNewsletter-2.5.10a2-py2.6.egg/Products/EasyNewsletter/i18n/easynewsletter-plone-fr.po

------
2011-04-09T10:37:00 WARNING PlacelessTranslationService Error while
compiling
/usr/local/Plone/buildout-cache/eggs/Products.EasyNewsletter-2.5.10a2-py2.6.egg/Products/EasyNewsletter/i18n/easynewsletter-plone-it.po


Looks like something is wrong with the translations of EasyNewsletter.

You might want to get in contact with the author(s) of this add-on.


--------------------------------------------------------------------------
The log says that using "inqbus.plone.fastmemberproperties" will improve
search performance, but doing so (egg) it not recognized - the warning is
still there:

2011-04-06T17:12:21 INFO Products.EasyNewsletter We use plone API to get
memberproperties, this ist very slow on many members, please install
inqbus.plone.fastmemberproperties to make it fast!


I'd consider this only if you run into performance issues.




--------------------------------------------------------------------------
iso8859-1: when using letters like "æøå" in the title of and issue and
saving:

------
2011-04-08T15:42:01 ERROR Zope.SiteErrorLog 1302270121.850.962207895276
http://basse/Members/admin/mysecondnewsletter/det-forste-issue/send-issue
Traceback (innermost last):
   Module ZPublisher.Publish, line 127, in publish
   Module ZPublisher.mapply, line 77, in mapply
   Module ZPublisher.Publish, line 47, in call_object
   Module Products.EasyNewsletter.browser.issue, line 19, in send_issue
   Module Products.EasyNewsletter.content.ENLIssue, line 364, in send
   Module email.header, line 176, in __init__
   Module email.header, line 260, in append
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5:
ordinal not in range(128)

Again, this is EasyNewsletter specific.
It is creating an email message and fails when putting the title
in the email subject line I assume.




--------------------------------------------------------------------------
Using utf-8 in run mode (after installing with iso8859-1 in LC_CTYPE): when
saving an issue with the letter "ø" in the title:

------
2011-04-08T21:04:44 INFO ZPublisher.Conflict ConflictError at
/VirtualHostBase/http/basse:80/vaio/VirtualHostRoot/Members/admin/basse-nyheder/det-forste-nyhedsbrev/edit:
database conflict error (oid 0x12a7, class
Products.EasyNewsletter.content.ENLIssue.ENLIssue) (1 conflicts (0
unresolved) since startup at Fri Apr  8 20:39:42 2011)
------

As long as you don't see many of those I wouldn't care
much about this. They happen. As long as they can be resolved
it's no problem.




-------------------------------------
utf-8: now able to save, but when sending with ø in title:

------
2011-04-09T11:56:09 ERROR Zope.SiteErrorLog 1302342969.10.994456186908
http://basse/Members/admin/basse-nyheder/det-forste-issue-og-ikke-helt/send-issue
Traceback (innermost last):
   Module ZPublisher.Publish, line 127, in publish
   Module ZPublisher.mapply, line 77, in mapply
   Module ZPublisher.Publish, line 47, in call_object
   Module Products.EasyNewsletter.browser.issue, line 19, in send_issue
   Module Products.EasyNewsletter.content.ENLIssue, line 364, in send
   Module email.header, line 176, in __init__
   Module email.header, line 260, in append
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5:
ordinal not in range(128)

This is the same as above.
Obviously, EasyNewsletter should exercise more care when accessing
potentially non-ascii encoded content.

Wild guess: Does it do something similar to

  context.title

rather than

  context.Title()

where context is a content item?




-------------------------------------
When giving focus to the Title input field for an issue:

------
2011-04-09T11:12:08 INFO ZPublisher.Conflict ConflictError at
/VirtualHostBase/http/basse:80/vaio/VirtualHostRoot/Members/admin/portal_factory/EasyNewsletter/easynewsletter.2011-04-09.3248375499/kssValidateField:
database conflict error (oid 0x0551, class BTrees.IOBTree.IOBTree, serial
this txn started with 0x038d85c8192609cc 2011-04-09 09:12:05.894200, serial
currently committed 0x038d85c825204522 2011-04-09 09:12:08.701419) (1
conflicts (0 unresolved) since startup at Sat Apr  9 11:04:11 2011)
------
2011-04-09T11:12:44 INFO ZPublisher.Conflict ConflictError at
/VirtualHostBase/http/basse:80/vaio/VirtualHostRoot/Members/admin/portal_factory/EasyNewsletter/easynewsletter.2011-04-09.3248375499/kssValidateField:
database conflict error (oid 0x0551, class BTrees.IOBTree.IOBTree, serial
this txn started with 0x038d85c829b9e688 2011-04-09 09:12:09.779572, serial
currently committed 0x038d85c8bf0949dd 2011-04-09 09:12:44.774129) (2
conflicts (0 unresolved) since startup at Sat Apr  9 11:04:11 2011)
------
2011-04-09T11:12:47 INFO ZPublisher.Conflict ConflictError at
/VirtualHostBase/http/basse:80/vaio/VirtualHostRoot/Members/admin/portal_factory/EasyNewsletter/easynewsletter.2011-04-09.3248375499/kssValidateField:
database conflict error (oid 0x0551, class BTrees.IOBTree.IOBTree, serial
this txn started with 0x038d85c8c1cee755 2011-04-09 09:12:45.423801, serial
currently committed 0x038d85c8cbe7a000 2011-04-09 09:12:47.790184) (3
conflicts (0 unresolved) since startup at Sat Apr  9 11:04:11 2011)
------
2011-04-09T11:12:48 INFO ZPublisher.Conflict ConflictError at
/VirtualHostBase/http/basse:80/vaio/VirtualHostRoot/Members/admin/portal_factory/EasyNewsletter/easynewsletter.2011-04-09.3248375499/kssValidateField:
database conflict error (oid 0x0551, class BTrees.IOBTree.IOBTree, serial
this txn started with 0x038d85c8cdd3bf77 2011-04-09 09:12:48.240736, serial
currently committed 0x038d85c8d05ba399 2011-04-09 09:12:48.833898) (4
conflicts (0 unresolved) since startup at Sat Apr  9 11:04:11 2011)


Hm, like the previous issues this hints at something being wrong
in how EasyNewsletter handles titles. Doesn't seem to be unicode
safe.

HTH

        Raphael




--
View this message in context: 
http://plone.293351.n2.nabble.com/Plone-4-0-4-EasyNewsletter-and-UTF-8-encoding-on-FreeBSD-tp6257087p6257087.html
Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com.
_______________________________________________
Setup mailing list
Setup@lists.plone.org
https://lists.plone.org/mailman/listinfo/setup


_______________________________________________
Setup mailing list
Setup@lists.plone.org
https://lists.plone.org/mailman/listinfo/setup

Reply via email to