I cant store anytext on db.TextProperty

34 views
Skip to first unread message

orijinal swq

unread,
Feb 13, 2015, 12:33:22 AM2/13/15
to google-a...@googlegroups.com
hi
I asked this question on se but it is not interested. I would be very appreciated if someone answers this.

I need to store a large text(70k char) to datastore. what I did is working fine on localhost. But When I upload it to gae it doesnt store anything. it just shows "{}"

if I rename textProperty to StringProperty and change the text, it works. where did I do the mistake? I got no error on logs

my db.model:

class Eyut(db.Model):
    texx=db.TextProperty()
    date = db.DateTimeProperty(auto_now_add=False)
    glink=db.StringProperty()

first add:

eks=Eyut(parent=_gazKey('yaz','yaze'),key_name='yaze')
eks.put()

adding text to it:

y=Eyut.get_by_key_name('yaze',parent=db.Key.from_path('Bed','yaz','yaze',1))
y.texx="any text"
y.put()

camaram

unread,
Feb 13, 2015, 5:33:16 AM2/13/15
to google-a...@googlegroups.com
Hi,

I can't find your question on Stackoverflow.com. Could you post the link to that question or post it again?

The reasons for posting the question there is that you'll get a bigger number of potential answers, and also that Stackoverflow allows for better finding Q&A if someone has a similar issue in the future.

Regards,

Mario
Google Cloud Platform

Alex Martelli

unread,
Feb 13, 2015, 10:24:05 AM2/13/15
to google-a...@googlegroups.com
Yep.  I just did answer on stackoverflow, showing a minimum attempt to reproduce (you didn't give quite enough code to run so I had to guess at some) and the problem simply does not show up -- the code I present on SO runs just as expected.  Please let's continue this on SO: specifically, edit your Q to contain the minimal variant on my A's code which *does* reproduce the problem.

Thanks,

Alex


--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/9d3f876b-64e1-4183-a5bf-37b9ad2aeb2d%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages