Re: [web2py] orderby function

2012-03-08 Thread greenguerilla
Hi Richard, my_user is an instance of db.auth_user, e.g. my_user = db.auth_user[1] or my_user = db(db.auth_user).select().first() sorry my terminology is a bit rubbish, the crux of my problem is how to order records in a particular table according to the number of records in a different tab

[web2py] orderby function

2012-03-07 Thread greenguerilla
Hi, I have a table - called table - which keys into the auth_user table. This means that I can execute the following code: my_user.table.count(), my_user.table.select() where my_user is a record of type db.auth_user. This is a really nice feature, I'm wondering if there is some way to use this

[web2py] Re: Add verify email field to auth register form

2012-03-02 Thread greenguerilla
on't think the > second email address field will be present in the form, so you might have > to access the value of the second field via request.vars instead of > form.vars). > > Anthony > > On Thursday, March 1, 2012 1:01:34 PM UTC-5, greenguerilla wrote: >>

[web2py] Add verify email field to auth register form

2012-03-01 Thread greenguerilla
Hi guys, I'm wondering if anyone knows of a good way to add a 'verify email' field to auth's register form? I basically want to replicate the verify password functionality for the email field but I notice that this is done inside the auth.register method after the creation of the SQLFORM: if

[web2py] Parsing of username field during register

2011-12-23 Thread greenguerilla
Hi, I noticed something strange when testing the registration of users. If I attempt to register as user: 'My Name' (note the space), the form validation passes and I get an 'email sent' message. What actually happens though, is the the username gets inserted into the db as 'my'. I'm fine with th

[web2py] Re: Passing the same object with response from every controller function automatically

2011-12-22 Thread greenguerilla
Awesome. Thanks guys, this was exactly what I was looking for. On Dec 22, 1:39 pm, Anthony wrote: > On Thursday, December 22, 2011 8:31:11 AM UTC-5, apple wrote: > > > You can put in your model: > > > response.anythingyoulike="something" > > > Then in your view > > > {{=response.anythingyoulike}

[web2py] Passing the same object with response from every controller function automatically

2011-12-22 Thread greenguerilla
Hi, I have a search form which I wish to appear on every page. I would rather define this programatically than with html but I wish to avoid having to remember to add this variable to the dictionary returned by every controller function. In Django one can create a context processor which returns

[web2py] Bugtracker for web2py?

2011-12-21 Thread greenguerilla
Hi guys, I found a small error in the documentation and was looking for a bugtracker where I could log this. Can someone please pass me the url? Thanks, John

[web2py] Re: migrate passwords from phpBB

2011-12-19 Thread greenguerilla
Hi Anthony, I'm using this python module which claims to mimic the encyption used in phpBB: https://github.com/exavolt/python-phpass It seems to be working fine so far. Here are some examples: In [11]: import phpass In [12]: from phpass import PasswordHash In [13]: p = PasswordHash() In [14]:

[web2py] Re: migrate passwords from phpBB

2011-12-16 Thread greenguerilla
der to validate the user by returning True or False? Thanks, John On Dec 14, 4:37 pm, greenguerilla wrote: > Hi Anthony, > > Thank you for your reply. I will investigate these options and will > let the group know how I get on. > > Cheers, > > John > > On Dec 13,

[web2py] Re: migrate passwords from phpBB

2011-12-14 Thread greenguerilla
Hi Anthony, Thank you for your reply. I will investigate these options and will let the group know how I get on. Cheers, John On Dec 13, 5:22 pm, Anthony wrote: > On Tuesday, December 13, 2011 10:50:15 AM UTC-5, greenguerilla wrote: > > > Hi, > > > I have also been tryin

[web2py] Re: migrate passwords from phpBB

2011-12-13 Thread greenguerilla
Hi, I have also been trying to migrate existing user accounts from phpbb to a web2py system. The below solution works well for registering new users, however in order to successfully validate these passwords during the login process I made some changes to the framework itself: I have added into