Changeset e96c8d in git


Ignore:
Timestamp:
Jun 16, 2005, 12:16:08 PM (19 years ago)
Author:
Michael Brickenstein <bricken@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '4188d308699580d975efd0f6cca8dcb41c396f70')
Children:
bf5590544366352bc842f5dc754a381cef5c7e0b
Parents:
9122086d5002d157fdfe81f44ea84f1836d551db
Message:
*bricken: strings


git-svn-id: file:///usr/local/Singular/svn/trunk@8375 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
modules/openmathserver
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/openmathserver/objects.py

    r9122086 re96c8d  
    206206    def getXMLAttributes(self):
    207207        return [XMLAttribute("dec",str(self.value))]
     208class OMString(SimpleValue):
     209    def __init__(self,value):
     210        super(OMString,self).__init__(value)
     211    def __str__(self):
     212        return "OMSTR("+repr(self.value)+")"
     213    XMLtag="OMSTR"
     214    def getBody(self):
     215        return self.value
    208216class OMRef(OMObjectBase):
    209217    def __init__(self, ref):
  • modules/openmathserver/omxmlreader.py

    r9122086 re96c8d  
    4848            content=get_text_in_children(node)
    4949            erg=OMint(content)
     50        if (node.nodeName=="OMSTR"):
     51            content=get_text_in_children(node)
     52            #print "data", content
     53            erg=OMString(content)
    5054        if (node.nodeName=="OMV"):
    5155            name=node.getAttribute("name") #node.attributes["name"]
Note: See TracChangeset for help on using the changeset viewer.