[google-appengine] Re: Status GAE - Unable to deploy the app

2010-11-01 Thread RSan
Thank you Robert,
Yes, I tried disabling the precompilation and I succeed with the
deploy. However, I did not want an unprencompiled app, so I started to
filter .py's and do uploads. It was quite a tedious work but finally I
found the file that was giving us problems. This file was using a
nonexistent class, and worked locally because we were never using
this .py and had got there by mistake from a different app (quite a
mistake). What I don't understand yet is why one of us could do
deploys. We are using a git repository and all have the same versions
and files. Well, I prefer to forget about that now :)  (although I
would have liked very much some more help from the logs)
All solved!
Thank you Robert, all your hints were really helpful. As I said, this
is the first time I have had a problem with GAE's compiler.
Take good care of yourself.

-- 
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-appeng...@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: Development server hangs

2010-11-01 Thread Bemmu
Tried including "Connection: close" header in dev_appserver replies,
but at least that didn't help.

-- 
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-appeng...@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: Development server hangs

2010-11-01 Thread Tim Hoffman
Use firefox ;-)

On Nov 1, 3:18 pm, Bemmu  wrote:
> Tried including "Connection: close" header in dev_appserver replies,
> but at least that didn't help.

-- 
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-appeng...@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: ConcurrentModificationException with no datastore operation and only task to be enqueue

2010-11-01 Thread Matija
Hi everybody!

Robert. Your experience with adding task to queue is reassuring.

Colin. Thank you for your suggestions. But I get problem when tasks
are added to queue and not after at time of their execution. If there
is contention on some resource it is maybe on task queue as GAE object
or as GAE service. I must repeat that I don't update any data. I am
reading some data in non transactional way and then I am adding tasks
to queue in transaction because of this data, but without putting any
data back to datastore.

On Oct 31, 3:44 pm, hawkett  wrote:
> Hi Matja,
>
>   Looking at the situation again, it doesn't seem to be related to the
> transaction in which you are raising the tasks. I'm reading that it is
> when the tasks are fired that you get the problem. This seems to point
> very much to a problem with multiple tasks each trying to update the
> same entity group (in a transaction) at the same time. So there isn't
> a db operation when you raise the tasks, and that's fine - the tasks
> get raised, and is behaving as expected.  The transient nature of the
> error also points to this - it is only when you get concurrent
> execution of multiple tasks on the same entity group, which may not
> happen very often. In this situation, I would say that the task retry
> behaviour is actually the result you want.
>
>   I'm sure it is the case, but I just wanted to check that you are
> aware that the transaction that raises the task is not the same
> transaction as when the running task executes a write operation.
>
>   Apart from leaning on the retry behaviour, you have the option to
> chain multiple updates to the same entity group so they occur
> sequentially - i.e. raise task1, execute task1, raise task2, execute
> task2 - you can embed the information required for task2 inside the
> payload of task1.  Serialising operations on the same entity group
> like this will guarantee that you don't get contention between task1
> and task2.
>
> Cheers,
>
> Colin
>
> On Oct 29, 9:37 pm, Matija  wrote:
>
>
>
>
>
>
>
> > I must say that this exception happens very seldom, but we are still
> > at developing stage with not realistic testing data. I am not saying
> > that it is constant problem and maybe it is by design. It resolves
> > very easy because next same task execution runs successfully as it
> > should by the app engine task design.
>
> > Problem is that we don't know at what task adding rate exception could
> > happen. Maybe instead of tree like chain of task we would create
> > single contiguous list with task by task execution when it is
> > acceptable. Especially if tasks are fighting with front web request
> > for same instances and add to save average latency.
>
> > On Oct 29, 9:03 pm, Robert Kluin  wrote:
>
> > > I do not think you mentioned the fact you are using a wrapper for the
> > > task-queue until now.  Have you tried saving a very simple entity
> > > inside the transaction causing a problem  to verify that it is not an
> > > issue with the other library?
>
> > > Even if you are not using a wrapper, I would try to save a simple
> > > entity and see if your error goes away.
>
> > > Robert
>
> > > On Fri, Oct 29, 2010 at 03:12, Matija  wrote:
> > > > Thank you for your suggestions. To be honest I know that I can put
> > > > them in queue via batch put, but we are using Vince Bonfanti's
> > > > deferred task queue helper (slightly enhanced for our internal use
> > > > with transactions). It has no support for batch putting, but probably
> > > > we could add support to it and try it. But as you probably already
> > > > know, entities batch put doesn't guarantee that every entity will
> > > > successfully be saved or none (except in transaction), we can presume
> > > > that tasks also would not.  So problem is probably somewhere in api
> > > > service for task queue.
>
> > > > But with batch put our task request would need less time to finish and
> > > > with less request latency we could get more instances. Hm... with more
> > > > instances we could get more transactional task queuing contention
> > > > problems.
>
> > > > I think that it would be nice that somebody from App Engine team
> > > > explains how can we avoid it, if it is possible. Maybe this is app
> > > > engine design problem and we should not worry about it, like knowing
> > > > that for one put statement in let's say every 8000 (I read some
> > > > article) you can expect not to finish because of its distributed
> > > > nature. Problem is that they are quiet and because of it we suspect
> > > > everything.
>
> > > > On Oct 29, 12:39 am, hawkett  wrote:
> > > >> Yet another consideration - you need to be aware that when you raise
> > > >> multiple tasks in quick succession, it is possible (likely even) that
> > > >> they will execute concurrently. If each task is trying to update the
> > > >> same entity, they may very well compete with each other, and enter a
> > > >> contention/retry deadlock.
>
> > > >> On Oct 28, 11:33 pm, hawkett  w

Re: [google-appengine] Re: Getting Model Size

2010-11-01 Thread Joshua Smith
If that's true, it's yet another reason why breaking up the batch puts should 
be handled under the covers of the API.  That way, we don't have to go tune our 
code to changes in limits as they evolve.

On Oct 31, 2010, at 2:38 PM, Robert Kluin wrote:

> I have noticed similar comments / posts.
> 
> 
> 
> 
> 
> On Sat, Oct 30, 2010 at 10:44, Jamie H  wrote:
>> I could be wrong but I believe I have heard 10mb rpc calls are coming
>> in a release soon.
>> 
>> On Oct 30, 9:16 am, Stephen  wrote:
>>> On Oct 30, 1:39 pm, Stephen  wrote:
>>> 
>>> 
>>> 
 On Oct 29, 6:24 pm, Joshua Smith  wrote:
>>> 
> I'm running into a too-large exception when I bulk put a bunch of 
> entities.  So obviously, I need to break up my puts into batches.  I want 
> to do something like this pseudo code:
>>> 
> size = 0
> for o in objects:
>   if size + o.size() > 1MB:
> db.put(list)
> size = 0
> list = []
>   list.append(o)
>>> 
> Any idea what I could use for the "o.size()" method?  I could crawl 
> through all the fields and build up an estimate, but it seems likely to 
> me that there is a way to get the API-size of an entity more elegantly.
>>> 
 How about something like:
>>> 
 from google.appengine.api import datastore
 from google.appengine.runtime import apiproxy_errors
>>> 
 def put_all(entities, **kw):
 try:
 return datastore.Put(entities, **kw)
 except apiproxy_errors.RequestTooLargeError:
 n = len(entities) / 2
 a, b = entities[:n], entities[n:]
 return put_all(a, **kw).extend(put_all(b, **kw))
>>> 
>>> Although the general idea of the above code is to rely on the
>>> apiproxy_stub to accurately measure rpc size and split if too big, if
>>> you regularly try to put() large batch sizes you suffer the same
>>> overhead already mentioned: converting from model to entity to
>>> protobuf multiple times.
>>> 
>>> So how about something like this (untested...):
>>> 
>>> from google.appengine.api import datastore
>>> from google.appengine.runtime import apiproxy_errors
>>> 
>>> def put_all(models, **kw):
>>> rpc = datastore.GetRpcFromKwargs(kw)
>>> models, multiple = datastore.NormalizeAndTypeCheck(models, Model)
>>> assert multiple
>>> entities =
>>> [model._populate_internal_entity(_entity_class=_CachedEntity)
>>>   for model in models]
>>> return _put_or_split(entities, rpc, **kw)
>>> 
>>> def _put_or_split(entities, rpc, **kw):
>>> try:
>>> return datastore.Put(entities, rpc=rpc, **kw)
>>> except apiproxy_errors.RequestTooLargeError:
>>> n = len(entities) / 2
>>> a, b = entities[:n], entities[n:]
>>> logging.warn('batch put of %d entities failed,'
>>>  ' trying batches of %d and %d',
>>>  len(entities), len(a), len(b))
>>> return _put_or_split(a, rpc, **kw).extend(_put_or_split(b,
>>> rpc, **kw))
>>> 
>>> class _CachedEntity(datastore.Entity):
>>> def _ToPb(self, **kw):
>>> if getattr(self, '__cached_pb', None) is None:
>>> self.__cached_pb = super(_CachedEntity, self)._ToPb(**kw)
>>> return self.__cached_pb
>> 
>> --
>> 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-appeng...@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.
>> 
>> 
> 
> -- 
> 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-appeng...@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.
> 

-- 
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-appeng...@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: Development server hangs

2010-11-01 Thread Bemmu
Thanks. Decided to move small images to another server, that seems to
make it much less likely that Chrome would try to keep the connection
open.

-- 
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-appeng...@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] PCI DSS for AppEngine

2010-11-01 Thread Koen Bok
Did anyone get their AppEngine app PCI DSS compliant? Is there a
company that can help out with this?

Koen

-- 
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-appeng...@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] access localhost from remote computer

2010-11-01 Thread Thien
Hi, I'm running an app locally on my computer, so I can access it by
typing localhost:8080. How can I access that localhost from a different
computer?
If I use xampp, I can just edit the file httpd-xampp.conf to change the
allowance to all IP, then type this to the browser: /xampp/
Do you know how to do the same thing if I host the app on my computer
using AppEngine ?


Thanks!

-- 
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-appeng...@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.



Re: [google-appengine] access localhost from remote computer

2010-11-01 Thread Rafael Sierra
dev_appserver --address=your.network.ip yourapp

something like: dev_appserver --address=192.168.0.2 app

dev_appserver --help for more information

On Mon, Nov 1, 2010 at 10:54 AM, Thien  wrote:
> Hi, I'm running an app locally on my computer, so I can access it by typing
> localhost:8080. How can I access that localhost from a different computer?
> If I use xampp, I can just edit the file httpd-xampp.conf to change the
> allowance to all IP, then type this to the browser:  DNS>/xampp/
> Do you know how to do the same thing if I host the app on my computer using
> AppEngine ?
> Thanks!
>
> --
> 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-appeng...@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.
>



-- 
Rafael Sierra
http://blog.rafaelsdm.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-appeng...@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.



Re: [google-appengine] how to upload a csv file, parse it, and save in the data model

2010-11-01 Thread djidjadji
You forgot the enctype attribute of the form tag



2010/10/31 He Jibo :
> Hi, Can someone teach me how to parse a file uploaded to GAE?
>
> I am writing a feature that users can upload a .csv file, and save
> data into the data model. I have already implemented the uploading,
> see the link below:
> http://gae-hejibo.appspot.com/TestUpload
> But I do not know how to parse it, and save in my data model. Below is
> my html and processing code. I can upload a csv file, but the data in
> the csv is not saved into the data model. Can someone teach me what's
> wrong with my code, and how should I do? Thanks!
>
> --html file code
> 
>      
>          CSV File(Comma Separated Value) File*: 
>           name="uploadfilename"/>
>      
> 
>
>
> --processing code
> class TestUpload(webapp.RequestHandler):
>    '''add item using .csv file'''
>    def get(self):
>        path =
> os.path.join(os.path.dirname(__file__),'template','TestUpload.html')
>        self.response.out.write(template.render(path, {}))
>    def post(self):
>        fileReader = open(self.request.get('uploadfilename'))
>        csv_file=self.request.get('uploadfilename')
>        fileReader = csv.reader(csv_file.split("\n"))
>
>
>        for row in fileReader:
>            cell = row.split('\t')
>
>            fourchoice = FourChoices()
>            fourchoice.description = cell[0]
>            fourchoice.choiceA = cell[1]
>            fourchoice.choiceB = cell[2]
>            fourchoice.choiceC = cell[3]
>            fourchoice.choiceD = cell[4]
>            fourchoice.a = cell[5]
>            fourchoice.b = cell[6]
>            fourchoice.c = cell[7]
>            fourchoice.answer = cell[8]
>            fourchoice.put()
>        path =
> os.path.join(os.path.dirname(__file__),'template','debug.html')
>        self.response.out.write(template.render(path,
> {'description':'fileupload'}))
>
> --
> 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-appeng...@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.
>
>

-- 
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-appeng...@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.



Re: [google-appengine] access localhost from remote computer

2010-11-01 Thread Thien
Great, Thank you!

-- 
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-appeng...@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.



Re: [google-appengine] Newbie datastore question

2010-11-01 Thread Geoff Parkhurst
Hi Robert

It's the

if pet.Owner == users.get_current_user()

line which doesn't work - the .Owner is a reference property which
doesn't match the "get_current_user()"

I can't figure out how to get the User at the same time (an inner join I guess)

I'd be most grateful for any pointers...

Best,
Geoff

On 1 November 2010 01:33, Robert Kluin  wrote:
> I do not necessarily see anything wrong with checking the user is the
> actual owner after fetching the pet.  Particularly since you seem to
> require a user be logged in to fetch a pet.  You could add some type
> of logging to record events where a user tries to select a pet they do
> not own.  If a user makes too many such requests cut off their access.
>
> Another option, if a pet's owner can _not_ change, is to make user
> pet's parent.  You could ensure users can only view pets they own by
> building the key (which contains user and the id).  If there are
> relatively few pets per owner this may be an OK option.
>
> You could also do a query instead of a get.  The query adds some
> overhead for successful retrievals, but it lets you filter bad
> requests before fetching the entity.
>
> It really depends on the specifics of the actual usecase, how many
> pets owners can have, if they can be transferred, and if you have many
> users that are likely to be malicious, etc
>
>
>
> Robert
>
>
>
>
>
> On Sun, Oct 31, 2010 at 18:57, Geoff Parkhurst
>  wrote:
>> Hi all... I've added the following to my model:
>>
>> class User(db.Model):
>>   GoogleAccount = db.UserProperty()
>>   LastLogin=db.DateTimeProperty(auto_now=True)
>>
>> class Pet(db.Model):
>>    Owner = db.ReferenceProperty(User, collection_name='pets')
>>    PetName = db.StringProperty()
>>
>> My URLs are trying to look something like this:
>>
>> /pets -> list view of all my pets
>> /pets/([0-9]+) -> single pet view
>>
>> I've got the list working, but the single pet view is causing me
>> problems. The digits at the end of the url are the id of the pet, and
>> I need to make sure when viewing the pet in question, it's the right
>> user trying to access it.
>>
>> If I just do: pet=models.Pet.get_by_id(int(PetId)), anyone could hack
>> the URL and see the details of any pet.
>>
>> I'm then trying to do something like this: if pet.Owner ==
>> users.get_current_user() but am not getting anywhere.
>>
>> Is there a way to get the current_user into the models.Pet.get_by_id()
>> query as a parameter? Have I gone down the wrong path trying to use
>> the id in the URL (should I have used the key? - makes for an uglier
>> looking URL!)
>>
>> Many thanks again,
>> Geoff
>>
>>
>>
>> On 5 October 2010 23:15, Geoff Parkhurst  wrote:
>>> On 5 October 2010 22:30, Robert Kluin  wrote:
 Are you saying that your query works, but it is returning a list
 instead of a single instance?

 If maybe this is what you want?

    user = User.all().filter('GoogleAccount', 
 users.get_current_user()).get()
    if not user:
        # make a new user or something
        pass
>>>
>>> Many thanks Robert - works a treat.
>>> Regards,
>>> Geoff
>>>
>>
>> --
>> 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-appeng...@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.
>>
>>
>
> --
> 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-appeng...@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.
>
>

-- 
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-appeng...@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.



Re: [google-appengine] access localhost from remote computer

2010-11-01 Thread Robert Kluin
Using --address=0.0.0.0 allows connections on any interface.



Robert




On Mon, Nov 1, 2010 at 09:16, Rafael Sierra  wrote:
> dev_appserver --address=your.network.ip yourapp
>
> something like: dev_appserver --address=192.168.0.2 app
>
> dev_appserver --help for more information
>
> On Mon, Nov 1, 2010 at 10:54 AM, Thien  wrote:
>> Hi, I'm running an app locally on my computer, so I can access it by typing
>> localhost:8080. How can I access that localhost from a different computer?
>> If I use xampp, I can just edit the file httpd-xampp.conf to change the
>> allowance to all IP, then type this to the browser: > DNS>/xampp/
>> Do you know how to do the same thing if I host the app on my computer using
>> AppEngine ?
>> Thanks!
>>
>> --
>> 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-appeng...@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.
>>
>
>
>
> --
> Rafael Sierra
> http://blog.rafaelsdm.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-appeng...@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.
>
>

-- 
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-appeng...@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] Running app on localhost and access it remotely

2010-11-01 Thread Thien
I have an app running locally on a computer and I will use that
computer to host my app, instead of using the appspot domain. However,
when I try to access the app remotely from another computer, I got this
error message:


__init__.py:391] [Errno url error] unknown url type: 'https'



I checked and saw the ssl is supported:



>>> import httplib
>>> hasattr(httplib, 'HTTPS')
True
>>> import socket
>>> hasattr(socket, 'ssl')
True


Do you know what's wrong with it?

-- 
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-appeng...@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.



Re: [google-appengine] access localhost from remote computer

2010-11-01 Thread Thien
Thanks, I got that part.
Now when I try to access it remotely, I got this error message:


__init__.py:391] [Errno url error] unknown url type: 'https'



I checked and saw the ssl is supported:



>>> import httplib
>>> hasattr(httplib, 'HTTPS')
True
>>> import socket
>>> hasattr(socket, 'ssl')
True


Do you know what's wrong with it?

-- 
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-appeng...@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.



Re: [google-appengine] Newbie datastore question

2010-11-01 Thread Robert Kluin
Hi Geoff,
   Denormalize.  That would be the easiest, and likely best
performing, solution.  Alternatively you could fetch the User instance
before your test.


Robert








On Mon, Nov 1, 2010 at 11:10, Geoff Parkhurst  wrote:
> Hi Robert
>
> It's the
>
> if pet.Owner == users.get_current_user()
>
> line which doesn't work - the .Owner is a reference property which
> doesn't match the "get_current_user()"
>
> I can't figure out how to get the User at the same time (an inner join I 
> guess)
>
> I'd be most grateful for any pointers...
>
> Best,
> Geoff
>
> On 1 November 2010 01:33, Robert Kluin  wrote:
>> I do not necessarily see anything wrong with checking the user is the
>> actual owner after fetching the pet.  Particularly since you seem to
>> require a user be logged in to fetch a pet.  You could add some type
>> of logging to record events where a user tries to select a pet they do
>> not own.  If a user makes too many such requests cut off their access.
>>
>> Another option, if a pet's owner can _not_ change, is to make user
>> pet's parent.  You could ensure users can only view pets they own by
>> building the key (which contains user and the id).  If there are
>> relatively few pets per owner this may be an OK option.
>>
>> You could also do a query instead of a get.  The query adds some
>> overhead for successful retrievals, but it lets you filter bad
>> requests before fetching the entity.
>>
>> It really depends on the specifics of the actual usecase, how many
>> pets owners can have, if they can be transferred, and if you have many
>> users that are likely to be malicious, etc
>>
>>
>>
>> Robert
>>
>>
>>
>>
>>
>> On Sun, Oct 31, 2010 at 18:57, Geoff Parkhurst
>>  wrote:
>>> Hi all... I've added the following to my model:
>>>
>>> class User(db.Model):
>>>   GoogleAccount = db.UserProperty()
>>>   LastLogin=db.DateTimeProperty(auto_now=True)
>>>
>>> class Pet(db.Model):
>>>    Owner = db.ReferenceProperty(User, collection_name='pets')
>>>    PetName = db.StringProperty()
>>>
>>> My URLs are trying to look something like this:
>>>
>>> /pets -> list view of all my pets
>>> /pets/([0-9]+) -> single pet view
>>>
>>> I've got the list working, but the single pet view is causing me
>>> problems. The digits at the end of the url are the id of the pet, and
>>> I need to make sure when viewing the pet in question, it's the right
>>> user trying to access it.
>>>
>>> If I just do: pet=models.Pet.get_by_id(int(PetId)), anyone could hack
>>> the URL and see the details of any pet.
>>>
>>> I'm then trying to do something like this: if pet.Owner ==
>>> users.get_current_user() but am not getting anywhere.
>>>
>>> Is there a way to get the current_user into the models.Pet.get_by_id()
>>> query as a parameter? Have I gone down the wrong path trying to use
>>> the id in the URL (should I have used the key? - makes for an uglier
>>> looking URL!)
>>>
>>> Many thanks again,
>>> Geoff
>>>
>>>
>>>
>>> On 5 October 2010 23:15, Geoff Parkhurst  wrote:
 On 5 October 2010 22:30, Robert Kluin  wrote:
> Are you saying that your query works, but it is returning a list
> instead of a single instance?
>
> If maybe this is what you want?
>
>    user = User.all().filter('GoogleAccount', 
> users.get_current_user()).get()
>    if not user:
>        # make a new user or something
>        pass

 Many thanks Robert - works a treat.
 Regards,
 Geoff

>>>
>>> --
>>> 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-appeng...@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.
>>>
>>>
>>
>> --
>> 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-appeng...@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.
>>
>>
>
> --
> 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-appeng...@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.
>
>

-- 
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-appeng...@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/goo

Re: [google-appengine] access localhost from remote computer

2010-11-01 Thread Robert Kluin
Hi Thien,
  Yes.  The SDK does not support SSL.
 
http://code.google.com/appengine/docs/python/config/appconfig.html#Secure_URLs



Robert






On Mon, Nov 1, 2010 at 11:13, Thien  wrote:
> Thanks, I got that part.
> Now when I try to access it remotely, I got this error message:
> __init__.py:391] [Errno url error] unknown url type: 'https'
>
> I checked and saw the ssl is supported:
 import httplib
 hasattr(httplib, 'HTTPS')
> True
 import socket
 hasattr(socket, 'ssl')
> True
> Do you know what's wrong with it?
>
> --
> 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-appeng...@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.
>

-- 
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-appeng...@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.



Re: [google-appengine] access localhost from remote computer

2010-11-01 Thread Thien
Oh no .. Do you know any way to work around that ?


Thanks!

-- 
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-appeng...@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] Newbie Questions on App Engine

2010-11-01 Thread gh0st
I raised some questions on App Engine, but for some reason they never
appeared.  So here goes again.

1. Who is App Engine aimed at?

2. Is App Engine meant to be a replacement for a web hosting company?

a. Is it wrong to think of App Engine as a web host?

3. What problem is App Engine solving that say Amazon web servers not
solving?

4. I've heard of Facebook apps being hosted on App Engine -- can
anyone give further information on which apps use it, and do they use
it in different ways?

5. Is App Engine only for Facebook or big scale apps, or can I use it
for mobiles, etc?

Thanks.

-- 
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-appeng...@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: New issue tracker template for production issues

2010-11-01 Thread Jay Levan
I have no idea if this is where I'm supposed to post this issue but
this is where I was lead.
I was trying to post a question in Google Labs about a calendar feature
and the app returned
a Server Error and took me to this page:
http://www.google.com/support/forum/p/Calendar/ask?hl=en

So I could not enter my suggestion.

Jay

-- 
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-appeng...@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.



Re: [google-appengine] Daemon service

2010-11-01 Thread sombra XX
ok, thanks, i try now, i hope all good

2010/10/31 Robert Kluin 

> http://code.google.com/appengine/docs/python/taskqueue/overview.html
>
> First, pop a task to start your crawl.  From that task fire another
> task to continue it.  Keep doing that until you get what you need or
> run out of resources.  You'll probably want to use either named or
> transactional tasks to prevent a fork bomb.
>
> Use cron, or a user request to initiate your 'spider.'  Or to ensure
> the process keeps running.
>
>
> Robert
>
>
>
>
> On Sun, Oct 31, 2010 at 22:34, sombra XX  wrote:
> > task-queue? how?
> >
> > 2010/10/31 Robert Kluin 
> >>
> >> Then use the other part of djidjadji's suggestion: task-queue.
> >>
> >>
> >> Robert
> >>
> >>
> >>
> >>
> >> On Sun, Oct 31, 2010 at 12:17, sombra XX  wrote:
> >> > djidjadji: Yes, I thought about the cron, but the intervals are every
> 1
> >> > minute, and I need to be every 5 seconds
> >> >
> >> > 2010/10/31 djidjadji 
> >> >>
> >> >> Every request should finish within 30 seconds.
> >> >> You can setup a cron job and/or task queue chain to simulate a
> >> >> continuous processing.
> >> >> You have to keep state information in the datastore or part of the
> >> >> task arguments.
> >> >>
> >> >> 2010/10/31 SombraX :
> >> >> > Hello everyone. I try to build a program that works non-stop, is an
> >> >> > infinite while that collects information from different Web sites
> and
> >> >> > record the information in the database. The problem is that at
> >> >> > startup
> >> >> > is interpreted as a request and get the timeout error.
> >> >> > Is it possible to build a service daemon with python and boot from
> >> >> > the
> >> >> > console app enginne?
> >> >> >
> >> >> > (my english is terrible , sorrycago en die).
> >> >> >
> >> >> > --
> >> >> > 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-appeng...@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.
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> 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-appeng...@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.
> >> >>
> >> >
> >> > --
> >> > 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-appeng...@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.
> >> >
> >>
> >> --
> >> 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-appeng...@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.
> >>
> >
> > --
> > 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-appeng...@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.
> >
>
> --
> 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-appeng...@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.
>
>

-- 
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-appeng...@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.



Re: [google-appengine] Newbie Questions on App Engine

2010-11-01 Thread Joshua Smith
Someone asked all these questions not long ago. Check the group page for the 
answers.

On Nov 1, 2010, at 12:15 PM, gh0st wrote:

> I raised some questions on App Engine, but for some reason they never
> appeared.  So here goes again.
> 
> 1. Who is App Engine aimed at?
> 
> 2. Is App Engine meant to be a replacement for a web hosting company?
> 
> a. Is it wrong to think of App Engine as a web host?
> 
> 3. What problem is App Engine solving that say Amazon web servers not
> solving?
> 
> 4. I've heard of Facebook apps being hosted on App Engine -- can
> anyone give further information on which apps use it, and do they use
> it in different ways?
> 
> 5. Is App Engine only for Facebook or big scale apps, or can I use it
> for mobiles, etc?
> 
> Thanks.
> 
> -- 
> 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-appeng...@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.
> 

-- 
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-appeng...@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] Authentication in dev app server

2010-11-01 Thread Weston Weems
I've been working on implementing an android app that connects to the
appengine environment. While I know that I'll be unlikely to be able ot
get the c2dm stuff serving from appserver, I'd really like to be able
to debug other things against the dev app server.


My problem is that it appears as if they dev appserver doesnt serve up
ACSID or whtaever cookies on successful authentication.


So has anyone got around this? is there an easy way to swap out the
auth stuff here so I can interact with dev app server for other things
with minimal changes to code when switching from testing in either
environment.


I'd greatly appreciate advice that would help me get back to being able
to debug against my local instance!


Thanks =)

-- 
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-appeng...@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: Deleting my account

2010-11-01 Thread Kris
Orcan I use my domains from my Google Apps account while in my
Google GMail account? If there is a way to do that then my account can
be left alone.

-- 
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-appeng...@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] Deleting my account

2010-11-01 Thread Kris
I accidently signed up for a Google App Engine account using my GMail
when I should have used my primary email address from my Google Apps
account.


Is there anyway to delete my Google App Engine account associated with
my GMail?


Also, should I use the admin account from my Google Apps account so I
can use my domain names or does it matter?

-- 
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-appeng...@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: Can i run the tasks via code?

2010-11-01 Thread Royce Fullerton
I had this same problem and created a work-around to start MapReduce
jobs from Cron.  Details are here:
http://roycefullerton.com/post/1430828011/cron-and-map-reduce-jobs-on-google-app-engine

This is only for Java, I hope it helps!

On Oct 4, 9:13 pm, Matthew Blain  wrote:
> control.start_map is how you do this in python. i'm not sure of the
> java equivalent.
>
> On Oct 4, 10:49 am, Eli Jones  wrote:
>
>
>
>
>
>
>
> > Nevermind.. is see that you meanmapreducejobs.
>
> > I guess you could read the code they have for the page that lets you
> > manually start the jobs.. then.. if you're lucky and clicking "run" really
> > just fires off a call to a handler.. you can find out the parameters.. and
> > configure acronjob to do the same thing.
>
> > On Mon, Oct 4, 2010 at 1:40 PM, Eli Jones  wrote:
> > > You could usecronjobs:
>
> > >http://code.google.com/appengine/docs/python/config/cron.html
> > > 
>
> > > On Mon, Oct 4, 2010 at 6:40 AM, BarrenTeam  wrote:
>
> > >> We actually run the jobs manually.
> > >> Is there anyway to launch them automatically? For exemple  through
> > >> servlet?
>
> > >> --
> > >> 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-appeng...@googlegroups.com.
> > >> To unsubscribe from this group, send email to
> > >> google-appengine+unsubscr...@googlegroups.com > >>  e...@googlegroups.com>
> > >> .
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/google-appengine?hl=en.

-- 
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-appeng...@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] import / loading module error

2010-11-01 Thread hermanvm

Got errors while trying to include modules ???

From the google help files/configuration

quote: "...
If the include directive specifies a directory, then App Engine looks in 
that directory

for a file called include.yaml. If the include directive is a file,
then that specific file is included. ..."
http://code.google.com/intl/nl-NL/appengine/docs/python/config/appconfig.html#Includes

So I try to import Water.py in  main.py, told app.yaml file where the 
module of Water.py is.


In main.py the following code:

...
...
import cgi

from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app

import Water

...
...


app.yaml
===

application: ...name of the application...
version: ..version of the application...
runtime: python
api_version: 1

includes:
- Water.py

handlers:
- url: /.*
  script: main.py


Got the following error code:
=

/1/
In the desktop development application of Google App Engine Launcher:

No selected projects are running so we have nothing to Browse.

/2/
In the log file:

2010-10-29 14:04:49 Running command: "['C:\\Python25\\pythonw.exe', 
'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', 
'--admin_console_server=', '--port=8081', 'E:\\app_app\\xheloo']"
ERROR2010-10-29 12:04:50,970 dev_appserver_main.py:407] Fatal error 
when loading application configuration:

while scanning for the next token
found character '\t' that cannot start any token
  in "e:\app_app\xheloo\water.py", line 2, column 1
2010-10-29 14:04:51 (Process exited with code 1)


If you can help, thanks,

Herman

--
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-appeng...@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] Printing the elements of a list object

2010-11-01 Thread Zeynel
I fetch a list like this

mylist = rep.all().fetch(1)

but I cannot display it; the template renders it as an object. I use
Mako templates. Someone at stackoverflow suggested a solution with
Django templates like this:

http://stackoverflow.com/questions/4061673/printing-lists-with-mako-template-django-join-tag

But I would like to understand the right method to print a list
object. More information below. Thanks for your help.

class Rep(db.Model):
author = db.UserProperty()
replist = db.ListProperty(str)
unique = db.ListProperty(str)
date = db.DateTimeProperty(auto_now_add=True)

 L = []
rep = Rep()
s = self.request.get('sentence')
L.append(s)

rep.replist = L
rep.put()

mylist = rep.all().fetch(1)

I get an object like this: [<__main__.Rep object at 0x04593C30>]

-- 
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-appeng...@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.



Re: [google-appengine] Re: "Empty email address for bcc." error message

2010-11-01 Thread dipti seni
On Thu, Oct 28, 2010 at 11:18 PM, sodso  wrote:

> i think you might be sending the bcc parameter with a blanks value
> for eg - send_mail(...,bcc=Blanks_value,...)
>
> hence the above error
>
> cheers !
>
>
> On Oct 28, 4:07 am, Kevin Burke  wrote:
> > I'm writing an app that processes incoming email, so to test it out
> > I've been forwarding my incoming email to it. I got the following
> > error message the other day:
> >
> > Empty email address for bcc.
> > Traceback (most recent call last):
> >   File "/base/python_runtime/python_lib/versions/1/google/appengine/
> > ext/webapp/__init__.py", line 513, in __call__
> > handler.post(*groups)
> >   File "/base/python_runtime/python_lib/versions/1/google/appengine/
> > ext/webapp/mail_handlers.py", line 58, in post
> > self.receive(mail.InboundEmailMessage(self.request.body))
> >   File "/base/python_runtime/python_lib/versions/1/google/appengine/
> > api/mail.py", line 557, in __init__
> > self.update_from_mime_message(mime_message)
> >   File "/base/python_runtime/python_lib/versions/1/google/appengine/
> > api/mail.py", line 1093, in update_from_mime_message
> > super(InboundEmailMessage,
> > self).update_from_mime_message(mime_message)
> >   File "/base/python_runtime/python_lib/versions/1/google/appengine/
> > api/mail.py", line 1014, in update_from_mime_message
> > self.bcc = bcc[0]
> >   File "/base/python_runtime/python_lib/versions/1/google/appengine/
> > api/mail.py", line 979, in __setattr__
> > check_email_valid(value, attr)
> >   File "/base/python_runtime/python_lib/versions/1/google/appengine/
> > api/mail.py", line 167, in check_email_valid
> > raise InvalidEmailError(reason)
> > InvalidEmailError: Empty email address for bcc.
> >
> > What can I do about this error? My program didn't even get a chance to
> > execute and the code threw an error. How does GAE handle BCC email
> > addresses? I thought those were supposed to be hidden. Thanks for your
> > help,
> > Kevin
>
> --
> 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-appeng...@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.
>
>

-- 
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-appeng...@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: 1.3.8 and merge-join index requirements

2010-11-01 Thread Yogesh Agarwal
Dear Ikai,

Any idea on when can we expect a release that will have next gen
queries implemented?

 We are writing lots of code for ensuring all indexes according to
current requirement of query resolver in google app engine. Google app
engine release supporting next gen queries will make all that code
unnecessary. Any information on tentative date of release with next-
gen query feature will be highly appreciated.

Regards,
Yogesh
Daffodil Software
applanes.appspot.com

On Oct 16, 2:19 am, "Ikai Lan (Google)" 
wrote:
> 1.3.8 didn't change any of these requirements. They're still pending.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> Blogger:http://googleappengine.blogspot.com
> Reddit:http://www.reddit.com/r/appengine
> Twitter:http://twitter.com/app_engine
>
>
>
>
>
>
>
> On Thu, Oct 14, 2010 at 8:30 PM, Jamie H  wrote:
> > After hearing that 1.3.8 removed some index requirements, along with
> > watching the exciting google IO video on next gen queries, I have been
> > preparing for this release... However, the change to index
> > requirements does not seem to be live yet... am I correct ?
>
> > --
> > 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-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com > e...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.

-- 
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-appeng...@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] Missing entities from datastore

2010-11-01 Thread Alexandru Farcaş
A colleague of mine posted a problem regarding the disappearance of
two "tables" from the datastore (about 1400 entities)
It is a very concerning issue and nobody gave an answer. We need to
know if the AppEngine platform is solid enough to develop an app at a
large scale.
The post is located here:
http://groups.google.com/group/google-appengine-java/browse_thread/thread/340135d474078313

-- 
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-appeng...@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] Is there a support for appengine?

2010-11-01 Thread Segun Sobulo
Is there email/phone support for appengine? My google account recently
got disabled (I'm posting with an alternate one) and I've had 0 luck
reaching anyone or getting my account re-instated. The only reply I
got asked me to keep filling out
https://www.google.com/support/accounts/bin/request.py?hl=en&contact_type=acc_reco&ara=2&ctx=acc_reco&rd=1
or search the google account support help pages (which simply points
me back to the same form).

I'm still in the early stages of devoloping my app but I'm wondering
what happens if I go live and lose my account/admin privileges? Also
am I even allowed to sign up for another appengine account on another
gmail account? I don't think my original account was disabled due to
any appengine related activity, I simply changed my password last
night and it's been hell on earth since I got up this morning.

Without anybody to even email when something bad happens, deploying
your app on google's scalable platform isn't such a great idea after
all. 3 months into coding my app, do I start over? I recently ported
from jdo to objectify, having to rewire my whole app from an oo db
model to sql relational one isn't going to be any fun.

Sigh ... life sucks

-- 
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-appeng...@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] Can't process hotmail email

2010-11-01 Thread mokidev
java.io.IOException: Truncated quoted printable data

I get this exception whenever i call getContent() on a MultiPart.

Anyone know a workaround??? Thanks for your time.

-- 
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-appeng...@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] Updating to new version

2010-11-01 Thread Zeynel
Any time I start the Launcher it tells me that there is a new version
1.3.8. So I downloaded the new version but I do not know how to
upgrade it. What do I need to do? Thanks.

-- 
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-appeng...@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: How to mock or instantiate App Engine Entity when unit testing

2010-11-01 Thread mayumi
I'm actually not testing the Entity itself or Appengine
DatastoreService.
Basically, I am converting the Entity to object I need than performing
some
operations to all the entity that is relevant.
What I am testing is the idempotence and making sure that object which
is converted
will result in same outcome event executed twice, etc so the behavior
of what is
happening inside the map().

Testing framework we're using requires Guice to inject or create mocks
as necessary.
Maybe this could be the problem?

Thanks for the reply.


On Oct 28, 1:52 pm, "Ikai Lan (Google)" 
wrote:
> Do you need to mock Entity? Can you use a real instance of an Entity and
> check for state changes? You can mock out DatastoreService, so it might make
> more sense to write your expects() in those mocks instead. Entity classes
> only really have getProperty() and setProperty(), and in my opinion, it's
> not worth writing tests to see if these get called. What are you trying to
> do?
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> Blogger:http://googleappengine.blogspot.com
> Reddit:http://www.reddit.com/r/appengine
> Twitter:http://twitter.com/app_engine
>
> On Thu, Oct 28, 2010 at 9:31 AM, Mayumi Liyanage <
>
> mayumi.liyan...@coldwin.com> wrote:
> > In the project I'm working on we are using GWT + GAE. We are unit
> > testing using automocking container Jukito (http://code.google.com/p/
> > jukito/) which is  build on top of Mokito (http://code.google.com/p/
> > mockito/) + JUnit.
> > The problem is unit testing the Mapper API. Since Mapper API's map
> > method takes an Entity as a argument so testing framework will have to
> > have access to this Entity class. However we could not mock the Entity
> > class since it is a final class.  Also, we could not instantiate the
> > Entity class outside of GAE environment. '
> > Does anyone have workaround for unit testing using Entity?
>
> > Thanks.
>
> > --
> > 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-appeng...@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.
>
>

-- 
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-appeng...@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] App Engine - Adding Domains

2010-11-01 Thread Rodrigo Teixo
Hello Everybody!


I want to host my application in my own domain but why must I use
google apps??

In the add domain button there is this note:

Note: You must sign up for Google Apps to register this domain or
prove that you already own it.


So, can I use the second option?? How can I prove that I already have
a domain register without paying for google apps?


Thanks for helping,

[],
Rodrigo.

-- 
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-appeng...@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] Context-aware web services.

2010-11-01 Thread Kervin
Could you give me ideas on how I could proceed in developing a context-
aware web service.  This web service would be consume by a mobile
device.  My main point is how to transmit and process the point of
interest that is geo-locaiton, languages, social context.  Moreover I
may have to aggregate this context and response as required.  Any
standards which exists?

-- 
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-appeng...@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] Detect a new deployment - Java

2010-11-01 Thread John Tadros
Dear All,

I am using GAE to build an application Upon deploying a new version, I
want to run some code that clears some tables in the database.
So is there any way I can detect when a new version is deployed ?

Best Regards
JOhn

-- 
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-appeng...@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] DataStore Admin error

2010-11-01 Thread Giil
Here. I am nearly up with Google app engine. Feels great !
Just a last step : when enabling the datastore administration through
app.yaml
I got the following error :

: Could not load
template library from django.template.defaultfilters, cannot import
name ugettext_lazy
Traceback (most recent call last):
  File "/base/python_runtime/python_lib/versions/1/google/appengine/
ext/datastore_admin/main.py", line 30, in 
from google.appengine.ext.datastore_admin import delete_handler
  File "/base/python_runtime/python_lib/versions/1/google/appengine/
ext/datastore_admin/delete_handler.py", line 28, in 
from google.appengine.ext.datastore_admin import utils
  File "/base/python_runtime/python_lib/versions/1/google/appengine/
ext/datastore_admin/utils.py", line 53, in 
from google.appengine.ext.webapp import template
  File "/base/python_runtime/python_lib/versions/1/google/appengine/
ext/webapp/template.py", line 65, in 
import django.template
  File "/base/python_runtime/python_lib/versions/third_party/
django-0.96/django/template/__init__.py", line 918, in 
add_to_builtins('django.template.defaultfilters')
  File "/base/python_runtime/python_lib/versions/third_party/
django-0.96/django/template/__init__.py", line 915, in add_to_builtins
builtins.append(get_library(module_name))
  File "/base/python_runtime/python_lib/versions/third_party/
django-0.96/django/template/__init__.py", line 906, in get_library
raise InvalidTemplateLibrary, "Could not load template library
from %s, %s" % (module_name, e)

Would someone have a little clue to give me ?
All the best
Gilles

-- 
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-appeng...@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] Newbie-static files links

2010-11-01 Thread Maria-Carey
I have three static (html) files.

Local links:
http://localhost:8080/index.html
http://localhost:8080/1.html
http://localhost:8080/2.html

Locally links of other static files, in these,  are working fine. But
when I upload it on GAE, these links don't work.

Remote link:
http://www.codeknock.com/


//
My app.yaml is as follows:

application: codeknock
version: 1
runtime: python
api_version: 1

handlers:
- url: /stylesheets
  static_dir: stylesheets

- url: /(.*\.html)
  static_files: \1
  upload: /(.*\.html)


- url: /.*
  script: helloworld.py
/***/

Helloworld.py file is as follows:

import cgi
import os

from google.appengine.ext.webapp import template
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.api import users

class MainPage(webapp.RequestHandler):
def get(self):
template_values = {
'greetings': 'Greetings Variables',
'url': 'Url Variables',
'url_linktext': 'Url_linktext Variables',
   }
path = os.path.join(os.path.dirname(__file__), 'index.html')
self.response.out.write(template.render(path,
template_values))

def main():
application = webapp.WSGIApplication([('/', MainPage)],
debug=True)
run_wsgi_app(application)

if __name__ == '__main__':
main()



Can some one guide me, where and what Iam doing wrong. And how to
rectify it.

Thanks in advance

-- 
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-appeng...@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] Can't get past SMS verification

2010-11-01 Thread Munchie
I spent the majority of my vacation learning Google App Engine
(Python), but when I went to create an GAE account last night I
couldn't pass SMS verification -- apparently, my phone number is
already in use?  I'm guessing this happens with cell phones pretty
frequently.

Are there any App Engine employees watching this group that can free
up my number or get me past verification?  I already submitted the
Google Voice Transfer form, though it wasn't really applicable.

Thanks!

-- 
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-appeng...@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] HTTP ERROR 403

2010-11-01 Thread jargon
I was following the jsp tutorial for google app engine and the
following error occurred .

HTTP ERROR 403

Problem accessing /. Reason:

FORBIDDEN


I tried everything possible , my web.xml is exactly the same as in the
tutorial . Here is my web.xml . I'm using eclipse and can't get around
with this problem . Thanks in advance


   
Guestbook
guestbook.GuestbookServlet


Guestbook
/guestbook


guestbook.jsp



-- 
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-appeng...@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.



Re: [google-appengine] Newbie Questions on App Engine

2010-11-01 Thread Dmitriy Kazimirov
>From my limited experience:

2010/11/1 gh0st :
> I raised some questions on App Engine, but for some reason they never
> appeared.  So here goes again.
>
> 1. Who is App Engine aimed at?
>
Up to you to decide.
(sometimes free) hosting with automatic failover and scaling

> 2. Is App Engine meant to be a replacement for a web hosting company?
>
I think no. But for some shared hosting providers,yes. if App Engine
limitations are ok for you

> a. Is it wrong to think of App Engine as a web host?

>
> 3. What problem is App Engine solving that say Amazon web servers not
> solving?
>
You don't need to administer cluster system at all. It is done
professionally for you
Price is much more granular

> 4. I've heard of Facebook apps being hosted on App Engine -- can
> anyone give further information on which apps use it, and do they use
> it in different ways?
>
> 5. Is App Engine only for Facebook or big scale apps, or can I use it
> for mobiles, etc?
for anything you want.
-- 
--
Best Regards,
Dmitriy Kazimirov,


READ CAREFULLY.
By accepting or reading this e-mail you agree to release me from all
obligations and waivers arising from any and all NON-NEGOTIATED
agreements, licenses, terms-of-service, shrinkwrap, clickwrap,
browserwrap, confidentiality, non-disclosure, non-compete and
acceptable use policies («BOGUS AGREEMENTS») that I have entered into
with your employer, its partners, licensors, agents and assigns, in
perpetuity, without prejudice to my ongoing rights and privileges. You
further represent that you have the authority to release me from any
BOGUS AGREEMENTS on behalf of your employer.

This shall include (but not be limited to) treatment of any e-mail
communications I receive, which become my sole and inalienable
property, so that disposition thereof is governed exclusively by
legislation of the Russian Federation and by my own code of ethics,
irrespective of anything which may have made you believe otherwise,
including my perceived acceptance of a BOGUS AGREEMENT you may have
enclosed in your correspondence

-- 
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-appeng...@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: Issue with allocate_ids

2010-11-01 Thread Max Ross
You are not required to actually use the ids returned by allocate_ids
- once the function returns, you are guaranteed that the datastore
will not assign those ids.

On Oct 28, 11:18 pm, 风笑雪  wrote:
> I found 
> this:http://code.google.com/intl/en/appengine/docs/revision_history.html
>
> 2010-04-21
> The datastore now supports pre-allocating system IDs in
> application-defined ranges. This is useful for preserving system IDs
> when importing entities exported from another app.
>
> So I think whenever you put an entity into datastore without specify
> an id, datastore will generate a one not exist before. But when you
> import a large number of entities, maybe you want to make sure at the
> same time, datastore won't generate an entity id the same as you
> imported, otherwise you may overwrite it by yourself.
>
> --
> keakon
>
>
>
>
>
>
>
> On Fri, Oct 29, 2010 at 5:41 AM, vivpuri  wrote:
> > I am having an issue with allocate_ids(model_key, count) -
> >http://code.google.com/appengine/docs/python/datastore/functions.html
> > - on localhost. My understanding of this function is that IDs
> > allocated via this function call for a kind, will not be generated
> > again. Is there a requirement to use ids generated by this function
> > call in Keys to ensure that they will not be issued again?
>
> > --
> > 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-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-appengine+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-appengine?hl=en.

-- 
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-appeng...@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.



Re: [google-appengine] Missing entities from datastore

2010-11-01 Thread Eli Jones
Sounds like a bunch of different things happening at once.  Also, there is
no indication if an error is thrown when querying the Model for entities..
or if the query just returns 0 results.

Anyway, I don't believe a bunch of entities can be deleted on accident.
(And, they are definitely not deleted if you can still see the entities in
the default app version)

At best, if you deploy an app version that has different model names (e.g.
'DbContact' becomes 'DbContacts') or if your app versions use different
namespaces, then you would not be able to see the entities.

For example, if I have a Schema.py file with this model defined:

class myModel(db.Model):
myProperty = db.StringProperty()

and I deploy my app.. and I create 1 million myModel entities.. and then I
delete the myModel class definition from Schema.py and deploy a new version
of my app, my new app will not be able to see the myModel entities and will
throw an error if I try to query it.

If I add the myModel defintion back to Schema.py and redeploy that app
version, I'll be able to query the myModel entities again.

If you use different namespaces for deploys, then you are guaranteed not to
see the entities from other namespaces. (Since that's what namespaces do.)

On Sat, Oct 30, 2010 at 8:10 AM, Alexandru Farcaş <
alex.far...@expert-group.biz> wrote:

> A colleague of mine posted a problem regarding the disappearance of
> two "tables" from the datastore (about 1400 entities)
> It is a very concerning issue and nobody gave an answer. We need to
> know if the AppEngine platform is solid enough to develop an app at a
> large scale.
> The post is located here:
>
> http://groups.google.com/group/google-appengine-java/browse_thread/thread/340135d474078313
>
> --
> 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-appeng...@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.
>
>

-- 
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-appeng...@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] Reset memcache immediately after deployment?

2010-11-01 Thread pdknsk
I'd like to automatically reset memcache immediately when I've
uploaded a new version. Is this possible? I currently have a /reset
script which I run manually every time. It's a bit tedious and I'd
like to automate it, especially since there can be a delay of up to a
minute between a deployment success message and the updated version
actually being available. Thanks!

-- 
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-appeng...@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.



Fwd: [google-appengine] Re: datastore advice?

2010-11-01 Thread dipti seni
   Search your life partner










 Greetings for Diwali

*Offer 20% Discount*
  Corporate Office :  Ksrista.com, ks
online services pvt. ltd. baludyan road uttam nagar delhi

   Toll Free : 1800-470-8521  +91-9050118000
  www.ksrista.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-appeng...@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] API to change configuration

2010-11-01 Thread sjtirtha
Hi,

is there any API to change uploaded configuration?
I want to change the DoS.yaml using an API.

Regards,
Steve

-- 
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-appeng...@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: Reset memcache immediately after deployment?

2010-11-01 Thread Jason C
You could use the namespace attribute of memcache.add/set/etc.

In a global settings/config file, set the namespace to be your
released version number and then adjust all of your memcache calls to
use this namespace.

On a new release, the existing items will remain, but they will fall
out over time (and your application won't see them because it's on a
different namespace).

This doesn't play nice with the Multi-tenancy API, so if you need to
use that, you'd have to instead adjust your cache keys to be prefixed
with your released version id.

E.g., in Python:

settings.py

RELEASED_VERSION = 'V1' # your build/deployment script would update
this

--

some_other_file.py

import settings
from google.appengine.api import memcache

def foo():
  memcache.get('your-cache-key', namespace=settings.RELEASED_VERSIOIN)

# (or)

def bar():
  cache_key = 'your-cache-key'
  memcache.get('%s:%s' % (settings.RELEASED_VERSION, cache_key))



j

On Nov 1, 12:05 pm, pdknsk  wrote:
> I'd like to automatically reset memcache immediately when I've
> uploaded a new version. Is this possible? I currently have a /reset
> script which I run manually every time. It's a bit tedious and I'd
> like to automate it, especially since there can be a delay of up to a
> minute between a deployment success message and the updated version
> actually being available. Thanks!

-- 
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-appeng...@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: Context-aware web services.

2010-11-01 Thread nacho
What you can do is to create a restful api using Reslet (
http://blog.noelios.com/2009/04/11/restlet-in-the-cloud-with-google-app-engine/
)

And then you can consume those services from the mobile device.

But, on the other hand, about geo-location, languages, social context,
etc. i think that you must take this values from the device and send
it as parameters to your api.

Then, in the appengine you can do all the required logic and send back
the response to the client.


On 1 nov, 14:08, Kervin  wrote:
> Could you give me ideas on how I could proceed in developing a context-
> aware web service.  This web service would be consume by a mobile
> device.  My main point is how to transmit and process the point of
> interest that is geo-locaiton, languages, social context.  Moreover I
> may have to aggregate this context and response as required.  Any
> standards which exists?

-- 
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-appeng...@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.



Re: [google-appengine] Can't get past SMS verification

2010-11-01 Thread Robert Kluin
http://code.google.com/appengine/kb/sms.html#error







On Mon, Nov 1, 2010 at 12:17, Munchie  wrote:
> I spent the majority of my vacation learning Google App Engine
> (Python), but when I went to create an GAE account last night I
> couldn't pass SMS verification -- apparently, my phone number is
> already in use?  I'm guessing this happens with cell phones pretty
> frequently.
>
> Are there any App Engine employees watching this group that can free
> up my number or get me past verification?  I already submitted the
> Google Voice Transfer form, though it wasn't really applicable.
>
> Thanks!
>
> --
> 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-appeng...@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.
>
>

-- 
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-appeng...@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.



Re: [google-appengine] Re: Deleting my account

2010-11-01 Thread Robert Kluin
Yes, you can use apps created with your Google Account with a Google
Apps Domain.  You can also transfer the app to a Google Apps account
by inviting the Apps account to be a developer.

Or, go register for App Engine with the Google Apps account, then fill
out the SMS issues form to get verified.


Robert






On Mon, Nov 1, 2010 at 12:51, Kris  wrote:
> Orcan I use my domains from my Google Apps account while in my Google
> GMail account? If there is a way to do that then my account can be left
> alone.
>
> --
> 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-appeng...@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.
>

-- 
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-appeng...@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: Really basic questions about GAE

2010-11-01 Thread gh0st
Thanks for all your help, I appreciate it. Please forgive double post.

Thread closed.

-- 
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-appeng...@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: App Engine - Adding Domains

2010-11-01 Thread nickmilon
1) thats the way it works through google appls where you can register
your existing domain or buy a new one.
2) You can use the free Google apps Standard addition, you are not
forced to use the Premiere edition.


On Oct 31, 7:57 pm, Rodrigo Teixo  wrote:
> Hello Everybody!
>
> I want to host my application in my own domain but why must I use
> google apps??
>
> In the add domain button there is this note:
>
> Note: You must sign up for Google Apps to register this domain or
> prove that you already own it.
>
> So, can I use the second option?? How can I prove that I already have
> a domain register without paying for google apps?
>
> Thanks for helping,
>
> [],
> Rodrigo.

-- 
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-appeng...@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: New issue tracker template for production issues

2010-11-01 Thread nickmilon
Wrong group here -

On Nov 1, 6:21 pm, Jay Levan  wrote:
> I have no idea if this is where I'm supposed to post this issue but
> this is where I was lead.
> I was trying to post a question in Google Labs about a calendar feature
> and the app returned
> a Server Error and took me to this 
> page:http://www.google.com/support/forum/p/Calendar/ask?hl=en
>
> So I could not enter my suggestion.
>
> Jay

-- 
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-appeng...@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.



Re: [google-appengine] import / loading module error

2010-11-01 Thread Robert Kluin
That is not what `includes` does.  The phrasing in the documentation
is very misleading.

Basically, includes allows you to place a yaml file containing
'handler' mappings  (or the other listed items) somewhere else in your
application.  The goal seems to be to allow you to build more modular
applications and / or keep handler mappings with the handlers they map
to.



Robert






On Sat, Oct 30, 2010 at 08:38, hermanvm  wrote:
> Got errors while trying to include modules ???
>
> From the google help files/configuration
>
> quote: "...
> If the include directive specifies a directory, then App Engine looks in
> that directory
> for a file called include.yaml. If the include directive is a file,
> then that specific file is included. ..."
> http://code.google.com/intl/nl-NL/appengine/docs/python/config/appconfig.html#Includes
>
> So I try to import Water.py in  main.py, told app.yaml file where the module
> of Water.py is.
>
> In main.py the following code:
> 
> ...
> ...
> import cgi
>
> from google.appengine.api import users
> from google.appengine.ext import webapp
> from google.appengine.ext.webapp.util import run_wsgi_app
>
> import Water
>
> ...
> ...
>
>
> app.yaml
> ===
>
> application: ...name of the application...
> version: ..version of the application...
> runtime: python
> api_version: 1
>
> includes:
> - Water.py
>
> handlers:
> - url: /.*
>  script: main.py
>
>
> Got the following error code:
> =
>
> /1/
> In the desktop development application of Google App Engine Launcher:
>
> No selected projects are running so we have nothing to Browse.
>
> /2/
> In the log file:
>
> 2010-10-29 14:04:49 Running command: "['C:\\Python25\\pythonw.exe',
> 'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py',
> '--admin_console_server=', '--port=8081', 'E:\\app_app\\xheloo']"
> ERROR    2010-10-29 12:04:50,970 dev_appserver_main.py:407] Fatal error when
> loading application configuration:
> while scanning for the next token
> found character '\t' that cannot start any token
>  in "e:\app_app\xheloo\water.py", line 2, column 1
> 2010-10-29 14:04:51 (Process exited with code 1)
>
>
> If you can help, thanks,
>
> Herman
>
> --
> 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-appeng...@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.
>
>

-- 
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-appeng...@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.



Re: [google-appengine] Printing the elements of a list object

2010-11-01 Thread Robert Kluin
It sounds like you might benefit from going through the getting
started guide.  Particularly the section on templates:
http://code.google.com/intl/nl-NL/appengine/docs/python/gettingstarted/templates.html

In your template you need to print one or more of the entity's
_properties_, not the entity itself:   entity.property


Robert





On Sat, Oct 30, 2010 at 23:31, Zeynel  wrote:
> I fetch a list like this
>
> mylist = rep.all().fetch(1)
>
> but I cannot display it; the template renders it as an object. I use
> Mako templates. Someone at stackoverflow suggested a solution with
> Django templates like this:
>
> http://stackoverflow.com/questions/4061673/printing-lists-with-mako-template-django-join-tag
>
> But I would like to understand the right method to print a list
> object. More information below. Thanks for your help.
>
> class Rep(db.Model):
>    author = db.UserProperty()
>    replist = db.ListProperty(str)
>    unique = db.ListProperty(str)
>    date = db.DateTimeProperty(auto_now_add=True)
>
>  L = []
>        rep = Rep()
>        s = self.request.get('sentence')
>        L.append(s)
>
>        rep.replist = L
>        rep.put()
>
> mylist = rep.all().fetch(1)
>
> I get an object like this: [<__main__.Rep object at 0x04593C30>]
>
> --
> 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-appeng...@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.
>
>

-- 
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-appeng...@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.



Re: [google-appengine] Updating to new version

2010-11-01 Thread Robert Kluin
Install the new version.

If you need more help you might want to mention some of the smaller
details, like what OS you are using.





Robert




On Sat, Oct 30, 2010 at 23:23, Zeynel  wrote:
> Any time I start the Launcher it tells me that there is a new version
> 1.3.8. So I downloaded the new version but I do not know how to
> upgrade it. What do I need to do? Thanks.
>
> --
> 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-appeng...@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.
>
>

-- 
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-appeng...@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] Is memcache flushed when disabled?

2010-11-01 Thread Steve
In a May chat time session someone asked about getting stale data from
memcache during maintenance periods. The answer was no stale data
because all gets return false during maintenance. I _assume_ memcache
gets flushed so that you don't get stale data after the maintenance
period is over. But knowing how my assumptions often turn out, I
thought I better explicitly ask.


Google, do you flush the memcache when you disable it?


Thanks!

-- 
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-appeng...@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.



Re: [google-appengine] API to change configuration

2010-11-01 Thread Robert Kluin
There is at least one issue for this:
 http://code.google.com/p/googleappengine/issues/detail?id=3658



Robert




On Mon, Nov 1, 2010 at 14:50, sjtirtha  wrote:
> Hi,
>
> is there any API to change uploaded configuration?
> I want to change the DoS.yaml using an API.
>
> Regards,
> Steve
>
> --
> 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-appeng...@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.
>

-- 
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-appeng...@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.



Re: [google-appengine] access localhost from remote computer

2010-11-01 Thread Robert Kluin
Do you _have to have_ ssl for dev?
Off top of my head:
 - you could proxy it.
 - perhaps you could hack the dev_appserver code (it is open source)

http://code.google.com/p/googleappengine/source/browse/trunk/python/google/appengine/tools/dev_appserver.py
 - maybe you could use TyphoonAE with nginx configured for ssl.
http://code.google.com/p/typhoonae/




Robert






On Mon, Nov 1, 2010 at 11:25, Thien  wrote:
> Oh no .. Do you know any way to work around that ?
> Thanks!
>
> --
> 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-appeng...@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.
>

-- 
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-appeng...@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: Detect a new deployment - Java

2010-11-01 Thread Ian Marshall
Yes.

Have a persistent entity, which has a persistent field which stores
the latest deployed version (string) of your application.

In your application, have a string constant which is to be the
deployed version string.

After each instance of your application starts, have it compare its
version string with that persisted(*). If they are different or there
is no such version persistent entity yet:
  ·  do your persistent entity clearing
  ·  update (or persist if not yet existing) the version string
persistent entity field.

Enjoy?

(*)
You can do this from within your app, by a cron job, or by a task
launched by your app at start-up.


On Nov 1, 3:21 pm, John Tadros  wrote:
> Dear All,
>
> I am using GAE to build an application Upon deploying a new version, I
> want to run some code that clears some tables in the database.
> So is there any way I can detect when a new version is deployed ?
>
> Best Regards
> JOhn

-- 
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-appeng...@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.



Re: [google-appengine] Why sqlite3 is so slow in dev server?

2010-11-01 Thread Ikai Lan (Google)
I don't believe indexes do anything in the local development stub. That's
exactly what it is: a stub. You are probably better off testing performance
of 12k entities on a staging instance of your applicaiton.

--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine



On Thu, Oct 28, 2010 at 10:44 PM, 风笑雪  wrote:

> Hi, today I imported about 12k entities into the local datastore of my
> dev server, I found it's slow to load any page(eg: homepage with 10
> datastore request takes about 2 seconds).
>
> So I switch to use sqlite3, when I done everything, I found I need to
> wait about 157 seconds to open my homepage, I could't believe it would
> spent more than 2 minutes!
>
> I didn't change any model definition or entity value, do I need
> manually add some indexes?
>
> Thank you.
>
> --
> keakon
>
> --
> 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-appeng...@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.
>
>

-- 
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-appeng...@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.



Re: [google-appengine] Channel API release imminent?

2010-11-01 Thread Ikai Lan (Google)
Yep, we're trying to get it out ASAP, though to temper your expectations,
this talk is just going to demonstrate the features, not open them up
publicly.

--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine



On Fri, Oct 29, 2010 at 9:20 PM, Robert Kluin wrote:

> There have been one or two other posts and comments from google people
> recently that they are pushing hard to get it out.
>
>
>
>
>
>
>
>
> On Fri, Oct 29, 2010 at 14:20, Ryan Graham  wrote:
> > Anybody else see this?
> >
> http://www.google.com/events/developerday/2010/moscow/sessions/whats-new-in-app-engine.html
> >
> > (Typo aside) This is almost makes it sounds like the channel api will be
> > released in the next couple of weeks...
> >
> > --
> > 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-appeng...@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.
> >
>
> --
> 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-appeng...@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.
>
>

-- 
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-appeng...@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] Reality Check: Is GAE the right platform for my app?

2010-11-01 Thread John McLaughlin
Hi All,
I’m looking for a reality check before diving into developing (in
python) a major application for our web site (technically this is a
ground-up rewrite of an aging EC2 based app). There are a lot of
things that I like about GAE: easy development and deployment,
(mostly) worry free data storage, world wide response caching, etc.
And I’ve already programmed some smaller test apps with no major
problems.  However now its “rubber hits the road” time and the
decision is not yet a slam dunk.  Here are my concerns:
1. As far as I can tell there are few people using the the blobstore
to serve video.  I haven’t had a problem with it, but I don’t feel I
have the safety in numbers factor either.
2. Video transcoding is an essential component.  Currently I’m going
off-GAE to Zencoder -- but this gives me one extra point of failure,
and an awkward data flow to round-trip back to the blobstore.  There
could be other off-GAE processing requirements later such as 3D
rendering.
3. I don’t yet know how to serve Flash content from GAE.   I assume
PyAMF is my tool, but I don’t know enough about it to assess how much
effort it will take to get up-to-speed and implement my Flash to
Datastore connections.
4. My app traffic and database size are probably on the small side
compared to most commercial sites that would use GAE.  This could be
good -- I benefit from all the big guys hammering the platform, or bad
-- my particular needs don't get Google love.

Opinions?  Is GAE the right platform for my app?
John

PS:  Appoximate app parameters are:
1. Rapid and flexible development is a high priority.   Therefore we
could trade operational dollars to reduce development expenses (within
reason).
2. Up to 2000 world wide "member" users.  These users would upload
short videos (~10 seconds, ~10MB) and other data at least a couple
times a day.
3. About 5 main pages that are member accessible which serve mostly
moderately complex Flash content.
4. Facebook Connect with up to 100,000 worldwide fans.  Fans will
access the site and view a few short videos daily.  10% of this access
will probably be from mobile devices.
5. Primary database tables are:  “Members” (<2000 entries),
“Tasks” (<3000 entries), and “Uploads” (<10 entries)
6. Only moderate security demands: (No financial transactions, uses
Facebook or OpenID login, low profile target for bot or DDOS threats.)

-- 
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-appeng...@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.



Re: [google-appengine] Reality Check: Is GAE the right platform for my app?

2010-11-01 Thread Eli Jones
What are your reasons for leaving Amazon's EC2?

Knowing the primary reasons you have for leaving EC2 may help determine if
migrating to Appengine is worthwhile.

On Mon, Nov 1, 2010 at 6:08 PM, John McLaughlin <
johnmclaugh...@massanimation.com> wrote:

> Hi All,
> I’m looking for a reality check before diving into developing (in
> python) a major application for our web site (technically this is a
> ground-up rewrite of an aging EC2 based app). There are a lot of
> things that I like about GAE: easy development and deployment,
> (mostly) worry free data storage, world wide response caching, etc.
> And I’ve already programmed some smaller test apps with no major
> problems.  However now its “rubber hits the road” time and the
> decision is not yet a slam dunk.  Here are my concerns:
> 1. As far as I can tell there are few people using the the blobstore
> to serve video.  I haven’t had a problem with it, but I don’t feel I
> have the safety in numbers factor either.
> 2. Video transcoding is an essential component.  Currently I’m going
> off-GAE to Zencoder -- but this gives me one extra point of failure,
> and an awkward data flow to round-trip back to the blobstore.  There
> could be other off-GAE processing requirements later such as 3D
> rendering.
> 3. I don’t yet know how to serve Flash content from GAE.   I assume
> PyAMF is my tool, but I don’t know enough about it to assess how much
> effort it will take to get up-to-speed and implement my Flash to
> Datastore connections.
> 4. My app traffic and database size are probably on the small side
> compared to most commercial sites that would use GAE.  This could be
> good -- I benefit from all the big guys hammering the platform, or bad
> -- my particular needs don't get Google love.
>
> Opinions?  Is GAE the right platform for my app?
> John
>
> PS:  Appoximate app parameters are:
> 1. Rapid and flexible development is a high priority.   Therefore we
> could trade operational dollars to reduce development expenses (within
> reason).
> 2. Up to 2000 world wide "member" users.  These users would upload
> short videos (~10 seconds, ~10MB) and other data at least a couple
> times a day.
> 3. About 5 main pages that are member accessible which serve mostly
> moderately complex Flash content.
> 4. Facebook Connect with up to 100,000 worldwide fans.  Fans will
> access the site and view a few short videos daily.  10% of this access
> will probably be from mobile devices.
> 5. Primary database tables are:  “Members” (<2000 entries),
> “Tasks” (<3000 entries), and “Uploads” (<10 entries)
> 6. Only moderate security demands: (No financial transactions, uses
> Facebook or OpenID login, low profile target for bot or DDOS threats.)
>
> --
> 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-appeng...@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.
>
>

-- 
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-appeng...@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] ClientLogin with GAE

2010-11-01 Thread Vagabond
>From older posts it seems that the ClientLogin has 3 steps when you
want to use it with GAE:
- Get the Auth string
from "https://www.google.com/accounts/ClientLogin"; with a post
- Using the Auth string, get the cookie
from "http://myapp.appspot.com/_ah/login"; using the abovementioned auth
string as a get param, (and add a "continue" param too)
- Use the cookie for subsequent calls


When I try the second part, I get this:



500 Server Error


Error: Server Error
The server encountered an error and could not complete your
request.If the problem persists, please http://code.google.com/appengine/community.html";>report your
problem and mention this error message and the query that caused
it.




>From this I can draw two conclusions:
either: clientLogin doesn't work for GAE anymore
or: The url is not the right one


Any help with this one?


Thanks in advance

-- 
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-appeng...@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.



Re: [google-appengine] Re: Development server hangs

2010-11-01 Thread djidjadji
Both sides of a TCP/IP connection can decide to close a connection.
The other side has to deal with it.
Or maybe an intermediate router decides to terminate it for some reason.

It should be possible to rewrite the dev-server to close the
connection once it has sent the responds.
Maybe the dev-server should do this if it can't serve a second request
on the same connection.

2010/11/1 Bemmu :
> Thanks. Decided to move small images to another server, that seems to make
> it much less likely that Chrome would try to keep the connection open.

-- 
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-appeng...@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.



Re: [google-appengine] Newbie-static files links

2010-11-01 Thread djidjadji
- url: /(.*\.html)
 static_files: \1
 upload: (.*\.html)

Ditch the '/' in the upload attribute

2010/11/1 Maria-Carey :
> I have three static (html) files.
>
> Local links:
> http://localhost:8080/index.html
> http://localhost:8080/1.html
> http://localhost:8080/2.html
>
> Locally links of other static files, in these,  are working fine. But
> when I upload it on GAE, these links don't work.
>
> Remote link:
> http://www.codeknock.com/
>
>
> //
> My app.yaml is as follows:
>
> application: codeknock
> version: 1
> runtime: python
> api_version: 1
>
> handlers:
> - url: /stylesheets
>  static_dir: stylesheets
>
> - url: /(.*\.html)
>  static_files: \1
>  upload: /(.*\.html)
>
>
> - url: /.*
>  script: helloworld.py
> /***/
>
> Helloworld.py file is as follows:
>
> import cgi
> import os
>
> from google.appengine.ext.webapp import template
> from google.appengine.ext import webapp
> from google.appengine.ext.webapp.util import run_wsgi_app
> from google.appengine.api import users
>
> class MainPage(webapp.RequestHandler):
>    def get(self):
>        template_values = {
>                            'greetings': 'Greetings Variables',
>                            'url': 'Url Variables',
>                            'url_linktext': 'Url_linktext Variables',
>                           }
>        path = os.path.join(os.path.dirname(__file__), 'index.html')
>        self.response.out.write(template.render(path,
> template_values))
>
> def main():
>    application = webapp.WSGIApplication([('/', MainPage)],
> debug=True)
>    run_wsgi_app(application)
>
> if __name__ == '__main__':
>    main()
>
>
>
> Can some one guide me, where and what Iam doing wrong. And how to
> rectify it.
>
> Thanks in advance

-- 
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-appeng...@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] mail noreply sender

2010-11-01 Thread Richard
hello,

I want to set the mail sender to noreply@
I have invited this address as an administrator account but the status
is pending. I tested and it seems mail can not be sent from that
address until the account is confirmed.
However confirming the account is awkward - my client administers the
domain and there will be a lot of bureaucracy involved.

Is there a way to send from this address without confirming the
account?

Richard

-- 
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-appeng...@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] Maintenance windows

2010-11-01 Thread PK
My calendar says that 4:00-5:00 today it was a GAE maintenance window.
Was it? I cannot find why I put that entry there so maybe I am just
wrong...

Could somebody point me to where Google posts the up to date scheduled
maintenance calendar?

Thanks,
PK

-- 
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-appeng...@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: Reset memcache immediately after deployment?

2010-11-01 Thread MasterGaurav
If you are using a Java application, you can do a memcache reset in
the context startup.

Look at the description of the interface
javax.servlet.ServletContextListener.


--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.com


On Nov 1, 11:05 pm, pdknsk  wrote:
> I'd like to automatically reset memcache immediately when I've
> uploaded a new version. Is this possible? I currently have a /reset
> script which I run manually every time. It's a bit tedious and I'd
> like to automate it, especially since there can be a delay of up to a
> minute between a deployment success message and the updated version
> actually being available. Thanks!

-- 
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-appeng...@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: HTTP ERROR 403

2010-11-01 Thread MasterGaurav
Did you look at the server logs?



--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.com

On Nov 1, 4:01 am, jargon  wrote:
> I was following the jsp tutorial for google app engine and the
> following error occurred .
>
> HTTP ERROR 403
>
> Problem accessing /. Reason:
>
>     FORBIDDEN
>
> I tried everything possible , my web.xml is exactly the same as in the
> tutorial . Here is my web.xml . I'm using eclipse and can't get around
> with this problem . Thanks in advance
>
>        
>                 Guestbook
>                 guestbook.GuestbookServlet
>         
>         
>                 Guestbook
>                 /guestbook
>         
>         
>                 guestbook.jsp
>         
> 

-- 
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-appeng...@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.



Re: [google-appengine] Maintenance windows

2010-11-01 Thread Eli Jones
They changed the maintenance date to November 6th (Saturday).

You can check the calendar here:

http://www.google.com/calendar/embed?src=4chlpo92ci2f54c2u21shbjk9o%40group.calendar.google.com&ctz=America/Los_Angeles

They post updates like this to the [gae-appengine-downtime-notify] list.


On Mon, Nov 1, 2010 at 7:58 PM, PK  wrote:

> My calendar says that 4:00-5:00 today it was a GAE maintenance window.
> Was it? I cannot find why I put that entry there so maybe I am just
> wrong...
>
> Could somebody point me to where Google posts the up to date scheduled
> maintenance calendar?
>
> Thanks,
> PK
>
> --
> 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-appeng...@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.
>
>

-- 
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-appeng...@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: Reality Check: Is GAE the right platform for my app?

2010-11-01 Thread John McLaughlin
Hi Eli,

Thanks for asking.

The EC2 app was originally written more than 4 years ago using a .NET
MySQL tech stack.  It has had fairly minor updates since, but the
original developer is mostly unavailable for further development.  The
app is currently running on a single EC2 instance and it allows us to
manage a single project at a time.   We will we need a more nimble
environment because we will be running multiple projects at a time,
that are up to 10 times more complex, with more varied user
engagement.

There is still a fair possibility that we would stick with our current
EC2 methodology and put off the inevitable tech rewrite.  But we are
currently between projects, and have the opportunity to switch
technologies now and avoid the "changing tires while speeding down the
freeway" syndrome that we might have a year from now.

John


On Nov 1, 3:17 pm, Eli Jones  wrote:
> What are your reasons for leaving Amazon's EC2?
>
> Knowing the primary reasons you have for leaving EC2 may help determine if
> migrating to Appengine is worthwhile.
>
> On Mon, Nov 1, 2010 at 6:08 PM, John McLaughlin <
>
>
>
>
>
>
>
> johnmclaugh...@massanimation.com> wrote:
> > Hi All,
> > I’m looking for a reality check before diving into developing (in
> > python) a major application for our web site (technically this is a
> > ground-up rewrite of an aging EC2 based app). There are a lot of
> > things that I like about GAE: easy development and deployment,
> > (mostly) worry free data storage, world wide response caching, etc.
> > And I’ve already programmed some smaller test apps with no major
> > problems.  However now its “rubber hits the road” time and the
> > decision is not yet a slam dunk.  Here are my concerns:
> > 1. As far as I can tell there are few people using the the blobstore
> > to serve video.  I haven’t had a problem with it, but I don’t feel I
> > have the safety in numbers factor either.
> > 2. Video transcoding is an essential component.  Currently I’m going
> > off-GAE to Zencoder -- but this gives me one extra point of failure,
> > and an awkward data flow to round-trip back to the blobstore.  There
> > could be other off-GAE processing requirements later such as 3D
> > rendering.
> > 3. I don’t yet know how to serve Flash content from GAE.   I assume
> > PyAMF is my tool, but I don’t know enough about it to assess how much
> > effort it will take to get up-to-speed and implement my Flash to
> > Datastore connections.
> > 4. My app traffic and database size are probably on the small side
> > compared to most commercial sites that would use GAE.  This could be
> > good -- I benefit from all the big guys hammering the platform, or bad
> > -- my particular needs don't get Google love.
>
> > Opinions?  Is GAE the right platform for my app?
> > John
>
> > PS:  Appoximate app parameters are:
> > 1. Rapid and flexible development is a high priority.   Therefore we
> > could trade operational dollars to reduce development expenses (within
> > reason).
> > 2. Up to 2000 world wide "member" users.  These users would upload
> > short videos (~10 seconds, ~10MB) and other data at least a couple
> > times a day.
> > 3. About 5 main pages that are member accessible which serve mostly
> > moderately complex Flash content.
> > 4. Facebook Connect with up to 100,000 worldwide fans.  Fans will
> > access the site and view a few short videos daily.  10% of this access
> > will probably be from mobile devices.
> > 5. Primary database tables are:  “Members” (<2000 entries),
> > “Tasks” (<3000 entries), and “Uploads” (<10 entries)
> > 6. Only moderate security demands: (No financial transactions, uses
> > Facebook or OpenID login, low profile target for bot or DDOS threats.)
>
> > --
> > 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-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com > e...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.

-- 
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-appeng...@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.



Re: [google-appengine] Re: Reset memcache immediately after deployment?

2010-11-01 Thread Stephen Johnson
Wouldn't this reset the cache every time a new instance gets started not
just when a new version is deployed.

On Mon, Nov 1, 2010 at 6:27 PM, MasterGaurav  wrote:

> If you are using a Java application, you can do a memcache reset in
> the context startup.
>
> Look at the description of the interface
> javax.servlet.ServletContextListener.
>
>
> --
> Happy Hacking,
> Gaurav Vaish
> http://www.mastergaurav.com
>
>
> On Nov 1, 11:05 pm, pdknsk  wrote:
> > I'd like to automatically reset memcache immediately when I've
> > uploaded a new version. Is this possible? I currently have a /reset
> > script which I run manually every time. It's a bit tedious and I'd
> > like to automate it, especially since there can be a delay of up to a
> > minute between a deployment success message and the updated version
> > actually being available. Thanks!
>
> --
> 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-appeng...@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.
>
>

-- 
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-appeng...@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.



Re: [google-appengine] Re: Reality Check: Is GAE the right platform for my app?

2010-11-01 Thread Robert Kluin
Hi John,
  I think Eli had an excellent question.  If you guys are not a .Net
shop, or are just stronger in, or prefer, Python maybe switching would
make sense.

  One of your comments caught my eye: "10 times more complex, with
more varied user engagement."  I am not 100% sure what that statement
really means; but, if it means you want to be able to interact with
your data in more 'dynamic' ways I would suggest you to carefully
evaluate the datastore's limitations.  There are good techniques for
interacting with data on App Engine, but to be feasible they typically
require either 1) pre-computation (ie the developers expected "the
question") or 2) offline / background processing.

  That said, I think AE is a really cool platform -- it provides you
with a very unique and powerful environment.



Robert







On Mon, Nov 1, 2010 at 22:14, John McLaughlin
 wrote:
> Hi Eli,
>
> Thanks for asking.
>
> The EC2 app was originally written more than 4 years ago using a .NET
> MySQL tech stack.  It has had fairly minor updates since, but the
> original developer is mostly unavailable for further development.  The
> app is currently running on a single EC2 instance and it allows us to
> manage a single project at a time.   We will we need a more nimble
> environment because we will be running multiple projects at a time,
> that are up to 10 times more complex, with more varied user
> engagement.
>
> There is still a fair possibility that we would stick with our current
> EC2 methodology and put off the inevitable tech rewrite.  But we are
> currently between projects, and have the opportunity to switch
> technologies now and avoid the "changing tires while speeding down the
> freeway" syndrome that we might have a year from now.
>
> John
>
>
> On Nov 1, 3:17 pm, Eli Jones  wrote:
>> What are your reasons for leaving Amazon's EC2?
>>
>> Knowing the primary reasons you have for leaving EC2 may help determine if
>> migrating to Appengine is worthwhile.
>>
>> On Mon, Nov 1, 2010 at 6:08 PM, John McLaughlin <
>>
>>
>>
>>
>>
>>
>>
>> johnmclaugh...@massanimation.com> wrote:
>> > Hi All,
>> > I’m looking for a reality check before diving into developing (in
>> > python) a major application for our web site (technically this is a
>> > ground-up rewrite of an aging EC2 based app). There are a lot of
>> > things that I like about GAE: easy development and deployment,
>> > (mostly) worry free data storage, world wide response caching, etc.
>> > And I’ve already programmed some smaller test apps with no major
>> > problems.  However now its “rubber hits the road” time and the
>> > decision is not yet a slam dunk.  Here are my concerns:
>> > 1. As far as I can tell there are few people using the the blobstore
>> > to serve video.  I haven’t had a problem with it, but I don’t feel I
>> > have the safety in numbers factor either.
>> > 2. Video transcoding is an essential component.  Currently I’m going
>> > off-GAE to Zencoder -- but this gives me one extra point of failure,
>> > and an awkward data flow to round-trip back to the blobstore.  There
>> > could be other off-GAE processing requirements later such as 3D
>> > rendering.
>> > 3. I don’t yet know how to serve Flash content from GAE.   I assume
>> > PyAMF is my tool, but I don’t know enough about it to assess how much
>> > effort it will take to get up-to-speed and implement my Flash to
>> > Datastore connections.
>> > 4. My app traffic and database size are probably on the small side
>> > compared to most commercial sites that would use GAE.  This could be
>> > good -- I benefit from all the big guys hammering the platform, or bad
>> > -- my particular needs don't get Google love.
>>
>> > Opinions?  Is GAE the right platform for my app?
>> > John
>>
>> > PS:  Appoximate app parameters are:
>> > 1. Rapid and flexible development is a high priority.   Therefore we
>> > could trade operational dollars to reduce development expenses (within
>> > reason).
>> > 2. Up to 2000 world wide "member" users.  These users would upload
>> > short videos (~10 seconds, ~10MB) and other data at least a couple
>> > times a day.
>> > 3. About 5 main pages that are member accessible which serve mostly
>> > moderately complex Flash content.
>> > 4. Facebook Connect with up to 100,000 worldwide fans.  Fans will
>> > access the site and view a few short videos daily.  10% of this access
>> > will probably be from mobile devices.
>> > 5. Primary database tables are:  “Members” (<2000 entries),
>> > “Tasks” (<3000 entries), and “Uploads” (<10 entries)
>> > 6. Only moderate security demands: (No financial transactions, uses
>> > Facebook or OpenID login, low profile target for bot or DDOS threats.)
>>
>> > --
>> > 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-appeng...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > google-appengine+unsubscr...@googlegroups.co

[google-appengine] One big Model or several Models?

2010-11-01 Thread Kaan Soral
I was thinking,

Lets say I will have 1.000.000.000 users on 100.000 applications.

So there are 100.000 applications that use the same code.

Should I give every application its own Model to store users (Lets say
1 users), so that the applications may be load balanced over
servers easily maybe?

Or should I just use a single Model for 1.000.000.000 users?

-- 
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-appeng...@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: One big Model or several Models?

2010-11-01 Thread Tim Hoffman
Hi

Single user model and probably namespaces for each application, if
each application where to run in the same instance.
If each application used the same code in different application
instances then namespaces are possibly not relevent,

I think you should do some more reading about the fundamentals of
appengine, as questions like
"so that the applications may be load balanced over servers easily
maybe?" suggest a bit of a gap ;-)

Have a look at 
http://code.google.com/appengine/docs/python/multitenancy/overview.html
for more about namespaces.

Also you should mention if you're interested in java or python so
appropriate docs can be pointed to for concrete examples/api

Rgds

Tim

On Nov 2, 12:02 pm, Kaan Soral  wrote:
> I was thinking,
>
> Lets say I will have 1.000.000.000 users on 100.000 applications.
>
> So there are 100.000 applications that use the same code.
>
> Should I give every application its own Model to store users (Lets say
> 1 users), so that the applications may be load balanced over
> servers easily maybe?
>
> Or should I just use a single Model for 1.000.000.000 users?

-- 
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-appeng...@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: Can't get past SMS verification

2010-11-01 Thread sodso
submit this form -
https://appengine.google.com/waitlist/sms_issues

On Nov 1, 9:17 pm, Munchie  wrote:
> I spent the majority of my vacation learning Google App Engine
> (Python), but when I went to create an GAE account last night I
> couldn't pass SMS verification -- apparently, my phone number is
> already in use?  I'm guessing this happens with cell phones pretty
> frequently.
>
> Are there any App Engine employees watching this group that can free
> up my number or get me past verification?  I already submitted the
> Google Voice Transfer form, though it wasn't really applicable.
>
> Thanks!

-- 
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-appeng...@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: Can't process hotmail email

2010-11-01 Thread sodso
from my past exp, the java email parsing library has a bug.

it doesnt properly parse quoted printable messages at line-endings and
gives unexpected results.

try searching for this java bug and you migth find a fix.

btw, i am using python, no issues there

cheers !

On Oct 29, 7:52 pm, mokidev  wrote:
> java.io.IOException: Truncated quoted printable data
>
> I get this exception whenever i call getContent() on a MultiPart.
>
> Anyone know a workaround??? Thanks for your time.

-- 
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-appeng...@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.



Re: [google-appengine] Re: Reality Check: Is GAE the right platform for my app?

2010-11-01 Thread Eli Jones
I suppose if you foresee system admin tasks becoming a big pain in the ass,
then Appengine would alleviate that.

Also, you can really keep your costs low during initial development which
can be good if every single penny counts.

But, it sounds like your user base will be fairly small (you mentioned
thousands to tens of thousands), and you don't expect any big time
scalability issues... so you won't get much benefit from Appengine's
abilities there.  And, a well written application with good DB design
running on EC2 should be able to serve out reads to 10,000 users with no
problem at all (especially if you slathered in a little memcache).

If you have a small scale app that will frequently have to cold start (say,
5 minutes goes by without anyone using the app), then you will probably run
into issues with any 3rd party imports timing out or with the app failing to
get an instance allocated within the 10 second limit.  This is not a big
deal if the user doesn't mind reloading a page.. but it can be somewhat
annoying to end users who just want the site to work.

For example, I am the only user of my app.  It is all back end processing
that takes place once every 5 minutes over a 6 hour and 35 minute period
(so, this scheduled process should successfully run 80 times).  Sadly, the 5
minute mark is just enough time for all hot instances to go cold.  So, it
cold starts every time.  Twice today it threw DeadlineExceeded errors while
trying to import a 3rd party module that is included with my app.  From week
to week I will see a number of 500 errors with one of these messages:

"A serious problem was encountered with the process that handled this
request, causing it to exit. This is likely to cause a new process to be
used for the next request to your application. If you see this message
frequently, you should contact the App Engine team. (Error code 203)"
  or
"Request was aborted after waiting too long to attempt to service your
request. This may happen sporadically when the App Engine serving cluster is
under unexpectedly high or uneven load. If you see this message frequently,
please contact the App Engine team."

I saw two 500 errors on Thursday and Wednesday of last week. (2 may not seem
like a lot, but this is for a process that runs only 80 times a day.  So,
that's 2.5% failure.)

For me this doesn't matter, since it just retries its task after the failure
and succeeds.  I expect potential failure and just work around it.. it's
much better than having to pay to have an EC2 instance running for 6 hours
every day (not to mention the chicken and the egg problem of what would
start up this EC2 process in the first place [guess you could use Appengine,
but then.. why not just do it all on Appengine eh?]).. or needing to bother
with administering the EC2 machine.

So, if the apps you're developing might have frequent cold starts, make sure
you're able to deal with the occasional instance timeout or deadlineexceeded
error on an import.  If cold starts won't happen much or if your users won't
mind a 1% to 2.5% retry rate on cold page loading (or well, they won't raise
all hell because of it), then Appengine can work very well for you.

Of course, there's always the concern of Appengine going the way of Google
Wave.. or maybe all the Appengine Developers going to work at Facebook or
Twitter instead.. but, you should have a 3 year lead time on that.. and
there are a number of projects that aim to run Appengine apps in other
environments (like Appscale and TyphoonAE).

There are other bonuses... like the Map Reduce API and the upcoming Channel
API and the Matcher API.. that are great if you have a use for them.

I guess this is all just a long winded way of saying, if you like Python and
want to be able to iterate the hell out of your development projects at 100
miles an hour into the future and want to be able to scale out from 1 to 130
instances in 60 seconds and want some wildin' out APIs in your bag of tricks
and can stand the bumps in the road along the way.. do it.. port to
Appengine.  But, if you have a top gun client in Boise who will lose
patience with your app because he has to reload something and might drop you
because of this and you can't guarantee 99.9% uptime because you aren't in
control of what your app is running on... and topgun is a big cash cow for
you.. then you might do better to stick to EC2 and deal with administering a
rock solid service there.  Everything is a trade off... I guess that's what
I'm trying to say.

On Mon, Nov 1, 2010 at 10:14 PM, John McLaughlin <
johnmclaugh...@massanimation.com> wrote:

> Hi Eli,
>
> Thanks for asking.
>
> The EC2 app was originally written more than 4 years ago using a .NET
> MySQL tech stack.  It has had fairly minor updates since, but the
> original developer is mostly unavailable for further development.  The
> app is currently running on a single EC2 instance and it allows us to
> manage a single project at a time.   We will we need a more nimble
>

[google-appengine] IE9 beta and local development problems?

2010-11-01 Thread greg_c
Having IE9 seems to play havoc with local development on my machine...
I'm seeing all sorts of stalled requests, time outs, and the local
admin console refuses to load. Changing my default browser to Firefox
seems to clear the problem up.


NFO 2010-11-02 05:20:21,147
dev_appserver.py:3283] "GET /_ah/admin/datastore?kind=GameReplay
HTTP/1.1" 200 -

Traceback (most recent call last):

File "E:\Python25\lib\SocketServer.py", line 222, in handle_request

self.process_request(request, client_address)

File "E:\Python25\lib\SocketServer.py", line 241, in process_request

self.finish_request(request, client_address)

File "E:\Python25\lib\SocketServer.py", line 254, in finish_request

self.RequestHandlerClass(request, client_address, self)

File "E:\Program Files
(x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py",
line 3091, in __init__

BaseHTTPServer.BaseHTTPRequestHandler.__init__(self, *args, **kwargs)

File "E:\Python25\lib\SocketServer.py", line 522, in __init__

self.handle()

File "E:\Python25\lib\BaseHTTPServer.py", line 316, in handle

self.handle_one_request()

File "E:\Python25\lib\BaseHTTPServer.py", line 310, in
handle_one_request

method()

File "E:\Program Files
(x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py",
line 3099, in do_GET

self._HandleRequest()

File "E:\Program Files
(x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py",
line 3269, in _HandleRequest

raise e

error: (10053, 'Software caused connection abort')

-- 
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-appeng...@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.