incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r1404957 - /incubator/bloodhound/trunk/bloodhound_multiproduct/multiproduct/model.py
Date Fri, 02 Nov 2012 12:58:04 GMT
Author: gjm
Date: Fri Nov  2 12:58:04 2012
New Revision: 1404957

URL: http://svn.apache.org/viewvc?rev=1404957&view=rev
Log:
change product to return resources giving the prefix instead of the name - towards #110

Modified:
    incubator/bloodhound/trunk/bloodhound_multiproduct/multiproduct/model.py

Modified: incubator/bloodhound/trunk/bloodhound_multiproduct/multiproduct/model.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_multiproduct/multiproduct/model.py?rev=1404957&r1=1404956&r2=1404957&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_multiproduct/multiproduct/model.py (original)
+++ incubator/bloodhound/trunk/bloodhound_multiproduct/multiproduct/model.py Fri Nov  2 12:58:04
2012
@@ -246,7 +246,7 @@ class Product(ModelBase):
     @property
     def resource(self):
         """Allow Product to be treated as a Resource"""
-        return Resource('product', self.name)
+        return Resource('product', self.prefix)
     
     def delete(self, resources_to=None):
         """ override the delete method so that we can move references to this



Mime
View raw message