191: Removed ipalib/api.py module; standard plugable.API instance is now in ipalib.__init__.py

This commit is contained in:
Jason Gerard DeRose 2008-08-25 23:35:29 +00:00
parent 513bbb32b9
commit 2fc3819bec
4 changed files with 12 additions and 29 deletions

2
ipa
View File

@ -26,7 +26,7 @@ Just proof of concept stuff in here right now.
""" """
import sys import sys
from ipalib.api import api from ipalib import api
from ipalib.cli import CLI from ipalib.cli import CLI
import ipalib.load_plugins import ipalib.load_plugins

View File

@ -31,3 +31,13 @@ To learn about the ``ipalib`` library, you should read the code in this order:
Some of the plugin architecture was inspired by ``bzr``, so you might also Some of the plugin architecture was inspired by ``bzr``, so you might also
read http://bazaar-vcs.org/WritingPlugins read http://bazaar-vcs.org/WritingPlugins
""" """
import plugable
import public
api = plugable.API(
public.Command,
public.Object,
public.Method,
public.Property,
)

View File

@ -1,27 +0,0 @@
# Authors:
# Jason Gerard DeRose <jderose@redhat.com>
#
# Copyright (C) 2008 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; version 2 only
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
"""
Standard instances of plugable.API and its subclasses.
"""
import public
# The standard API instance
api = public.PublicAPI()

View File

@ -23,7 +23,7 @@ Some example plugins.
from ipalib import public from ipalib import public
from ipalib.api import api from ipalib import api
# Hypothetical functional commands (not associated with any object): # Hypothetical functional commands (not associated with any object):