AUTHORS
author Sverre Rabbelier <srabbelier@gmail.com>
Sat, 06 Dec 2008 14:23:53 +0000
changeset 679 77a286ff6667
parent 609 45bc26f48090
child 816 9d61cbc9d013
permissions -rw-r--r--
Introduce dynamic scope_path regexps Instead of relying on scope_path's being "one slash deep", we should instead allow for either: 1. scope_paths that have a pre-defined depth 2. scope_paths that can be arbitrarily deep We achieve 1 by setting an entities scope_logic to another logic module. We then recursively call getScopeDepth until we get to the topmost entity (that is, an unscoped entity). A little different is the solution to 2, since some entities can have an arbitrarily deep scope (such as Documents), we need to have some way of signaling this to getScopePattern. A clean solution is to return None, rather than a number. If None is returned, the SCOPE_PATH_ARG_PATTERN is returned as regexp instead, which will match an arbitrarily deeply nested scope. The solution for 2 requires that we return None somewhere in the scope_logic chain, the most straight forward method to do so is to override getScopeDepth anywhere such a scope is needed and make it return None. A more elegant solution however, is to set the scope_logic to that module in all entities that require it. Patch by: Sverre Rabbelier
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
41c3b7f045b4 Initial AUTHORS file. Each contributor is added when their first contribution
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     1
# Please sort this file in alphabetical order by last (given) name.
41c3b7f045b4 Initial AUTHORS file. Each contributor is added when their first contribution
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     2
# Please only include one name per line.  If an (optional) email address is
41c3b7f045b4 Initial AUTHORS file. Each contributor is added when their first contribution
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     3
# included, it must be RFC 2821 compliant (properly quoted, escaped, etc.).
41c3b7f045b4 Initial AUTHORS file. Each contributor is added when their first contribution
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     4
# Lines beginning with # can be stripped from the file, as can blank lines.
41c3b7f045b4 Initial AUTHORS file. Each contributor is added when their first contribution
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     5
41c3b7f045b4 Initial AUTHORS file. Each contributor is added when their first contribution
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     6
"Todd Larsen" <tlarsen@google.com>
261
76c8de298e98 Add Allen (Chen Lunpeng) to trunk/AUTHORS, due to his several recent patches.
Todd Larsen <tlarsen@google.com>
parents: 79
diff changeset
     7
"Chen Lunpeng" <forever.clp@gmail.com>
7
5c72db822ebb Initial revision of the user.py module, containing the User Model, from the
Todd Larsen <tlarsen@google.com>
parents: 5
diff changeset
     8
"Sverre Rabbelier" <sverre@rabbelier.nl>
609
45bc26f48090 Fixed AUTHORS to comply with the specified format
Lennard de Rijk <ljvderijk@gmail.com>
parents: 604
diff changeset
     9
"Lennard de Rijk" <ljvderijk@gmail.com>
79
58001ec7720c Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 7
diff changeset
    10
"Pawel Solyga" <pawel.solyga@gmail.com>