you can see that the error is happening on line 147 in notifications.py, which is the moment where it is preparing the content to display in the email. You can put a pdb trace (import pdb;pdb.set_trace()) right before this line and see why it errors out.
-- S i x F e e t U p , I n c . | http://www.sixfeetup.com Phone: +1 (317) 861-5948 x605 ANNOUNCING the first Plone Immersive Training Experience | Sept. 10-11-12, 2009 http://www.sixfeetup.com/immerse On Sun, Mar 15, 2009 at 3:13 PM, rafael <[email protected]> wrote: > > Hi, > > I am getting the following unicode error when my cartitem.name has a > special character in the name. but before everything was ok and I don't > now from wich point in time I started to get this error... Any idea? Is > it something in getpaid.pagseguro or is it in Plonegetpaid? > > Thanks > > rafael > > > Time > 2009/03/15 13:52:14.209 GMT-5 > User Name (User Id) admin (admin) > Request URL http://inverta.org/jornal/@@getpaid-checkout-wizard > Exception Type UnicodeDecodeError > Exception Value 'ascii' codec can't decode byte 0xc3 in position 1: > ordinal not in range(128) > > Traceback (innermost last): > > * Module ZPublisher.Publish, line 119, in publish > * Module ZPublisher.mapply, line 88, in mapply > * Module ZPublisher.Publish, line 42, in call_object > * Module Products.Five.browser.metaconfigure, line 417, in __call__ > * Module Shared.DC.Scripts.Bindings, line 313, in __call__ > * Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec > * Module Products.PageTemplates.PageTemplateFile, line 129, in _exec > * Module Products.CacheSetup.patch_cmf, line 74, in PT_pt_render > * Module Products.CacheSetup.patch_utils, line 9, in call_pattern > * Module Products.PageTemplates.PageTemplate, line 89, in pt_render > * Module zope.pagetemplate.pagetemplate, line 117, in pt_render > * Module zope.tal.talinterpreter, line 271, in __call__ > * Module zope.tal.talinterpreter, line 346, in interpret > * Module zope.tal.talinterpreter, line 891, in do_useMacro > * Module zope.tal.talinterpreter, line 346, in interpret > * Module zope.tal.talinterpreter, line 536, in do_optTag_tal > * Module zope.tal.talinterpreter, line 521, in do_optTag > * Module zope.tal.talinterpreter, line 516, in no_tag > * Module zope.tal.talinterpreter, line 346, in interpret > * Module zope.tal.talinterpreter, line 957, in do_defineSlot > * Module zope.tal.talinterpreter, line 346, in interpret > * Module zope.tal.talinterpreter, line 536, in do_optTag_tal > * Module zope.tal.talinterpreter, line 521, in do_optTag > * Module zope.tal.talinterpreter, line 516, in no_tag > * Module zope.tal.talinterpreter, line 346, in interpret > * Module zope.tal.talinterpreter, line 861, in do_defineMacro > * Module zope.tal.talinterpreter, line 346, in interpret > * Module zope.tal.talinterpreter, line 957, in do_defineSlot > * Module zope.tal.talinterpreter, line 346, in interpret > * Module zope.tal.talinterpreter, line 536, in do_optTag_tal > * Module zope.tal.talinterpreter, line 521, in do_optTag > * Module zope.tal.talinterpreter, line 516, in no_tag > * Module zope.tal.talinterpreter, line 346, in interpret > * Module zope.tal.talinterpreter, line 534, in do_optTag_tal > * Module zope.tal.talinterpreter, line 516, in no_tag > * Module zope.tal.talinterpreter, line 346, in interpret > * Module zope.tal.talinterpreter, line 949, in do_defineSlot > * Module zope.tal.talinterpreter, line 346, in interpret > * Module zope.tal.talinterpreter, line 534, in do_optTag_tal > * Module zope.tal.talinterpreter, line 516, in no_tag > * Module zope.tal.talinterpreter, line 346, in interpret > * Module zope.tal.talinterpreter, line 745, in do_insertStructure_tal > * Module Products.PageTemplates.Expressions, line 221, in > evaluateStructure > * Module zope.tales.tales, line 696, in evaluate > *URL: index* > *Line 10, Column 4* > *Expression: <PathExpr standard:'view/getButton'>* > *Names:* > > {'container': <PloneSite at /jornal>, > 'context': <PloneSite at /jornal>, > 'default': <object object at 0xf7c8b528>, > 'here': <PloneSite at /jornal>, > 'loop': {}, > 'nothing': None, > 'options': {'args': (<Products.Five.metaclass.SimpleViewClass from > /opt/Ploneback/zeocluster/src/getpaid.pagseguro/getpaid/pagseguro/browser/templates/pagsegurobutton.pt > object at 0x12ee5fac>,)}, > 'repeat': <Products.PageTemplates.Expressions.SafeMapping object at > 0x12ee6a0c>, > 'request': <HTTPRequest, > URL=http://inverta.org/jornal/@@getpaid-checkout-wizard>, > 'root': <Application at >, > 'template': <ImplicitAcquirerWrapper object at 0x12ee5c4c>, > 'traverse_subpath': [], > 'user': <PropertiedUser 'admin'>, > 'view': <Products.Five.metaclass.SimpleViewClass from > /opt/Ploneback/zeocluster/src/getpaid.pagseguro/getpaid/pagseguro/browser/templates/pagsegurobutton.pt > object at 0x12ee5fac>, > 'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper object > at 0x12ee6d0c>} > > * Module zope.tales.expressions, line 217, in __call__ > * Module Products.PageTemplates.Expressions, line 161, in _eval > * Module Products.PageTemplates.Expressions, line 123, in render > * Module getpaid.pagseguro.browser.pagsegurobutton, line 53, in > getButton > * Module hurry.workflow.workflow, line 238, in fireTransition > * Module zope.event, line 23, in notify > * Module zope.component.event, line 26, in dispatch > * Module zope.component._api, line 130, in subscribers > * Module zope.component.registry, line 290, in subscribers > * Module zope.interface.adapter, line 535, in subscribers > * Module zope.component.event, line 33, in objectEventNotify > * Module zope.component._api, line 130, in subscribers > * Module zope.component.registry, line 290, in subscribers > * Module zope.interface.adapter, line 535, in subscribers > * Module Products.PloneGetPaid.notifications, line 147, in > sendNotification > > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: > ordinal not in range(128) > > Display traceback as text > <http://inverta.org/jornal/error_log/getLogEntryAsText?id=1237143134.210.137841052505> > > > REQUEST > > > form > > -C u'' > > > cookies > > __ac 'NjE2NDZkNjk2ZTozMzQ3MzI3OTMwNGYzNjRj' > _ZopeId '26047026A3yiPgmcWN0' > > > lazy items > > SESSION <bound method SessionDataManager.getSessionData of > <SessionDataManager at /session_data_manager>> > > > other > > TraversalRequestNameStack [] > LANGUAGE 'pt-br' > AUTHENTICATED_USER <PropertiedUser 'admin'> > URL 'http://inverta.org/jornal/@@getpaid-checkout-wizard' > VIRTUAL_URL 'http://inverta.org/jornal/@@getpaid-checkout-wizard' > VirtualRootPhysicalPath ('',) > SERVER_URL 'http://inverta.org' > LANGUAGE_TOOL <Products.PloneLanguageTool.LanguageTool.LanguageBinding > instance at 0x12e2074c> > AUTHENTICATION_PATH '' > _ec_cache {316801676: <Products.PageTemplates.Expressions.ZopeContext > object at 0x12ee612c>} > __ac 'NjE2NDZkNjk2ZTozMzQ3MzI3OTMwNGYzNjRj' > PUBLISHED <Products.Five.metaclass.SimpleViewClass from > /opt/Ploneback/zeocluster/src/getpaid.pagseguro/getpaid/pagseguro/browser/templates/pagsegurobutton.pt > object at 0x12ee5fac> > _pts_is_rtl False > ACTUAL_URL 'http://inverta.org/jornal/@@getpaid-checkout-wizard' > VIRTUAL_URL_PARTS ('http://inverta.org', > 'jornal/@@getpaid-checkout-wizard') > URL0 http://inverta.org/jornal/@@getpaid-checkout-wizard > URL1 http://inverta.org/jornal > URL2 http://inverta.org > BASE0 http://inverta.org > BASE1 http://inverta.org > BASE2 http://inverta.org/jornal > BASE3 http://inverta.org/jornal/@@getpaid-checkout-wizard > > > environ > > HTTP_X_FORWARDED_SERVER 'inverta.org' > HTTP_REFERER > 'http://inverta.org/jornal/vendas/lenin-biografia-ilustrada/@@getpaid-cart-add' > > HTTP_ACCEPT_LANGUAGE 'pt-br,pt;q=0.8,en-us;q=0.5,en;q=0.3' > SERVER_SOFTWARE 'Zope/(Zope 2.10.6-final, python 2.4.5, linux2) > ZServer/1.1 Plone/3.1.7' > SCRIPT_NAME '' > REQUEST_METHOD 'GET' > PATH_INFO > '/VirtualHostBase/http/inverta.org:80//VirtualHostRoot/jornal/@@getpaid-checkout-wizard' > > SERVER_PROTOCOL 'HTTP/1.0' > channel.creation_time 1237143134 > HTTP_ACCEPT_CHARSET 'ISO-8859-1,utf-8;q=0.7,*;q=0.7' > HTTP_USER_AGENT 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.7) > Gecko/2009030516 Ubuntu/9.04 (jaunty) Firefox/3.0.7' > HTTP_COOKIE '__ac="NjE2NDZkNjk2ZTozMzQ3MzI3OTMwNGYzNjRj"; > _ZopeId="26047026A3yiPgmcWN0"' > SERVER_NAME '0.0.0.0' > REMOTE_ADDR '206.196.110.2' > HTTP_VIA '1.1 example.com:3128 (squid/2.6.STABLE18)' > PATH_TRANSLATED > '/VirtualHostBase/http/inverta.org:80/VirtualHostRoot/jornal/@@getpaid-checkout-wizard' > > SERVER_PORT '8080' > HTTP_HOST 'inverta.org' > HTTP_CACHE_CONTROL 'max-age=259200' > HTTP_ACCEPT > 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' > GATEWAY_INTERFACE 'CGI/1.1' > HTTP_X_FORWARDED_FOR '201.29.253.62, 206.196.110.2' > HTTP_X_FORWARDED_HOST 'inverta.org' > HTTP_ACCEPT_ENCODING 'gzip,deflate' > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "getpaid-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en -~----------~----~----~----~------~----~------~--~---
