r13720 - MoreFieldsAndWidgets/archetypes.querywidget/trunk/archetypes/querywidget
"Hanno Schlichting" <[email protected]> Wed, 13 Jul 2011 12:08:24 +0000
| Newsgroups | gmane.comp.web.zope.plone.archetypes.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: hannosch
Date: Wed Jul 13 12:08:22 2011
New Revision: 13720
Modified:
MoreFieldsAndWidgets/archetypes.querywidget/trunk/archetypes/querywidget/field.py
Log:
Pass on the limit
Modified: MoreFieldsAndWidgets/archetypes.querywidget/trunk/archetypes/querywidget/field.py
==============================================================================
--- MoreFieldsAndWidgets/archetypes.querywidget/trunk/archetypes/querywidget/field.py (original)
+++ MoreFieldsAndWidgets/archetypes.querywidget/trunk/archetypes/querywidget/field.py Wed Jul 13 12:08:22 2011
@@ -27,7 +27,8 @@
sort_order = 'reverse' if instance.getSort_reversed() else 'ascending'
return querybuilder(query=value,
- sort_on=instance.getSort_on(), sort_order=sort_order)
+ sort_on=instance.getSort_on(), sort_order=sort_order,
+ limit=instance.getLimit())
def getRaw(self, instance, **kwargs):
return ObjectField.get(self, instance, **kwargs) or ()
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev