From d19b16cb740b3fe6a9879a649ca0125e2cd32e8f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Tue, 6 Sep 2011 09:31:22 +0200
Subject: [PATCH] Follow format changes: json in json.

---
 .../TestTemplateItem/testShaDirExternal.py               | 9 ++++++---
 bt5/networkcache_erp5/bt/revision                        | 2 +-
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/bt5/networkcache_erp5/TestTemplateItem/testShaDirExternal.py b/bt5/networkcache_erp5/TestTemplateItem/testShaDirExternal.py
index a1770b4b3d..17c498ebc6 100644
--- a/bt5/networkcache_erp5/TestTemplateItem/testShaDirExternal.py
+++ b/bt5/networkcache_erp5/TestTemplateItem/testShaDirExternal.py
@@ -161,12 +161,15 @@ class TestShaDirExternal(ShaDirMixin, ShaSecurityMixin, ERP5TypeTestCase):
       If the data does not follow the schema it must return the error.
     """
     # Removing a required property
-    self.data_list[0].pop('file')
-    self.data = json.dumps(self.data_list)
+    data = json.loads(self.data)
+    data[0] = json.loads(data[0])
+    data[0].pop('file')
+    data[0] = json.dumps(data[0])
+    data = json.dumps(data)
 
     connection = httplib.HTTPConnection('%s:%s' % (self.host, self.port))
     try:
-      connection.request('PUT', self.path, self.data, self.header_dict)
+      connection.request('PUT', self.path, data, self.header_dict)
       result = connection.getresponse()
       transaction.commit()
       self.tic()
diff --git a/bt5/networkcache_erp5/bt/revision b/bt5/networkcache_erp5/bt/revision
index 410b14d2ce..978b4e8e51 100644
--- a/bt5/networkcache_erp5/bt/revision
+++ b/bt5/networkcache_erp5/bt/revision
@@ -1 +1 @@
-25
\ No newline at end of file
+26
\ No newline at end of file
-- 
2.30.9