Possibly the same error that I'm getting. See below.

Traceback (most recent call last):
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/webapp/__init__.py", line 501, in __call__
    handler.post(*groups)
  File "/Users/foghat/Coding/Google App Engine/helloworld/
helloworld.py", line 46, in post
    greeting.put()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/db/__init__.py", line 618, in put
    return datastore.Put(self._entity)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/api/datastore.py", line 151, in Put
    req.entity_list().extend([e._ToPb() for e in entities])
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/api/datastore.py", line 483, in _ToPb
    properties = datastore_types.ToPropertyPb(name, values)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/api/datastore_types.py", line 1244, in ToPropertyPb
    pbvalue = pack_prop(name, v, pb.mutable_value())
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/api/datastore_types.py", line 1129, in PackUser
    pbvalue.mutable_uservalue().set_email(value.email().encode
('utf-8'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf6 in position
1: ordinal not in range(128)



On Oct 20, 10:13 pm, "Dan Sanderson" <[EMAIL PROTECTED]> wrote:
> What errors are you getting?
> -- Dan
>
> On Mon, Oct 20, 2008 at 11:17 AM, [EMAIL PROTECTED] <
>
> [EMAIL PROTECTED]> wrote:
>
> > Running Python Launcher Version 2.5.1 & Google App Engine SDK release:
> > 1.1.5
> > on Mac OS X Version 10.4.11
>
> > First time user, so far the tutorial is easy to follow. I get to
> > "Using Datastore" "Edit the Guestbook handler to appear similar to the
> > following..." and now my application will not run error-free. I simply
> > copied and pasted the code found here:
> >http://code.google.com/appengine/docs/gettingstarted/usingdatastore.html
>
> > Up till this point I receive errors when refreshinghttp://localhost:8080/
> > in my safari browser.
>
> > This is the code I am running:----------------------------->
>
> > from google.appengine.ext import db
> > import cgi
>
> > from google.appengine.api import users
> > from google.appengine.ext import webapp
> > from google.appengine.ext.webapp.util import run_wsgi_app
>
> > class MainPage(webapp.RequestHandler):
> >  def get(self):
> >    self.response.out.write("""
> >      <html>
> >        <body>
> >          <form action="/sign" method="post">
> >            <div><textarea name="content" rows="3" cols="60"></
> > textarea></div>
> >            <div><input type="submit" value="Sign Guestbook"></div>
> >          </form>
> >        </body>
> >      </html>""")
>
> > class Guestbook(webapp.RequestHandler):
> >  def post(self):
> >    greeting = Greeting()
>
> >    if users.get_current_user():
> >      greeting.author = users.get_current_user()
>
> >    greeting.content = self.request.get('content')
> >    greeting.put()
> >    self.redirect('/')
>
> > def main():
> >  run_wsgi_app(application)
>
> > if __name__ == "__main__":
> >  main()
>
> > END-------------------------------------->
>
> > If i finish and "Edit the MainPage handler to appear similar to the
> > following..." I will also run into a massive error message when
> > viewing the application on Safari browser.
>
> > This would then be the code I am runnnig: -----------------------------
>
> > from google.appengine.ext import db
> > import cgi
>
> > from google.appengine.api import users
> > from google.appengine.ext import webapp
> > from google.appengine.ext.webapp.util import run_wsgi_app
>
> > class MainPage(webapp.RequestHandler):
> >  def get(self):
> >    self.response.out.write('<html><body>')
>
> >    greetings = db.GqlQuery("SELECT * FROM Greeting ORDER BY date DESC
> > LIMIT 10")
>
> >    for greeting in greetings:
> >      if greeting.author:
> >        self.response.out.write('<b>%s</b> wrote:' %
> > greeting.author.nickname())
> >      else:
> >        self.response.out.write('An anonymous person wrote:')
> >      self.response.out.write('<blockquote>%s</blockquote>' %
> >                              cgi.escape(greeting.content))
>
> >    # Write the submission form and the footer of the page
> >    self.response.out.write("""
> >          <form action="/sign" method="post">
> >            <div><textarea name="content" rows="3" cols="60"></
> > textarea></div>
> >            <div><input type="submit" value="Sign Guestbook"></div>
> >          </form>
> >        </body>
> >      </html>""")
>
> > class Guestbook(webapp.RequestHandler):
> >  def post(self):
> >    greeting = Greeting()
>
> >    if users.get_current_user():
> >      greeting.author = users.get_current_user()
>
> >    greeting.content = self.request.get('content')
> >    greeting.put()
> >    self.redirect('/')
>
> > def main():
> >  run_wsgi_app(application)
>
> > if __name__ == "__main__":
> >  main()
>
> > END-------------------------------------------->
>
> > What am I doing wrong?
> > I reloadhttp://localhost:8080/in my browser and cannot post, I get a
> > full page of Errors. Thank u.
>
> > ~Adrie S.
> > SilvaPrints.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to