/usr/lib/python3/dist-packages/IceGrid/FileParser_ice.py is in python3-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 | # -*- 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 `FileParser.ice'
#
# Warning: do not edit this file.
#
# </auto-generated>
#
from sys import version_info as _version_info_
import Ice, IcePy
import IceGrid.Admin_ice
# Included module Ice
_M_Ice = Ice.openModule('Ice')
# Included module Glacier2
_M_Glacier2 = Ice.openModule('Glacier2')
# Included module IceGrid
_M_IceGrid = Ice.openModule('IceGrid')
# Start of module IceGrid
__name__ = 'IceGrid'
if 'ParseException' not in _M_IceGrid.__dict__:
_M_IceGrid.ParseException = Ice.createTempClass()
class ParseException(Ice.UserException):
"""
This exception is raised if an error occurs during parsing.
Members:
reason -- The reason for the failure.
"""
def __init__(self, reason=''):
self.reason = reason
def __str__(self):
return IcePy.stringifyException(self)
__repr__ = __str__
_ice_id = '::IceGrid::ParseException'
_M_IceGrid._t_ParseException = IcePy.defineException('::IceGrid::ParseException', ParseException, (), False, None, (('reason', (), IcePy._t_string, False, 0),))
ParseException._ice_type = _M_IceGrid._t_ParseException
_M_IceGrid.ParseException = ParseException
del ParseException
_M_IceGrid._t_FileParser = IcePy.defineValue('::IceGrid::FileParser', Ice.Value, -1, (), False, True, None, ())
if 'FileParserPrx' not in _M_IceGrid.__dict__:
_M_IceGrid.FileParserPrx = Ice.createTempClass()
class FileParserPrx(Ice.ObjectPrx):
"""
Parse a file.
Arguments:
xmlFile -- Full pathname to the file.
adminProxy -- An Admin proxy, used only to retrieve default templates when needed. May be null.
context -- The request context for the invocation.
Returns: The application descriptor.
Throws:
ParseException -- Raised if an error occurred during parsing.
"""
def parse(self, xmlFile, adminProxy, context=None):
return _M_IceGrid.FileParser._op_parse.invoke(self, ((xmlFile, adminProxy), context))
"""
Parse a file.
Arguments:
xmlFile -- Full pathname to the file.
adminProxy -- An Admin proxy, used only to retrieve default templates when needed. May be null.
context -- The request context for the invocation.
Returns: A future object for the invocation.
"""
def parseAsync(self, xmlFile, adminProxy, context=None):
return _M_IceGrid.FileParser._op_parse.invokeAsync(self, ((xmlFile, adminProxy), context))
"""
Parse a file.
Arguments:
xmlFile -- Full pathname to the file.
adminProxy -- An Admin proxy, used only to retrieve default templates when needed. May be null.
_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_parse(self, xmlFile, adminProxy, _response=None, _ex=None, _sent=None, context=None):
return _M_IceGrid.FileParser._op_parse.begin(self, ((xmlFile, adminProxy), _response, _ex, _sent, context))
"""
Parse a file.
Arguments:
xmlFile -- Full pathname to the file.
adminProxy -- An Admin proxy, used only to retrieve default templates when needed. May be null.
Returns: The application descriptor.
Throws:
ParseException -- Raised if an error occurred during parsing.
"""
def end_parse(self, _r):
return _M_IceGrid.FileParser._op_parse.end(self, _r)
@staticmethod
def checkedCast(proxy, facetOrContext=None, context=None):
return _M_IceGrid.FileParserPrx.ice_checkedCast(proxy, '::IceGrid::FileParser', facetOrContext, context)
@staticmethod
def uncheckedCast(proxy, facet=None):
return _M_IceGrid.FileParserPrx.ice_uncheckedCast(proxy, facet)
@staticmethod
def ice_staticId():
return '::IceGrid::FileParser'
_M_IceGrid._t_FileParserPrx = IcePy.defineProxy('::IceGrid::FileParser', FileParserPrx)
_M_IceGrid.FileParserPrx = FileParserPrx
del FileParserPrx
_M_IceGrid.FileParser = Ice.createTempClass()
class FileParser(Ice.Object):
def ice_ids(self, current=None):
return ('::Ice::Object', '::IceGrid::FileParser')
def ice_id(self, current=None):
return '::IceGrid::FileParser'
@staticmethod
def ice_staticId():
return '::IceGrid::FileParser'
def parse(self, xmlFile, adminProxy, current=None):
"""
Parse a file.
Arguments:
xmlFile -- Full pathname to the file.
adminProxy -- An Admin proxy, used only to retrieve default templates when needed. May be null.
current -- The Current object for the invocation.
Returns: A future object for the invocation.
Throws:
ParseException -- Raised if an error occurred during parsing.
"""
raise NotImplementedError("servant method 'parse' not implemented")
def __str__(self):
return IcePy.stringify(self, _M_IceGrid._t_FileParserDisp)
__repr__ = __str__
_M_IceGrid._t_FileParserDisp = IcePy.defineClass('::IceGrid::FileParser', FileParser, (), None, ())
FileParser._ice_type = _M_IceGrid._t_FileParserDisp
FileParser._op_parse = IcePy.Operation('parse', Ice.OperationMode.Idempotent, Ice.OperationMode.Idempotent, False, None, (), (((), IcePy._t_string, False, 0), ((), _M_IceGrid._t_AdminPrx, False, 0)), (), ((), _M_IceGrid._t_ApplicationDescriptor, False, 0), (_M_IceGrid._t_ParseException,))
_M_IceGrid.FileParser = FileParser
del FileParser
# End of module IceGrid
Ice.sliceChecksums["::IceGrid::FileParser"] = "b847ccf3e3db7cbba649ec7cc464faf"
Ice.sliceChecksums["::IceGrid::ParseException"] = "dec9aacba8b3ba76afc5de1cc3489598"
|