[Checkins] SVN: grokui.introspector/trunk/src/grokui/introspector/content.py Use new helper.

Uli Fouquet uli at gnufix.de
Fri May 1 18:50:09 EDT 2009


Log message for revision 99662:
  Use new helper.

Changed:
  U   grokui.introspector/trunk/src/grokui/introspector/content.py

-=-
Modified: grokui.introspector/trunk/src/grokui/introspector/content.py
===================================================================
--- grokui.introspector/trunk/src/grokui/introspector/content.py	2009-05-01 22:48:44 UTC (rev 99661)
+++ grokui.introspector/trunk/src/grokui/introspector/content.py	2009-05-01 22:50:09 UTC (rev 99662)
@@ -5,9 +5,8 @@
 
 from zope.introspector.interfaces import IObjectInfo
 from zope.introspector.viewinfo import ViewInfo
-from grokui.introspector.util import dotted_name_url
+from grokui.introspector.util import dotted_name_url, datatable_init
 
-
 class Inspect(grok.View):
     grok.context(interface.Interface)
     
@@ -60,3 +59,11 @@
         # with YUI.
         yui.datatable.need()
         yui.sam.need()
+
+    def getViewsTableInit(self):
+        result = datatable_init(
+            'ViewsTable', 'ViewsTableContainer',
+            (dict(key='skin', label='Skin', sortable=True),
+             dict(key='name', label='Name', sortable=True),
+             dict(key='iface', label='Interfaces', sortable=True)))
+        return result



More information about the Checkins mailing list