Project

General

Profile

« Previous | Next » 

Revision 4906

Added by daigle almost 16 years ago

Update load test code

View differences:

metacat.py
71 71
            return False
72 72

  
73 73
    def read(self, docid, qformat="xml"):
74
        postdata = { 'action'   : 'read',
74
		postdata = { 'action'   : 'read',
75 75
                     'qformat'  : qformat,
76 76
                     'docid'    : docid }
77
        response = self.postRequest(postdata) 
78
        # if error node returned
79
        if response.find("<error>") != -1:
80
            return False
81
        else:
82
            return response
77
		response = self.postRequest(postdata) 
78
		# if error node returned
79
		return response
83 80

  
84 81

  
85 82
    def insert(self, docid, doctext):

Also available in: Unified diff