~facundo/ubuntuone-client/support-initial-disconnection

« back to all changes in this revision

Viewing changes to canonical/ubuntuone/nautilus/nautilus_api.py

  • Committer: Rodney Dawes
  • Date: 2009-06-17 20:45:35 UTC
  • mfrom: (44.2.5 nautilus-no-python)
  • Revision ID: dobey@gnome.org-20090617204535-qjwhi2yjtvu42f44
Tags: ubuntuone-0_90_2
[r=rmcbride, r=statik] Switch to autotools by default and update packaging for the changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# canonical.ubuntuone.nautilus.nautilus_api - provide Nautilus API
2
 
#
3
 
# Author: Tim Cole <tim.cole@canonical.com>
4
 
#
5
 
# Copyright 2009 Canonical Ltd.
6
 
#
7
 
# This program is free software: you can redistribute it and/or modify it
8
 
# under the terms of the GNU General Public License version 3, as published
9
 
# by the Free Software Foundation.
10
 
#
11
 
# This program is distributed in the hope that it will be useful, but
12
 
# WITHOUT ANY WARRANTY; without even the implied warranties of
13
 
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
14
 
# PURPOSE.  See the GNU General Public License for more details.
15
 
#
16
 
# You should have received a copy of the GNU General Public License along
17
 
# with this program.  If not, see <http://www.gnu.org/licenses/>.
18
 
"""A wrapper module to conditionally import the Nautilus extension API
19
 
when it is available; otherwise, import stubs for it.
20
 
 
21
 
"""
22
 
 
23
 
from __future__ import absolute_import
24
 
 
25
 
try:
26
 
    # pylint: disable-msg=W0403,W0611,F0401
27
 
    from nautilus import LocationWidgetProvider
28
 
except ImportError:
29
 
    from canonical.ubuntuone.nautilus.dummy_nautilus import \
30
 
        LocationWidgetProvider
31
 
 
32
 
 
33
 
try:
34
 
    # pylint: disable-msg=W0403,W0611,F0401
35
 
    from nautilus import InfoProvider
36
 
except ImportError:
37
 
    from canonical.ubuntuone.nautilus.dummy_nautilus import InfoProvider
38
 
 
39
 
 
40
 
try:
41
 
    # pylint: disable-msg=W0403,W0611,F0401
42
 
    from nautilus import MenuProvider
43
 
except ImportError:
44
 
    from canonical.ubuntuone.nautilus.dummy_nautilus import MenuProvider
45
 
 
46
 
 
47
 
try:
48
 
    # pylint: disable-msg=W0403,W0611,F0401
49
 
    from nautilus import MenuItem
50
 
except ImportError:
51
 
    from canonical.ubuntuone.nautilus.dummy_nautilus import MenuItem