[Chandler-dev] Re: [commits] (mimi) [10151] It's all blobbled
together.
Mimi Yin
mimi at osafoundation.org
Tue Apr 4 17:04:56 PDT 2006
*You're* a coll.getCollectionIndex()
Seriously though, do I just do a global find and replace and recommit?
Hamma-sta
On Apr 4, 2006, at 4:59 PM, Alec Flett wrote:
> 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
>
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> Open Source Applications Foundation "chandler-dev" mailing list
> http://lists.osafoundation.org/mailman/listinfo/chandler-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osafoundation.org/pipermail/chandler-dev/attachments/20060404/3b0ee72e/attachment.html
More information about the chandler-dev
mailing list