|
From: Thyamad c. <th...@us...> - 2005-09-12 18:32:00
|
Update of /cvsroot/thyapi/thyapi/thyutils In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2622/thyutils Modified Files: thydatasource.js Log Message: Commiting file additions and modification from SVN revision 1936 to 1937... Changes made by rpereira on 2005-09-12 20:48:02 +0200 (Mon, 12 Sep 2005) corresponding to SVN revision 1937 with message: - Corrected bug where thyConnector contentType was set only on thyDataSource constructor. Now it is set on every call, what guarantee correct content manipulation Index: thydatasource.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thyutils/thydatasource.js,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** thydatasource.js 1 Sep 2005 18:15:38 -0000 1.7 --- thydatasource.js 12 Sep 2005 18:31:45 -0000 1.8 *************** *** 118,122 **** this.protocol = protocol; - this.connector.setContentType(this.protocol.getContentType()); this.serverURL = this.protocol.getServerURL(); } --- 118,121 ---- *************** *** 398,401 **** --- 397,402 ---- if (!this.useSync) { + this.connector.setContentType(this.protocol.getContentType()); + data = this.protocol.encode(this.serverStartupMethod, data); this.connector.newRequest('thyDataSource.'+this.name+'.startup', this.serverURL, data, this._startupHandler()); *************** *** 425,428 **** --- 426,431 ---- if (!this.useSync) { + this.connector.setContentType(this.protocol.getContentType()); + data = this.protocol.encode(this.serverReadMethod, data); this.connector.newRequest('thyDataSource.'+this.name+'.read', this.serverURL, data, this._readHandler()); *************** *** 461,464 **** --- 464,469 ---- if (!this.useSync) { + this.connector.setContentType(this.protocol.getContentType()); + var post = this.protocol.encode(this.serverWriteMethod, sweepedData); this.connector.newRequest('thyDataSource.'+this.name+'.write', this.serverURL, post, this._writeHandler()) |