From ec870128f2a48d056e7ae22a32ec87629f5f519d Mon Sep 17 00:00:00 2001
From: Ivan Tyagov <ivan@nexedi.com>
Date: Thu, 9 Dec 2010 13:09:20 +0000
Subject: [PATCH] Use proper PT renderer.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41269 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 bt5/erp5_km/TestTemplateItem/testKMGadget.py | 21 +++++++++++---------
 bt5/erp5_km/bt/revision                      |  2 +-
 2 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/bt5/erp5_km/TestTemplateItem/testKMGadget.py b/bt5/erp5_km/TestTemplateItem/testKMGadget.py
index dbf3234304..ce338db827 100644
--- a/bt5/erp5_km/TestTemplateItem/testKMGadget.py
+++ b/bt5/erp5_km/TestTemplateItem/testKMGadget.py
@@ -430,7 +430,8 @@ class TestGadgets(ERP5TypeTestCase,  ZopeTestCase.Functional):
     km_my_documents_gadget = portal_gadgets.km_my_documents
     km_my_contacts_gadget = portal_gadgets.km_my_contacts
     
-    response = self.publish('%s/WebSite_viewHomeAreaFormRenderer' %self.web_site_url, self.auth)
+    self.changeSkin('KM')
+    response = self.publish('%s/WebSite_viewKnowledgePad' %self.web_site_url, self.auth)
     self.failUnless(self.web_front_knowledge_pad.getTitle() in response.getBody())
 
     # Web Front gadgets
@@ -438,9 +439,10 @@ class TestGadgets(ERP5TypeTestCase,  ZopeTestCase.Functional):
     for gadget in web_front_gadgets:
       self.web_front_knowledge_pad.KnowledgePad_addBoxList(**{'uids':[gadget.getUid()]})
     self.stepTic()
-     
+    
+    self.changeSkin('KM')
     # check that gadgets are added to web front page view
-    response = self.publish('%s/WebSite_viewHomeAreaFormRenderer' %self.web_site_url, self.auth)
+    response = self.publish('%s/WebSite_viewKnowledgePad' %self.web_site_url, self.auth)
     for gadget in web_front_gadgets:
       self.failUnless(gadget.getTitle() in response.getBody())
 
@@ -769,7 +771,8 @@ class TestGadgets(ERP5TypeTestCase,  ZopeTestCase.Functional):
     request = self.app.REQUEST
     portal_gadgets = portal.portal_gadgets
 
-    response = self.publish('%s/WebSite_viewHomeAreaFormRenderer' %self.web_site_url, self.auth)
+    self.changeSkin('KM')
+    response = self.publish('%s/WebSite_viewKnowledgePad' %self.web_site_url, self.auth)
     self.failUnless(self.web_front_knowledge_pad.getTitle() in response.getBody())
 
     gadget = portal_gadgets.km_latest_documents
@@ -778,25 +781,25 @@ class TestGadgets(ERP5TypeTestCase,  ZopeTestCase.Functional):
 
     self.changeSkin('KM')
     # check that gadgets are added to web front page view
-    response = self.publish('%s/WebSite_viewHomeAreaFormRenderer' %self.web_site_url, self.auth)
+    response = self.publish('%s/WebSite_viewKnowledgePad' %self.web_site_url, self.auth)
     self.failUnless(gadget.getTitle() in response.getBody())
 
     # set non existent view_form
     old_gadget_view_form_id =  gadget.view_form_id
     gadget.view_form_id = 'NO_SUCH_FORM_EXISTS'
-    response = self.publish('%s/WebSite_viewHomeAreaFormRenderer' %self.web_site_url, self.auth)
+    response = self.publish('%s/WebSite_viewKnowledgePad' %self.web_site_url, self.auth)
     self.failUnless('Server side error' in response.getBody())
     gadget.view_form_id = old_gadget_view_form_id
-    response = self.publish('%s/WebSite_viewHomeAreaFormRenderer' %self.web_site_url, self.auth)
+    response = self.publish('%s/WebSite_viewKnowledgePad' %self.web_site_url, self.auth)
     self.failUnless('Server side error' not in response.getBody())
     
     # set non existent edit_form
     old_gadget_edit_form_id =  gadget.edit_form_id
     gadget.edit_form_id = 'NO_SUCH_FORM_EXISTS'
-    response = self.publish('%s/WebSite_viewHomeAreaFormRenderer' %self.web_site_url, self.auth)
+    response = self.publish('%s/WebSite_viewKnowledgePad' %self.web_site_url, self.auth)
     self.failUnless('Server side error' in response.getBody())
     gadget.edit_form_id = old_gadget_edit_form_id
-    response = self.publish('%s/WebSite_viewHomeAreaFormRenderer' %self.web_site_url, self.auth)
+    response = self.publish('%s/WebSite_viewKnowledgePad' %self.web_site_url, self.auth)
     self.failUnless('Server side error' not in response.getBody())
 
   def test_16WebSiteBrowserGadget(self, quiet=quiet, run=run_all_test):
diff --git a/bt5/erp5_km/bt/revision b/bt5/erp5_km/bt/revision
index 058fbb17e4..589edfdcb5 100644
--- a/bt5/erp5_km/bt/revision
+++ b/bt5/erp5_km/bt/revision
@@ -1 +1 @@
-1713
+1714
-- 
2.30.9