[Checkins] SVN: Sandbox/ulif/grok-adminui/grokwiki/src/grokwiki/ Added usage of view.flash().

Christian Theune ct at gocept.com
Fri Jul 13 02:43:39 EDT 2007


Log message for revision 77796:
  Added usage of view.flash().
  

Changed:
  U   Sandbox/ulif/grok-adminui/grokwiki/src/grokwiki/page.py
  U   Sandbox/ulif/grok-adminui/grokwiki/src/grokwiki/page_templates/layout.pt
  U   Sandbox/ulif/grok-adminui/grokwiki/src/grokwiki/static/wiki.css

-=-
Modified: Sandbox/ulif/grok-adminui/grokwiki/src/grokwiki/page.py
===================================================================
--- Sandbox/ulif/grok-adminui/grokwiki/src/grokwiki/page.py	2007-07-13 06:30:54 UTC (rev 77795)
+++ Sandbox/ulif/grok-adminui/grokwiki/src/grokwiki/page.py	2007-07-13 06:43:38 UTC (rev 77796)
@@ -55,4 +55,5 @@
 
         # Update the text and redirect
         self.context.update(text)
+        self.flash('Saved.')
         self.redirect(self.url(self.context))

Modified: Sandbox/ulif/grok-adminui/grokwiki/src/grokwiki/page_templates/layout.pt
===================================================================
--- Sandbox/ulif/grok-adminui/grokwiki/src/grokwiki/page_templates/layout.pt	2007-07-13 06:30:54 UTC (rev 77795)
+++ Sandbox/ulif/grok-adminui/grokwiki/src/grokwiki/page_templates/layout.pt	2007-07-13 06:43:38 UTC (rev 77796)
@@ -1,26 +1,37 @@
 <html metal:define-macro="main">
-    <head>
-        <link rel="stylesheet" tal:attributes="href static/wiki.css" type="text/css">
-    </head>
+  <head>
+    <link
+      rel="stylesheet"
+      tal:attributes="href static/wiki.css"
+      type="text/css"/>
+  </head>
 
-    <body
-        tal:define="wiki context/__parent__">
-        <div metal:define-slot="content">
-            Page content goes here ...
-        </div>
+  <body
+    tal:define="wiki context/__parent__">
 
-        <hr/>
-        <h3>Other pages</h3>
-        <p>
-            <span tal:repeat="page wiki">
-                <a tal:attributes="href python:view.url(wiki, page)"
-                   tal:content="page"
-                   />
-            </span>
-        </p>
-        <hr/>
-        <div id="footer">
-        This Wiki was grokked by Zope 3.
-        </div>
-    </body>
+    <div id="messages" tal:content="structure context/@@messages" />
+
+    <div metal:define-slot="content">
+      Page content goes here ...
+    </div>
+
+    <hr/>
+
+    <h3>Other pages</h3>
+
+    <p>
+      <span tal:repeat="page wiki">
+        <a tal:attributes="href python:view.url(wiki, page)"
+          tal:content="page"
+          />
+      </span>
+    </p>
+
+    <hr/>
+
+    <div id="footer">
+      This wiki is powered by Grok.
+    </div>
+
+  </body>
 </html>

Modified: Sandbox/ulif/grok-adminui/grokwiki/src/grokwiki/static/wiki.css
===================================================================
--- Sandbox/ulif/grok-adminui/grokwiki/src/grokwiki/static/wiki.css	2007-07-13 06:30:54 UTC (rev 77795)
+++ Sandbox/ulif/grok-adminui/grokwiki/src/grokwiki/static/wiki.css	2007-07-13 06:43:38 UTC (rev 77796)
@@ -13,3 +13,12 @@
     font-size:70%;
     color:#999999;
 }
+
+#messages li {
+    border: 1px solid #999;
+    background-color:#EEE;
+    padding:0.25em 0.5em;
+    list-style-type: none;
+    margin-left:-1.5em;
+    margin-right:1em;
+}



More information about the Checkins mailing list