~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Curtis Hovey
  • Date: 2011-12-18 15:13:07 UTC
  • mto: This revision was merged to the branch mainline in revision 14547.
  • Revision ID: curtis.hovey@canonical.com-20111218151307-sdm2gzobt5tplbe0
Moved badges to lp.app.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    parse,
40
40
    )
41
41
 
 
42
from canonical.launchpad.webapp.interfaces import ILaunchBag
42
43
from lp.app.validators import LaunchpadValidationError
43
 
from lp.services.webapp.interfaces import ILaunchBag
44
44
 
45
45
 
46
46
class DateTimeWidget(TextWidget):
47
47
    """A date and time selection widget with popup selector.
48
48
 
49
 
      >>> from lp.services.webapp.servers import LaunchpadTestRequest
 
49
      >>> from canonical.launchpad.webapp.servers import LaunchpadTestRequest
50
50
      >>> from zope.schema import Field
51
51
      >>> field = Field(__name__='foo', title=u'Foo')
52
52
      >>> widget = DateTimeWidget(field, LaunchpadTestRequest())