annotate doc/license.txt @ 5222:9bf221cebef3

Make properties method return only properties the user can search. See: https://sourceforge.net/p/roundup/mailman/roundup-devel/thread/20170405002844.2004B80690%40vm71.cs.umb.edu/#msg35769250 [Roundup-devel] Bug in context/properties, lists properties user can't search. The HTMLClass::properties() method returns a list of all properties. This is used when creating sort on/group by filters on index pages. However somewhere in the code, a user needs search permission on the property in order for it to be used for grouping or sorting. This means the user can choose to sort/group an index page by a property that they have no search permission for. As a result the sort/group is ignored. This is confusing. I have changed the properties method to only return properties the user has View/Search permissions on. I also added a new cansearch argument set by default to True. If set to False, all properties regardless of Search permission are returned. Doc updated to include the new default operation and mention the use of cansearch argument.
author John Rouillard <rouilj@ieee.org>
date Wed, 05 Apr 2017 21:38:32 -0400
parents f22831a12ab8
children 8a73b0b12102
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4033
bca7c59ac400 Enhance documentation generation.
Stefan Seefeld <stefan@seefeld.name>
parents:
diff changeset
1 License
bca7c59ac400 Enhance documentation generation.
Stefan Seefeld <stefan@seefeld.name>
parents:
diff changeset
2 =======
bca7c59ac400 Enhance documentation generation.
Stefan Seefeld <stefan@seefeld.name>
parents:
diff changeset
3
4612
771e66e8c0b4 Trying to get the license included in the generated website docs.
Bernhard Reiter <bernhard@intevation.de>
parents: 4033
diff changeset
4 Roundup is Free Software under the following license (from the file
771e66e8c0b4 Trying to get the license included in the generated website docs.
Bernhard Reiter <bernhard@intevation.de>
parents: 4033
diff changeset
5 COPYING.txt in the software distribution):
4033
bca7c59ac400 Enhance documentation generation.
Stefan Seefeld <stefan@seefeld.name>
parents:
diff changeset
6
4621
f22831a12ab8 Fix path to included COPYING.txt.
Ralf Schlatterbeck <rsc@runtux.com>
parents: 4612
diff changeset
7 .. include:: ../COPYING.txt
4612
771e66e8c0b4 Trying to get the license included in the generated website docs.
Bernhard Reiter <bernhard@intevation.de>
parents: 4033
diff changeset
8 :literal:

Roundup Issue Tracker: http://roundup-tracker.org/