[google-appengine] Why are my plus signs disappearing?

2009-08-04 Thread readyass...@gmail.com

I've noticed a strange bug in my application, which has an AJAX
callback for saving form (textarea) content into a blob in the
database. The problem is that while everything else saves fine, any
'+' characters disappear.

I've added an alert to the AJAX save routine so I can see that, before
the save, the '+' is still in the string, and then the meat of the
callback is this:

  http_request.open('post', xmlUrl, true);
  http_request.setRequestHeader(Content-Type, application/x-www-
form-urlencoded);
  http_request.send('file_name=' + escape(file_name) +
'file_content=' + escape(ta_content));


the ta_content variable is the TextArea content that I just verified
with the javascript alert.

This posts against a save routine which does the following:

class Save(webapp.RequestHandler):
  def post(self):
#fn = self.request.get('file_name')
fc = self.request.get('file_content')

newfile = db.GqlQuery('SELECT * FROM Posts WHERE [yadda yadda]).get
()
if newfile is not None:
  newfile.content = db.Blob(str(fc))
else:
  newfile = Posts(content = db.Blob(str(fc)),
  content_type = ct)
newfile.put()

self.response.out.write('responseok/response')

And the DB entity is as follows:

class Posts(db.Model):
  content = db.BlobProperty()
  created = db.DateTimeProperty(auto_now_add=True)
  #content2 = db.StringProperty()

So my question is, where are my '+' signs disappearing and how can I
stop this?  I'm encoding my data on the post.  I'm converting to a
string before storing to a blob on the AppEngine side.  I even
temporarily added a string to the entity so that I could actually see
the data as it's stored in the datastore and guess what?  I can see my
,,,', and everything else.  Just no +.

Can anyone see what I'm doing wrong here, or does AppEngine just hate
me, plus signs or both?
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] DB blob and URL fetch size limitations...

2009-05-05 Thread readyass...@gmail.com

Team Google-

Are there any plans to increase the DB blob object and URL fetch
object size limitations?  My understanding is that both are limited to
1MB which is a little constraining for one application I'm building.

I understand that there are workarounds, such as the use of AWS, but
for simplicity's sake, I'd like to keep everything in one place.

If there's not a plan to change this overall, is there any opportunity
to get this limit raised on a per-application basis?
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Domain squatting on App Engine

2009-02-18 Thread readyass...@gmail.com

One way to do this if you don't need real-time responsiveness would be
to have the application check a mail feed.  I haven't played around
with any Python IMAP libraries, but I assume that there would be a way
to do this.

Once they add scheduling--which is on the roadmap--there's no reason
you couldn't have it check an email account every few minutes to see
if any new emails have come up and execute the appropriate actions.

If you need realtime responsiveness, then clearly having a mechanism
for AppSpot to receive an email and fire off your application as
appropriate would be awesome.  There was someone out there who wrote
an app for doing something like that and open-sourced it; if you have
your own server elsewhere, you could configure it to receive those
emails and fire off a request to your app.  Unfortunately, I don't
know the name of it, but if you search the archives of this group, I'm
sure you'll find it.

-Ben

On Feb 18, 3:04 am, Peter pcmur...@gmail.com wrote:
  allows apps to recieve mail (presumably at
  appname@gmail.com).

 Allowing apps to receive and perform specific actions based on email
 content is something I'd really like to see implemented.

 I think it would make more sense to avoid the gmail.com namespace.  A
 couple of alternatives I can think of:

 1) Support email receipt on personally registered domain names that
 are using Google Apps
 2) Automatically create a matching mailox under the appspot.com TLD
 name (appname@appspot.com)
 3) Allow creation of a varying number of mailboxes under
 mailbox@appname.appspot.com

 On Feb 15, 9:33 am, Ian Lewis ianmle...@gmail.com wrote:

  I'm guessing the gmail shared namespace limitation has to do with being able
  to the forthcoming release that allows apps to recieve mail (presumably at
  appname@gmail.com). This is probably something they thought about in the
  beginning but just didn't implement.

  On Sun, Feb 15, 2009 at 7:56 AM, Alexander Konovalenko 
  alex...@gmail.comwrote:

   There's an issue to remove the Gmail shared namespace limitation:
  http://code.google.com/p/googleappengine/issues/detail?id=479

   Also, Marzia says that they don't allow similar names. For example, if
   'appid' is already registered, you won't be able to create an app
   called 'app1d'.

  --
  ===
  株式会社ビープラウド  イアン・ルイス
  〒150-0012
  東京都渋谷区広尾1-11-2アイオス広尾ビル604
  email: ianmle...@beproud.jp
  TEL:03-5795-2707
  FAX:03-5795-2708http://www.beproud.jp/
  ===
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---