renamed some class variables
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Fri, 2 Sep 2011 20:52:08 +0000 (16:52 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Fri, 2 Sep 2011 20:52:08 +0000 (16:52 -0400)
sfa/rspecs/versions/pgv2.py
sfa/rspecs/versions/sfav1.py

index 9504d3a..b4a9dea 100644 (file)
@@ -1,8 +1,8 @@
 from sfa.rspecs.rspec_elements import RSpecElement, RSpecElements
 
 class PGv2:
-    format = 'ProtoGENI'
-    type = '*'
+    type = 'ProtoGENI'
+    content_type = '*'
     version = '2'
     schema = 'http://www.protogeni.net/resources/rspec/2/ad.xsd' 
     namespaces = { 
@@ -19,9 +19,11 @@ class PGv2:
 
 class PGv2Ad(PGv2):
     schema = 'http://www.protogeni.net/resources/rspec/2/ad.xsd'
+    content_type = 'advertisement'
 
 class PGv2Manifest(PGv2):
     schema = 'http://www.protogeni.net/resources/rspec/2/manifest.xsd'
+    content_type = 'manifest'
 
 if __name__ == '__main__':
     from sfa.rspecs.rspec import RSpec
index 05538cc..6903871 100644 (file)
@@ -1,8 +1,8 @@
 from sfa.rspecs.rspec_elements import RSpecElement, RSpecElements
 
 class SFAv1:
-    format = 'SFA'
-    type = '*'
+    type = 'SFA'
+    content_type = '*'
     version = '1'
     schema = None
     namespaces = {}