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

Subscribers

People subscribed via source and target branches