Error after succesfully sending checkout confirmation email

0 views
Skip to first unread message

volkerJaenisch

unread,
May 4, 2009, 2:36:13 PM5/4/09
to easyshop, inq...@inqbus.de
Hi Kai!

First of all many thanks for this wonderful plone product! Saw your
Talk at DZUG 2008 now have the time to test this cool piece of
software.

After performing the checkout of an shopping cart the confirmation
EMail arrives.

But easyShop raises the following error that prevents the order object
to be created.

Module zope.interface.adapter, line 535, in subscribers
Module easyshop.order.subscribers.mailing, line 28, in sendOrderMail
Module easyshop.order.subscribers.mailing, line 107, in
mailOrderReceived
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.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 745, in do_insertStructure_tal
Module Products.PageTemplates.Expressions, line 221, in
evaluateStructure
Module zope.tales.tales, line 696, in evaluate
- URL: index
- Line 347, Column 12
- Expression: <PathExpr standard:'view/getCancellationInstruction'>
- Names:
{'container': <Order at /testshop/sodaglasur/orders/
1241460191417>,
'context': <Order at /testshop/sodaglasur/orders/
1241460191417>,
'default': <object object at 0x7f7261488200>,
'here': <Order at /testshop/sodaglasur/orders/1241460191417>,
'loop': {},
'nothing': None,
'options': {'args': (<Products.Five.metaclass.SimpleViewClass
from /home/volker/workspace/easyshop/easyshop.buildout/src/
easyshop.order/easyshop/order/browser/mail_order_received.pt object at
0xb231d10>,)},
'repeat': <Products.PageTemplates.Expressions.SafeMapping
object at 0xa5cdd40>,
'request': <HTTPRequest, URL=http://localhost:8080/testshop/
sodaglasur/checkout-order-preview>,
'root': <Application at >,
'template': <ImplicitAcquirerWrapper object at 0xa02be10>,
'traverse_subpath': [],
'user': <SpecialUser 'Anonymous User'>,
'view': <Products.Five.metaclass.SimpleViewClass from /home/
volker/workspace/easyshop/easyshop.buildout/src/easyshop.order/
easyshop/order/browser/mail_order_received.pt object at 0xb231d10>,
'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper
object at 0xa9c0090>}
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 easyshop.order.browser.mail_order_received, line 35, in
getCancellationInstruction
AttributeError: 'NoneType' object has no attribute 'getText'


I suppose that there is some Information e.g. the
"CancellationInstruction" whatever this is which is missing in my
site.

System is a actual SVN-Checkout with no modifications at all running
in a virtual python environment to suppress side effects.

Cheers,

Volker

Thomas Massmann

unread,
May 4, 2009, 2:44:20 PM5/4/09
to easyshop, inq...@inqbus.de
Hi Volker,

there's an InformationPage missing (with id "rueckgabebelehrung"), see
easyshop.order.browser.mail_order_received.py. It seems like this one
is not created with the "terms and conditions" during setup.

So just create one with that id and everything is fine.

Cheers,
Thomas

volkerJaenisch

unread,
May 4, 2009, 6:40:28 PM5/4/09
to easyshop
Thank you Thomas!

On 4 Mai, 20:44, Thomas Massmann <tho...@it-spir.it> wrote:
> there's an InformationPage missing (with id "rueckgabebelehrung"), see
> easyshop.order.browser.mail_order_received.py. It seems like this one
> is not created with the "terms and conditions" during setup.
>
> So just create one with that id and everything is fine.

Email is now working and the orders are generated properly.
But the content of the email order is now a bit to demmelhuber-
spezific :-)

Quoting the confirmation email:
"""Subject: Bestellbestätigung Demmelhuber Holz & Raum

Demmelhuber

Sehr geehrte/r Volker Jaenisch,

vielen Dank für Ihre Bestellung bei www.demmelhuber.net. Hiermit
erhalten Sie Ihre Bestellbestätigung: """

@Kai: Is this hardcoded ? Are there any plans to make this part more
generically?

Cheers

Volker
Reply all
Reply to author
Forward
0 new messages