~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/testing/fakelibrarian.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2004-08-03 09:17:25 UTC
  • mfrom: (unknown (missing))
  • Revision ID: Arch-1:rocketfuel@canonical.com%launchpad--devel--0--patch-19
Removed defaultSkin directive to make launchpad work with the latest zope.
Patches applied:

 * steve.alexander@canonical.com/launchpad--devel--0--patch-16
   merge from rocketfuel

 * steve.alexander@canonical.com/launchpad--devel--0--patch-17
   removed use of defaultSkin directive, which has been removed from zope3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2010 Canonical Ltd.  This software is licensed under the
2
 
# GNU Affero General Public License version 3 (see the file LICENSE).
3
 
 
4
 
"""See canonical.librarian.testing.fake."""
5
 
 
6
 
import warnings
7
 
 
8
 
from canonical.librarian.testing.fake import FakeLibrarian as _FakeLibrarian
9
 
 
10
 
 
11
 
def FakeLibrarian(*args, **kwargs):
12
 
    """Forward to the new home with a deprecation warning."""
13
 
    warnings.warn("Stale import: please import FakeLibrarian from "
14
 
        "canonical.librarian.testing.fake instead.", DeprecationWarning,
15
 
        stacklevel=2)
16
 
    return _FakeLibrarian(*args, **kwargs)