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'}}
{{=T( request.args(0).replace('_',' ').capit
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
default=''
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 rega
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.
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` variable
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
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 excee
Is there a way to add an autoincremente field with a specific first value.
Compute won't work with id + number.
--
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
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
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 ha
*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.
http://web2py.com/books/default/chap
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
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 ha
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]
N
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 ema
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 Augu
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
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 wro
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:
db.auth_user.
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 h
>
> 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
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'
inste
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 auth
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
>
> 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 IS_
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
'tuple' object has no attribute 'insert'
I now underst
Sorry- I missed that altogether.
On Sat, Aug 11, 2012 at 11:25 PM, Anthony 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 binary opera
On 11 Aug 2012, at 8:51 PM, Rob_McC 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
> 127.0.0.1.2012-08-11.23-47-00.29b15810-8243-46b8-802f-153225e295fe
>
> 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
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 "/data-current/programming/python/web2py/gluon/global
I have the following function:
def classes():
response.view='site/classes.html'
alert=''
if session[request.args(0)].tab_1:
weekday=request.now.weekday()+1
query1=db((db.Timetable.nodeID==session[request.args(0)].id)&(db.Timetable.dayID==db.Day.id)&\
(((db.Tim
32 matches
Mail list logo