From abb0334c1dc33f0a207fb1def8295e3ade0a355e Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Sun, 28 Jun 2009 11:49:00 +0000 Subject: [PATCH] replace moderate comments table with a subclass of the standard Plone folder-listing table. this basically breaks all functionality (filter, bulk actions) and kss actions are not working yet, but the pagination is working. svn path=/plone.app.discussion/trunk/; revision=27698 --- plone/app/discussion/browser/batching.pt | 104 +++++++++ plone/app/discussion/browser/configure.zcml | 18 ++ plone/app/discussion/browser/moderation.pt | 67 ++++-- plone/app/discussion/browser/moderation.py | 196 ++++++++++++++++- plone/app/discussion/browser/table.pt | 225 ++++++++++++++++++++ 5 files changed, 596 insertions(+), 14 deletions(-) create mode 100644 plone/app/discussion/browser/batching.pt create mode 100644 plone/app/discussion/browser/table.pt diff --git a/plone/app/discussion/browser/batching.pt b/plone/app/discussion/browser/batching.pt new file mode 100644 index 0000000..fd976e5 --- /dev/null +++ b/plone/app/discussion/browser/batching.pt @@ -0,0 +1,104 @@ + + +
+ + + « + + Previous + n + items + + + + + + + + Next + n + items + + » + + + + + + 1 + + ... + + + + + + + + + + + + + + [Current page number] + + + + + + + + + + + + + + ... + + 3457 + +
diff --git a/plone/app/discussion/browser/configure.zcml b/plone/app/discussion/browser/configure.zcml index 972b37a..d99baf5 100644 --- a/plone/app/discussion/browser/configure.zcml +++ b/plone/app/discussion/browser/configure.zcml @@ -8,6 +8,24 @@ + + + + + + +
+ +
+ +
+
+ + + + + + + + +

+ This folder has no visible items. To add content, press the + add button, or paste content from another location. +

+ + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + * We have to check if the browserDefault stuff is really necessary + * Create title_or_id metadata in the catalog (why not just use item.Title or item.getId? (alecm)) + + + + + + + + + + + + + + + + + + + + + + +
Select: All
+ + All items on this + page are selected. + + Select all + items in this folder. +
+ + All items in this folder + are selected. + + Clear selection +
  Title  Modified  State  +  Order  Action 
+ + + + + + + + + + + + expired + + 08/19/2001 03:01 AM + + +   + + + ▲ + +   + + ▼ + + + + + + + +
+ + +
+
+ Show all items +
+ Show batched +
+
+ + + + +