Hi All,

this is my first post and also my first contribute to this great
framework.
Whit the following patch I can run the wiki20 again but I can't say if
it is totally correct ;)
luca

--- C:\prove\wiki20.orig\wiki20\templates\master.kid    Wed Sep 14
17:01:42 2005
+++ C:\prove\wiki20\wiki20\templates\master.kid Sat Feb 25 17:14:13
2006
@@ -5,10 +5,10 @@
     <meta content="text/html; charset=UTF-8" http-equiv="content-type"
py:replace="''"/>
     <title py:replace="''">Your title goes here</title>
     <meta py:replace="item[:]"/>
-    <script src="/turbogearsjs/MochiKit.js"/>
+    <script src="/tg_js/MochiKit.js"/>
     <script type="text/javascript">
     function requestPageList() {
-        d = loadJSONDoc("/pagelist?turbogearsfmt=json");
+        d = loadJSONDoc("/pagelist?tg_format=json");
         d.addCallback(showPageList);
     }

@@ -29,7 +29,7 @@

 <body py:match="item.tag=='{http://www.w3.org/1999/xhtml}body'">

-    <div py:if="turbogearsflash" class="flash"
py:content="turbogearsflash"></div>
+    <div py:if="tg_flash" class="flash" py:content="tg_flash"></div>

     <div py:replace="item[:]"/>

--- C:\prove\wiki20.orig\wiki20\controllers.py  Wed Sep 14 17:03:36 2005
+++ C:\prove\wiki20\wiki20\controllers.py       Sat Feb 25 17:50:16 2006
@@ -29,7 +29,8 @@
         page = Page.byPagename(pagename)
         return dict(pagename=pagename, data=page.data, new=False)

-    @turbogears.expose(validators=dict(
+    @turbogears.expose()
+    @turbogears.validate(validators=dict(
                         new=validators.StringBoolean()))
     def save(self, pagename, data, submit, new):
         hub.begin()
@@ -47,7 +48,8 @@
     def notfound(self, pagename):
         return dict(pagename=pagename, data="", new=True)

-    @turbogears.expose(html="wiki20.templates.pagelist")
+    @turbogears.expose(html="wiki20.templates.pagelist",
+                        allow_json=True)
     def pagelist(self):
         pages = [page.pagename for page in
             Page.select(orderBy=Page.q.pagename)]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to