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.52.179.69 with SMTP id de5mr1271121vdc.7.1343347698409;
        Thu, 26 Jul 2012 17:08:18 -0700 (PDT)
X-BeenThere: python-tornado@googlegroups.com
Received: by 10.220.115.84 with SMTP id h20ls1857312vcq.9.gmail; Thu, 26 Jul
 2012 17:08:15 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.52.97.102 with SMTP id dz6mr72671vdb.2.1343347695349; Thu, 26
 Jul 2012 17:08:15 -0700 (PDT)
Authentication-Results: ls.google.com; spf=pass (google.com: domain of
 alabdeloua...@gmail.com designates internal as permitted sender)
 smtp.mail=alabdeloua...@gmail.com; dkim=pass
 header...@gmail.com
Received: by m10g2000vbn.googlegroups.com with HTTP; Thu, 26 Jul 2012 17:08:15
 -0700 (PDT)
Date: Thu, 26 Jul 2012 17:08:15 -0700 (PDT)
In-Reply-To: <CAO+R_P93Nv+rJmZwe+gGBKy4K4Wuk0P5SPkRFaNHZbuU-+pZdw@mail.gmail.com>
References: <d4bd5c43-913b-4d9a-9a96-dcfe9c97680b@m10g2000vbn.googlegroups.com>
 <CAO+R_P84bOUwyazACztd6oi+Q3ik-7ncJrFko2+e1mnDBeX86g@mail.gmail.com>
 <e293415c-90ef-49b4-a753-e1d268eec2eb@n5g2000vbb.googlegroups.com>
 <CAO+R_P_BZhioGpchaJaFEr0DfPq-XigECoBRiRFKCroX=F0vOQ@mail.gmail.com>
 <711892bb-1584-49e6-a80b-e4f90c037241@n5g2000vbb.googlegroups.com> <CAO+R_P93Nv+rJmZwe+gGBKy4K4Wuk0P5SPkRFaNHZbuU-+pZdw@mail.gmail.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.7 (KHTML, like
 Gecko) Chrome/16.0.912.77 Safari/535.7,gzip(gfe)
Message-ID: <aefe5688-57b5-4110-976f-ac645e803d1b@m10g2000vbn.googlegroups.com>
Subject: Re: first register form and got stuck!
From: aliane abdelouahab <alabdeloua...@gmail.com>
To: Tornado Web Server <python-tornado@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

*because am not at home, am in a cyber cafe

On 26 juil, 21:59, Jorge Puente Sarr=EDn <puentesar...@gmail.com> wrote:
> Can you write the traceback?
>
> 2012/7/26 aliane abdelouahab <alabdeloua...@gmail.com>
>
>
>
>
>
>
>
>
>
> > yes, it's there, and the resulted html, i've checked the source and it
> > become a form with "hidden" attribute, but from what i've read, error
> > 405 is when there is a problem between GET and POST, so can't i mix
> > them? :o
>
> > On 26 juil, 19:07, Jorge Puente Sarr=EDn <puentesar...@gmail.com> wrote=
:
> > > 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> w=
rote:
> > > > > 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):
> > > > > > =A0 =A0 def post(self):
> > > > > > =A0 =A0 =A0 =A0 pseudo =3D self.get_argument("pseudo")
> > > > > > =A0 =A0 =A0 =A0 pass1=3D self.get_argument("pass1")
> > > > > > =A0 =A0 =A0 =A0 pass2=3D self.get_argument("pass2")
> > > > > > =A0 =A0 =A0 =A0 email=3D self.get_argument("email")
> > > > > > =A0 =A0 =A0 =A0 tel=3D self.get_argument("tel")
> > > > > > =A0 =A0 =A0 =A0 commune=3D self.get_argument("commune")
> > > > > > =A0 =A0 def get(self):
> > > > > > =A0 =A0 =A0 =A0 self.render("register-entr.html")
>
> > > > > > and
> > > > > > from the app.py
>
> > > > > > urls =3D [
> > > > > > =A0 =A0 (r"/", handlers.MainHandler),
> > > > > > =A0 =A0 (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 use=
d
> > the
> > > > > > database, just to verify, am going slowly ;)- so when the user
> > > > > > validate the registration it will be redirected to a page where=
 he
> > can
> > > > > > see a new page (where i used langage template like : Hi {{pseud=
o}},
> > > > > > 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.
>
> > > --
> > > Atte.
> > > Jorge Puente Sarr=EDn.
>
> --
> Atte.
> Jorge Puente Sarr=EDn.