--- a/ProjectPyramid/FormSelectionDialog.py Sun Oct 27 22:43:17 2013 +0100 +++ b/ProjectPyramid/FormSelectionDialog.py Tue Oct 29 22:30:48 2013 +0100 @@ -29,7 +29,8 @@ self.setupUi(self) self.__templates = { - "html5": [self.trUtf8("Standard HTML 5 template"), + "html5": [ + self.trUtf8("Standard HTML 5 template"), '''<!DOCTYPE html>\n''' ''' <head>\n''' ''' <title></title>\n''' @@ -40,8 +41,9 @@ ''' <body>\n''' ''' </body>\n''' '''</html>\n''' - ], - "simple": [self.trUtf8("Standard HTML template"), + ], + "simple": [ + self.trUtf8("Standard HTML template"), '''<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"\n''' ''' "http://www.w3.org/TR/html4/strict.dtd">\n''' ''' <head>\n''' @@ -53,29 +55,40 @@ ''' <body>\n''' ''' </body>\n''' '''</html>\n''' - ], - "complex": [self.trUtf8("Chameleon template"), - '''<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n''' + ], + "complex": [ + self.trUtf8("Chameleon template"), + '''<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0''' + ''' Strict//EN"\n''' ''' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n''' - '''<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"\n''' + '''<html xmlns="http://www.w3.org/1999/xhtml"''' + ''' xml:lang="en"\n''' ''' xmlns:tal="http://xml.zope.org/namespaces/tal">\n''' - ''' xmlns:metal="http://xml.zope.org/namespaces/metal">\n''' + ''' xmlns:metal="http://xml.zope.org/namespaces/''' + '''metal">\n''' '''<head>\n''' - ''' <title>The Pyramid Web Application Development Framework</title>\n''' + ''' <title>The Pyramid Web Application Development''' + ''' Framework</title>\n''' ''' <meta http-equiv="Content-Type"\n''' ''' content="text/html;charset=UTF-8"/>\n''' - ''' <meta name="keywords" content="python web application" />\n''' - ''' <meta name="description" content="pyramid web application" />\n''' + ''' <meta name="keywords" content="python web application"''' + ''' />\n''' + ''' <meta name="description" content="pyramid web''' + ''' application" />\n''' ''' <link rel="shortcut icon"\n''' - ''' href="${request.static_url('site:static/favicon.ico')}" />\n''' + ''' href="${request.static_url('site:static/''' + '''favicon.ico')}" />\n''' ''' <link rel="stylesheet"\n''' - ''' href="${request.static_url('site:static/pylons.css')}"\n''' + ''' href="${request.static_url('site:static/''' + '''pylons.css')}"\n''' ''' type="text/css" media="screen" charset="utf-8" />\n''' ''' <link rel="stylesheet"\n''' - ''' href="http://static.pylonsproject.org/fonts/nobile/stylesheet.css"\n''' + ''' href="http://static.pylonsproject.org/fonts/nobile/''' + '''stylesheet.css"\n''' ''' media="screen" />\n''' ''' <link rel="stylesheet"\n''' - ''' href="http://static.pylonsproject.org/fonts/neuton/stylesheet.css"\n''' + ''' href="http://static.pylonsproject.org/fonts/neuton/''' + '''stylesheet.css"\n''' ''' media="screen" />\n''' ''' <!--[if lte IE 6]>\n''' ''' <link rel="stylesheet"\n''' @@ -93,12 +106,14 @@ ''' </div>\n''' ''' </div>\n''' ''' <div id="footer">\n''' - ''' <div class="footer">© Copyright 2012, Somebody.</div>\n''' + ''' <div class="footer">© Copyright 2012, Somebody.''' + '''</div>\n''' ''' </div>\n''' '''</body>\n''' '''</html>\n''' - ], - "sections": [self.trUtf8("Mako template with sections"), + ], + "sections": [ + self.trUtf8("Mako template with sections"), '''## -*- coding: utf-8 -*-\n''' '''\n''' '''<!DOCTYPE html>\n''' @@ -123,10 +138,12 @@ '''<%def name="header()"><a name="top"></a></%def>\n''' '''<%def name="tabs()"></%def>\n''' '''<%def name="menu()"></%def>\n''' - '''<%def name="heading()"><h1>${c.heading or 'No Title'}</h1></%def>\n''' + '''<%def name="heading()"><h1>${c.heading or 'No Title'}''' + '''</h1></%def>\n''' '''<%def name="breadcrumbs()"></%def>\n''' - '''<%def name="footer()"><p><a href="#top">Top ^</a></p></%def>\n''' - ], + '''<%def name="footer()"><p><a href="#top">Top ^</a></p>''' + '''</%def>\n''' + ], } self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok)