looking into crud / auth classes, and thinking about this a little, this
seems like it could use more discussion, thought...

For example, why does Crud have knowledge about auth, and redirecting to
auth?  (coupling)  Why isn't auth riasing access exceptions?

the lines between validators (data shape exceptions), CRUD (data connection
exceptions), and auth (access control exceptions) needs to be crisped up
IMHO...

On Sat, Jul 11, 2009 at 12:11 PM, mdipierro <[email protected]> wrote:

>
> for now I made it such SQLHTML raises HTTP(404,"Object Not Found")
> still thinking about the best way.
>
>
> On Jul 11, 11:06 am, Vidul <[email protected]> wrote:
> > Probably RecordNotFound exception or just an attribute like
> > crud.setting.record_not_found?
> >
> > On Jul 11, 7:01 pm, mdipierro <[email protected]> wrote:
> >
> > > You are right. we need to deal with that exception somehow. What do
> > > you propose?
> >
> > > massimo
> >
> > > On Jul 11, 10:13 am, Vidul <[email protected]> wrote:
> >
> > > > For example:
> >
> > > > def update_comment():
> > > >     form=crud.update(db.comment, request.args(0))
> > > >     retur dict(form=form)
> >
> > > > where args(0) does not exist in the database.
> >
> > > > On Jul 11, 5:51 pm, mdipierro <[email protected]> wrote:
> >
> > > > > What kind of exceptions?
> >
> > > > > On Jul 11, 7:04 am, Vidul <[email protected]> wrote:
> >
> > > > > > Hi,
> >
> > > > > > Auth and CRUD are amazing, no doubt, but is there a best practice
> for
> > > > > > the exception handler / ing of read / create / update / delete
> > > > > > actions?
> >
> > > > > > Thank you!
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to