Skip to content

Commit

Permalink
Whitespaces cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Aug 25, 2014
1 parent 007be81 commit bc656d0
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 24 deletions.
6 changes: 3 additions & 3 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ Changelog
- Fixed link path reference of querywidget.js for the qunit tests
[ichimdav]

- Improved multiselection widget readability by sorting its returned values
- Improved multiselection widget readability by sorting its returned values
[ichimdav]

- Fixed overly long selection lists by displaying scrollbars for multiselection
- Fixed overly long selection lists by displaying scrollbars for multiselection
widgets
[ichimdav]

Expand All @@ -69,7 +69,7 @@ Changelog
1.0.5 (2012-09-08)
------------------

- fixed http://dev.plone.org/ticket/13144 raw get returns persistent
- fixed http://dev.plone.org/ticket/13144 raw get returns persistent
querystring on .get(context, raw=True)
[jensens]

Expand Down
2 changes: 1 addition & 1 deletion archetypes/querywidget/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
description="An Archetypeswidget to create persistent searchqueries. This is used by plone.app.collection."
provides="Products.GenericSetup.interfaces.EXTENSION"
/>

<genericsetup:registerProfile
name="test_fixture"
title="Querywidget (Test profile)"
Expand Down
4 changes: 2 additions & 2 deletions archetypes/querywidget/profiles/test_fixture/registry.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</value>
<value key="vocabulary">archetypes.querywidget.string_vocab</value>
</records>

<records interface="plone.app.querystring.interfaces.IQueryField"
prefix="plone.app.querystring.field.integer">
<value key="title">Integer</value>
Expand All @@ -22,5 +22,5 @@
</value>
<value key="vocabulary">archetypes.querywidget.int_vocab</value>
</records>

</registry>
6 changes: 3 additions & 3 deletions archetypes/querywidget/templates/date_range_widget.pt
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
tal:attributes="name python:str(fieldName)+'.v:records:list';
value start_date;"
name="query.v:records:list"/>

<span i18n:translate="">and</span>

<input autocomplete="off"
<input autocomplete="off"
type="text"
class="queryvalue"
tal:attributes="name python:str(fieldName)+'.v:records:list';
value end_date;"
value end_date;"
name="query.v:records:list"/>
</div>
</metal:widget>
Expand Down
2 changes: 1 addition & 1 deletion archetypes/querywidget/templates/date_widget.pt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
value value|nothing">

<div class="querywidget dateWidget">
<input autocomplete="off"
<input autocomplete="off"
type="string"
class="queryvalue"
tal:attributes="name python:str(fieldName)+'.v:records';
Expand Down
2 changes: 1 addition & 1 deletion archetypes/querywidget/templates/reference_widget.pt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<dl class="querywidget referenceWidget">
<dt class="hiddenStructure" i18n:translate="">Select&hellip;</dt>
<dd>
<input class="queryvalue"
<input class="queryvalue"
autocomplete="off"
type="text"
name="query.v:records"
Expand Down
8 changes: 4 additions & 4 deletions archetypes/querywidget/templates/relative_date_widget.pt
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
<input type="text"
autocomplete="off"
class="queryvalue"
tal:attributes="name python:str(fieldName)+'.v:records';
tal:attributes="name python:str(fieldName)+'.v:records';
value value|nothing;"
/>

/>
<span i18n:translate="">days</span>
</div>
</metal:widget>

</body>
</html>
8 changes: 4 additions & 4 deletions archetypes/querywidget/templates/relative_path_widget.pt
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
tal:define="fieldName fieldName|string:query;
value value|nothing">
<input class="querywidget queryvalue relativePathWidget"
autocomplete="off"
type="text"
class="queryvalue"
tal:attributes="name python:str(fieldName)+'.v:records';
autocomplete="off"
type="text"
class="queryvalue"
tal:attributes="name python:str(fieldName)+'.v:records';
value value"
/>

Expand Down
2 changes: 1 addition & 1 deletion archetypes/querywidget/templates/string_widget.pt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<input class="queryvalue"
autocomplete="off"
type="text"
tal:attributes="name python:str(fieldName)+'.v:records';
tal:attributes="name python:str(fieldName)+'.v:records';
value value"
/>
</div>
Expand Down
6 changes: 3 additions & 3 deletions archetypes/querywidget/tests/integration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ Check for bug `#13144 <https://dev.plone.org/ticket/13144>`_::
>>> raw1 = field.get(portal.collection, raw=True)
>>> raw1
[{'i': 'start', 'o': 'some.namespace.op.foo'}]

>>> length1 = len(raw1)
>>> raw1.append({'i': 'end', 'o': 'some.namespace.op.bar'})
>>> raw2 = field.get(portal.collection, raw=True)

Now the amount of entries in raw2 has to be the same as in raw1::
Now the amount of entries in raw2 has to be the same as in raw1::

>>> length1 == len(raw2)
True
2 changes: 1 addition & 1 deletion buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ develop = .

[test]
recipe = zc.recipe.testrunner
eggs =
eggs =
archetypes.querywidget[tests]

[versions]
Expand Down

0 comments on commit bc656d0

Please sign in to comment.