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


Reply via email to