changeset 18:611b6df70840

niceification
author casties
date Wed, 03 Aug 2011 21:05:04 +0200
parents ba617e755c56
children bd3025a6a6c0
files MetaDataFolder.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MetaDataFolder.py	Tue Aug 02 18:28:39 2011 +0200
+++ b/MetaDataFolder.py	Wed Aug 03 21:05:04 2011 +0200
@@ -190,11 +190,13 @@
     
     def getCopyrightData(self, path=None, dom=None, recursive=1, all=True):
         """returns contents of copyright tag as dict"""
+        # information is two tags deep - recursive=1
         return self.getXmlPathData('resource/meta/access-conditions/copyright', path=path, dom=dom, recursive=recursive, all=all)
     
-    def getCopyrightFormatted(self, template, path=None, dom=None, data=None, all=True):
+    def getCopyrightFormatted(self, template, path=None, dom=None, data=None, recursive=1, all=True):
         """returns formatted contents of access tag"""
-        return self.getXmlPathFormatted('resource/meta/access-conditions/copyright', template, path=path, dom=dom, data=data, all=all)
+        # information is two tags deep - recursive=1
+        return self.getXmlPathFormatted('resource/meta/access-conditions/copyright', template, path=path, dom=dom, data=data, recursive=recursive, all=all)
     
     def getBibData(self, path=None, dom=None):
         """returns contents of bib tag as dict"""