forked from eea/eea.faceted.vocabularies
-
Notifications
You must be signed in to change notification settings - Fork 4
/
README.txt
69 lines (52 loc) · 2.54 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
EEA faceted vocabularies
========================
Vocabularies defined to be used within eea faceted packages
>>> from zope.schema.interfaces import IVocabularyFactory
>>> from zope.component import getUtility
eea.faceted.vocabularies.ObjectProvides
---------------------------------------
Vocabulary from catalog index object_provides uniqueValues.
>>> voc = getUtility(IVocabularyFactory, 'eea.faceted.vocabularies.ObjectProvides')
>>> voc
<eea.faceted.vocabularies.catalog.ObjectProvidesVocabulary object at ...>
eea.faceted.vocabularies.PortalTypes
------------------------------------
Same as plone.app.vocabularies.PortalTypes
>>> voc = getUtility(IVocabularyFactory, 'eea.faceted.vocabularies.PortalTypes')
>>> voc
<eea.faceted.vocabularies.types.PortalTypesVocabulary object at ...>
eea.faceted.vocabularies.FacetedPortalTypes
-------------------------------------------
This vocabulary adds to plone.app.vocabularies.UserFriendlyTypes custom portal
types mapping added within portal_faceted tool.
>>> voc = getUtility(IVocabularyFactory, 'eea.faceted.vocabularies.FacetedPortalTypes')
>>> voc
<eea.faceted.vocabularies.faceted.FacetedPortalTypesVocabulary object at ...>
eea.faceted.vocabularies.WidgetPositions
----------------------------------------
Faceted widgets possible positions
>>> voc = getUtility(IVocabularyFactory, 'eea.faceted.vocabularies.WidgetPositions')
>>> voc
<eea.faceted.vocabularies.position.WidgetPositions object at ...>
>>> [term.value for term in voc()]
['top', 'left', 'center', 'right', 'bottomcenter', 'bottom']
eea.faceted.vocabularies.WidgetSections
---------------------------------------
Faceted widgets possible sections
>>> voc = getUtility(IVocabularyFactory, 'eea.faceted.vocabularies.WidgetSections')
>>> voc
<eea.faceted.vocabularies.section.WidgetSections object at ...>
>>> [term.value for term in voc()]
['default', 'advanced']
eea.faceted.vocabularies.SortingCatalog
---------------------------------------
Catalog indexes including sorting ones
>>> voc = getUtility(IVocabularyFactory, 'eea.faceted.vocabularies.SortingCatalogIndexes')
>>> voc
<eea.faceted.vocabularies.catalog.SortingCatalogIndexesVocabulary object at ...>
eea.faceted.vocabularies.SortingCatalog
---------------------------------------
Catalog indexes including sorting ones
>>> voc = getUtility(IVocabularyFactory, 'eea.faceted.vocabularies.AutocompleteVocabularies')
>>> voc
<eea.faceted.vocabularies.autocomplete.AutocompleteVocabularies object at ...>