[Cosmo-dev] Re: [commits-cosmo] (br) [2474] making save work.

Brian Moseley bcm at osafoundation.org
Tue Sep 12 21:08:41 PDT 2006


On 9/12/06, Bobby Rullo <br at osafoundation.org> wrote:

> That IS what I'm doing - but I'm also making sure that that name
> hasn't been taken by some stroke of bad luck.

oh, heh, i missed the part where you seed the StringBuffer ;)

> The only extra cost incurred in 99.9999% of instances is the extra
> check to make sure that another item doesn't happen to be using that
> name.
>
> I could easily just not check, and assume that never happens, which
> would almost always be ok.

you don't need to make this check, because ContentService.addEvent
will throw a DuplicateItemNameException if the item name is already in
use within the calendar collection.


More information about the cosmo-dev mailing list