From: <an...@io...> - 2005-05-26 13:20:51
|
Hi! CTX->lookup_action not just dies (which is ok) but logs an OpenInteract2 error if the action is not found. I personally would not like it to log an error and not even give a warning - I would like it to be a debug or info message, but i might be misusing OI2. What do you think? I have action xxyy which returns a datastructure in our package Y but package Y is not required for functional system. Other packages which would use action xxyy lookup for that action and if it does not exist they just don't use the functionality, which is ok since the functionality was not required. I have understood that actions are an abstraction layer provided for functionality which can be defined by any package, so i don't know what other mechanism i should use to detect if a functionality exists or not. I did not make this a bug report since i'm not quite sure if this is the intended way of using OI2 actions. - Antti PS. It would probably be nice to have a "null" or "none" controller by default which would not let the action to execute when called directly from a request.. If this is a decent way to handle things.. |