fixed and uploading
On Jun 28, 5:33 pm, "mr.freeze" <[email protected]> wrote:
> The latest trunk won't start and gives me this on python25, winxp:
>
> Traceback (most recent call last):
> File "web2py.py", line 17, in <module>
> import gluon.widget
> File "C:\web2py\gluon\widget.py", line 29, in <module>
> from main import HttpServer, save_password
> File "C:\web2py\gluon\main.py", line 37, in <module>
> from restricted import RestrictedError
> File "C:\web2py\gluon\restricted.py", line 22, in <module>
> from html import BEAUTIFY
> File "C:\web2py\gluon\html.py", line 24, in <module>
> from validators import *
> File "C:\web2py\gluon\validators.py", line 1702, in <module>
> class IS_IMAGE(object):
> File "C:\web2py\gluon\validators.py", line 1738, in IS_IMAGE
> maxsize=(float('inf'), float('inf')),
> ValueError: invalid literal for float(): inf
>
> On Jun 28, 5:01 pm, mdipierro <[email protected]> wrote:
>
> > I believe this is fixed in trunk.
>
> > On Jun 28, 4:29 pm, "mr.freeze" <[email protected]> wrote:
>
> > > I get this error when trying to navigate to the change_password method
> > > exposed by auth:
>
> > > NameError: global name 'password_field' is not defined
>
> > > This is my custom auth table:
>
> > > from gluon.tools import *
> > > auth=Auth(globals(),db) # authentication/authorization
> > > auth.settings.table_user = db.define_table("auth_user",
> > > db.Field("first_name", length=128,default=""),
> > > db.Field("last_name", length=128,default=""),
> > > db.Field('username',length=128,default=""),
> > > db.Field("email", length=128,default=""),
> > > db.Field("password", 'password',readable=False,
> > > label="Password"),
> > > db.Field("registration_key", length=128,
> > > writable=False, readable=False, default=""))
> > > t = auth.settings.table_user
> > > t.first_name.requires = IS_NOT_EMPTY()
> > > t.last_name.requires = IS_NOT_EMPTY()
> > > t.password.requires = [IS_STRONG(upper=1,number=1,special=None),CRYPT
> > > ()]
> > > t.email.requires = [IS_EMAIL(), IS_NOT_IN_DB(db, db.auth_user.email)]
> > > t.username.requires = [IS_NOT_EMPTY(),IS_NOT_IN_DB(db,
> > > db.auth_user.username)]
>
> > > Here's the traceback:
>
> > > Traceback (most recent call last):
> > > File "C:\web2py\gluon\restricted.py", line 107, in restricted
> > > exec ccode in environment
> > > File "C:/web2py/applications/web2pyslices/controllers/default.py",
> > > line 94, in <module>
> > > File "C:\web2py\gluon\globals.py", line 100, in <lambda>
> > > self.menu = None # used by the default view layout
> > > File "C:/web2py/applications/web2pyslices/controllers/default.py",
> > > line 68, in user
> > > return dict(form=auth())
> > > File "C:\web2py\gluon\tools.py", line 457, in __call__
> > > redirect(self.url(args='login'))
> > > File "C:\web2py\gluon\tools.py", line 1083, in change_password
> > > )
> > > NameError: global name 'password_field' is not defined
>
> > > Any ideas what I am missing? I am running the latest trunk.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---