[web2py:31313] Re: Form Key

2009-09-19 Thread eddwinston
, which drown you in unnecessary trivia form key issue? > > On Sep19, 2:19pm, eddwinston wrote: > > > Hi Wes, > > > That was not what i meant, I want to creat the form on the view and > > not in the action. I created initialised an SQLFORM object but wont > > return it

[web2py:31296] Re: Form Key

2009-09-18 Thread eddwinston
value="8541c665-38de-4a84-9056-22b208aa45ad" /> type="hidden" value="default" /> > > {{=wes}} > > On Fri, Sep 18, 2009 at 3:35 PM, eddwinston wrote: > > > Hi, > > > But just using {{=form.hidden_fields()}}  does not generate a form key &g

[web2py:31286] Re: Form Key

2009-09-18 Thread eddwinston
Hi, But just using {{=form.hidden_fields()}} does not generate a form key On Sep 18, 10:56 pm, mdipierro wrote: > {{=form.hidden_fields()}} > > will create the > > On Sep 18, 2:39 pm, eddwinston wrote: > > > Hi, > > > If I create a form on the view a

[web2py:31276] Form Key

2009-09-18 Thread eddwinston
Hi, If I create a form on the view and not from the controller action, how can the form get a unique form key? Thanks Winston --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this gro

[web2py:30966] Re: logout problem

2009-09-14 Thread eddwinston
Hi Mika, Check the logout url and make sure that it is pointing to "[application]/default/user/logout". Check the generated mark up to be sure. Regards, Winston On Sep 14, 12:42 pm, mika wrote: > Hi! > > I have the problem with logout option - it seems that it doesn't work > - nothing happnens

[web2py:30881] Re: Ajax

2009-09-13 Thread eddwinston
}} Thanks Winston On Sep 11, 12:28 pm, eddwinston wrote: > Hi Jason, > > I did create a file and named it user.json then put in the code > Massimo suggested but I still get the page markup. It was suppose to > return json. > > On Sep 11, 6:24 am, Jason Brower wrote: > &g

[web2py:30704] Re: Ajax

2009-09-11 Thread eddwinston
> great detail too. > Regards, > Jason Brower > > > > On Thu, 2009-09-10 at 12:31 -0700, eddwinston wrote: > > Hi guys, > > > The login now works, the session is saved but the value returned from > > the server is still a full page html markup. How can

[web2py:30667] Re: Ajax

2009-09-10 Thread eddwinston
the use action with > > URL(r=request,c='default', f='user', args='login',extension='json') > > On Sep 10, 2:31 pm, eddwinston wrote: > > > Hi guys, > > > The login now works, the session is saved but the value returned from

[web2py:30648] Re: Ajax

2009-09-10 Thread eddwinston
Hi guys, The login now works, the session is saved but the value returned from the server is still a full page html markup. How can I get either xml or json as a return value? Thanks Winston On Sep 10, 10:42 am, eddwinston wrote: > Thanks a lot guys. I will try it when I get hands on my

[web2py:30600] T3

2009-09-10 Thread eddwinston
Hi, What exactly is T2 or T3? Are they applications built with web2py or are not. I don't actually get it --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web

[web2py:30596] Re: Ajax

2009-09-10 Thread eddwinston
bmit(u,i,t){ >     frm = jQuery("form:eq(" + i + ")"); >     query = 'undefined=' + i; >     if (frm.length==1){query = frm.serialize();} >     jQuery.ajax({type: "POST", url: u, data: query, success: function > (msg) { if(t==':eval')

[web2py:30584] Re: Ajax

2009-09-09 Thread eddwinston
key_value", "_formname": "formname_value" }' On Sep 10, 8:45 am, mdipierro wrote: > But this line > >    data: {}, > > is not sending the username and password to the login page. It should > also send the formkey and formname. > &g

[web2py:30579] Re: Ajax

2009-09-09 Thread eddwinston
the alert dialog }, error: failure_callback }); On Sep 10, 6:31 am, mdipierro wrote: > show us the code > > On Sep 9, 10:21 pm, eddwinston wrote: > > > > > Hi, > > > I am trying to make an ajax login, I am currently sending request to > > this url: [app]/

[web2py:30573] Ajax

2009-09-09 Thread eddwinston
Hi, I am trying to make an ajax login, I am currently sending request to this url: [app]/default/user/login. But it has been fruitless. I just get a full page html markup and the user will not be logged in. Is there a way I can do it? Regards, Winston --~--~-~--~~~---

[web2py:30567] Re: Layout problem

2009-09-09 Thread eddwinston
; unmatched tags in 'mini_login.html'? > > On Sep 9, 12:54 pm, eddwinston wrote: > > > Hi, > > > I am trying to control when and show login form on a page. I have a > > login form that is displayed on the side of the page is user is not > > logged in and if the use

[web2py:30512] Layout problem

2009-09-09 Thread eddwinston
Hi, I am trying to control when and show login form on a page. I have a login form that is displayed on the side of the page is user is not logged in and if the user actually goes the the login page (not the login form by the side of the page). It causes problem because there will be login form i

[web2py:30419] Re: Login Problem again

2009-09-08 Thread eddwinston
> page (one in layout.html and one in yourview.html). You need to add > some checks to prevent it. > > Massimo > > On Sep 8, 1:45 pm, eddwinston wrote: > > > I have this line on my view to place a login form on the page at all > > times if the user is not authenticat

[web2py:30415] Login Problem again

2009-09-08 Thread eddwinston
I have this line on my view to place a login form on the page at all times if the user is not authenticated: {{if not auth.is_logged_in(): response.write(auth.login()) }} {{pass}} The problem is, if those two lines are on the view, the login does not work at all, that is, if i enter ema

[web2py:30309] Typo in the web2py manual volume 2

2009-09-07 Thread eddwinston
Hi Massimo, I noticed a typo in section 3.8 when dealing with crud.create() in the show action. Line 5 reads: form = crud.create(db.image, next=URL(r=request, args... but I think it is suppose to be: form = crud.create(db.comment, next=URL(r=request, args... the first one shows form

[web2py:30289] DAL and SQLDB

2009-09-07 Thread eddwinston
What is/are the difference(s) between DAL(...) and SQLDB(...) Winston --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe

[web2py:30286] Re: suggestion: form_factory imported by default

2009-09-07 Thread eddwinston
didn't know about SQLFORM.factory. Cool On Sep 7, 5:01 pm, mdipierro wrote: > form_factory is deprecated. Use SQLFORM.factory instead. > > On Sep 7, 1:50 am, eddwinston wrote: > > > Hi, > > > Just wondering why the form_factory class is not imported by defaul

[web2py:30273] suggestion: form_factory imported by default

2009-09-06 Thread eddwinston
Hi, Just wondering why the form_factory class is not imported by default so that we dont have to do "from gluon.sqlhtml import form_factory" just like the case for SQLFORM and FORM classes. I think it will be really handy. Winston --~--~-~--~~~---~--~~ You receive

[web2py:30272] Re: Double submission and login

2009-09-06 Thread eddwinston
set 'keepvalues' to False if you want to make > sure that the form won't contain any data. > > On Sep 6, 8:21 pm, eddwinston wrote: > > > > > Here: > > > class MyAuth(Auth): > >     def __init__(self, environment, T, db = None): > >  

[web2py:30263] Re: Double submission and login

2009-09-06 Thread eddwinston
x27;login') auth.define_tables() # creates all needed tables And here is the default controller action: def user(): return dict(form=auth()) The View is pretty much the default: {{extend 'layout.html'}} {{=request.args(0).replace('_',' 

[web2py:30246] Double submission and login

2009-09-06 Thread eddwinston
Hi, In my page, if I submits a form, the data is saved in the database but if I hit F5 it saved that same data in the database again. Then I have multiple submit. How do I stop this from happening? Also I was trying out authentication in web2py and after registering a user, the user is automatic

[web2py:30222] Login problem

2009-09-06 Thread eddwinston
Hi, I was trying out authentication in web2py and after registering a user, the user is automatically signed in. But if i log the user out and try to login using the login form, nothing happens. Any idea why this is happening? --~--~-~--~~~---~--~~ You received th

[web2py:30220] Re: Ajax login

2009-09-06 Thread eddwinston
hello mr.freeze, I found out that I miss typed something, and it is now successfully making the ajax call, but the value returned to the success_callback function is a complete page mark-up and even when I refresh the page, i do no seem to be logged in. I think no session was saved. --~--~---

[web2py:30186] Re: Ajax login

2009-09-05 Thread eddwinston
;, args='login'}}", >    data: {}, >    success: success_callback, >    error: failure_callback >  }); > > On Sep 5, 6:47 pm, eddwinston wrote: > > > Hi, > > > I tried creating the url like this because it is in the view: {{=URL > > (r=r

[web2py:30184] Re: Ajax login

2009-09-05 Thread eddwinston
#x27;login')}}", {}, success_callback, failure_callback); I passed {} inplace of data. On Sep 5, 11:55 pm, mdipierro wrote: > Yes the url is > > URL(r=request,c='default', f='user', args='login') > > or > > {{=URL(r=request,c='default

[web2py:30182] Re: Having problem with IS_IN_DB

2009-09-05 Thread eddwinston
y.requires=IS_IN_DB(db, db.category.id, '%(name)s') > > IS_IN_DB won't render a dropdown when it is part of a list of > validators. IS_NOT_EMPTY isn't needed because IS_IN_DB implies that > the field won't be empty. > > Let me know if that doesn't wo

[web2py:30179] Re: Having problem with IS_IN_DB

2009-09-05 Thread eddwinston
d', '%(name)s') > > On Sep 5, 5:16 pm, eddwinston wrote: > > > Reference field marked with IS_IN_DB(db, ..., ...) is not displayed as > > drop-down menu in the admin section. --~--~-~--~~~---~--~~ You received this message because you a

[web2py:30177] Having problem with IS_IN_DB

2009-09-05 Thread eddwinston
Reference field marked with IS_IN_DB(db, ..., ...) is not displayed as drop-down menu in the admin section. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to

[web2py:30152] Ajax login

2009-09-05 Thread eddwinston
Hi, >From the login form generated by web2py, if I intercept the submit event so I can make an ajax request to the server, the request URL I guess will be /[application]/user/login. Then what will be the possible parameters? Or should the request URL be something like this: URL(r=request, c='def

[web2py:30148] Re: web2py FORM

2009-09-05 Thread eddwinston
 pm, mdipierro wrote: > in layout you can do: > > {{if not auth.is_logged_in(): response.write(auth.login())}} > > Massimo > > On Sep 5, 12:41 pm, eddwinston wrote: > > > Hi, > > > I want a have a case like this, the authentication form will be > > disp

[web2py:30140] web2py FORM

2009-09-05 Thread eddwinston
Hi, I want a have a case like this, the authentication form will be displayed on the page at all times if the user is not authenticated irrespective of controller/action, how do i create such a form since it wont be controller/action specific? Thanks. Regards Winston --~--~-~--~~

[web2py:30106] Re: Help with web2py authenticatoin

2009-09-05 Thread eddwinston
Hi Fran, I managed to fix the problem I think. When user is not authenticated the @auth.requires_login() decorator looks for settings.login_url from the Auth object. But i previously did not have that. After adding it, it worked fine Thanks Regards, Winston On Sep 5, 3:04 pm, eddwinston wrote

[web2py:30104] Re: Help with web2py authenticatoin

2009-09-05 Thread eddwinston
Hi Fran, If I try to access the action with the @auth.requires_login() decorator in the second controller, it still looks for user action in the second controller. It does go to the on_failed_authorization url given. On Sep 5, 2:20 pm, Fran wrote: > On Sep 5, 12:10 pm, eddwinston wr

[web2py:30103] Re: Help with web2py authenticatoin

2009-09-05 Thread eddwinston
Thanks Fran On Sep 5, 2:20 pm, Fran wrote: > On Sep 5, 12:10 pm, eddwinston wrote: > > > I have in my default controller the "user" action that exposes the > > auth object. But I wanted authenticated also in a different > > controller, say, second_controlle

[web2py:30099] Help with web2py authenticatoin

2009-09-05 Thread eddwinston
I have in my default controller the "user" action that exposes the auth object. But I wanted authenticated also in a different controller, say, second_controller. I decorated one of my action in the "second_controller" with @auth.requires_login() and it was looking for a "user" action in "second_c

[web2py:30047] Re: How to kick off process asynchronously

2009-09-04 Thread eddwinston
Hi Massimo, I tried the VideTest app from the link above and I successfully uploaded a video but I got "Please wait while your video is processed..." for a very long time. It seems the video was not converted or maybe I am doing something wrong. Is there something I have to do to make the app con

[web2py:29991] Dynamic Side bar

2009-09-03 Thread eddwinston
I am very very new to web2py and I love it. I am trying to have a dynamic side bar/side bar menu. How can I do that? Do I have to create a view and then pass in value from all the controller actions in the app? --~--~-~--~~~---~--~~ You received this message becaus