Changeset 3110
- Timestamp:
- 05/12/07 16:57:47 (13 years ago)
- Location:
- exist/trunk
- Files:
-
- 8 added
- 3 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
exist/trunk
-
Property
svn:ignore
set to
exist.kdevelop
-
Property
svn:ignore
set to
-
exist/trunk/python
-
Property
svn:ignore
set to
passwords.txt
-
Property
svn:ignore
set to
-
exist/trunk/python/ndgeXist
-
Property
svn:ignore
set to
passwords.txt
-
Property
svn:ignore
set to
-
exist/trunk/python/ndgeXist/eXistConnector.py
r3103 r3110 1 1 # Code inspired by example on eXist website. 2 2 import urllib2, base64, urllib, urlparse, httplib, xmlrpclib, types, os 3 from xmlHandler2 import xmlHandler as xmlh4 import ndg_xqueries as xq5 3 6 4 class InstanceObject(object): … … 42 40 43 41 44 class eXist _Connector(object):42 class eXistConnector(object): 45 43 """Access class for eXist""" 46 44 def __init__(self,constants=None): … … 107 105 return r 108 106 109 # unfortunately it looks like the exist server doesn't support introspection110 # def showMethods(self):111 # print self.xmlrpc.system.listMethods()112 113 114 import unittest115 116 class TestCase(unittest.TestCase):117 118 def testedict(self):119 i=edict(a=1,b=2)120 i.c=3121 i['d']=4122 correct={'a':1,'b':2,'c':3,'d':4}123 for j in correct: self.assertEqual(correct[j],i[j])124 125 if __name__=="__main__":126 unittest.main()127 107
Note: See TracChangeset
for help on using the changeset viewer.