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
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
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
*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! :(
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
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
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
Using web2py 1.99.4 stable
;
> 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.
>
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
The str() function helped:
return {'html':str(form), 'title':'test'}
but password? How would you query the salted hash of an user?
Thanks in advance,
haggis
w.com/questions/301134/dynamic-module-import-in-python
Or is there a specific web2py way?
Cheers, 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
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
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
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.
17 matches
Mail list logo