Skip to Content.
Sympa Menu

idok-commit - [idok-commit] idok commit r281 - trunk/sites/psi/java/ch/psi/idok/gwt/twiki/client

idok-commit AT lists.psi.ch

Subject: Commit emails of the iDok project

List archive

[idok-commit] idok commit r281 - trunk/sites/psi/java/ch/psi/idok/gwt/twiki/client


Chronological Thread 
  • From: "AFS account Roman Geus" <geus AT savannah.psi.ch>
  • To: idok-commit AT lists.psi.ch
  • Subject: [idok-commit] idok commit r281 - trunk/sites/psi/java/ch/psi/idok/gwt/twiki/client
  • Date: Fri, 17 Oct 2008 11:50:24 +0200
  • List-archive: <https://lists.web.psi.ch/pipermail/idok-commit/>
  • List-id: Commit emails of the iDok project <idok-commit.lists.psi.ch>

Author: geus
Date: Fri Oct 17 11:50:23 2008
New Revision: 281

Log:
Fixed bug in unpacking JSON value

Modified:
trunk/sites/psi/java/ch/psi/idok/gwt/twiki/client/IdokSearchUtil.java

Modified:
trunk/sites/psi/java/ch/psi/idok/gwt/twiki/client/IdokSearchUtil.java
==============================================================================
--- trunk/sites/psi/java/ch/psi/idok/gwt/twiki/client/IdokSearchUtil.java
(original)
+++ trunk/sites/psi/java/ch/psi/idok/gwt/twiki/client/IdokSearchUtil.java
Fri Oct 17 11:50:23 2008
@@ -28,15 +28,15 @@
/**
* Base URL of iDok search ReST interface
*/
+ static final String REST_BASE_URL =
"https://dms02.psi.ch/api/v1/search/";;
// static final String REST_BASE_URL =
- // "https://dms02.psi.ch/api/v1/search/";;
- static final String REST_BASE_URL =
"http://dms02.psi.ch:8183/v1/search/";;
+ // "http://dms02.psi.ch:8183/v1/search/";;

/**
* If true, use XMLHttpRequest, else use JSONP for accessing iDok ReST
* service
*/
- static final boolean USE_XHR = true;
+ static final boolean USE_XHR = false;

/**
* @return Pretty-printed byte size String
@@ -110,7 +110,7 @@
if (jso != null) {
JSONObject json = new JSONObject(jso);
restCallbackHandler.onSuccess(json.get("xml")
- .toString());
+ .isString().stringValue());
} else
restCallbackHandler.onFailure();
}



  • [idok-commit] idok commit r281 - trunk/sites/psi/java/ch/psi/idok/gwt/twiki/client, AFS account Roman Geus, 10/17/2008

Archive powered by MHonArc 2.6.19.

Top of Page