equal
deleted
inserted
replaced
51 |
51 |
52 |
52 |
53 class IWfView(IWfSharedContent): |
53 class IWfView(IWfSharedContent): |
54 """View interface""" |
54 """View interface""" |
55 |
55 |
|
56 select_context_type = Bool(title=_("Select context type?"), |
|
57 description=_("If 'yes', content type will be extracted from context"), |
|
58 required=True, |
|
59 default=False) |
|
60 |
56 selected_content_types = List(title=_("Content types"), |
61 selected_content_types = List(title=_("Content types"), |
57 description=_("Selected content types; leave empty for all"), |
62 description=_("Selected content types; leave empty for all"), |
58 value_type=Choice(vocabulary='PyAMS content types'), |
63 value_type=Choice(vocabulary='PyAMS content types'), |
59 required=False) |
64 required=False) |
|
65 |
|
66 def get_content_types(self, context): |
|
67 """Get content types for given context""" |
60 |
68 |
61 order_by = Choice(title=_("Order by"), |
69 order_by = Choice(title=_("Order by"), |
62 description=_("Property to use to sort results"), |
70 description=_("Property to use to sort results"), |
63 vocabulary=VIEW_ORDER_VOCABULARY, |
71 vocabulary=VIEW_ORDER_VOCABULARY, |
64 required=True, |
72 required=True, |