7675.916.98
by Henning Eggers
Merged db-stable at r10026 (recife roll-back) but without accepting the changes. |
1 |
# Copyright 2009-2010 Canonical Ltd. This software is licensed under the
|
8687.15.17
by Karl Fogel
Add the copyright header block to the rest of the files under lib/lp/. |
2 |
# GNU Affero General Public License version 3 (see the file LICENSE).
|
3 |
||
4983.1.2
by Curtis Hovey
Added pylint exceptions to database classes. |
4 |
# pylint: disable-msg=E0611,W0212
|
2396
by Canonical.com Patch Queue Manager
[r=spiv] launchpad support tracker |
5 |
|
3691.398.18
by Francis J. Lacoste
Rename interfaces. |
6 |
"""SQLBase implementation of IQuestionBug."""
|
3691.109.8
by Francis J. Lacoste
Make Ticket implement IBugLinkTarget. Remove IBugLinkgTarget declarations |
7 |
|
2396
by Canonical.com Patch Queue Manager
[r=spiv] launchpad support tracker |
8 |
__metaclass__ = type |
9 |
||
3691.398.19
by Francis J. Lacoste
Rename most remaining classes (views, database, authorizations, notifications, scripts.) |
10 |
__all__ = ['QuestionBug'] |
2396
by Canonical.com Patch Queue Manager
[r=spiv] launchpad support tracker |
11 |
|
11403.1.4
by Henning Eggers
Reformatted imports using format-imports script r32. |
12 |
from sqlobject import ForeignKey |
2396
by Canonical.com Patch Queue Manager
[r=spiv] launchpad support tracker |
13 |
from zope.interface import implements |
14 |
||
11403.1.4
by Henning Eggers
Reformatted imports using format-imports script r32. |
15 |
from canonical.database.sqlbase import SQLBase |
11787.1.3
by Curtis Hovey
deglobbed coop. |
16 |
from lp.coop.answersbugs.interfaces import IQuestionBug |
2396
by Canonical.com Patch Queue Manager
[r=spiv] launchpad support tracker |
17 |
|
18 |
||
3691.398.19
by Francis J. Lacoste
Rename most remaining classes (views, database, authorizations, notifications, scripts.) |
19 |
class QuestionBug(SQLBase): |
3691.398.21
by Francis J. Lacoste
Rename all attributes and variables. |
20 |
"""A link between a question and a bug."""
|
2396
by Canonical.com Patch Queue Manager
[r=spiv] launchpad support tracker |
21 |
|
3691.398.18
by Francis J. Lacoste
Rename interfaces. |
22 |
implements(IQuestionBug) |
2396
by Canonical.com Patch Queue Manager
[r=spiv] launchpad support tracker |
23 |
|
4294.2.1
by Curtis Hovey
Reformatted to standards. |
24 |
_table = 'QuestionBug' |
2396
by Canonical.com Patch Queue Manager
[r=spiv] launchpad support tracker |
25 |
|
3881.2.1
by Francis J. Lacoste
Rename table objects. |
26 |
question = ForeignKey( |
27 |
dbName='question', foreignKey='Question', notNull=True) |
|
2396
by Canonical.com Patch Queue Manager
[r=spiv] launchpad support tracker |
28 |
bug = ForeignKey(dbName='bug', foreignKey='Bug', notNull=True) |
29 |
||
3691.109.8
by Francis J. Lacoste
Make Ticket implement IBugLinkTarget. Remove IBugLinkgTarget declarations |
30 |
@property
|
31 |
def target(self): |
|
32 |
"""See IBugLink."""
|
|
3691.398.21
by Francis J. Lacoste
Rename all attributes and variables. |
33 |
return self.question |
2396
by Canonical.com Patch Queue Manager
[r=spiv] launchpad support tracker |
34 |