hello,
I'm running GAE 1.4 and python 2.5.2
I built an application on the development server which worked fine.
It's a simple application that takes data from external clients, puts
it in the datastore, and then allows users to view it on the web.
One of my fields in this model I recently switched from a
StringProperty to a TextProperty to allow larger inputs.
Since I have done this, I have not been able to get this field to
persist any data. When I try to access this data in django or even
directly through a webbrowser, it's no longer present.
here is my model
class Request(db.Model):
result = db.TextProperty()
class NewRequest(webapp.RequestHandler):
def post(self):
r = Request()
r.result = self.request.get('result')
r.put()
self.response.out.write(r.key())
# in the development console regardless whether result is
string or Text I can see result here
logging.info("request: "+r.result);
# call with http://localhost:8080/test?key=<keyprovidedaftersubmittingabove>
class test(webapp.RequestHandler):
def get(self):
r = Request.get(self.request.get('key'))
# in the console I can see this result if the type is
String, but not when TextProperty is used
logging.info("request: "+r.result);
what am I doing wrong? I can't find any references to anybody with
this problem, so it must be something really simple.
--
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.