[Design] Collections refuse addition of certain items?

Alec Flett alecf at osafoundation.org
Thu Apr 27 16:55:30 PDT 2006


Heikki Toivonen wrote:
> Currently there are places in code that assume you can always add any
> item to any collection (at least I think so).
>
>   
Yes and no. There are certain collections that have an 'add' method and 
some that don't. For instance, Kind collections don't have this method. 
There are definitely bugs that need to verify that this method even 
exists before relevant menu items get enabled/disabled.

Alec
> Is the plan to allow this indefinitely?
>
> Or is the plan to let collections reject some items?
>
> As an example of where the latter would make sense in my opinion is the
> certificate store: I think it does not make sense to add anything other
> than certificates to the Certificate Store collection you see in the
> sidebar if you do Test > Certificates > Manage.
>
>   
> ------------------------------------------------------------------------
>
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> Open Source Applications Foundation "Design" mailing list
> http://lists.osafoundation.org/mailman/listinfo/design
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osafoundation.org/pipermail/design/attachments/20060427/e4db4f1c/attachment.htm


More information about the Design mailing list