Mercurial > libervia-web
comparison src/pages/tickets/new/page_meta.py @ 976:0f676f09404b
pages (tickets/new): ignore milestone and priority on new ticket (those field should be set by node owner)
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 11 Nov 2017 18:57:01 +0100 |
parents | 2e75dc986e03 |
children | d0de2a98e852 |
comparison
equal
deleted
inserted
replaced
975:75166ac3e0cc | 976:0f676f09404b |
---|---|
20 service, node = data.get(u'service', u''), data.get(u'node', u'') | 20 service, node = data.get(u'service', u''), data.get(u'node', u'') |
21 profile = self.getProfile(request) | 21 profile = self.getProfile(request) |
22 schema = yield self.host.bridge.ticketsSchemaGet(service.full(), node, profile) | 22 schema = yield self.host.bridge.ticketsSchemaGet(service.full(), node, profile) |
23 data['schema'] = schema | 23 data['schema'] = schema |
24 # following fields are handled in backend | 24 # following fields are handled in backend |
25 ignore = ('reporter', 'created', 'updated', 'comments_uri', 'status') | 25 ignore = ('reporter', 'created', 'updated', 'comments_uri', 'status', 'milestone', 'priority') |
26 xmlui_obj = template_xmlui.create(self.host, schema, ignore=ignore) | 26 xmlui_obj = template_xmlui.create(self.host, schema, ignore=ignore) |
27 try: | 27 try: |
28 # small trick to get a one line text input instead of the big textarea | 28 # small trick to get a one line text input instead of the big textarea |
29 xmlui_obj.widgets[u'labels'].type = u'string' | 29 xmlui_obj.widgets[u'labels'].type = u'string' |
30 except KeyError: | 30 except KeyError: |