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
# To use:
# from ipa_server.context import context
# from ipaserver.context import context
# context.foo = "bar"
# FIXME: This module is depreciated and code should switch to using

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -31,7 +31,7 @@ heavily cross-referenced with further documentation that (hopefully) fills
in the missing details.
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.
@ -227,12 +227,12 @@ There are two types of plugins:
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
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
interacts with some external system or library. For example, all interaction
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
should probably interact with that package via a corresponding backend
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
`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`.

View File

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

View File

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

View File

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

View File

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

View File

@ -18,5 +18,5 @@
# 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
"""
Test the `ipa_server.rpc` module.
Test the `ipaserver.rpc` module.
"""
from tests.util import create_test_api, raises, PluginTester
from tests.data import unicode_str
from ipalib import errors, Command
from ipa_server import rpc
from ipaserver import rpc
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
args = ('Hello', u'world!')
@ -43,14 +43,14 @@ def test_params_2_args_options():
class test_xmlrpc(PluginTester):
"""
Test the `ipa_server.rpc.xmlrpc` plugin.
Test the `ipaserver.rpc.xmlrpc` plugin.
"""
_plugin = rpc.xmlrpc
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)
e = raises(errors.CommandError, o.dispatch, 'echo', tuple())