/usr/lib/python3/dist-packages/IceGrid_FileParser_ice.py is in python3-zeroc-ice 3.5.1-6.4ubuntu1.
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 | # **********************************************************************
#
# Copyright (c) 2003-2013 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.5.1
#
# <auto-generated>
#
# Generated from file `FileParser.ice'
#
# Warning: do not edit this file.
#
# </auto-generated>
#
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.'''
def __init__(self, reason=''):
self.reason = reason
def __str__(self):
return IcePy.stringifyException(self)
__repr__ = __str__
_ice_name = '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
if 'FileParser' not in _M_IceGrid.__dict__:
_M_IceGrid.FileParser = Ice.createTempClass()
class FileParser(Ice.Object):
'''icegridadmin provides a FileParser
object to transform XML files into ApplicationDescriptor
objects.'''
def __init__(self):
if Ice.getType(self) == _M_IceGrid.FileParser:
raise RuntimeError('IceGrid.FileParser is an abstract class')
def ice_ids(self, current=None):
return ('::Ice::Object', '::IceGrid::FileParser')
def ice_id(self, current=None):
return '::IceGrid::FileParser'
def ice_staticId():
return '::IceGrid::FileParser'
ice_staticId = staticmethod(ice_staticId)
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.
Returns:
The application descriptor.
Exceptions:
ParseException Raised if an error occurred during parsing.'''
pass
def __str__(self):
return IcePy.stringify(self, _M_IceGrid._t_FileParser)
__repr__ = __str__
_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.
Returns:
The application descriptor.
Exceptions:
ParseException Raised if an error occurred during parsing.'''
def parse(self, xmlFile, adminProxy, _ctx=None):
return _M_IceGrid.FileParser._op_parse.invoke(self, ((xmlFile, adminProxy), _ctx))
'''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.
Exceptions:
ParseException Raised if an error occurred during parsing.'''
def begin_parse(self, xmlFile, adminProxy, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceGrid.FileParser._op_parse.begin(self, ((xmlFile, adminProxy), _response, _ex, _sent, _ctx))
'''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.
Exceptions:
ParseException Raised if an error occurred during parsing.'''
def end_parse(self, _r):
return _M_IceGrid.FileParser._op_parse.end(self, _r)
def checkedCast(proxy, facetOrCtx=None, _ctx=None):
return _M_IceGrid.FileParserPrx.ice_checkedCast(proxy, '::IceGrid::FileParser', facetOrCtx, _ctx)
checkedCast = staticmethod(checkedCast)
def uncheckedCast(proxy, facet=None):
return _M_IceGrid.FileParserPrx.ice_uncheckedCast(proxy, facet)
uncheckedCast = staticmethod(uncheckedCast)
_M_IceGrid._t_FileParserPrx = IcePy.defineProxy('::IceGrid::FileParser', FileParserPrx)
_M_IceGrid._t_FileParser = IcePy.defineClass('::IceGrid::FileParser', FileParser, -1, (), True, False, None, (), ())
FileParser._ice_type = _M_IceGrid._t_FileParser
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
_M_IceGrid.FileParserPrx = FileParserPrx
del FileParserPrx
# End of module IceGrid
Ice.sliceChecksums["::IceGrid::FileParser"] = "b847ccf3e3db7cbba649ec7cc464faf"
Ice.sliceChecksums["::IceGrid::ParseException"] = "dec9aacba8b3ba76afc5de1cc3489598"
|