Changeset a86890 in git
- Timestamp:
- Jun 23, 2005, 4:14:10 PM (18 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 2dc9fea6d224736154c9885f2db2ba93909d9452
- Parents:
- bd0aebb2c1e3b7f2dbd028058ab70ff8f0d5b4d6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/openmathserver/context.py
rbd0aeb ra86890 11 11 self.implementations={} 12 12 self.XMLEncoder=SimpleXMLEncoder() 13 self.errorHandler=SimpleErrorHandler() 13 14 def addCDImplementation(self, implementation): 14 15 self.implementations[implementation.cd]=implementation … … 82 83 for k in obj.attributes])+[toencode]) 83 84 return attribution.XMLEncode(self) 84 85 class 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 85 94 class SimpleXMLEncoder(object): 86 95 def encode(self, string):
Note: See TracChangeset
for help on using the changeset viewer.