[web2py] Problems with custom registration form

2012-08-11 Thread Yarin
I wanted to build the login and register forms by hand, so I modified the default/user.html file like so. Login works fine, but the registration form doesn't ever get processed. Can anyone see what's wrong. default/user.html: {{extend 'layout.html'}} h2{{=T( request.args(0).replace('_','

[web2py] Requiring password on registration

2012-08-11 Thread Yarin
The default login form does not require a password to be entered when registering. Is this intentional? Seems a funny default. I can't figure out how to require a password. I added db.auth_user.password.requires = IS_NOT_EMPTY(error_message=auth.messages. is_empty) and removed the

[web2py] Re: MARKMIN change of behavior

2012-08-11 Thread villas
Hmm, unless you mention what the 'better behaviour' is, it is difficult to agree as this change does result in broken content. In any case, I also believe that 'better behaviour' should also be to try to retain compatibility with Markdown. There are now two departures from Markdown with

Re: [web2py] Re: Get result set back as list?

2012-08-11 Thread Toby Shepard
On 8/10/2012 3:58 PM, Vasile Ermicioi wrote: for me that works alist = db(db.auth_user).select().as_list() How funny. I was just making up the name as_list(). Great minds think alike I guess. I was looking for a flat list of field values, but the list comprehension solution is ok I guess.

[web2py] Janrain fails (yes I did RTFM!) — too many values to unpack

2012-08-11 Thread Alec Taylor
Unfortunately I cannot get Janrain to work. (After Facebook and LinkedIn failed the regular way, I though to try with Janrain) Here is my ticket: http://fiddle.jshell.net/AlecTaylor/xeLg6/show/ Documentation: http://web2py.com/books/default/chapter/29/9 The problem is on the `request`

[web2py] Need Microsoft Dynamics/CRM Consultant

2012-08-11 Thread Lokesh (Sriven Infosys,Inc)
Hi Folks, Hope you are doing great. Please let me know if you have any consultant for the following requirement. Please forward the resumes lok...@sriveninfosys.net Data/Reporting Analyst (Microsoft Dynamics / CRM in an enterprise environment. ) Jacksonville, FL 6 month+ contract

[web2py] Need PL/SQL Developers

2012-08-11 Thread Lokesh (Sriven Infosys,Inc)
Hi Folks, Hope you are doing great. Please let me know if you have any consultant for the following requirement. Please forward the resumes lok...@sriveninfosys.net Do you have any strong PL/SQL Developers? Need to be strong in PL/SQL, Production Support, and Analysis. Rate is not to

[web2py] autoincremente field with a specific first value

2012-08-11 Thread tigmmi
Is there a way to add an autoincremente field with a specific first value. Compute won't work with id + number. --

[web2py] Re: NoSQL Question Again!!!

2012-08-11 Thread gm01
Has there been any update with DAL supporting Mongo? I haven't seen any official mention in w2p docs. Any information would be appreciated. Thanks, gm On Thursday, July 15, 2010 4:07:04 PM UTC-4, Pystar wrote: Hi guys, I am one of the proponents that web2py's DAL should support NoSQL

[web2py] Sending emails with background queue problem

2012-08-11 Thread Florian Letsch
I want to send emails using a background queue as described in the web2py book: http://web2py.com/books/default/chapter/29/8#Sending-messages-using-a-background-task However, the queue only sends emails that have been in the database when I start the script. Database entries added lateron don't

[web2py] Re: Having trouble with computed fields referencing id field.

2012-08-11 Thread tigmmi
I have the same problème and in that poste : https://groups.google.com/forum/?fromgroups#!topic/web2py/RmdCe7xp5gM[1-25] it say that it's possible to do so but in my test application it's not. As you say on insertion the id is not avaaillable yet and that is the raison I think. If somme body

[web2py] Sending email from background queue

2012-08-11 Thread Florian Letsch
*My first post somehow didn't make it to the group, I don't know where it got lost. Sorry if I submit this twice, I have never participated in a news group before.* I am trying to set up a background queue for sending email as described in the web2py book.

[web2py] Re: Giving a talk promoting web2py over Django

2012-08-11 Thread gm01
Love to see your slides you presented. Are they available somewhere on line? Thanks, gm On Wednesday, August 1, 2012 11:46:48 AM UTC-4, Alec Taylor wrote: Tonight I'm going to present my little social-network to a user-group. I'm going to show them my code, some slides, the website, the

[web2py] Re: Sending email from background queue

2012-08-11 Thread Anthony
How are emails added to the database -- does that happen within the application, or also in a script? On Saturday, August 11, 2012 12:55:40 AM UTC-4, Florian Letsch wrote: *My first post somehow didn't make it to the group, I don't know where it got lost. Sorry if I submit this twice, I have

[web2py] Re: Janrain fails (yes I did RTFM!) — too many values to unpack

2012-08-11 Thread Anthony
According to the ticket, the problem is with your janrain.key file. The code does a split on : and expects two values -- if it's complaining about too many values to unpack, you must have more than one colon in the string in that file. The file contents should look like: [domain]:[API key]

[web2py] Re: Sending emails with background queue problem

2012-08-11 Thread Massimo Di Pierro
Are you using mysql? On Friday, 10 August 2012 23:11:03 UTC-5, Florian Letsch wrote: I want to send emails using a background queue as described in the web2py book: http://web2py.com/books/default/chapter/29/8#Sending-messages-using-a-background-task However, the queue only sends emails

[web2py] Re: Requiring password on registration

2012-08-11 Thread Massimo Di Pierro
This was discussed once I people said there should be no default minimum length for password. So technically a zero length password can be inserted. For security reason it will not be accepted for logging anyway. db.auth_user.password.requires.insert(0,IS_LENGTH(minsize=5)) On Saturday, 11

[web2py] Re: MARKMIN change of behavior

2012-08-11 Thread Massimo Di Pierro
The #head is now fixed. Please check it. On Saturday, 11 August 2012 11:35:57 UTC-5, villas wrote: Hmm, unless you mention what the 'better behaviour' is, it is difficult to agree as this change does result in broken content. In any case, I also believe that 'better behaviour' should also

[web2py] Re: Requiring password on registration

2012-08-11 Thread Anthony
According to the code: settings.password_min_length = 4 and table[passfield].requires = [ CRYPT(key=settings.hmac_key, min_length=settings.password_min_length)] So, isn't the minimum password length 4 by default? Anthony On Saturday, August 11, 2012 3:21:06 PM UTC-4, Massimo Di Pierro

[web2py] Re: Requiring password on registration

2012-08-11 Thread Yarin
Anthony's correct- this is in Auth, but is not being respected: settings.password_min_length = 4 Massimo - For security reason it will not be accepted for logging anyway. - Not sure what you meant but it registered me and logged me in with an empty pass. I also tried inserting:

Re: [web2py] Re: web2py 2.0 almost done

2012-08-11 Thread Angelo Compagnucci
Hi Massimo, Mobile browser on mobile phones can work in mobile mode or in desktop mode. If you are in desktop mode, without that line, you cannot see the menu because it's faded away. And you cannot click, so the menu is faded and not clickable! In a desktop instead, when a windowed browser has

[web2py] Re: Requiring password on registration

2012-08-11 Thread Anthony
Anthony's correct- this is in Auth, but is not being respected: settings.password_min_length = 4 I just created a fresh app using trunk, and when I try to register without a password, I get a too short error message on the password field. What version of web2py are you using? Can we see

[web2py] Re: Strange behavior db( ... and ... and ...) vs. db( ... or ... or ...)

2012-08-11 Thread Yarin
Massimo, could we highlight this issue in the documentation somewhere, and/or show the right way to do a compound query. There's no documentation on this stuff, it's very easy to accidentally do because won't throw a syntax error, and we almost just shipped some production code with 'and'

[web2py] Re: Requiring password on registration

2012-08-11 Thread Anthony
Looks like a bug in the wizard: db.auth_user.password.requires = CRYPT(key=auth.settings.hmac_key) should be: db.auth_user.password.requires = CRYPT(key=auth.settings.hmac_key,min_length =4) Actually, maybe the wizard should simply use auth.define_tables() instead of manually creating the

[web2py] Re: Strange behavior db( ... and ... and ...) vs. db( ... or ... or ...)

2012-08-11 Thread Anthony
http://web2py.com/books/default/chapter/29/6#Logical-operators Specifically: Due to Python restrictions in overloading and and or operators, these cannot be used in forming queries. The binary operators and | must be used instead. Note that these operators (unlike and and or) have higher

[web2py] Re: Requiring password on registration

2012-08-11 Thread Anthony
Note also that it DOES allow logging in with no password subsequent to the registration. Right, it looks like login will allow no password if password length is enforced only by CRYPT (it actually overrides the CRYPT min_length attribute). I don't think it will override IS_STRONG or

[web2py] Re: Enforcing - like gmail: first character of your username should be a letter (a-z) or number.

2012-08-11 Thread Rob_McC
I never got this to work, as I mentioned above auth.define_tables(username=True) db.auth_user.username.requires.insert(0,IS_MATCH([a-z].*)) I get this error: *Ticket ID* 127.0.0.1.2012-08-11.23-47-00.29b15810-8243-46b8-802f-153225e295fe type 'exceptions.AttributeError' 'tuple' object has no

Re: [web2py] Re: Strange behavior db( ... and ... and ...) vs. db( ... or ... or ...)

2012-08-11 Thread Yarin Kessler
Sorry- I missed that altogether. On Sat, Aug 11, 2012 at 11:25 PM, Anthony abasta...@gmail.com wrote: http://web2py.com/books/default/chapter/29/6#Logical-operators Specifically: Due to Python restrictions in overloading and and or operators, these cannot be used in forming queries. The

Re: [web2py] Re: Enforcing - like gmail: first character of your username should be a letter (a-z) or number.

2012-08-11 Thread Jonathan Lundell
On 11 Aug 2012, at 8:51 PM, Rob_McC mrmccorm...@gmail.com wrote: I never got this to work, as I mentioned above auth.define_tables(username=True) db.auth_user.username.requires.insert(0,IS_MATCH([a-z].*)) I get this error: Ticket ID

[web2py] Re: Enforcing - like gmail: first character of your username should be a letter (a-z) or number.

2012-08-11 Thread Anthony
I never got this to work, as I mentioned above auth.define_tables(username=True) db.auth_user.username.requires.insert(0,IS_MATCH([a-z].*)) Is that the exact code, with nothing coming between the auth = Auth(...) line (not shown above) and the auth.define_tables() line, and nothing coming

[web2py] Trouble with pickling session

2012-08-11 Thread Web2py Newbie
My app doesn't want to pickle my session for some reason. I get: Traceback (most recent call last): File /data-current/programming/python/web2py/gluon/main.py, line 523, in wsgibase session._try_store_on_disk(request, response) File