/usr/lib/python2.7/dist-packages/Ice/PropertiesAdmin_ice.py is in python-zeroc-ice 3.7.0-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 | # -*- coding: utf-8 -*-
# **********************************************************************
#
# Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# **********************************************************************
#
# Ice version 3.7.0
#
# <auto-generated>
#
# Generated from file `PropertiesAdmin.ice'
#
# Warning: do not edit this file.
#
# </auto-generated>
#
from sys import version_info as _version_info_
import Ice, IcePy
import Ice.BuiltinSequences_ice
# Included module Ice
_M_Ice = Ice.openModule('Ice')
# Start of module Ice
__name__ = 'Ice'
if '_t_PropertyDict' not in _M_Ice.__dict__:
_M_Ice._t_PropertyDict = IcePy.defineDictionary('::Ice::PropertyDict', (), IcePy._t_string, IcePy._t_string)
_M_Ice._t_PropertiesAdmin = IcePy.defineValue('::Ice::PropertiesAdmin', Ice.Value, -1, (), False, True, None, ())
if 'PropertiesAdminPrx' not in _M_Ice.__dict__:
_M_Ice.PropertiesAdminPrx = Ice.createTempClass()
class PropertiesAdminPrx(Ice.ObjectPrx):
"""
Get a property by key. If the property is not set, an empty
string is returned.
Arguments:
key -- The property key.
context -- The request context for the invocation.
Returns: The property value.
"""
def getProperty(self, key, context=None):
return _M_Ice.PropertiesAdmin._op_getProperty.invoke(self, ((key, ), context))
"""
Get a property by key. If the property is not set, an empty
string is returned.
Arguments:
key -- The property key.
context -- The request context for the invocation.
Returns: A future object for the invocation.
"""
def getPropertyAsync(self, key, context=None):
return _M_Ice.PropertiesAdmin._op_getProperty.invokeAsync(self, ((key, ), context))
"""
Get a property by key. If the property is not set, an empty
string is returned.
Arguments:
key -- The property key.
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
context -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_getProperty(self, key, _response=None, _ex=None, _sent=None, context=None):
return _M_Ice.PropertiesAdmin._op_getProperty.begin(self, ((key, ), _response, _ex, _sent, context))
"""
Get a property by key. If the property is not set, an empty
string is returned.
Arguments:
key -- The property key.
Returns: The property value.
"""
def end_getProperty(self, _r):
return _M_Ice.PropertiesAdmin._op_getProperty.end(self, _r)
"""
Get all properties whose keys begin with prefix. If
prefix is an empty string then all properties are returned.
Arguments:
prefix -- The prefix to search for (empty string if none).
context -- The request context for the invocation.
Returns: The matching property set.
"""
def getPropertiesForPrefix(self, prefix, context=None):
return _M_Ice.PropertiesAdmin._op_getPropertiesForPrefix.invoke(self, ((prefix, ), context))
"""
Get all properties whose keys begin with prefix. If
prefix is an empty string then all properties are returned.
Arguments:
prefix -- The prefix to search for (empty string if none).
context -- The request context for the invocation.
Returns: A future object for the invocation.
"""
def getPropertiesForPrefixAsync(self, prefix, context=None):
return _M_Ice.PropertiesAdmin._op_getPropertiesForPrefix.invokeAsync(self, ((prefix, ), context))
"""
Get all properties whose keys begin with prefix. If
prefix is an empty string then all properties are returned.
Arguments:
prefix -- The prefix to search for (empty string if none).
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
context -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_getPropertiesForPrefix(self, prefix, _response=None, _ex=None, _sent=None, context=None):
return _M_Ice.PropertiesAdmin._op_getPropertiesForPrefix.begin(self, ((prefix, ), _response, _ex, _sent, context))
"""
Get all properties whose keys begin with prefix. If
prefix is an empty string then all properties are returned.
Arguments:
prefix -- The prefix to search for (empty string if none).
Returns: The matching property set.
"""
def end_getPropertiesForPrefix(self, _r):
return _M_Ice.PropertiesAdmin._op_getPropertiesForPrefix.end(self, _r)
"""
Update the communicator's properties with the given property set.
Arguments:
newProperties -- Properties to be added, changed, or removed. If an entry in newProperties matches the name of an existing property, that property's value is replaced with the new value. If the new value is an empty string, the property is removed. Any existing properties that are not modified or removed by the entries in newProperties are retained with their original values.
context -- The request context for the invocation.
"""
def setProperties(self, newProperties, context=None):
return _M_Ice.PropertiesAdmin._op_setProperties.invoke(self, ((newProperties, ), context))
"""
Update the communicator's properties with the given property set.
Arguments:
newProperties -- Properties to be added, changed, or removed. If an entry in newProperties matches the name of an existing property, that property's value is replaced with the new value. If the new value is an empty string, the property is removed. Any existing properties that are not modified or removed by the entries in newProperties are retained with their original values.
context -- The request context for the invocation.
Returns: A future object for the invocation.
"""
def setPropertiesAsync(self, newProperties, context=None):
return _M_Ice.PropertiesAdmin._op_setProperties.invokeAsync(self, ((newProperties, ), context))
"""
Update the communicator's properties with the given property set.
Arguments:
newProperties -- Properties to be added, changed, or removed. If an entry in newProperties matches the name of an existing property, that property's value is replaced with the new value. If the new value is an empty string, the property is removed. Any existing properties that are not modified or removed by the entries in newProperties are retained with their original values.
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
context -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_setProperties(self, newProperties, _response=None, _ex=None, _sent=None, context=None):
return _M_Ice.PropertiesAdmin._op_setProperties.begin(self, ((newProperties, ), _response, _ex, _sent, context))
"""
Update the communicator's properties with the given property set.
Arguments:
newProperties -- Properties to be added, changed, or removed. If an entry in newProperties matches the name of an existing property, that property's value is replaced with the new value. If the new value is an empty string, the property is removed. Any existing properties that are not modified or removed by the entries in newProperties are retained with their original values.
"""
def end_setProperties(self, _r):
return _M_Ice.PropertiesAdmin._op_setProperties.end(self, _r)
@staticmethod
def checkedCast(proxy, facetOrContext=None, context=None):
return _M_Ice.PropertiesAdminPrx.ice_checkedCast(proxy, '::Ice::PropertiesAdmin', facetOrContext, context)
@staticmethod
def uncheckedCast(proxy, facet=None):
return _M_Ice.PropertiesAdminPrx.ice_uncheckedCast(proxy, facet)
@staticmethod
def ice_staticId():
return '::Ice::PropertiesAdmin'
_M_Ice._t_PropertiesAdminPrx = IcePy.defineProxy('::Ice::PropertiesAdmin', PropertiesAdminPrx)
_M_Ice.PropertiesAdminPrx = PropertiesAdminPrx
del PropertiesAdminPrx
_M_Ice.PropertiesAdmin = Ice.createTempClass()
class PropertiesAdmin(Ice.Object):
def ice_ids(self, current=None):
return ('::Ice::Object', '::Ice::PropertiesAdmin')
def ice_id(self, current=None):
return '::Ice::PropertiesAdmin'
@staticmethod
def ice_staticId():
return '::Ice::PropertiesAdmin'
def getProperty(self, key, current=None):
"""
Get a property by key. If the property is not set, an empty
string is returned.
Arguments:
key -- The property key.
current -- The Current object for the invocation.
Returns: A future object for the invocation.
"""
raise NotImplementedError("servant method 'getProperty' not implemented")
def getPropertiesForPrefix(self, prefix, current=None):
"""
Get all properties whose keys begin with prefix. If
prefix is an empty string then all properties are returned.
Arguments:
prefix -- The prefix to search for (empty string if none).
current -- The Current object for the invocation.
Returns: A future object for the invocation.
"""
raise NotImplementedError("servant method 'getPropertiesForPrefix' not implemented")
def setProperties(self, newProperties, current=None):
"""
Update the communicator's properties with the given property set.
Arguments:
newProperties -- Properties to be added, changed, or removed. If an entry in newProperties matches the name of an existing property, that property's value is replaced with the new value. If the new value is an empty string, the property is removed. Any existing properties that are not modified or removed by the entries in newProperties are retained with their original values.
current -- The Current object for the invocation.
Returns: A future object for the invocation.
"""
raise NotImplementedError("servant method 'setProperties' not implemented")
def __str__(self):
return IcePy.stringify(self, _M_Ice._t_PropertiesAdminDisp)
__repr__ = __str__
_M_Ice._t_PropertiesAdminDisp = IcePy.defineClass('::Ice::PropertiesAdmin', PropertiesAdmin, (), None, ())
PropertiesAdmin._ice_type = _M_Ice._t_PropertiesAdminDisp
PropertiesAdmin._op_getProperty = IcePy.Operation('getProperty', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (((), IcePy._t_string, False, 0),), (), ((), IcePy._t_string, False, 0), ())
PropertiesAdmin._op_getPropertiesForPrefix = IcePy.Operation('getPropertiesForPrefix', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (((), IcePy._t_string, False, 0),), (), ((), _M_Ice._t_PropertyDict, False, 0), ())
PropertiesAdmin._op_setProperties = IcePy.Operation('setProperties', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (((), _M_Ice._t_PropertyDict, False, 0),), (), None, ())
_M_Ice.PropertiesAdmin = PropertiesAdmin
del PropertiesAdmin
# End of module Ice
Ice.sliceChecksums["::Ice::PropertiesAdmin"] = "2fdc55e4b6d63dcc2fa612b79b57c6e"
Ice.sliceChecksums["::Ice::PropertyDict"] = "28c9538d4ffc29a24c3cf15fff4f329"
|