Author: justi9
Date: 2010-08-26 14:38:46 -0400 (Thu, 26 Aug 2010)
New Revision: 4229
Modified:
mgmt/newdata/cumin/python/cumin/objectframe.py
mgmt/newdata/cumin/python/cumin/objectframe.strings
Log:
Fixes the (annoying) summary attribute rendering problem
Modified: mgmt/newdata/cumin/python/cumin/objectframe.py
===================================================================
--- mgmt/newdata/cumin/python/cumin/objectframe.py 2010-08-26 18:13:59 UTC (rev 4228)
+++ mgmt/newdata/cumin/python/cumin/objectframe.py 2010-08-26 18:38:46 UTC (rev 4229)
@@ -282,6 +282,9 @@
def get_attributes(self, session):
return self.frame.summary_attributes
+class DetailsAttributes(ObjectAttributes):
+ pass
+
class ObjectDetails(Widget):
def __init__(self, app, name, object):
super(ObjectDetails, self).__init__(app, name)
@@ -307,7 +310,7 @@
def render_title(self, session):
return "Details"
- class Headers(ObjectAttributes):
+ class Headers(DetailsAttributes):
def get_attributes(self, session):
obj = self.object.get(session)
return obj._class._headers
@@ -315,7 +318,7 @@
def render_title(self, session):
return "QMF Headers"
- class References(ObjectAttributes):
+ class References(DetailsAttributes):
def get_attributes(self, session):
obj = self.object.get(session)
return obj._class._references
@@ -323,7 +326,7 @@
def render_title(self, session):
return "References"
- class Properties(ObjectAttributes):
+ class Properties(DetailsAttributes):
def get_attributes(self, session):
obj = self.object.get(session)
return obj._class._properties
@@ -331,7 +334,7 @@
def render_title(self, session):
return "Properties"
- class Statistics(ObjectAttributes):
+ class Statistics(DetailsAttributes):
def get_attributes(self, session):
obj = self.object.get(session)
return obj._class._statistics
Modified: mgmt/newdata/cumin/python/cumin/objectframe.strings
===================================================================
--- mgmt/newdata/cumin/python/cumin/objectframe.strings 2010-08-26 18:13:59 UTC (rev
4228)
+++ mgmt/newdata/cumin/python/cumin/objectframe.strings 2010-08-26 18:38:46 UTC (rev
4229)
@@ -1,42 +1,19 @@
[ObjectAttributes.css]
-div.ObjectAttributes h2 {
- margin: 0 0 1em 0;
- font-size: 0.9em;
-}
-
-div.ObjectAttributes table {
- width: 100%;
- margin: 0 0 1em 0;
- border-collapse: collapse;
- font-size: 0.9em;
-}
-
-div.ObjectAttributes th, div.ObjectAttributes td {
- padding: 0.35em 0.5em 0.35em 0;
- text-align: left;
- vertical-align: top;
-}
-
-div.ObjectAttributes thead th {
- font-weight: normal;
- font-style: italic;
- font-size: 0.9em;
- color: #666;
-}
-
-div.ObjectAttributes tbody tr {
- border-top: 1px dotted #ccc;
-}
-
div.ObjectAttributes tbody th {
width: 40%;
font-weight: normal;
+ color: #666;
}
div.ObjectAttributes tbody td {
width: 60%;
}
+div.ObjectAttributes th, div.ObjectAttributes td {
+ text-align: left;
+ vertical-align: top;
+}
+
[ObjectAttributes.html]
<div id="{id}" class="{class}">
<h2>{title}</h2>
@@ -84,20 +61,13 @@
div.SummaryAttributes {
width: 20em;
margin: 0 0 1.5em 0;
+ font-size: 0.9em;
}
-div.SummaryAttributes tbody tr {
- border-top: none;
-}
-
div.SummaryAttributes tbody th, div.SummaryAttributes tbody td {
padding: 0.125em 0;
}
-div.SummaryAttributes tbody th {
- color: #666;
-}
-
[SummaryAttributes.html]
<div id="{id}" class="{class}">
<table>
@@ -172,6 +142,35 @@
[ObjectViewContext.html]
<div class="{class}">{links}</div>
+[DetailsAttributes.css]
+div.DetailsAttributes h2 {
+ margin: 0 0 1em 0;
+ font-size: 0.9em;
+}
+
+div.DetailsAttributes table {
+ width: 100%;
+ margin: 0 0 1em 0;
+ border-collapse: collapse;
+ font-size: 0.9em;
+}
+
+div.DetailsAttributes th, div.DetailsAttributes td {
+ padding: 0.35em 0.5em 0.35em 0;
+ text-align: left;
+ vertical-align: top;
+}
+
+div.DetailsAttributes thead th {
+ font-weight: normal;
+ font-style: italic;
+ color: #666;
+}
+
+div.DetailsAttributes tbody tr {
+ border-top: 1px dotted #ccc;
+}
+
[ObjectDetails.html]
{headers}
Show replies by date