[Checkins] SVN: grok/trunk/grokwiki/src/grokwiki/wikipage.py -
removed accidentally checked in file
Christian Theune
ct at gocept.com
Tue Oct 17 18:20:29 EDT 2006
Log message for revision 70768:
- removed accidentally checked in file
Changed:
D grok/trunk/grokwiki/src/grokwiki/wikipage.py
-=-
Deleted: grok/trunk/grokwiki/src/grokwiki/wikipage.py
===================================================================
--- grok/trunk/grokwiki/src/grokwiki/wikipage.py 2006-10-17 22:20:04 UTC (rev 70767)
+++ grok/trunk/grokwiki/src/grokwiki/wikipage.py 2006-10-17 22:20:28 UTC (rev 70768)
@@ -1,35 +0,0 @@
-import grok
-
-from zope.app.folder.folder import Folder
-
-class Wiki(grok.Model, Folder):
- pass
-
- at grok.subscribe(Wiki, grok.IObjectAddedEvent)
-def setupHomepage(wiki, event):
- page = WikiPage()
- wiki['home'] = page
-
-class WikiPage(grok.Model):
-
- def __init__(self):
- self.text = u"GROK EMPTY WIKI PAGE. FILL!"
-
-grok.context(WikiPage)
-
-class Index(grok.View):
-
- def before(self):
- text = self.request.form.get('wikidata')
- if text:
- self.context.text = text
-
-index = grok.PageTemplate("""\
-<html>
-<body>
-<form action=".">
-<textarea name="wikidata" tal:content="context/text"/><br/>
-<input type="submit"/>
-</form>
-</body>
-</html>""")
More information about the Checkins
mailing list