Merge lp:~samstoll1/tiqit/baseinfo into lp:tiqit

Proposed by Sam Stoll
Status: Needs review
Proposed branch: lp:~samstoll1/tiqit/baseinfo
Merge into: lp:tiqit
Diff against target: 82 lines (+0/-67)
2 files modified
scripts/tiqit/__init__.py (+0/-1)
scripts/tiqit/baseinfo.py (+0/-66)
To merge this branch: bzr merge lp:~samstoll1/tiqit/baseinfo
Reviewer Review Type Date Requested Status
Matthew Earl Pending
Review via email: mp+296113@code.launchpad.net

Commit message

Remove baseinfo plugin, as this causes extra 'Bug' option to appear when selecting between bug types.

Description of the change

Remove baseinfo plugin, as this causes extra 'Bug' option to appear when selecting between bug types (e.g. in submit page). Can be tested at http://wwwin-ensoft/~sastoll/endets/dev/core/.

To post a comment you must log in.

Unmerged revisions

14. By Sam Stoll <email address hidden>

Remove baseinfo plugin, as this causes extra 'Bug' option to appear when selecting between bug types.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'scripts/tiqit/__init__.py'
2--- scripts/tiqit/__init__.py 2016-04-21 11:03:06 +0000
3+++ scripts/tiqit/__init__.py 2016-05-31 15:04:14 +0000
4@@ -457,7 +457,6 @@
5 plugins.load('tiqit.helppages')
6 plugins.load('tiqit.recents')
7 plugins.load('tiqit.summary')
8- plugins.load('tiqit.baseinfo')
9
10 for plugin in cfg.cfg.options('plugins'):
11 if cfg.cfg.getboolean('plugins', plugin):
12
13=== removed file 'scripts/tiqit/baseinfo.py'
14--- scripts/tiqit/baseinfo.py 2014-11-10 14:11:37 +0000
15+++ scripts/tiqit/baseinfo.py 1970-01-01 00:00:00 +0000
16@@ -1,66 +0,0 @@
17-#
18-# Copyright (c) 2014 Martin Morrison
19-#
20-# Permission is hereby granted, free of charge, to any person obtaining a copy
21-# of this software and associated documentation files (the "Software"), to deal
22-# in the Software without restriction, including without limitation the rights
23-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
24-# copies of the Software, and to permit persons to whom the Software is
25-# furnished to do so, subject to the following conditions:
26-#
27-# The above copyright notice and this permission notice shall be included in
28-# all copies or substantial portions of the Software.
29-#
30-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
31-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
32-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
33-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
34-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
35-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
36-# THE SOFTWARE.
37-#
38-
39-"""
40-Built-in plugin to define a base (default) class and bugview.
41-"""
42-
43-from tiqit import *
44-from frontend.views import TiqitBugView
45-from fields import TiqitField
46-
47-class BaseView(TiqitBugView):
48- def getNewBugSections(self, project):
49- return [
50- ('General', 'General Information', 'new'),
51- ]
52-
53- def getViewBugSections(self, project):
54- return [
55- ('General', 'General Information', 'general'),
56- ('Extra', 'Extra Information', 'extras'),
57- ]
58-
59-def loadBugViews():
60- return [BaseView('bug', 'Bug')]
61-
62-def load_data_defaults(key):
63- print "Loading data defaults for", key
64- prefix = Config().section('backends').items()[0][0]
65- if key == 'tiqit.classes':
66- database.set('tiqit.classes', [prefix + '.default'])
67- elif key == 'tiqit.projmap':
68- database.set('tiqit.projmap',
69- {prefix + '.default': prefix + '.default'})
70- elif key == 'tiqit.fields':
71- database.set('tiqit.fields', {
72- 'Identifier': TiqitField("Identifier", "Identifier",
73- ("Identifier", "Headline"), "Identifier", "Identifier",
74- "DefectID", 0, 0, True),
75- 'Status': TiqitField("Status", "Status", ("Status",), "Status", "St",
76- "Text", 0, 0, True),
77- 'Component': None,
78- 'Severity': None,
79- 'Headline': None,
80- 'Summary': None,
81- 'Project': None,
82- })

Subscribers

People subscribed via source and target branches