collective.dancing-0.8.1-py2.4.egg
2008-11-21 14:45:25 ERROR Zope.SiteErrorLog http://.../preview-newsletter.html
Traceback (innermost last):
Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module Products.PDBDebugMode.pdbzope.runcall, line 60, in pdb_runcall
Module ZPublisher.Publish, line 42, in call_object
Module collective.dancing.browser.preview, line 62, in __call__
Module collective.singing.scheduler, line 99, in render_message
Module collective.dancing.composer, line 224, in render
Module string, line 172, in substitute
Module string, line 169, in convert
Module string, line 145, in _invalid
(Pdb) l
140 colno = 1
141 lineno = 1
142 else:
143 colno = i - len(''.join(lines[:-1]))
144 lineno = len(lines)
145 -> raise ValueError('Invalid placeholder in string: line %d, col %d' %
146 (lineno, colno))
147
148 def substitute(self, *args, **kws):
149 if len(args) > 1:
150 raise TypeError('Too many positional arguments')
(Pdb)
(Pdb) lines[-1:]
[u'<p>As its stock market dropped almost 80 percent, Iceland said it drew $']
Replacement stopped after the $ in "Iceland said it drew $273.2 million"
It's bad practise to do a string replace like this on 'open' text that
one has no control over. Especially in a $ dominated world. So I
suppose replaces could be done on header, footer and so on, separately,
and leave the body of the collected text out of this wholesale replace??
Gotta dump'n'run, but may be able to get back to this myself.
Best,
--r.
** Affects: singing-dancing
Importance: Undecided
Status: New
--
$ in collected content causes "Invalid placeholder in string:"
https://bugs.launchpad.net/bugs/300720
You received this bug notification because you are a member of Singing &
Dancing developers, which is the registrant for Singing & Dancing.
Status in Singing & Dancing: New
Bug description:
collective.dancing-0.8.1-py2.4.egg
2008-11-21 14:45:25 ERROR Zope.SiteErrorLog http://.../preview-newsletter.html
Traceback (innermost last):
Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module Products.PDBDebugMode.pdbzope.runcall, line 60, in pdb_runcall
Module ZPublisher.Publish, line 42, in call_object
Module collective.dancing.browser.preview, line 62, in __call__
Module collective.singing.scheduler, line 99, in render_message
Module collective.dancing.composer, line 224, in render
Module string, line 172, in substitute
Module string, line 169, in convert
Module string, line 145, in _invalid
(Pdb) l
140 colno = 1
141 lineno = 1
142 else:
143 colno = i - len(''.join(lines[:-1]))
144 lineno = len(lines)
145 -> raise ValueError('Invalid placeholder in string: line %d, col %d' %
146 (lineno, colno))
147
148 def substitute(self, *args, **kws):
149 if len(args) > 1:
150 raise TypeError('Too many positional arguments')
(Pdb)
(Pdb) lines[-1:]
[u'<p>As its stock market dropped almost 80 percent, Iceland said it drew $']
Replacement stopped after the $ in "Iceland said it drew $273.2 million"
It's bad practise to do a string replace like this on 'open' text that one has no control over. Especially in a $ dominated world. So I suppose replaces could be done on header, footer and so on, separately, and leave the body of the collected text out of this wholesale replace??
Gotta dump'n'run, but may be able to get back to this myself.
Best,
--r.
There were four uses of substitute in composer. Now replaced with
safe_substitute. There may be other instances of substitute in S&D that
need correction.
Committed revision 76316.
--r.
** Changed in: singing-dancing
Assignee: (unassigned) => russf (russf)
Status: New => Fix Committed
--
$ in collected content causes "Invalid placeholder in string:"
https://bugs.launchpad.net/bugs/300720
You received this bug notification because you are a member of Singing &
Dancing developers, which is the registrant for Singing & Dancing.
Status in Singing & Dancing: Fix Committed
--
$ in collected content causes "Invalid placeholder in string:"
https://bugs.launchpad.net/bugs/300720
You received this bug notification because you are a member of Singing &
Dancing developers, which is the registrant for Singing & Dancing.
Status in Singing & Dancing: Fix Committed
> Thanks for the fix.
Needed to be done!
> It would be nice to have a regression test that
> fails without the fix applied and works with it. Adding $ somewhere
> in
> the text of some item in browser.txt should do.\
It's part of the commit.
Checkout "My Bonnie" ;)
--r.
>
>
> --
> $ in collected content causes "Invalid placeholder in string:"
> https://bugs.launchpad.net/bugs/300720
> You received this bug notification because you are a direct subscriber
> of the bug.
Russ Ferriday - Topia Systems - Open Source content management with
Plone and Zope
ru...@topia.com - office: +44 2076 1777588 - mobile: +44 7789 338868 -
skype: ferriday
--
$ in collected content causes "Invalid placeholder in string:"
https://bugs.launchpad.net/bugs/300720
You received this bug notification because you are a member of Singing &
Dancing developers, which is the registrant for Singing & Dancing.
Status in Singing & Dancing: Fix Committed
** Changed in: singing-dancing
Status: Fix Committed => Fix Released
--
$ in collected content causes "Invalid placeholder in string:"
https://bugs.launchpad.net/bugs/300720
You received this bug notification because you are a member of Singing &
Dancing developers, which is the registrant for Singing & Dancing.
Status in Singing & Dancing: Fix Released