[Twisted-Python] StikiWiki and textarea/woven/model problem.

Hi, Firstly, StikiWiki is a simple example of a somewhat Wiki-like web application in Twisted that can create and edit reStructuredText documents, and display them as HTML. It's attached as stikiwiki.py. Well, you can create documents. Editing isn't as much editing as rewriting. I'm using a textarea for input, and since I haven't looked all that much at woven, I can't figure out why its contents aren't replaced with the existing content (via getData on the given model). So, at the moment, you can create a page (localhost:9080/asdf/create), type in some reST, and then go to localhost:9080/asdf and view it. Then go to localhost:9080/asdf/create and rewrite it. I want to figure out why the model's getData doesn't get involved. Any help greatly appreciated. Thanks, Neil -- Neil Blakey-Milner nbm@mithrandr.moria.org

On Thu 2003-03-13 (16:11), Neil Blakey-Milner wrote:
Thanks to "wzZzy" for pointing out I don't have the view set. Attached the minimal changes. Basically, you need docutils (0.2) from docutils.sf.net, and cog (0.3) from http://www.itamarst.org/software/cog/. Then, create /tmp/cog. Run. Connect to localhost:9080. Create pages by going to another page, and adding the name you want and "/create". So, to create http://localhost:9080/asdf, go to http://localhost:9080/asdf/create. You can edit any page by putting "/edit" at the end. Or, use the link at the bottom of the page to edit or create the page. The main page is different - use http://localhost:9080/Index/edit for it. Night, Neil -- Neil Blakey-Milner nbm@mithrandr.moria.org

On Thu 2003-03-13 (16:11), Neil Blakey-Milner wrote:
Thanks to "wzZzy" for pointing out I don't have the view set. Attached the minimal changes. Basically, you need docutils (0.2) from docutils.sf.net, and cog (0.3) from http://www.itamarst.org/software/cog/. Then, create /tmp/cog. Run. Connect to localhost:9080. Create pages by going to another page, and adding the name you want and "/create". So, to create http://localhost:9080/asdf, go to http://localhost:9080/asdf/create. You can edit any page by putting "/edit" at the end. Or, use the link at the bottom of the page to edit or create the page. The main page is different - use http://localhost:9080/Index/edit for it. Night, Neil -- Neil Blakey-Milner nbm@mithrandr.moria.org
participants (1)
-
Neil Blakey-Milner