equal
deleted
inserted
replaced
12 # distributed under the License is distributed on an "AS IS" BASIS, |
12 # distributed under the License is distributed on an "AS IS" BASIS, |
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
14 # See the License for the specific language governing permissions and |
14 # See the License for the specific language governing permissions and |
15 # limitations under the License. |
15 # limitations under the License. |
16 |
16 |
17 """Sidebar |
17 """Module contains sidemap related functions. |
18 """ |
18 """ |
19 |
19 |
20 __authors__ = [ |
20 __authors__ = [ |
21 '"Sverre Rabbelier" <sverre@rabbelier.nl>', |
21 '"Sverre Rabbelier" <sverre@rabbelier.nl>', |
22 ] |
22 ] |
29 global SITEMAP |
29 global SITEMAP |
30 SITEMAP += pages |
30 SITEMAP += pages |
31 |
31 |
32 |
32 |
33 def getDjangoURLPatterns(params): |
33 def getDjangoURLPatterns(params): |
34 """Retrieves a list of sidebar entries for this View |
34 """Retrieves a list of sidebar entries for this View. |
35 |
35 |
36 Params usage: |
36 Params usage: |
37 The params dictionary is passed to the getKeyFieldsPatterns |
37 The params dictionary is passed to the getKeyFieldsPatterns |
38 method, see it's docstring on how it is used. |
38 method, see it's docstring on how it is used. |
|
39 |
39 django_patterns: The django_patterns value is returned directly |
40 django_patterns: The django_patterns value is returned directly |
40 if it is non-False. |
41 if it is non-False. |
41 django_patterns_defaults: The dajngo_patterns_defaults value is |
42 django_patterns_defaults: The dajngo_patterns_defaults value is |
42 used to construct the url patterns. It is expected to be a |
43 used to construct the url patterns. It is expected to be a |
43 list of tuples. The tuples should contain an url, a module |
44 list of tuples. The tuples should contain an url, a module |