ProjectPyramid/FormSelectionDialog.py

changeset 54
71c83a661c83
parent 34
d20f7218d53c
child 57
e654970c913e
--- a/ProjectPyramid/FormSelectionDialog.py	Sat Sep 28 13:34:57 2013 +0200
+++ b/ProjectPyramid/FormSelectionDialog.py	Fri Oct 25 18:51:52 2013 +0200
@@ -27,7 +27,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'''
@@ -38,8 +39,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'''
@@ -51,29 +53,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'''
@@ -91,12 +104,14 @@
                 '''    </div>\n'''
                 '''  </div>\n'''
                 '''  <div id="footer">\n'''
-                '''    <div class="footer">&copy; Copyright 2012, Somebody.</div>\n'''
+                '''    <div class="footer">&copy; 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'''
@@ -121,10 +136,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)

eric ide

mercurial