[Checkins] SVN: grok/trunk/doc/groktut/a_second_model/ More tutorial sample.

Martijn Faassen faassen at infrae.com
Fri Mar 23 16:46:18 EDT 2007


Log message for revision 73489:
  More tutorial sample.
  

Changed:
  A   grok/trunk/doc/groktut/a_second_model/
  U   grok/trunk/doc/groktut/a_second_model/src/sample/app.py
  A   grok/trunk/doc/groktut/a_second_model/src/sample/app_templates/anotherindex.pt
  D   grok/trunk/doc/groktut/a_second_model/src/sample/app_templates/bye.pt
  D   grok/trunk/doc/groktut/a_second_model/src/sample/app_templates/index.pt
  A   grok/trunk/doc/groktut/a_second_model/src/sample/app_templates/sampleindex.pt

-=-
Copied: grok/trunk/doc/groktut/a_second_model (from rev 73402, grok/trunk/doc/groktut/a_second_view)

Modified: grok/trunk/doc/groktut/a_second_model/src/sample/app.py
===================================================================
--- grok/trunk/doc/groktut/a_second_view/src/sample/app.py	2007-03-20 17:47:59 UTC (rev 73402)
+++ grok/trunk/doc/groktut/a_second_model/src/sample/app.py	2007-03-23 20:46:17 UTC (rev 73489)
@@ -3,9 +3,13 @@
 class Sample(grok.Application, grok.Container):
     pass
 
-class Index(grok.View):
+class Another(grok.Application, grok.Model):
     pass
 
-class Bye(grok.View):
-    pass
-
+class SampleIndex(grok.View):
+    grok.context(Sample)
+    grok.name('index')
+    
+class AnotherIndex(grok.View):
+    grok.context(Another)
+    grok.name('index')

Added: grok/trunk/doc/groktut/a_second_model/src/sample/app_templates/anotherindex.pt
===================================================================
--- grok/trunk/doc/groktut/a_second_view/src/sample/app_templates/anotherindex.pt	2007-03-20 17:47:59 UTC (rev 73402)
+++ grok/trunk/doc/groktut/a_second_model/src/sample/app_templates/anotherindex.pt	2007-03-23 20:46:17 UTC (rev 73489)
@@ -0,0 +1,5 @@
+<html>
+<body>
+<p>Another index</p>
+</body>
+</html>
\ No newline at end of file

Deleted: grok/trunk/doc/groktut/a_second_model/src/sample/app_templates/bye.pt
===================================================================
--- grok/trunk/doc/groktut/a_second_view/src/sample/app_templates/bye.pt	2007-03-20 17:47:59 UTC (rev 73402)
+++ grok/trunk/doc/groktut/a_second_model/src/sample/app_templates/bye.pt	2007-03-23 20:46:17 UTC (rev 73489)
@@ -1,5 +0,0 @@
-<html>
-<body>
-<p>Bye world!</p>
-</body>
-</html>

Deleted: grok/trunk/doc/groktut/a_second_model/src/sample/app_templates/index.pt
===================================================================
--- grok/trunk/doc/groktut/a_second_view/src/sample/app_templates/index.pt	2007-03-20 17:47:59 UTC (rev 73402)
+++ grok/trunk/doc/groktut/a_second_model/src/sample/app_templates/index.pt	2007-03-23 20:46:17 UTC (rev 73489)
@@ -1,5 +0,0 @@
-<html>
-<body>
-<p>Hello world!</p>
-</body>
-</html>
\ No newline at end of file

Added: grok/trunk/doc/groktut/a_second_model/src/sample/app_templates/sampleindex.pt
===================================================================
--- grok/trunk/doc/groktut/a_second_view/src/sample/app_templates/sampleindex.pt	2007-03-20 17:47:59 UTC (rev 73402)
+++ grok/trunk/doc/groktut/a_second_model/src/sample/app_templates/sampleindex.pt	2007-03-23 20:46:17 UTC (rev 73489)
@@ -0,0 +1,5 @@
+<html>
+<body>
+<p>Sample index</p>
+</body>
+</html>
\ No newline at end of file



More information about the Checkins mailing list