Permalink
Browse files

Do not hide sort_on and sort_reversed on the field level, since this …

…will

  break the JS code for sorting in plone.formwidget.querystring.
  • Loading branch information...
Timo Stollenwerk
Timo Stollenwerk committed Mar 9, 2012
1 parent 902b5da commit 92a322c0947422e1ee9777b4943942455f72d29d
Showing with 16 additions and 13 deletions.
  1. +6 −1 TODO.txt
  2. +7 −7 docs/HISTORY.txt
  3. +2 −4 plone/app/collection/interfaces.py
  4. +1 −1 setup.py
View
@@ -14,6 +14,11 @@ ToDo
[X] Make enableSyndication/RSS work. Syndication is not working for
plone.app.collection trunk either.
+ [ ] Refactor plone.formwidget.querystring to not use sorting field
+ duplicates as described here: https://github.com/plone/plone.formwidget.querystring/blob/master/plone/formwidget/querystring/querywidget.js#L222
+ The '@@querybuilder_html_results' view from plone.app.querystring should
+ use the z3c.form fields directly.
+
[ ] Make the tabular_view and the in-out-widget for the customViewFields field work.
- [ ] Make the collection portlet work.
+ [ ] Make the collection portlet work.
View
@@ -1,20 +1,20 @@
Changelog
=========
-2.0a2 (unreleased)
+2.0b1 (unreleased)
------------------
- Remove archetypes-based Topic content type on install.
[timo]
+- Do not hide sort_on and sort_reversed on the field level, since this will
+ break the JS code for sorting in plone.formwidget.querystring. At some
+ point we have to refactor the code to make plone.formwidget.querystring use
+ z3c.form only for sorting.
+ [timo]
+
2.0a1 (2011-11-13)
------------------
- Initial release of the dexterity-based version.
-
-
-1.0 (2011-07-19)
-----------------
-
-- Initial release.
@@ -26,16 +26,14 @@ class ICollection(form.Schema):
required=False
)
- form.mode(sort_on='hidden')
sort_on = schema.TextLine(
- title=_(u'label_sort_on', default=u'sortable_title'),
+ title=_(u'label_sort_on', default=u'Sort on'),
description=_(u"Sort the collection on this index"),
required=False,
)
- form.mode(sort_reversed='hidden')
sort_reversed = schema.Bool(
- title=_(u'label_sort_reversed', default=u'sort_reversed'),
+ title=_(u'label_sort_reversed', default=u'Reversed order'),
description=_(u'Sort the results in reversed order'),
required=False,
)
View
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
import os
-version = '2.0a2dev'
+version = '2.0b1'
setup(name='plone.app.collection',
version=version,

0 comments on commit 92a322c

Please sign in to comment.