newsletter-stats.html with wrong URLs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Singing & Dancing |
New
|
Undecided
|
Unassigned |
Bug Description
For
we choose "Send Newsletter".
In http://
we choose "Execute" for this particular newsletter which produces:
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 plone.z3cform.
* Module Shared.
* Module Shared.
* Module Products.
* Module Products.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tal.
* Module zope.tales.tales, line 696, in evaluate
URL: controlpanel
Line 10, Column 4
Expression: <PathExpr standard:
Names:
{'container': <ChannelContainer at /gkz/portal_
'context': <ChannelContainer at /gkz/portal_
'default': <object object at 0xb7cf3528>,
'here': <ChannelContainer at /gkz/portal_
'loop': {},
'nothing': None,
'options': {'args': ()},
'repeat': <Products.
'request': <HTTPRequest, URL=http://
'root': <Application at >,
'template': <ImplicitAcquir
'user': <PropertiedUser 'admin'>,
'view': <Products.
'views': <zope.app.
* Module zope.tales.
* Module Products.
* Module Products.
* Module plone.z3cform.
* Module plone.z3cform.
* Module z3c.form.form, line 189, in __call__
* Module plone.z3cform.
* Module plone.z3cform.
* Module z3c.form.form, line 186, in update
* Module z3c.form.action, line 99, in execute
* Module z3c.form.button, line 302, in __call__
* Module z3c.form.button, line 170, in __call__
* Module collective.
* Module collective.
* Module collective.
* Module collective.
* Module OFS.Traversable, line 301, in restrictedTraverse
* Module OFS.Traversable, line 269, in unrestrictedTra
_
AttributeError: genderkompetenz
First approach was recataloging the whole site which did not help.
Debugging _assemble_
(Pdb) context_path
'/gkz/aktuelles
(Pdb) list
43 override_vars = {}
44 queued = 0
45 site = getSite()
46 request = site.REQUEST
47 import pdb; pdb.set_trace()
48 -> context = site.restricted
49 for path in channel_paths:
50 channel = site.restricted
51 assembler = collective.
52 queued += assembler(
53 request, (FullFormatWrap
(Pdb) print site
<PloneSite at gkz>
(Pdb) site.aktuelles
<ATFolder at /gkz/aktuelles>
(Pdb) site.aktuelles.
<ATFolder at /gkz/aktuelles/
(Pdb) site.aktuelles.
['abgelaufen', '10_2008', '01_2007', '05_2009', '08_2007', '09_2009', '07_2009', '11_2007', '04_2008', '12_2007', '04_2009', '01_2009', '12_2009', '06_2008', '06_2009', '07_2007', '11_2009', '01_2008', '10_2009', '06_2007', '02_2007', '02_2009', '11_2008', '05_2008', 'eingetragen', '04_2007', '08_2009', 'ausgetragen', '8_maerz', '12_2006', '12_2008', 'weihnachten_2008', '03_2009', '09_2007', 'index.html', '03_2008', '07_2008', '05_2007', '10_2007', '2008', '08_2008', '09_2008', '02_2008', '03_2007', '2007', 'genderkompeten
So appearently the 'context_path' is completely wrong and does not reflect the location of the real location
under
Wtf?
I suspect you moved the "genderkompeten zmail-04- 2010" object after "Send Newsletter" and before "Execute". S&D saves the path to the object and not a UID or such.