]> gitweb.michael.orlitzky.com - dead/pictar.git/blobdiff - Pictar.py
Updated XmlDataParser to use the Python 2.5 ElementTree interface.
[dead/pictar.git] / Pictar.py
index 67a056fb42a08dc5e0e4ab5df947208c4e68fea7..d889c1e0a3e6cf91dbaa09cf396a576ebffbca37 100644 (file)
--- a/Pictar.py
+++ b/Pictar.py
@@ -31,9 +31,11 @@ class Pictar:
 
 
     def GetItemPaths(self):
-        # Create a list of the item paths based on which
-        # of the files in the target directory match at least
-        # one of the item regular expressions.
+        """
+        Create a list of the item paths based on which
+        of the files in the target directory match at least
+        one of the item regular expressions.
+        """
         target_dir = Configuration.GetAbsTargetDir()
         
         item_paths = []
@@ -52,7 +54,7 @@ class Pictar:
 
 
     def GetItemData(self, item_paths):
-        # Build the pictar markup
+        """ Build the pictar markup. """
         item_data = ""
         current_item_number = 0
         
@@ -76,7 +78,7 @@ class Pictar:
 
 
     def GetPageData(self, item_data):
-        # Fill in the template with our markup
+        """ Fill in the template with our markup. """
         stylesheet_file_name = Configuration.GetStyleSheetPath()
         page_template = self.template_parser.GetPageTemplate()
         page_data = page_template.substitute(stylesheet=stylesheet_file_name,