~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/widgets/owner.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-03 11:23:34 UTC
  • mfrom: (13457.6.16 upgrade-stderr)
  • Revision ID: launchpad@pqm.canonical.com-20110803112334-acnupsa7jmzmdeet
[r=stevenk][bug=819751] Fix the implementation of several methods in
 LoggingUIFactory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2009 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
__metaclass__ = type
5
5
 
 
6
from zope.component import getUtility
 
7
from zope.interface import implements, Interface
 
8
from zope.app.form.interfaces import IInputWidget
6
9
from zope.app.form.browser.interfaces import IBrowserWidget
7
 
from zope.app.form.interfaces import IInputWidget
8
 
from zope.component import getUtility
9
 
from zope.interface import (
10
 
    implements,
11
 
    Interface,
12
 
    )
13
 
 
14
 
from lp.services.webapp.interfaces import ILaunchBag
15
 
 
 
10
 
 
11
from canonical.launchpad.webapp.interfaces import ILaunchBag
16
12
 
17
13
class RequestWidget(object):
18
14
    '''A widget that sets itself to a value calculated from request
43
39
 
44
40
    def getInputValue(self):
45
41
        '''See zope.app.form.interfaces.IInpputWidget'''
46
 
        raise NotImplementedError('getInputValue')
 
42
        raise NotImplementedError, 'getInputValue'
47
43
 
48
44
    def applyChanges(self, content):
49
45
        '''See zope.app.form.interfaces.IInputWidget'''
85
81
 
86
82
class HiddenUserWidget(RequestWidget):
87
83
    implements(IUserWidget)
88
 
 
89
84
    def __init__(self, context, vocabulary, request=None):
90
85
        '''Construct the HiddenUserWidget.
91
86