Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion first register form and got stuck!

Received: by 10.236.153.69 with SMTP id e45mr14335571yhk.35.1343326077960;
        Thu, 26 Jul 2012 11:07:57 -0700 (PDT)
X-BeenThere: python-tornado@googlegroups.com
Received: by 10.236.78.164 with SMTP id g24ls4395996yhe.6.gmail; Thu, 26 Jul
 2012 11:07:42 -0700 (PDT)
Received: by 10.236.185.194 with SMTP id u42mr15442558yhm.29.1343326062588;
        Thu, 26 Jul 2012 11:07:42 -0700 (PDT)
Received: by 10.236.185.194 with SMTP id u42mr15442555yhm.29.1343326062572;
        Thu, 26 Jul 2012 11:07:42 -0700 (PDT)
Return-Path: <puentesar...@gmail.com>
Received: from mail-gg0-f171.google.com (mail-gg0-f171.google.com [209.85.161.171])
        by gmr-mx.google.com with ESMTPS id q2si6165431yhi.5.2012.07.26.11.07.42
        (version=TLSv1/SSLv3 cipher=OTHER);
        Thu, 26 Jul 2012 11:07:42 -0700 (PDT)
Received-SPF: pass (google.com: domain of puentesar...@gmail.com designates 209.85.161.171 as permitted sender) client-ip=209.85.161.171;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of puentesar...@gmail.com designates 209.85.161.171 as permitted sender) smtp.mail=puentesar...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-gg0-f171.google.com with SMTP id i1so4238256ggm.16
        for <python-tornado@googlegroups.com>; Thu, 26 Jul 2012 11:07:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :content-type;
        bh=iaESIFwKiZ14NcPOX8Xn6stwZJ6ey7e6JEalydDI6UI=;
        b=JDu8Yc45s/im6w/TSJcMj6X++MD/prt5BcSoyGEf7ej3OUiTquaNFqM5h/nYsXc+Qa
         bDsBxukNz+FHROdpYydopqGIzRClF5WDDlvNrT4R9jzI7+liP1ASytDCbM91j0chYKsy
         xXgUVQvYD5/nIBPbKdq8OksFrunqaGuzR+PtNGCltrA/OVOiLBsLjjO7In3vRa6ibDWF
         +GTBDcetaZwgnUHPXOLqnUElAPICc0/nxbKwxmLp9ORzZvoOdF/MByJjNeBDBxJ8T4PP
         b4llgwe8PluuybTxs0LZqCZP90UMojUvvnJuPi2qvRKfMi46zHOSXglwwKpuwDNPui/D
         6WPw==
Received: by 10.50.236.97 with SMTP id ut1mr2450499igc.50.1343326062345; Thu,
 26 Jul 2012 11:07:42 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.64.9.37 with HTTP; Thu, 26 Jul 2012 11:07:02 -0700 (PDT)
In-Reply-To: <e293415c-90ef-49b4-a753-e1d268eec...@n5g2000vbb.googlegroups.com>
References: <d4bd5c43-913b-4d9a-9a96-dcfe9c976...@m10g2000vbn.googlegroups.com>
 <CAO+R_P84bOUwyazACztd6oi+Q3ik-7ncJrFko2+e1mnDBeX...@mail.gmail.com> <e293415c-90ef-49b4-a753-e1d268eec...@n5g2000vbb.googlegroups.com>
From: =?ISO-8859-1?Q?Jorge_Puente_Sarr=EDn?= <puentesar...@gmail.com>
Date: Thu, 26 Jul 2012 13:07:02 -0500
Message-ID: <CAO+R_P_BZhioGpchaJaFEr0DfPq-XigECoBRiRFKCroX=F0...@mail.gmail.com>
Subject: Re: [tornado] Re: first register form and got stuck!
To: python-tornado@googlegroups.com
Content-Type: multipart/alternative; boundary=14dae9340b8dc37ef804c5bf7825

--14dae9340b8dc37ef804c5bf7825
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Yes, you should to add this line inside at your form:

{% raw xsrf_form_html() %}


Regards.

2012/7/26 aliane abdelouahab <alabdeloua...@gmail.com>

> yes, in the setting of app.py there is a looooooong word used to
> verify if it's the same from the request or not (from i understand)
>
> On 26 juil, 18:46, Jorge Puente Sarr=EDn <puentesar...@gmail.com> wrote:
> > Do have enable *xsrf_cookies ?*
> >
> > 2012/7/26 aliane abdelouahab <alabdeloua...@gmail.com>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > hi, am a real newbie, and it's my first application, and am stacked!
> > > so here is my problem:
> > > i wanna make a form submission, and here is the html:
> >
> > > from register-entr.html
> >
> > > <form name=3D"reg" id=3D"register" action=3D"register-entr.html"
> > > method=3D"post" enctype=3D"multipart/form-data">
> > > {% raw xsrf_form_html() %}
> > > <input id=3D"pseudo">
> > > <input id=3D"pass1">
> > > <input id=3D"pass2">
> > > <input id=3D"email">
> > > <input id=3D"tel">
> > > <input id=3D"validate" type=3D"submit" value=3D"Confirmer"/>
> > > <form/>
> >
> > > and here is the tornado problem:
> > > from the file handlers.py
> >
> > > class RegistrationE(tornado.web.RequestHandler):
> > >     def post(self):
> > >         pseudo =3D self.get_argument("pseudo")
> > >         pass1=3D self.get_argument("pass1")
> > >         pass2=3D self.get_argument("pass2")
> > >         email=3D self.get_argument("email")
> > >         tel=3D self.get_argument("tel")
> > >         commune=3D self.get_argument("commune")
> > >     def get(self):
> > >         self.render("register-entr.html")
> >
> > > and
> > > from the app.py
> >
> > > urls =3D [
> > >     (r"/", handlers.MainHandler),
> > >     (r"/register-entr.html", handlers.RegistrationE)
> > > ]
> >
> > > he gives me 405 Method not allowd!
> >
> > > what i want to do is to finalisze the registration -not yet used the
> > > database, just to verify, am going slowly ;)- so when the user
> > > validate the registration it will be redirected to a page where he ca=
n
> > > see a new page (where i used langage template like : Hi {{pseudo}},
> > > your phone is {{tel}})
> >
> > > NB: the registration and login are in the same page, i've used a CSS3
> > > Accordion effect :p
> >
> > --
> > Atte.
> > Jorge Puente Sarr=EDn.
>



--=20
Atte.
Jorge Puente Sarr=EDn.

--14dae9340b8dc37ef804c5bf7825
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Yes, you should to add this line inside at your form:<div><br></div><div>
<p style=3D"margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0=
px"><font face=3D"&#39;courier new&#39;, monospace">{% raw xsrf_form_html()=
 %}</font></p><p style=3D"margin-top:0px;margin-bottom:0px;margin-left:0px;=
margin-right:0px">

<br></p><p style=3D"margin-top:0px;margin-bottom:0px;margin-left:0px;margin=
-right:0px">Regards.</p><br><div class=3D"gmail_quote">2012/7/26 aliane abd=
elouahab <span dir=3D"ltr">&lt;<a href=3D"mailto:alabdeloua...@gmail.com" t=
arget=3D"_blank">alabdeloua...@gmail.com</a>&gt;</span><br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">yes, in the setting of app.py there is a loo=
ooooong word used to<br>
verify if it&#39;s the same from the request or not (from i understand)<br>
<br>
On 26 juil, 18:46, Jorge Puente Sarr=EDn &lt;<a href=3D"mailto:puentesar...=
@gmail.com">puentesar...@gmail.com</a>&gt; wrote:<br>
&gt; Do have enable *xsrf_cookies ?*<br>
&gt;<br>
&gt; 2012/7/26 aliane abdelouahab &lt;<a href=3D"mailto:alabdeloua...@gmail=
.com">alabdeloua...@gmail.com</a>&gt;<br>
<div class=3D"HOEnZb"><div class=3D"h5">&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &gt; hi, am a real newbie, and it&#39;s my first application, and am s=
tacked!<br>
&gt; &gt; so here is my problem:<br>
&gt; &gt; i wanna make a form submission, and here is the html:<br>
&gt;<br>
&gt; &gt; from register-entr.html<br>
&gt;<br>
&gt; &gt; &lt;form name=3D&quot;reg&quot; id=3D&quot;register&quot; action=
=3D&quot;register-entr.html&quot;<br>
&gt; &gt; method=3D&quot;post&quot; enctype=3D&quot;multipart/form-data&quo=
t;&gt;<br>
&gt; &gt; {% raw xsrf_form_html() %}<br>
&gt; &gt; &lt;input id=3D&quot;pseudo&quot;&gt;<br>
&gt; &gt; &lt;input id=3D&quot;pass1&quot;&gt;<br>
&gt; &gt; &lt;input id=3D&quot;pass2&quot;&gt;<br>
&gt; &gt; &lt;input id=3D&quot;email&quot;&gt;<br>
&gt; &gt; &lt;input id=3D&quot;tel&quot;&gt;<br>
&gt; &gt; &lt;input id=3D&quot;validate&quot; type=3D&quot;submit&quot; val=
ue=3D&quot;Confirmer&quot;/&gt;<br>
&gt; &gt; &lt;form/&gt;<br>
&gt;<br>
&gt; &gt; and here is the tornado problem:<br>
&gt; &gt; from the file handlers.py<br>
&gt;<br>
&gt; &gt; class RegistrationE(tornado.web.RequestHandler):<br>
&gt; &gt; =A0 =A0 def post(self):<br>
&gt; &gt; =A0 =A0 =A0 =A0 pseudo =3D self.get_argument(&quot;pseudo&quot;)<=
br>
&gt; &gt; =A0 =A0 =A0 =A0 pass1=3D self.get_argument(&quot;pass1&quot;)<br>
&gt; &gt; =A0 =A0 =A0 =A0 pass2=3D self.get_argument(&quot;pass2&quot;)<br>
&gt; &gt; =A0 =A0 =A0 =A0 email=3D self.get_argument(&quot;email&quot;)<br>
&gt; &gt; =A0 =A0 =A0 =A0 tel=3D self.get_argument(&quot;tel&quot;)<br>
&gt; &gt; =A0 =A0 =A0 =A0 commune=3D self.get_argument(&quot;commune&quot;)=
<br>
&gt; &gt; =A0 =A0 def get(self):<br>
&gt; &gt; =A0 =A0 =A0 =A0 self.render(&quot;register-entr.html&quot;)<br>
&gt;<br>
&gt; &gt; and<br>
&gt; &gt; from the app.py<br>
&gt;<br>
&gt; &gt; urls =3D [<br>
&gt; &gt; =A0 =A0 (r&quot;/&quot;, handlers.MainHandler),<br>
&gt; &gt; =A0 =A0 (r&quot;/register-entr.html&quot;, handlers.RegistrationE=
)<br>
&gt; &gt; ]<br>
&gt;<br>
&gt; &gt; he gives me 405 Method not allowd!<br>
&gt;<br>
&gt; &gt; what i want to do is to finalisze the registration -not yet used =
the<br>
&gt; &gt; database, just to verify, am going slowly ;)- so when the user<br=
>
&gt; &gt; validate the registration it will be redirected to a page where h=
e can<br>
&gt; &gt; see a new page (where i used langage template like : Hi {{pseudo}=
},<br>
&gt; &gt; your phone is {{tel}})<br>
&gt;<br>
&gt; &gt; NB: the registration and login are in the same page, i&#39;ve use=
d a CSS3<br>
&gt; &gt; Accordion effect :p<br>
&gt;<br>
&gt; --<br>
&gt; Atte.<br>
&gt; Jorge Puente Sarr=EDn.<br>
</div></div></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>=
Atte.<br>Jorge Puente Sarr=EDn.<br>
</div>

--14dae9340b8dc37ef804c5bf7825--