[Checkins] SVN: grokproject/trunk/src/grokproject/template/src/+package+/+module+ Create a default index view for the application so that you can point your browser

Philipp von Weitershausen philikon at philikon.de
Mon Mar 19 16:05:54 EDT 2007


Log message for revision 73355:
  Create a default index view for the application so that you can point your browser
  to a newly created application object and actually see something useful.
  

Changed:
  U   grokproject/trunk/src/grokproject/template/src/+package+/+module+.py_tmpl
  A   grokproject/trunk/src/grokproject/template/src/+package+/+module+_templates/index.pt_tmpl

-=-
Modified: grokproject/trunk/src/grokproject/template/src/+package+/+module+.py_tmpl
===================================================================
--- grokproject/trunk/src/grokproject/template/src/+package+/+module+.py_tmpl	2007-03-19 20:04:31 UTC (rev 73354)
+++ grokproject/trunk/src/grokproject/template/src/+package+/+module+.py_tmpl	2007-03-19 20:05:54 UTC (rev 73355)
@@ -3,3 +3,5 @@
 class ${project}(grok.Application, grok.Container):
     pass
 
+class Index(grok.View):
+    pass # see ${module}_templates/index.pt
\ No newline at end of file

Added: grokproject/trunk/src/grokproject/template/src/+package+/+module+_templates/index.pt_tmpl
===================================================================
--- grokproject/trunk/src/grokproject/template/src/+package+/+module+_templates/index.pt_tmpl	2007-03-19 20:04:31 UTC (rev 73354)
+++ grokproject/trunk/src/grokproject/template/src/+package+/+module+_templates/index.pt_tmpl	2007-03-19 20:05:54 UTC (rev 73355)
@@ -0,0 +1,10 @@
+<html>
+<head>
+</head>
+<body>
+  <h1>Congratulations!</h1>
+
+  <p>Your Grok application is up and running.
+  Edit <code>${package}/${module}_templates/index.pt</code> to change
+  this page.</p>
+</body>



More information about the Checkins mailing list