[Schevo-devel] myfield = f.entity(ANY)

Patrick K. O'Brien pobrien at orbtech.com
Thu Dec 15 10:44:21 EST 2005


Matthew Scott wrote:
> This is possible, but is not supported by the Qt3-based navigator,
> because it uses a combo box to select entities.  We didn't like the
> idea of having a combo box that had all entities in the entire
> database. :)
> 
> I think there will always be some corner cases where f.entity() might
> be desired, but in most cases, you should probably be explicit about
> allowed extents.

The more I think about this the less I like the fact that we do allow an
empty list of allowed Entity classes.  I'm thinking that should raise an
exception.  Leaving it wide open is too ambiguous and is just asking for
trouble, imho.  Especially when we get into permissions and such.

Tom, can you provide a use-case where you truly want a wide-open entity
field?  What about an entity referencing itself?  Would you expect that
to be allowed or not?  That's another ambiguity.  I think this is
definitely a case where explicit is better.

-- 
Patrick K. O'Brien
Orbtech       http://www.orbtech.com
Schevo        http://www.schevo.org




More information about the Schevo-devel mailing list