Including a vocabulary source in dexterity xml

Is there a TTW way to include one of the common plone vocabularies in Dexterity.
I was hoping it was as simple as doing this in the dexterity modeleditor, but of course it isn't:

<model xmlns:form="" xmlns:i18n="" xmlns:lingua="" xmlns:marshal="" xmlns:security="" xmlns:users="" xmlns="">
    <field name="group" type="zope.schema.Choice">

If you want to show vocabulary values in a choice field, you have to use the 'vocabulary' tag:

  <field name="system_type" type="zope.schema.Choice">
    <title i18n:translate="">System Type</title>
    <description i18n:translate="">System Type of this solution</description>

And if you want it to be a multiple selection list with a checkbox field you need to use a "Set" with the relevant widget information:

  <field name="load_type" type="zope.schema.Set" form:widget="z3c.form.browser.checkbox.CheckBoxFieldWidget">
    <title i18n:translate="">Load type</title>
    <description i18n:translate="">Load type used in this project</description>
    <value_type type="zope.schema.Choice">
1 Like