Hi Daniel, How did you manage to get the module working? Unlike you I'm having a devil of a time getting it to work. For one thing after applying the decorators on my index class. My app keeps redirecting to a unknown "/login" url. The docs aren't very clear on what you should do afterwards. Could you please lend me a hand on this? I'm pretty sure I missed something...
Mathew On Wed, Dec 31, 2008 at 3:37 AM, dbpatterson <[email protected]> wrote: > > I'm trying to incorporate this into a project of mine, but with web.py > 0.31, at least using sqlite as the db backend, it throws errors. > > Specifically, the first time I ran into it was trying to do > createPermission in DBAuth - the db.select on line 371 returns an > IterBetter, but on 376 you try to call len() on it, which doesn't > work. however, going through the code, the results of a select are > treated as lists everywhere. > > I am unsure if this is an sqlite specific thing, or if this is a > change across the board with web.py - my instinct is that it is the > latter (as web.py wouldnt return different types of object for > different db backends, at least I hope it wouldnt!). if so, the simple > solution is pretty easy - I've done it on my local install, simply > add .list() at the end of every self._db.select(), so you get what you > were expecting. > > otherwise, I'm excited to try this out; I was about to write a real > authentication module to replace my hacked together solution when I > found this, and I'm glad not to have to! > > daniel > > > On Nov 4, 10:33 am, Juan Pablo Scaletti <[email protected]> > wrote: > > fixed > > > > On Nov 3, 3:19 am, Jeffrey <[email protected]> wrote: > > > > > hi, it looks like the document is not available now. 404 error > > > there is one instead? > > > > > On Thu, Oct 23, 2008 at 8:00 AM, [email protected] <[email protected] > >wrote: > > > > > > On Wed, Oct 22, 2008 at 10:36 AM, Juan Pablo Scaletti < > > > > [email protected]> wrote: > > > > > >> > 2) what's with user.user_id, permission.permission_code_name , > etc. > > > >> > including the table name in the column is redundant. (or is that > > > >> > preferred style now?) > > > > > >> Humm... I used the style because of another project I was working > on. > > > >> Maybe I should just use user.id, etc. > > > >> What do people think? > > > > > > user.id should definitely be used.. > > > > > -- > > > Yours > > > Faithfully > > > > > Jeffrey Hsu > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" 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/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
