Changeset 3110 for exist


Ignore:
Timestamp:
05/12/07 16:57:47 (12 years ago)
Author:
lawrence
Message:

Attempts to eggify the ndg exist interfaces continue

Location:
exist/trunk
Files:
8 added
3 edited
2 moved

Legend:

Unmodified
Added
Removed
  • exist/trunk

    • Property svn:ignore set to
      exist.kdevelop
  • exist/trunk/python

    • Property svn:ignore set to
      passwords.txt
  • exist/trunk/python/ndgeXist

    • Property svn:ignore set to
      passwords.txt
  • exist/trunk/python/ndgeXist/eXistConnector.py

    r3103 r3110  
    11# Code inspired by example on eXist website. 
    22import urllib2, base64, urllib, urlparse, httplib, xmlrpclib, types, os 
    3 from xmlHandler2 import xmlHandler as xmlh 
    4 import ndg_xqueries as xq 
    53 
    64class InstanceObject(object): 
     
    4240 
    4341 
    44 class  eXist_Connector(object): 
     42class  eXistConnector(object): 
    4543    """Access class for eXist""" 
    4644    def __init__(self,constants=None): 
     
    107105        return r 
    108106     
    109 # unfortunately it looks like the exist server doesn't support introspection 
    110 #    def showMethods(self): 
    111 #        print self.xmlrpc.system.listMethods() 
    112          
    113  
    114 import unittest 
    115  
    116 class TestCase(unittest.TestCase): 
    117          
    118     def testedict(self): 
    119         i=edict(a=1,b=2) 
    120         i.c=3 
    121         i['d']=4 
    122         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() 
    127107  
Note: See TracChangeset for help on using the changeset viewer.