-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from plone/issue_45
add before/after relative date query
- Loading branch information
Showing
9 changed files
with
168 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
plone/app/querystring/profiles/upgrades/to_11/registry.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<registry xmlns:i18n="http://xml.zope.org/namespaces/i18n" | ||
i18n:domain="plone"> | ||
|
||
<records interface="plone.app.querystring.interfaces.IQueryOperation" | ||
prefix="plone.app.querystring.operation.date.beforeRelativeDate"> | ||
<value key="title" i18n:translate="">Before relative Date</value> | ||
<value key="description" i18n:translate="">Before N days in the past</value> | ||
<value key="operation">plone.app.querystring.queryparser._beforeRelativeDate</value> | ||
<value key="widget">RelativeDateWidget</value> | ||
</records> | ||
|
||
<records interface="plone.app.querystring.interfaces.IQueryOperation" | ||
prefix="plone.app.querystring.operation.date.afterRelativeDate"> | ||
<value key="title" i18n:translate="">After relative Date</value> | ||
<value key="description" i18n:translate="">After N days in the future</value> | ||
<value key="operation">plone.app.querystring.queryparser._afterRelativeDate</value> | ||
<value key="widget">RelativeDateWidget</value> | ||
</records> | ||
|
||
<records interface="plone.app.querystring.interfaces.IQueryField" | ||
prefix="plone.app.querystring.field.created"> | ||
<value key="operations" purge="false"> | ||
<element>plone.app.querystring.operation.date.beforeRelativeDate</element> | ||
<element>plone.app.querystring.operation.date.afterRelativeDate</element> | ||
</value> | ||
</records> | ||
|
||
<records interface="plone.app.querystring.interfaces.IQueryField" | ||
prefix="plone.app.querystring.field.modified"> | ||
<value key="operations" purge="false"> | ||
<element>plone.app.querystring.operation.date.beforeRelativeDate</element> | ||
<element>plone.app.querystring.operation.date.afterRelativeDate</element> | ||
</value> | ||
</records> | ||
|
||
<records interface="plone.app.querystring.interfaces.IQueryField" | ||
prefix="plone.app.querystring.field.start"> | ||
<value key="operations" purge="false"> | ||
<element>plone.app.querystring.operation.date.beforeRelativeDate</element> | ||
<element>plone.app.querystring.operation.date.afterRelativeDate</element> | ||
</value> | ||
</records> | ||
|
||
<records interface="plone.app.querystring.interfaces.IQueryField" | ||
prefix="plone.app.querystring.field.end"> | ||
<value key="operations" purge="false"> | ||
<element>plone.app.querystring.operation.date.beforeRelativeDate</element> | ||
<element>plone.app.querystring.operation.date.afterRelativeDate</element> | ||
</value> | ||
</records> | ||
|
||
<records interface="plone.app.querystring.interfaces.IQueryField" | ||
prefix="plone.app.querystring.field.effective"> | ||
<value key="operations" purge="false"> | ||
<element>plone.app.querystring.operation.date.beforeRelativeDate</element> | ||
<element>plone.app.querystring.operation.date.afterRelativeDate</element> | ||
</value> | ||
</records> | ||
|
||
<records interface="plone.app.querystring.interfaces.IQueryField" | ||
prefix="plone.app.querystring.field.expires"> | ||
<value key="operations" purge="false"> | ||
<element>plone.app.querystring.operation.date.beforeRelativeDate</element> | ||
<element>plone.app.querystring.operation.date.afterRelativeDate</element> | ||
</value> | ||
</records> | ||
|
||
</registry> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters