changeset 34:460c286c252e

debugging
author casties
date Mon, 07 Jan 2013 18:45:34 +0100
parents 1f845c76dad3
children f6a8055f6798
files MetaData.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MetaData.py	Tue Dec 18 19:25:02 2012 +0100
+++ b/MetaData.py	Mon Jan 07 18:45:34 2013 +0100
@@ -296,7 +296,7 @@
         return mappedData
     
     def getDCMappedData(self, data, allFields=False):
-        """returns dict with DC keys and data form data"""
+        """returns dict with DC keys and data from data"""
         fields = self.getMapFields(data)
         dcData = {}
         for bk in fields.keys():
@@ -319,7 +319,7 @@
     def getFormatted(self, template, path=None, dom=None, data=None, xdata=None, allFields=False):
             """returns string with document data formatted according to template.
                gets data from server or dom or pre-parsed data."""
-            logging.debug("getFormatted(template=%s)"%(template))
+            logging.debug("getFormatted(template=%s, allFields=%s)"%(template,allFields))
                         
             # get contents of tag
             if data is None:
@@ -348,12 +348,12 @@
             else:
                 fields = {}
             
-            #logging.debug(tp)    
+            #logging.debug("getFormatted: md=%s"%(repr(data)))    
             return tp(mdmap=fields, md=data, mdx=xdata)
 
 
     def correctPath(self,path,remove=None,prefix=None,cut=0):
-        """convinience method um einen pfad zu veraendern"""
+        """convenience method um einen pfad zu veraendern"""
         if remove is not None:
             path=path.replace(remove,'')
         if prefix is not None: