Message1822
I want to build a search form as follows:
<form method="POST" tal:attributes="action
string:${request/base}issue">
<p class="classblock"
tal:condition="python:request.user.hasPermission('View',
'issue')">
<b>Search</b><br>
<tal:block tal:replace="structure
python:request.indexargs_form()" />
<input name="@search_text" size="10"
tal:attributes="value request/search_text">
<input type="submit" value="Go">
</p>
</form>
...but there's no way for me to tell indexargs_form to
stop generating @search_text.
As a result, if this form is displayed on the search
results page (I want it shown on every page ;-) You get
two @search_text fields which resutls in the following
error:
File
"C:\PYTHON23\lib\site-packages\roundup\cgi\templating.py",
line 1879, in _post_init
self.search_text = self.form[name].value
AttributeError: 'list' object has no attribute 'value' |
|
Date |
User |
Action |
Args |
2009-02-03 14:21:09 | admin | link | issue1101548 messages |
2009-02-03 14:21:09 | admin | create | |
|