Renamed all references to 'ipa_server' to 'ipaserver'

This commit is contained in:
Jason Gerard DeRose
2009-01-04 18:39:39 -07:00
parent ff66c7ece6
commit 6fe78a4944
13 changed files with 31 additions and 31 deletions

View File

@@ -21,7 +21,7 @@
# a new instance to be created in the same thread # a new instance to be created in the same thread
# To use: # To use:
# from ipa_server.context import context # from ipaserver.context import context
# context.foo = "bar" # context.foo = "bar"
# FIXME: This module is depreciated and code should switch to using # FIXME: This module is depreciated and code should switch to using

View File

@@ -31,7 +31,7 @@ import struct
import ldap.sasl import ldap.sasl
from ldap.controls import LDAPControl,DecodeControlTuples,EncodeControlTuples from ldap.controls import LDAPControl,DecodeControlTuples,EncodeControlTuples
from ldap.ldapobject import SimpleLDAPObject from ldap.ldapobject import SimpleLDAPObject
from ipa_server import ipautil from ipaserver import ipautil
from ipalib import errors from ipalib import errors
# Global variable to define SASL auth # Global variable to define SASL auth

View File

@@ -43,9 +43,9 @@ import logging
import ldap import ldap
from ipalib import api from ipalib import api
from ipalib import config from ipalib import config
from ipa_server import conn from ipaserver import conn
from ipa_server.servercore import context from ipaserver.servercore import context
from ipa_server.servercore import ipautil from ipaserver.servercore import ipautil
from ipalib.util import xmlrpc_unmarshal from ipalib.util import xmlrpc_unmarshal
import string import string

View File

@@ -28,8 +28,8 @@ import ldap as _ldap
from ipalib import api, Context from ipalib import api, Context
from ipalib import errors from ipalib import errors
from ipalib.crud import CrudBackend from ipalib.crud import CrudBackend
from ipa_server import servercore from ipaserver import servercore
from ipa_server import ipaldap from ipaserver import ipaldap
class conn(Context): class conn(Context):

View File

@@ -39,8 +39,8 @@ from socket import gethostname
from ipalib import api, Backend from ipalib import api, Backend
from ipalib import errors from ipalib import errors
from ipa_server import servercore from ipaserver import servercore
from ipa_server import ipaldap from ipaserver import ipaldap
class ra(Backend): class ra(Backend):
@@ -195,13 +195,13 @@ class ra(Backend):
revocationr reasons: 0 - unspecified revocationr reasons: 0 - unspecified
1 - key compromise 1 - key compromise
2 - ca compromise 2 - ca compromise
3 - affiliation changed 3 - affiliation changed
4 - superseded 4 - superseded
5 - cessation of operation 5 - cessation of operation
6 - certificate hold 6 - certificate hold
7 - value 7 is not used 7 - value 7 is not used
8 - remove from CRL 8 - remove from CRL
9 - privilege withdrawn 9 - privilege withdrawn
10 - aa compromise 10 - aa compromise
see RFC 5280 for more details see RFC 5280 for more details
""" """

View File

@@ -20,8 +20,8 @@
import ldap import ldap
import string import string
import re import re
from ipa_server.context import context from ipaserver.context import context
from ipa_server import ipaldap from ipaserver import ipaldap
import ipautil import ipautil
from ipalib import errors from ipalib import errors
from ipalib import api from ipalib import api

View File

@@ -31,7 +31,7 @@ heavily cross-referenced with further documentation that (hopefully) fills
in the missing details. in the missing details.
In addition to this tutorial, the many built-in plugins in `ipalib.plugins` In addition to this tutorial, the many built-in plugins in `ipalib.plugins`
and `ipa_server.plugins` provide real-life examples of how to write good and `ipaserver.plugins` provide real-life examples of how to write good
plugins. plugins.
@@ -227,12 +227,12 @@ There are two types of plugins:
2. *Backend plugins* - These are only loaded in a *server* context and 2. *Backend plugins* - These are only loaded in a *server* context and
only need to be installed on the IPA server. The built-in backend only need to be installed on the IPA server. The built-in backend
plugins can be found in `ipa_server.plugins`. plugins can be found in `ipaserver.plugins`.
Backend plugins should provide a set of methods that standardize how IPA Backend plugins should provide a set of methods that standardize how IPA
interacts with some external system or library. For example, all interaction interacts with some external system or library. For example, all interaction
with LDAP is done through the ``ldap`` backend plugin defined in with LDAP is done through the ``ldap`` backend plugin defined in
`ipa_server.plugins.b_ldap`. As a good rule of thumb, anytime you need to `ipaserver.plugins.b_ldap`. As a good rule of thumb, anytime you need to
import some package that is not part of the Python standard library, you import some package that is not part of the Python standard library, you
should probably interact with that package via a corresponding backend should probably interact with that package via a corresponding backend
plugin you implement. plugin you implement.
@@ -824,7 +824,7 @@ To learn more about writing freeIPA plugins, you should:
1. Look at some of the built-in plugins, like the frontend plugins in 1. Look at some of the built-in plugins, like the frontend plugins in
`ipalib.plugins.f_user` and the backend plugins in `ipalib.plugins.f_user` and the backend plugins in
`ipa_server.plugins.b_ldap`. `ipaserver.plugins.b_ldap`.
2. Learn about the base classes for frontend plugins in `ipalib.frontend`. 2. Learn about the base classes for frontend plugins in `ipalib.frontend`.

View File

@@ -763,8 +763,8 @@ class CLI(object):
# try: # try:
# import krbV # import krbV
# import ldap # import ldap
# from ipa_server import conn # from ipaserver import conn
# from ipa_server.servercore import context # from ipaserver.servercore import context
# krbccache = krbV.default_context().default_ccache().name # krbccache = krbV.default_context().default_ccache().name
# context.conn = conn.IPAConn(self.api.env.ldaphost, self.api.env.ldapport, krbccache) # context.conn = conn.IPAConn(self.api.env.ldaphost, self.api.env.ldapport, krbccache)
# except ImportError: # except ImportError:

View File

@@ -639,7 +639,7 @@ class API(DictProxy):
return return
util.import_plugins_subpackage('ipalib') util.import_plugins_subpackage('ipalib')
if self.env.in_server: if self.env.in_server:
util.import_plugins_subpackage('ipa_server') util.import_plugins_subpackage('ipaserver')
def finalize(self): def finalize(self):
""" """

View File

@@ -32,8 +32,8 @@ import threading
import commands import commands
from ipalib import api from ipalib import api
from ipalib import config from ipalib import config
from ipa_server import conn from ipaserver import conn
from ipa_server.servercore import context from ipaserver.servercore import context
from ipalib.util import xmlrpc_unmarshal from ipalib.util import xmlrpc_unmarshal
import traceback import traceback
import krbV import krbV

View File

@@ -33,8 +33,8 @@ setup(
packages=[ packages=[
'ipalib', 'ipalib',
'ipalib.plugins', 'ipalib.plugins',
'ipa_server', 'ipaserver',
'ipa_server.plugins', 'ipaserver.plugins',
'ipa_webui', 'ipa_webui',
'ipa_webui.templates', 'ipa_webui.templates',
], ],

View File

@@ -18,5 +18,5 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
""" """
Sub-package containing unit tests for `ipa_server` package. Sub-package containing unit tests for `ipaserver` package.
""" """

View File

@@ -18,18 +18,18 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
""" """
Test the `ipa_server.rpc` module. Test the `ipaserver.rpc` module.
""" """
from tests.util import create_test_api, raises, PluginTester from tests.util import create_test_api, raises, PluginTester
from tests.data import unicode_str from tests.data import unicode_str
from ipalib import errors, Command from ipalib import errors, Command
from ipa_server import rpc from ipaserver import rpc
def test_params_2_args_options(): def test_params_2_args_options():
""" """
Test the `ipa_server.rpc.params_2_args_options` function. Test the `ipaserver.rpc.params_2_args_options` function.
""" """
f = rpc.params_2_args_options f = rpc.params_2_args_options
args = ('Hello', u'world!') args = ('Hello', u'world!')
@@ -43,14 +43,14 @@ def test_params_2_args_options():
class test_xmlrpc(PluginTester): class test_xmlrpc(PluginTester):
""" """
Test the `ipa_server.rpc.xmlrpc` plugin. Test the `ipaserver.rpc.xmlrpc` plugin.
""" """
_plugin = rpc.xmlrpc _plugin = rpc.xmlrpc
def test_dispatch(self): def test_dispatch(self):
""" """
Test the `ipa_server.rpc.xmlrpc.dispatch` method. Test the `ipaserver.rpc.xmlrpc.dispatch` method.
""" """
(o, api, home) = self.instance('Backend', in_server=True) (o, api, home) = self.instance('Backend', in_server=True)
e = raises(errors.CommandError, o.dispatch, 'echo', tuple()) e = raises(errors.CommandError, o.dispatch, 'echo', tuple())