Specifically, the query framework is designed to be light-weight, and completely ignorant of business-logic like how to derive nodenumbers from and alias or a Node instance.
Imo the query framework should include business logic. After all you are trying to abstract MMBase logic and turn it into (db specific) queries.
The least a query farmework should do is handle these type of conversions. Requiring users to know this is just moving this up the line, to a place where it does not belong: if a user want a query with a constraint that refers a given node, he does not need to be bothered with converting that node, he should be able to use the framework with that node.
The storage layer does teh same thing: it takes data from nodes and converts it to values to store in the database.
-- Pierre van Rooden Mediapark, C 107 tel. +31 (0)35 6772815 "Never summon anything bigger than your head."
