Yaroslav Halchenko wrote:
> On Tue, 23 Mar 2010, Bill Gatliff wrote:
>
>   
>> To help avoid future issues, is it possible to just assign the order of
>> (self.ACCESS_NONE + 1) for unrecognized access levels?
>>     
> sorry dont get it
>
> it already has
> self.ACCESS_NONE        : 6
>
> so it would be sorted last
>   

Right.  You have it so that any calendar with an access level of "none"
gets sorted last.  I'm suggesting that you add new functionality so that
if the access level term is unrecognized by gcalcli, then it gets sorted
after that.

Right now, you recognize the terms "all", "default", "none", "owner",
"root", etc. and crash if the access level isn't one of the recognized
terms.  I'm suggesting that instead of crashing, make the code such that
if the access level term isn't in the list of recognized terms, then you
just treat it as the lowest-priority search level and then not crash.


b.g.

-- 
Bill Gatliff
[email protected]





-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to