Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.
| File webpath.patch,
1.6 KB
(added by chrisz, 3 years ago) |
|
Fixes two problems with server.webpath
|
-
|
|
|
|
| 3 | 3 | import logging |
| 4 | 4 | import re |
| 5 | 5 | import urllib |
| | 6 | import urlparse |
| 6 | 7 | import types |
| 7 | 8 | from itertools import izip |
| 8 | 9 | from dispatch import generic, strategy, functions |
| … |
… |
|
| 586 | 587 | users to both call it as a function or to raise it as an exception. |
| 587 | 588 | |
| 588 | 589 | """ |
| | 590 | if not redirect_path.startswith('/') and config.get('server.webpath'): |
| | 591 | redirect_path = urlparse.urljoin(request.object_path, redirect_path) |
| 589 | 592 | raise cherrypy.HTTPRedirect(url(tgpath=redirect_path, |
| 590 | 593 | tgparams=redirect_params, **kw)) |
| 591 | 594 | |
-
|
|
|
|
| 76 | 76 | <div id="loginBox"> |
| 77 | 77 | <h1>Login</h1> |
| 78 | 78 | <p>${message}</p> |
| 79 | | <form action="${previous_url}" method="POST"> |
| | 79 | <form action="${tg.url(previous_url)}" method="POST"> |
| 80 | 80 | <table> |
| 81 | 81 | <tr> |
| 82 | 82 | <td class="label"> |
| … |
… |
|
| 103 | 103 | |
| 104 | 104 | <input py:if="forward_url" type="hidden" name="forward_url" |
| 105 | 105 | value="${forward_url}"/> |
| 106 | | |
| | 106 | |
| 107 | 107 | <div py:for="name,values in original_parameters.items()" py:strip="1"> |
| 108 | 108 | <input py:for="value in isinstance(values, list) and values or [values]" |
| 109 | 109 | type="hidden" name="${name}" value="${value}"/> |
Download in other formats: