summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Anthony Giusti <kgiusti@apache.org>2010-09-22 12:48:00 +0000
committerKenneth Anthony Giusti <kgiusti@apache.org>2010-09-22 12:48:00 +0000
commitf678b6a6ade7074ca94e75aacccf3f8b9e9d51cd (patch)
tree671b99a00a17eedfe74e85a73d7eb205fd074c6b
parent2bc0783ee433cc62883dfb5bf95fda889cb1aa83 (diff)
downloadqpid-python-f678b6a6ade7074ca94e75aacccf3f8b9e9d51cd.tar.gz
clarify a comment
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@999916 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-xcpp/managementgen/qmfgen/schema.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/managementgen/qmfgen/schema.py b/cpp/managementgen/qmfgen/schema.py
index ec0ccc3462..f01d5ee9b2 100755
--- a/cpp/managementgen/qmfgen/schema.py
+++ b/cpp/managementgen/qmfgen/schema.py
@@ -1315,7 +1315,9 @@ class SchemaClass:
def genPrimaryKey (self, stream, variables):
first = 1
for prop in self.properties:
- if prop.getName() != "vhostRef": # Limit how deep the v2Key strings get
+ # deliberately leave out the "vhostRef" fields since there's only one vhost,
+ # this serves to shorten the keys without compromising uniqueness
+ if prop.getName() != "vhostRef":
if prop.isIndex == 1:
if first:
first = None