ProjectPyramid/FormSelectionDialog.py

changeset 19
f4adfe6e51b0
parent 18
c27d4435675a
child 34
d20f7218d53c
diff -r c27d4435675a -r f4adfe6e51b0 ProjectPyramid/FormSelectionDialog.py
--- a/ProjectPyramid/FormSelectionDialog.py	Thu Aug 30 15:36:06 2012 +0200
+++ b/ProjectPyramid/FormSelectionDialog.py	Thu Aug 30 17:18:56 2012 +0200
@@ -17,7 +17,7 @@
     """
     Class implementing a dialog to select the template type.
     """
-    def __init__(self, parent = None):
+    def __init__(self, parent=None):
         """
         Constructor
         
@@ -27,7 +27,7 @@
         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 +38,8 @@
                 '''  <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,8 +51,8 @@
                 '''  <body>\n'''
                 '''  </body>\n'''
                 '''</html>\n'''
-                ], 
-            "complex" : [self.trUtf8("Chameleon template"), 
+                ],
+            "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'''
@@ -95,8 +95,8 @@
                 '''  </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'''
@@ -124,7 +124,7 @@
                 '''<%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'''
-                ], 
+                ],
         }
         
         self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok)

eric ide

mercurial