Commits

Anonymous committed 95c1882

added option to add an additional custom identify description

Comments (0)

Files changed (2)

             '%s'
             '<URL>http://moai.infrae.com</URL>'
             '</toolkit>' % version)
-            
+
+        if hasattr(self.config, 'get_identify_description'):
+            additional_description = self.config.get_identify_description()
+            if additional_description:
+                result.add_description(additional_description)
         return result
 
     def listMetadataFormats(self, identifier=None):

src/moai/server.py

             os.path.join(self.base_asset_path,
                          internal_id,
                          asset['filename']))
+
+    def get_identify_description(self):
+        pass
+