~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-02-25 16:06:03 UTC
  • mfrom: (12467.1.2 remove-canonical.widgets)
  • Revision ID: launchpad@pqm.canonical.com-20110225160603-dk4yys8lqys56nvq
[r=jml][bug=724138][no-qa] Remove canonical.widgets,
        and upgrade to a shipit that imports from less places.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
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
 
"""Helpers for canonical widgets."""
 
4
"""Helpers for Launchpad widgets."""
5
5
 
6
6
import os
7
7
 
8
8
 
9
9
def get_widget_template(filename):
10
 
    """Return the content of lib/canonical/widgets/templates/<filename>."""
 
10
    """Return the content of lib/lp/app/widgets/templates/<filename>."""
11
11
    here = os.path.dirname(__file__)
12
12
    template_path = os.path.join(here, 'templates', filename)
13
13
    file = open(template_path)