[CMF-checkins] CVS: CMF/CMFTopic/skins/zpt_topic - sic_edit.pt:1.1.12.1
Tres Seaver
tseaver@zope.com
Thu, 20 Dec 2001 15:35:12 -0500
Update of /cvs-repository/CMF/CMFTopic/skins/zpt_topic
In directory cvs.zope.org:/tmp/cvs-serv25280/skins/zpt_topic
Modified Files:
Tag: tseaver-tracker_439-branch
sic_edit.pt
Log Message:
- Normalize imports (import in standard order).
- Normalize coding standards (copyright, whitespace, docstrings, etc.)
- Normalize unit tests (e.g., use 'assertEquals', import w/in test, etc.)
- Refactor some criterion code for clarity.
- Refactor unit tests to create smaller, more "atomic" tests.
- SimpleIntCriterion: require/allow two values for "min/max" case
(Tracker #439).
- Add unit tests for SortCriterion.
- Topic: enable adding sub-topics even when 'portal_types' can't be
found.
=== CMF/CMFTopic/skins/zpt_topic/sic_edit.pt 1.1 => 1.1.12.1 ===
-<tr>
- <td width="20">
- <input type="checkbox" value="" name="criterion_ids:list" id=""
- tal:attributes="value here/getId; id string:cb_${here/getId}">
- </td>
- <td align="left">
- <label for=""
+ <tr>
+ <td width="20">
+ <input type="checkbox" value="" name="criterion_ids:list" id=""
+ tal:attributes="value here/getId;
+ id string:cb_${here/getId};
+ " />
+ </td>
+ <td align="left">
+ <label for=""
tal:attributes="for string:cb_${here/getId}">
- <strong title="" tal:attributes="title here/Description">Integer:</strong>
+ <strong title=""
+ tal:attributes="title here/Description">Integer:</strong>
<tt tal:content="here/Field">Field</tt>
- </label>
- <input type="hidden" name="criteria.id:records" value=""
- tal:attributes="value here/getId">
- </td>
-</tr>
-<tr>
- <td width="20"> </td>
- <td>
- <strong>Value:</strong>
- <input type="text" name="criteria.value:records" value="" size="40"
- tal:attributes="value here/value">
- </td>
-</tr>
-<tr>
- <td width="20"> </td>
- <td>
- <strong>Direction:</strong>
- <input type="radio" name="" value="min" id=""
- tal:attributes="checked python:here.direction=='min'; id string:${here/getId}_min; name string:criteria.direction__${here/getId}:records"/>
- <label for="" tal:attributes="for string:${here/getId}_min">Minimum</label>
+ </label>
+ <input type="hidden" name="criteria.id:records" value=""
+ tal:attributes="value here/getId" />
+ </td>
+ </tr>
+ <tr>
+ <td width="20"> </td>
+ <td>
+ <strong>Value:</strong>
+ <input type="text" name="criteria.value:records" value="" size="40"
+ tal:attributes="value here/getValueString" />
+ </td>
+ </tr>
+ <tr>
+ <td width="20"> </td>
+ <td>
+ <strong>Direction:</strong>
+ <input type="radio" name="" value="min" id=""
+ tal:attributes="checked python:here.direction=='min';
+ id string:${here/getId}_min;
+ name string:criteria.direction__${here/getId}:records;
+ " />
+ <label for=""
+ tal:attributes="for string:${here/getId}_min">Minimum</label>
- <input type="radio" name="" value="max" id=""
- tal:attributes="checked python:here.direction=='max'; id string:${here/getId}_max; name string:criteria.direction__${here/getId}:records" />
- <label for="" tal:attributes="for string:${here/getId}_max">Maximum</label>
+ <input type="radio" name="" value="max" id=""
+ tal:attributes="checked python:here.direction=='max';
+ id string:${here/getId}_max;
+ name string:criteria.direction__${here/getId}:records;
+ " />
+ <label for=""
+ tal:attributes="for string:${here/getId}_max">Maximum</label>
- <input type="radio" name="" value="min:max" id=""
- tal:attributes="checked python:here.direction=='min:max'; id string:${here/getId}_minmax; name string:criteria.direction__${here/getId}:records"/>
- <label for="&dtml-getId;_minmax">Min/Max</label>
- </td>
+ <input type="radio" name="" value="min:max" id=""
+ tal:attributes="checked python:here.direction=='min:max';
+ id string:${here/getId}_minmax;
+ name string:criteria.direction__${here/getId}:records;
+ " />
+ <label for=""
+ tal:attributes="for string:${here/getId}_minmax">Min/Max</label>
+ </td>
+ </tr>
</table>