From 0befb6d04af8674baa3f04e45e751443a97bd370 Mon Sep 17 00:00:00 2001 From: Christophe de Vienne Date: Sun, 16 Oct 2011 12:52:00 +0200 Subject: [PATCH] Rectify the integration examples --- doc/integrate.rst | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/doc/integrate.rst b/doc/integrate.rst index 9830e86..364961e 100644 --- a/doc/integrate.rst +++ b/doc/integrate.rst @@ -20,7 +20,6 @@ Example from wsme import * import wsme.wsgi - from wsme.protocols import restjson class MyRoot(WSRoot): @expose(unicode) @@ -28,7 +27,7 @@ Example return u"Hello World !" application = wsme.wsgi.adapt( - MyRoot(protocols=['REST+Json'])) + MyRoot(protocols=['restjson'])) Turbogears 1.x -------------- @@ -73,12 +72,10 @@ Insert the ws controller in the controller tree, (file controllers.py): from wsmedemo.ws import WSController - # make sure the wanted protocols are known - import wsme.protocols.restjson import wsme.tg1 class Root(controllers.RootController): ws = wsme.tg1.adapt( - WSController(webpath='/ws', protocols=['REST+Json'])) + WSController(webpath='/ws', protocols=['restjson'])) # ...