content_type='*' is valid for any type of rspec content (advertisement, request or...
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 3 Oct 2011 19:48:26 +0000 (15:48 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 3 Oct 2011 19:48:26 +0000 (15:48 -0400)
sfa/rspecs/version_manager.py

index e588911..f53ec6f 100644 (file)
@@ -32,7 +32,8 @@ class VersionManager:
         for version in self.versions:
             if type is None or type.lower() == version.type.lower():
                 if version_num is None or version_num == version.version:
-                    if content_type is None or content_type.lower() == version.content_type.lower():
+                    if content_type is None or content_type.lower() == version.content_type.lower() \
+                      or version.content_type == '*':
                         retval = version
         if not retval:
             raise InvalidRSpec("No such version format: %s version: %s type:%s "% (type, version_num, content_type))