, 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
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
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
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
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
}}
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
> 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
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
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
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
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')
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
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]/
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
--~--~-~--~~~---
; 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
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
> 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
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
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
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
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
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
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):
> >
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('_','
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
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
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.
--~--~---
;, 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
#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
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
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
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
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
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
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
--~--~-~--~~
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
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
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
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
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
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
41 matches
Mail list logo