Post here your main "app.py" file:
def main():
application = webapp.WSGIApplication([
('/', home.handler.Home),
...
-- Best Template Engine
http://pyoohtml.appspot.com/best-template-engine
On Sep 5, 3:23 pm, rive <[EMAIL PROTECTED]> wrote:
> I do an multipart post to "http://rive.appspot.com/services/
> CountriesService.py"
>
> But I keep getting 400 bad requests back?? The file is really online.
> This is the server side file I have online. (the same client side code
> works perfect with PHP)
>
> from google.appengine.api import images
> from google.appengine.api import users
> from google.appengine.ext import db
> from google.appengine.ext import webapp
> from Model import tblMapCountries, DTO
>
> class CountriesService(webapp.RequestHandler):
> def post(self):
> if users.is_current_user_admin():
>
> country = tblMapCountries()
> country.country = self.request.get("country")
> uploadimage = images.resize(self.request.get("Filedata"),
> 25, 20, images.PNG)
> country.flag = db.Blob(uploadimage)
> country.put()
> return "inserted in db app engine"
> else:
> return "kiekeboe"
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---