git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ff284d
)
content_type='*' is valid for any type of rspec content (advertisement, request or...
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 3 Oct 2011 19:48:26 +0000
(15:48 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 3 Oct 2011 19:48:26 +0000
(15:48 -0400)
sfa/rspecs/version_manager.py
patch
|
blob
|
history
diff --git
a/sfa/rspecs/version_manager.py
b/sfa/rspecs/version_manager.py
index
e588911
..
f53ec6f
100644
(file)
--- a/
sfa/rspecs/version_manager.py
+++ b/
sfa/rspecs/version_manager.py
@@
-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))