Index: /main/waeup.sirp/trunk/src/waeup/sirp/browser/resources.py
===================================================================
--- /main/waeup.sirp/trunk/src/waeup/sirp/browser/resources.py	(revision 6010)
+++ /main/waeup.sirp/trunk/src/waeup/sirp/browser/resources.py	(revision 6011)
@@ -131,5 +131,65 @@
 #:
 tabs = ResourceInclusion(waeup_sirp, 'tabs.js',
-                         depends=[base, jquery, jqueryui])
+                         depends=[jquery, jqueryui])
+
+#: Resource that makes datatables for jQuery UI available.
+#:
+#: We register a normal version and a minified version. To make real
+#: use of datatables you might want to add some specialized CSS like
+#: `datatable_css` below.
+datatables = ResourceInclusion(waeup_sirp, 'jquery.dataTables.js',
+                               minified='jquery.dataTables.min.js',
+                               depends=[jquery])
+
+#: A stylesheet for datatables
+datatables_css = ResourceInclusion(waeup_sirp, 'datatables.css')
+                                  
+#: A resource that turns HTML tables into sortable, searchable and :
+#: multi-page widgets using jQuery and the dataTables plugin available
+#: from http://www.datatables.net.
+#:
+#: If you want jQuery datatables for some <table> in your page then you
+#: have to perform two steps:
+#:
+#: * In the `update()` method of the responsible view/page/form
+#:   require the JavaScript code to be rendered into the page:
+#:
+#:     from waeup.sirp.browser.resources import datatable
+#:     ...
+#:     class MyPage(...):
+#:       ...
+#:       def update(self):
+#:         datatable.need()
+#:
+#:   This way all required JavaScripts will be rendered correctly
+#:   into the HTML page generated.
+#:
+#: * Assign a ``datatable`` id to the HTML table you want to tune:
+#:    
+#:      <table id="datatable">
+#:        <thead>
+#:          <tr>
+#:            <th>Name</th><th>Title</th>
+#:          </tr>
+#:        </thead>
+#:        <tbody>
+#:          <tr class="gradeA">
+#: 	      <td>Manfred</td><td>Mammoth of the year</td>
+#:          </tr>
+#:          <tr class="gradeA">
+#: 	      <td>Wolfgang</td><td>Junior</td>
+#:          </tr>
+#:        </tbody>
+#:      </table>
+#:
+#: When the HTML is rendered, clicking into one of the tabs will make
+#: other <div>s disappear. See
+#:
+#:   http://jqueryui.com/demos/tabs/
+#:
+#: for details.
+#:
+datatable = ResourceInclusion(waeup_sirp, 'datatable.js',
+                              depends=[datatables, datatables_css])
 
 #: Register basic YUI based CSS as a resource.
@@ -153,2 +213,7 @@
     waeup_sirp, 'waeuptheme-gray1.css',
     depends=[waeup_base_css])
+
+#: A basic theme based on jQuery only (crappy yet).
+waeuptheme_base = ResourceInclusion(
+    waeup_sirp, 'empty.css',
+    depends=[humanity])
