mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-24 15:16:40 -06:00
191: Removed ipalib/api.py module; standard plugable.API instance is now in ipalib.__init__.py
This commit is contained in:
parent
513bbb32b9
commit
2fc3819bec
2
ipa
2
ipa
@ -26,7 +26,7 @@ Just proof of concept stuff in here right now.
|
||||
"""
|
||||
|
||||
import sys
|
||||
from ipalib.api import api
|
||||
from ipalib import api
|
||||
from ipalib.cli import CLI
|
||||
import ipalib.load_plugins
|
||||
|
||||
|
@ -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
|
||||
read http://bazaar-vcs.org/WritingPlugins
|
||||
"""
|
||||
|
||||
import plugable
|
||||
import public
|
||||
|
||||
api = plugable.API(
|
||||
public.Command,
|
||||
public.Object,
|
||||
public.Method,
|
||||
public.Property,
|
||||
)
|
||||
|
@ -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()
|
@ -23,7 +23,7 @@ Some example plugins.
|
||||
|
||||
|
||||
from ipalib import public
|
||||
from ipalib.api import api
|
||||
from ipalib import api
|
||||
|
||||
|
||||
# Hypothetical functional commands (not associated with any object):
|
||||
|
Loading…
Reference in New Issue
Block a user