Changeset a86890 in git


Ignore:
Timestamp:
Jun 23, 2005, 4:14:10 PM (18 years ago)
Author:
Michael Brickenstein <bricken@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
2dc9fea6d224736154c9885f2db2ba93909d9452
Parents:
bd0aebb2c1e3b7f2dbd028058ab70ff8f0d5b4d6
Message:
*bricken: it's so hot


git-svn-id: file:///usr/local/Singular/svn/trunk@8386 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/openmathserver/context.py

    rbd0aeb ra86890  
    1111        self.implementations={}
    1212        self.XMLEncoder=SimpleXMLEncoder()
     13        self.errorHandler=SimpleErrorHandler()
    1314    def addCDImplementation(self, implementation):
    1415        self.implementations[implementation.cd]=implementation
     
    8283                for k in obj.attributes])+[toencode])
    8384            return attribution.XMLEncode(self)
    84            
     85class SimpleErrorHandler(object):
     86    def __init__(self):
     87        super(SimpleErrorHandler,self).__init__()
     88    def handle_unexpected_symbol(self, symbol):
     89        pass
     90    def handle_unsupported_cd(self, symbol):
     91        pass
     92    def handle_unexpected_symbol(self, symbol):
     93        pass
    8594class SimpleXMLEncoder(object):
    8695    def encode(self, string):
Note: See TracChangeset for help on using the changeset viewer.