PLone 4.0 trunk - load_site.py: error in literal at line 248

Bug #501265 reported by Mirto Silvio Busico
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zope 2
Fix Released
Undecided
Unassigned

Bug Description

In load_site.py I receive this error.
It seems that a newline is not escaped.
From file:
       else:
           body = ("<html><head><title><dtml-var title_or_id></title> (<===here the error? )
                    </head><body bgcolor="#FFFFFF">\n\n" +
                    body + "\n\n</body></html>")

From log:
src/Record/_Record.c:425: warning: initialization from incompatible pointer type
SyntaxError: ('EOL while scanning string literal', ('build/bdist.linux-x86_64/egg/Zope2/utilities/load_site.py', 248, 70, ' body = ("<html><head><title><dtml-var title_or_id></title>\n'))
SyntaxError: ('EOL while scanning string literal', ('/My/SW/Plone/for_plone4/plone40devel/eggs/tmpdUIAud/Zope2-2.12.2-py2.6-linux-x86_64.egg/Zope2/utilities/load_site.py', 248, 70, '
body = ("<html><head><title><dtml-var title_or_id></title>\n'))

Source taken from:
https://svn.plone.org/svn/plone/buildouts/plone-coredev/branches/4.0/
at revision: 32719

Revision history for this message
Maurits van Rees (maurits-vanrees) wrote :

The bug does not trigger for me, but I do see the SyntaxError. This has been fixed by Hanno last week in r106985. Should be available in Zope2 2.12.3 when that comes out.

Changed in zope2:
status: New → Fix Committed
Changed in zope2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.