~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-09 11:44:38 UTC
  • mfrom: (14456.1.2 no-icing-contrib)
  • Revision ID: launchpad@pqm.canonical.com-20111209114438-jda3rie6sq7bkgn5
[r=adeuring][no-qa] Drop +icing-contrib and related cruft.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
    __call__ = ViewPageTemplateFile("templates/location.pt")
63
63
 
64
64
    def __init__(self, context, request):
65
 
        # This widget makes use of javascript for googlemaps and
66
 
        # json-handling, so we flag that in the request so that our
67
 
        # base-layout includes the necessary javascript files.
68
 
        request.needs_json = True
69
65
        super(LocationWidget, self).__init__(context, request)
70
66
        fields = form.Fields(
71
67
            Float(__name__='latitude', title=_('Latitude'), required=False),