-
Committer:
John Arbash Meinel
-
Author(s):
Aaron Bentley
-
Date:
2013-03-19 13:31:00 UTC
-
mfrom:
(970.2.7 categories)
-
Revision ID:
john@arbash-meinel.com-20130319133100-jit2emj4fj6orric
Add category list to charms
Added category list to charms to support charmworld, which will display charm
categories. While most charms will have only one, some will fit into multiple
categories, such as Apache, which is both a web server and a proxy.
There will be an official list of categories, but supplying an unofficial
category is a lint error, not a syntax error, so this branch does not address
that. The order of the values is not significant, so in Python terms
categories are a set, not a list, but since none of JSON, BSON and Go has
direct support for sets, a list is used.
This branch also adds tests to ensure that Meta objects can be roundtripped
via BSON.
R=dfc, fwereade, jameinel
CC=
https://codereview.appspot.com/7762043