On Sun, 30 Jan 2000, Joost Soeterbroek wrote:
> You were right. It was an ownership problem. Which leads me to another
> question. Why does a user not get a clearer error message when he/she
> does something he/she has no right to?
Currently, the function will tell yo uthat it failed, although the
admin site makes very little use of that for reporting. The reason
for the failure is not available in 1.2.X, and changing the return
code of these functions (moving from boolean to x-state) is going
to break existing Midgard applications. I agree that there should
be a way to know, though.
What does the rest of you think? Especially those who have existing
Midgard deployments. Another (decidedly less clean) way would be to
set a global variable (a la errno) to specify the reason for failure.
Exceptions would be the best way to do it (IMO) but neither PHP or
the current Midgard concepts are really well suited for it.
emile
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]