def _fetch_url_directive(directive): "*FIX: This only supports GET" commands = directive.split('|') resource = llsdhttp.get(commands[0]) if len(commands) == 3: resource = _walk_resource(resource, commands[2]) return resource
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$ """ from indra.base import config from indra.ipc import llsdhttp from indra.ipc import russ # *NOTE: agent presence relies on this variable existing and being current, it is a huge hack services_config = {} try: services_config = llsdhttp.get(config.get('services-config')) except: pass _g_builder = None def 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'
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$ """ from indra.base import config from indra.ipc import llsdhttp from indra.ipc import russ # *NOTE: agent presence relies on this variable existing and being current, it is a huge hack services_config = {} try: services_config = llsdhttp.get(config.get('services-config')) except: pass _g_builder = None def 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'
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$ """ from indra.base import config from indra.ipc import llsdhttp from indra.ipc import russ # *NOTE: agent presence relies on this variable existing and being current, it is a huge hack services_config = {} try: services_config = llsdhttp.get(config.get("services-config")) except: pass _g_builder = None def 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'