equal
deleted
inserted
replaced
80 settings = IViewTagsSettings(self.context) |
80 settings = IViewTagsSettings(self.context) |
81 # check tags |
81 # check tags |
82 tags = settings.get_tags_index(context) |
82 tags = settings.get_tags_index(context) |
83 if tags: |
83 if tags: |
84 yield Any(catalog['tags'], tags) |
84 yield Any(catalog['tags'], tags) |
|
85 elif settings.select_context_tags: |
|
86 yield None |
85 |
87 |
86 |
88 |
87 @adapter_config(name='tags', context=SearchFolderQuery, provides=IViewUserQuery) |
89 @adapter_config(name='tags', context=SearchFolderQuery, provides=IViewUserQuery) |
88 class SearchFolderTagQuery(ContextAdapter): |
90 class SearchFolderTagQuery(ContextAdapter): |
89 """Search folder tags query""" |
91 """Search folder tags query""" |
154 settings = IViewThemesSettings(self.context) |
156 settings = IViewThemesSettings(self.context) |
155 # check themes |
157 # check themes |
156 themes = settings.get_themes_index(context) |
158 themes = settings.get_themes_index(context) |
157 if themes: |
159 if themes: |
158 yield Any(catalog['themes'], themes) |
160 yield Any(catalog['themes'], themes) |
|
161 elif settings.select_context_themes: |
|
162 yield None |
159 |
163 |
160 |
164 |
161 # |
165 # |
162 # Collections management |
166 # Collections management |
163 # |
167 # |
207 settings = IViewCollectionsSettings(self.context) |
211 settings = IViewCollectionsSettings(self.context) |
208 # check collections |
212 # check collections |
209 collections = settings.get_collections_index(context) |
213 collections = settings.get_collections_index(context) |
210 if collections: |
214 if collections: |
211 yield Any(catalog['collections'], collections) |
215 yield Any(catalog['collections'], collections) |
|
216 elif settings.select_context_collections: |
|
217 yield None |