| LEFT | RIGHT |
| 1 # Copyright 2008 Google Inc. | 1 # Copyright 2008 Google Inc. |
| 2 # | 2 # |
| 3 # Licensed under the Apache License, Version 2.0 (the "License"); | 3 # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 # you may not use this file except in compliance with the License. | 4 # you may not use this file except in compliance with the License. |
| 5 # You may obtain a copy of the License at | 5 # You may obtain a copy of the License at |
| 6 # | 6 # |
| 7 # http://www.apache.org/licenses/LICENSE-2.0 | 7 # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 # | 8 # |
| 9 # Unless required by applicable law or agreed to in writing, software | 9 # Unless required by applicable law or agreed to in writing, software |
| 10 # distributed under the License is distributed on an "AS IS" BASIS, | 10 # distributed under the License is distributed on an "AS IS" BASIS, |
| (...skipping 66 matching lines...) Show 10 above Show 10 below |
| 77 """ | 77 """ |
| 78 bits = list(token.split_contents()) | 78 bits = list(token.split_contents()) |
| 79 if len(bits) == 2: | 79 if len(bits) == 2: |
| 80 redirect = bits[1] | 80 redirect = bits[1] |
| 81 else: | 81 else: |
| 82 redirect = "/" | 82 redirect = "/" |
| 83 login = bits[0] == "auth_login_url" | 83 login = bits[0] == "auth_login_url" |
| 84 return AuthLoginUrlsNode(login, redirect) | 84 return AuthLoginUrlsNode(login, redirect) |
| 85 register.tag("auth_login_url", auth_login_urls) | 85 register.tag("auth_login_url", auth_login_urls) |
| 86 register.tag("auth_logout_url", auth_login_urls) | 86 register.tag("auth_logout_url", auth_login_urls) |
| LEFT | RIGHT |