manifoldapi now expects the URL as an argument to its constructor
[myslice.git] / unfold / page.py
index a9228ec..0ac131b 100644 (file)
@@ -117,7 +117,9 @@ class Page:
 
         metadata_auth = {'AuthMethod':'anonymous'}
 
-        metadata = MetaData (metadata_auth)
+        from myslice.settings import config
+        url = config.manifold_url()
+        metadata = MetaData (url, metadata_auth)
         metadata.fetch(self.request)
         # store it for next time
         manifold['metadata']=metadata