1
# canonical.ubuntuone.nautilus.nautilus_api - provide Nautilus API
3
# Author: Tim Cole <tim.cole@canonical.com>
5
# Copyright 2009 Canonical Ltd.
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.
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.
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.
23
from __future__ import absolute_import
26
# pylint: disable-msg=W0403,W0611,F0401
27
from nautilus import LocationWidgetProvider
29
from canonical.ubuntuone.nautilus.dummy_nautilus import \
30
LocationWidgetProvider
34
# pylint: disable-msg=W0403,W0611,F0401
35
from nautilus import InfoProvider
37
from canonical.ubuntuone.nautilus.dummy_nautilus import InfoProvider
41
# pylint: disable-msg=W0403,W0611,F0401
42
from nautilus import MenuProvider
44
from canonical.ubuntuone.nautilus.dummy_nautilus import MenuProvider
48
# pylint: disable-msg=W0403,W0611,F0401
49
from nautilus import MenuItem
51
from canonical.ubuntuone.nautilus.dummy_nautilus import MenuItem