[Chandler-dev] Re: [commits] (mimi) [10151] It's all blobbled together.

Alec Flett alecf at osafoundation.org
Tue Apr 4 16:59:52 PDT 2006


Mimi -

commits at osafoundation.org wrote:
>
>
>         Modified: trunk/chandler/parcels/osaf/pim/calendar/Calendar.py
>         (10150 => 10151)
>
> --- trunk/chandler/parcels/osaf/pim/calendar/Calendar.py	2006-04-04 23:45:59 UTC (rev 10150)
> +++ trunk/chandler/parcels/osaf/pim/calendar/Calendar.py	2006-04-04 23:49:09 UTC (rev 10151)
> @@ -72,6 +72,10 @@
>      else:
>          return event.getMaster()
>  
> +def ensureIndexed(coll):
> +    if not coll.hasIndex('__adhoc__'):
> +        coll.addIndex('__adhoc__', 'numeric')
> +
>  def getKeysInRange(view, startVal, startAttrName, startIndex, startColl,
>                           endVal,   endAttrName,   endIndex,   endColl,
>                           filterColl = None, filterIndex = None):
I think you can actually call coll.getCollectionIndex() here once, 
rather than manually creating the numeric index

Alec

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osafoundation.org/pipermail/chandler-dev/attachments/20060404/ac7b6996/attachment.htm


More information about the chandler-dev mailing list