[web2py] Cannot insert specific key into table

2012-04-20 Thread haggis
want - except "active_event" as name. It just doesn't appear in the table. It looks like that query would be ignored. As I worked a lot in the database while development so far, I just removed the database folder from my applications to begin with a clean database. However, the problem still persists. Do you have any idea? Regards, haggis

[web2py] Re: Cannot insert specific key into table

2012-04-21 Thread haggis
Moved my application to a brand new web2py (latest stable) folder but it still doesn't work. I'm wondering about that because I used "active_event" all the time. If I have to use another name for that key, then I have to rewrite some code. That would be ok - but as long as I don't know why this

[web2py] Re: Unexpected exception

2012-04-21 Thread haggis
imarykey=['name']) Traceback: Traceback (most recent call last): File "/home/haggis/tmp/web2py/gluon/restricted.py", line 205, in restricted exec ccode in environment File "/home/haggis/tmp/web2py/applications/test/controllers/appadmin.py" <http://127.0.0

[web2py] Re: Cannot insert specific key into table

2012-04-21 Thread haggis
*head -> desk* I don't know why...but at any time by any case I wrote the following line into db.py: db(db.variable.name=='active_event').delete() hahaha, sorry for poluting this list! :(

[web2py] web2py with Aptana - optimization required

2012-02-24 Thread haggis
global session; session = gluon.globals.Session() global DAL; DAL = gluon.dal() global HTTP; HTTP = gluon.http() global LOAD; LOAD = gluon.compileapp.LoadFactory() db = DAL('sqlite://storage.sqlite') from gluon import * import sys, datetime Regards, haggis

[web2py] Re: web2py with Aptana - optimization required

2012-02-25 Thread haggis
When just using "from gluon import *" then Aptana shows me many errors (i.e. dal() and http() not found). auth = Auth(db) and service = Service() works fine, thank you! On 24 Feb., 16:20, Anthony wrote: > > 1) At default controller Aptana shows me errors at "@auth..." > > decorators (Undefined va

[web2py] Windows Service: No module named gluon.winservice

2012-03-25 Thread haggis
Hello, I'm trying to start web2py as a Windows (XP) service. After installing the pywin32 extension all errors at command line were gone. However, the service doesn't start. This is what happens: #python web2py.py -W install - no errors - #python web2py.py -W start [...] Starting hardcron... S

[web2py] Re: Windows Service: No module named gluon.winservice

2012-03-25 Thread haggis
Using web2py 1.99.4 stable

[web2py] Re: Windows Service: No module named gluon.winservice

2012-03-25 Thread haggis
; > On Sunday, 25 March 2012 08:47:41 UTC-5, haggis wrote: >> >> Hello, >> I'm trying to start web2py as a Windows (XP) service. After installing >> the pywin32 extension all errors at command line were gone. However, the >> service doesn't start. >

[web2py] Getting form via ajax/json returns "JSON serialization error"

2011-10-05 Thread haggis
When I try to access my action via myapp/statusbar/userEdit I see the form as expected. However, when I try it at myapp/statusbar/ userEdit.json I get a "JSON serialization error". This is my controller: def user_widget(): # return table of all users incl. their roles output = T('No users

[web2py] Re: Getting form via ajax/json returns "JSON serialization error"

2011-10-05 Thread haggis
The str() function helped: return {'html':str(form), 'title':'test'}

[web2py] Fetching password field from auth_user table

2011-10-08 Thread haggis
but password? How would you query the salted hash of an user? Thanks in advance, haggis

[web2py] Dynamic modules

2011-10-18 Thread haggis
w.com/questions/301134/dynamic-module-import-in-python Or is there a specific web2py way? Cheers, haggis

[web2py] ajax redirect after @auth.requires_login() failed

2011-11-02 Thread haggis
auth.settings.on_failed_authorization = myFunc I put this two lines in model db.py. However, I don't know how to just return json containing a url to which the user should be redirected. Any suggestions are welcome! Thanks, haggis

[web2py] Re: ajax redirect after @auth.requires_login() failed

2011-11-02 Thread haggis
s session timed out is to resign the decorators and check access in each callback function. Are there other ways I don't know? On 2 Nov., 19:36, haggis wrote: > Hello, > is it possible to return json to the calling jQuery.ajax() function > after access was denied by decorator @auth

[web2py] Login form error "KeyError: 'email'" after customizing db.auth_user table

2011-05-20 Thread haggis
alhost:8000/myapp/default/user/ login) I get the following error: KeyError: 'email' It seems as web2py tries to generate the login form based on the original auth_user schema. How can I change this? I didn't find anything. Please forgive me if this is a fiddling question - I'm still very new to python and web2py. Regards, haggis

[web2py] Re: Login form error "KeyError: 'email'" after customizing db.auth_user table

2011-05-22 Thread haggis
Thanks both of you! This helped me understanding a little bit more of what happens inside. As Anthony suggested I just renamed the 'name' field to 'username' and everything is fine now. Next step is to figure out how to disable the reset password actions.