indra::ipc::servicebuilder Namespace Reference


Classes

class  ServiceBuilder

Functions

def build

Variables

dictionary services_config = {}
 _g_builder = None


Detailed Description

\
@file servicebuilder.py
@author Phoenix
@brief Class which will generate service urls.

$LicenseInfo:firstyear=2007&license=mit$

Copyright (c) 2007-2008, Linden Research, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
$/LicenseInfo$

Function Documentation

def indra::ipc::servicebuilder::build (   name,
  context = {},
  kwargs 
)

Convenience method for using a global, singleton, service builder.  Pass arguments either via a dict or via python keyword arguments, or both!

Example use:
 > context = {'channel':'Second Life Release', 'version':'1.18.2.0'}
 > servicebuilder.build('version-manager-version', context)
   'http://int.util.vaak.lindenlab.com/channel/Second%20Life%20Release/1.18.2.0'
 > servicebuilder.build('version-manager-version', channel='Second Life Release', version='1.18.2.0')
   'http://int.util.vaak.lindenlab.com/channel/Second%20Life%20Release/1.18.2.0'
 > servicebuilder.build('version-manager-version', context, version='1.18.1.2')
   'http://int.util.vaak.lindenlab.com/channel/Second%20Life%20Release/1.18.1.2'

Definition at line 42 of file servicebuilder.py.

Referenced by tut::HTTPClientTestData::newResult().

Here is the caller graph for this function:


Variable Documentation

Definition at line 41 of file servicebuilder.py.

Definition at line 35 of file servicebuilder.py.


Generated on Fri May 16 09:42:29 2008 for SecondLife by  doxygen 1.5.5