[Checkins] SVN: grok/trunk/ Really make it possible to use
grok.Container as a model now: we
Martijn Faassen
faassen at infrae.com
Tue Oct 31 12:26:08 EST 2006
Log message for revision 71014:
Really make it possible to use grok.Container as a model now: we
need to make sure 'index' is the default view for containers too.
Changed:
U grok/trunk/grokwiki/src/grokwiki/wiki.py
U grok/trunk/src/grok/_grok.py
-=-
Modified: grok/trunk/grokwiki/src/grokwiki/wiki.py
===================================================================
--- grok/trunk/grokwiki/src/grokwiki/wiki.py 2006-10-31 17:16:13 UTC (rev 71013)
+++ grok/trunk/grokwiki/src/grokwiki/wiki.py 2006-10-31 17:26:07 UTC (rev 71014)
@@ -17,7 +17,7 @@
import grok
import grokwiki.page
-class Wiki(grok.Model, grok.Container):
+class Wiki(grok.Container):
"""This is our wiki application wich contains all wiki pages."""
@grok.traverse
Modified: grok/trunk/src/grok/_grok.py
===================================================================
--- grok/trunk/src/grok/_grok.py 2006-10-31 17:16:13 UTC (rev 71013)
+++ grok/trunk/src/grok/_grok.py 2006-10-31 17:26:07 UTC (rev 71014)
@@ -47,7 +47,10 @@
component.provideAdapter('index',
adapts=(grok.Model, IBrowserRequest),
provides=IDefaultViewName)
-
+ component.provideAdapter('index',
+ adapts=(grok.Container, IBrowserRequest),
+ provides=IDefaultViewName)
+
# add a cleanup hook so that grok will bootstrap itself again whenever
# the Component Architecture is torn down.
def resetBootstrap():
More information about the Checkins
mailing list