[rhmessaging-commits] rhmessaging commits: r3207 - mgmt/trunk/cumin/python/cumin.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Tue Mar 24 14:50:37 EDT 2009


Author: justi9
Date: 2009-03-24 14:50:37 -0400 (Tue, 24 Mar 2009)
New Revision: 3207

Modified:
   mgmt/trunk/cumin/python/cumin/action.py
   mgmt/trunk/cumin/python/cumin/action.strings
Log:
Convert the actions page to use HtmlPage

Modified: mgmt/trunk/cumin/python/cumin/action.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/action.py	2009-03-24 17:35:17 UTC (rev 3206)
+++ mgmt/trunk/cumin/python/cumin/action.py	2009-03-24 18:50:37 UTC (rev 3207)
@@ -1,4 +1,5 @@
 from wooly import *
+from wooly.pages import *
 from wooly.tables import *
 from datetime import datetime
 
@@ -59,7 +60,7 @@
     def do_get_items(self, session, *args):
         return reversed(sorted_by(self.app.model.invocations, "when"))
 
-class ActionPage(Page):
+class ActionPage(HtmlPage):
     def __init__(self, app, name):
         super(ActionPage, self).__init__(app, name)
 

Modified: mgmt/trunk/cumin/python/cumin/action.strings
===================================================================
--- mgmt/trunk/cumin/python/cumin/action.strings	2009-03-24 17:35:17 UTC (rev 3206)
+++ mgmt/trunk/cumin/python/cumin/action.strings	2009-03-24 18:50:37 UTC (rev 3207)
@@ -6,22 +6,7 @@
   <tbody>{items}</tbody>
 </table>
 
-[ActionPage.html]
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
-  <head>
-    <title>{title}</title>
-    <meta http-equiv="refresh" content="3"/>
-    <link rel="stylesheet" type="text/css" href="cumin.css"/>
-    <link rel="shortcut icon" href="resource?name=favicon.ico" type="image/x-icon"/>
-  </head>
-  <style>
-    body {
-      padding: 1em;
-    }
-  </style>
-  <body>
-    {actions}
-  </body>
-</html>
+[ActionPage.css]
+body {
+    margin: 1em;
+}




More information about the rhmessaging-commits mailing list