[google-appengine] Re: Outages?

2012-03-11 Thread Neal
Yup, still seeing the same issues here as well.

On Friday, March 9, 2012 10:24:23 AM UTC-5, Ronoaldo José de Lana Pereira 
wrote:
>
> +1 for seeing the same problems on my app.
>
> It started to be worse after maintenance on March 7.
>
> Em sexta-feira, 9 de março de 2012 08h33min36s UTC-3, Nikolai escreveu:
>>
>> +1
>> we had to move to our backup systems. Everything is full of 500 errors or 
>> hardcore latency.
>> Most of the 500 errors we see aren't even logged so this seems to be a 
>> goole problem one abstraction layer above the app.
>>
>> And yes - sometimes we have got the same feeling, that we are the only 
>> ones that use appengine in a production setting. You are not alone ;)
>>
>> regards,
>> nikolai
>>
>> Am Dienstag, 6. März 2012 22:17:37 UTC+1 schrieb Adam Sherman:
>>>
>>> Am I the only one seeing short duration outages? They are being 
>>> reflected at:
>>>
>>> http://code.google.com/status/appengine
>>>
>>> But I don't see anyone else complaining anywhere, so it makes me worried.
>>>
>>> A.
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/gReA3oENryIJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: use of Django's "forms.Form" on GAE

2009-05-13 Thread Neal

I seemed to solved that problem by changing one import:

from django import newforms as forms

Now I'm trying to get a field from the form:

TaskLog1.taskCode = form.cleaned_data['taskCode'];

which is giving this error: #ProvisionForm' object has no attribute
'cleaned_data'
(the form was defined as follows:
 form = ProvisionForm(data=request.POST or None)

and like this:

class ProvisionForm(forms.Form):
   buttonFlag = forms.CharField(required=False)
   taskCode   = forms.CharField(required=False)

So again, it looks like the Django samples that I'm trying to follow
need more modifications to work with GAE?
What is the substitute for the "cleaned_data" method?  Or where can I
look it up?
How can I get the value from a field on my form into a database
variable?

Thanks,
Neal Walters



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: use of Django's "forms.Form" on GAE

2009-05-13 Thread Neal

I think my issue is that taskCode is being returned as a "None".

This is my objective. I want a form with two buttons on it.  When a
user clicks one button, I want to store a row in BigTable that shows
that "Task01" started at at the current date/time.  When he clicks the
second button, I want to update the completed time in that same row
with the current date/time.

Right now, I'm just working on the first button.  My idea was to set
the value of the which button they clicked in a hidden field.

Text1={{ form.text1 }}






I've alternatively tried defining my form like this:



{{ form.taskCode }}



but with this second method, the field is not hidden, it shows up in a
text box in front of the button.


Since I needed some way to debug and see the values, I wrote this code
in my views.py:

  text1 = "debug_info:"
  for key in TaskLog1.__dict__:
try:
  if TaskLog1.__dict__[key] != None:
 text1 = text1 + "\n" + key + "=" + TaskLog1.__dict__[key]
  else:
 text1 = text1 + "\n" + key + "=None"
except:  #avoid errors when we hit an object such
as "User"
   pass;

  form2 = ProvisionForm(initial={'text1': text1});
  return respond(request, user, 'provision', {'form': form2,
'TaskLog': TaskLog, 'text1': text1})


This allows me to pass "text1" back to the form to see what the value
are, and taskCode is always = None.

Any ideas how to get the value of which button was clicked?  I might
eventually have 100 such buttons, each with a different taskCode value
assigned.

I've also tried setting the taskcode this way:
  form = ProvisionForm(initial={'taskCode': "mytest"})


Also, is there a smarter way to debug than what I did above?

Thanks,
Neal Walters

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: TypeError: has_key() takes exactly 1 argument (2 given)

2009-05-15 Thread Neal

Here's more info.  I'm running on my machine using the SDK.

Traceback (most recent call last):
  File "C:\Program Files\Google\google_appengine\google\appengine\ext
\webapp\__init__.py", line 498, in __call__
handler.get(*groups)
  File "c:\Program Files\Google\google_appengine\demos
\DevGAEPasswordGen\passwordgenerator.py", line 133, in get
self.renderPage('templates/list.html', TaskLogs)
  File "c:\Program Files\Google\google_appengine\demos
\DevGAEPasswordGen\passwordgenerator.py", line 124, in renderPage
self.response.out.write(template.render(path, values))
  File "C:\Program Files\Google\google_appengine\google\appengine\ext
\webapp\template.py", line 81, in render
return t.render(Context(template_dict))
  File "C:\Program Files\Google\google_appengine\google\appengine\ext
\webapp\template.py", line 121, in wrap_render
return orig_render(context)
  File "C:\Program Files\Google\google_appengine\lib\django\django
\template\__init__.py", line 168, in render
return self.nodelist.render(context)
  File "C:\Program Files\Google\google_appengine\lib\django\django
\template\__init__.py", line 705, in render
bits.append(self.render_node(node, context))
  File "C:\Program Files\Google\google_appengine\lib\django\django
\template\__init__.py", line 718, in render_node
return(node.render(context))
  File "C:\Program Files\Google\google_appengine\lib\django\django
\template\loader_tags.py", line 23, in render
result = self.nodelist.render(context)
  File "C:\Program Files\Google\google_appengine\lib\django\django
\template\__init__.py", line 705, in render
bits.append(self.render_node(node, context))
  File "C:\Program Files\Google\google_appengine\lib\django\django
\template\__init__.py", line 718, in render_node
return(node.render(context))
  File "C:\Program Files\Google\google_appengine\lib\django\django
\template\defaulttags.py", line 87, in render
if context.has_key('forloop'):
  File "C:\Program Files\Google\google_appengine\lib\django\django
\template\context.py", line 48, in has_key
if d.has_key(key):
TypeError: has_key() takes exactly 1 argument (2 given)


So apparently the "vanilla" template actually uses Django code...

I found the code at line 48:

def has_key(self, key):
for d in self.dicts:
if d.has_key(key): # <-- line 48 here
return True
return False


But I'm still at a loss how to correct...

Thanks,
Neal





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: TypeError: has_key() takes exactly 1 argument (2 given)

2009-05-19 Thread Neal

Here is the entire template:

{%block body%}
List TaskLogs





  CustomerDomain
  Worker Email
  TaskCode
  StartedTime
  CompletedTime
  ResultFlag
  Issue


{%for TaskLog in TaskLogs%}


  {{TaskLog.customerDomain}}
  {{TaskLog.workerEmail}}
  {{TaskLog.taskCode}}
  {{TaskLog.eventStartedDateTime}}
  {{TaskLog.eventCompletedDateTime}}
  {{TaskLog.resultFlag}}
  {{TaskLog.issues}}



{%endfor%}




{%endblock%}

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: TypeError: has_key() takes exactly 1 argument (2 given)

2009-05-19 Thread Neal

Sorry, I think I posted the wrong template, this is the one causing
the error:


{%block body%}
List TaskLogs





  CustomerDomain
  Worker Email
  TaskCode
  StartedTime
  CompletedTime
  ResultFlag
  Issue


{%for TaskLog in TaskLogs%}


  {{TaskLog.customerDomain}}
  {{TaskLog.workerEmail}}
  {{TaskLog.taskCode}}
  {{TaskLog.eventStartedDateTime}}
  {{TaskLog.eventCompletedDateTime}}
  {{TaskLog.resultFlag}}
  {{TaskLog.issues}}



{%endfor%}




{%endblock%}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: TypeError: has_key() takes exactly 1 argument (2 given)

2009-05-19 Thread Neal

So basically, are you saying I have to change the Django code to get
this work?
If that's the case, surely everyone would be having the exact same
problem???
How do I find out if I'm up to date or not?  I just installed GAE
about a month ago.
I'm using the django template lib that comes with GAE.

Neal

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Matching date/time GQL query - 500 severe error

2009-05-19 Thread Neal

I switched the GQL Query to the following.
Now the GQL Query no longer gives 500 severe error, but almost
anything I code after that does give the 500 severe error.
I need to test if I returned any rows or not, ideally one.


   taskLogs = db.GqlQuery("SELECT * FROM TaskLog where taskCode = :
1 " +
" and workerEmail = :2 " +
" and eventStartedDateTime = :3",
taskCode,
users.get_current_user().email(),
startedTime);
   #if taskLogs is None:
   #   DebugText = "No rows returned"
   ###if len(taskLogs) <> 1:
   ###   DebugText = " Error: more than one matching row found "
   #else:
  #DebugText = DebugText + "   len(taskLogs) = " +
len(taskLogs);
  #for taskLog in taskLogs:
  #   taskLog1.eventStartedDateTime = datetime.datetime.now
();
  #   taskLog1.put();  #save to BigTable database
  #   DebugText = DebugText + " Updated Row "

If I un-comment these two statements, I get the 500 severe error:
   #if taskLogs is None:
   #   DebugText = "No rows returned"

So why don't I get some kind of trapped error?  I'm finding the only
way to code this is to keep commenting out lines, and adding them back
in, and taking them out until something seems to work.

Even when I remove the date/time test, the following code runs:

   taskLogs = db.GqlQuery("SELECT * FROM TaskLog where taskCode = :
1 " +
" and workerEmail = :2 ",
taskCode,
users.get_current_user().email()
   );

   if taskLogs is None:
  DebugText = "No rows returned;"
   ###if len(taskLogs) <> 1:
   ###   DebugText = " Error: more than one matching row found "
   else:
  DebugText = DebugText + "Rows Returned"
  #DebugText = DebugText + "   len(taskLogs) = " +
len(taskLogs);
  for taskLog in taskLogs:
 taskLog.eventCompletedDateTime = datetime.datetime.now
();
 taskLog.put();  #save to BigTable database
 DebugText = DebugText + " Updated Row; "

What is the proper way to test the number of rows returned?

Thanks again,
Neal Walters


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: TypeError: has_key() takes exactly 1 argument (2 given)

2009-05-19 Thread Neal

Tim,
   So you don't use templates at all?  Or some other package?
   I loved what I saw of Django, but then tried to build a "vanilla"
app on GAE.  But all the books I had, when talking about templates,
used the Django template parser.

Thanks,
Neal


On May 19, 8:00 pm, Tim Hoffman  wrote:
> HINeal
>
> I don't know anything about django - (I don't use it on gae) all I am
> doing is pointing out what the error means
> This probably means you are passing the wrong argument to something in
> one of your templates.
>
> T
>
> On May 20, 3:30 am,Neal wrote:
>
>
>
> > So basically, are you saying I have to change the Django code to get
> > this work?
> > If that's the case, surely everyone would be having the exact same
> > problem???
> > How do I find out if I'm up to date or not?  I just installed GAE
> > about a month ago.
> > I'm using the django template lib that comes with GAE.
>
> >Neal- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Python XForms and Google App Engine?

2009-05-20 Thread Neal

Or maybe my question is off-base.  Maybe XForms just does a regular
post to a server just like an HTML form?
Ideas?

Neal

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: TypeError: has_key() takes exactly 1 argument (2 given)

2009-05-20 Thread Neal

Thank to all for explaining this mysterious message and showing me the
correction.
It now works great!  Another post gave me the clue on how to get the
count working.

  def get(self):
 query = TaskLog.gql("WHERE resultFlag > 0");  # get all rows
 LIMIT = 1000
 TaskLogs = query.fetch(LIMIT,offset=0);

 if TaskLogs.count(TaskLog) > 0:
   self.renderPage('templates/list.html', {"TaskLogs": TaskLogs})
 else:
self.response.out.write("""
Error - no TaskLogs returned from query
""")

Do Python developers usually make classes upper case and objects lower
case?

Neal Walters

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Matching date/time GQL query - 500 severe error

2009-05-20 Thread Neal

But why would testing for None throw a 500 severe error?  Seems like
it would catch the error and display something more helpful??
I am running with debug=True.

Thanks for the clue on "count", here's how I got the count working:

  def get(self):
 query = TaskLog.gql("WHERE resultFlag > 0");  # get all rows
 LIMIT = 1000
 TaskLogs = query.fetch(LIMIT,offset=0);

 if TaskLogs.count(TaskLog) > 0:
   self.renderPage('templates/list.html', {"TaskLogs": TaskLogs})
 else:
self.response.out.write("""
Error - no TaskLogs returned from query
""")

Neal Walters
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Matching date/time GQL query - 500 severe error

2009-05-20 Thread Neal

Actually, on further testing, my count is still not working, always
seems to return 0.
TaskLogs is a list of TaskLog objects, right?


Neal

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Python XForms and Google App Engine?

2009-05-20 Thread Neal

So far, this seems the way to get the xml into Python:


 data = self.request.body

 # the following is just to display the xml
 fixline = data.replace("<","<");
 fixline = fixline.replace(">",">");
 self.response.out.write(
   "Post3: Python found your submitted value = " +
  fixline + ""
)

Is this the "best" way to get the string of xml?

Neal

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Matching date/time GQL query - 500 severe error

2009-05-21 Thread Neal

I did do a fetch into TaskLogs: TaskLogs = query.fetch
(LIMIT,offset=0);
My GQL query object is called "query", right?
In the template I do this: {%for TaskLog in TaskLogs%}.
So that implies to me that TaskLogs is a list, and if I can iterate
through it, I should be able to use the native Python Count method.
Can you not count the things which can be enumerated?

Thanks,
Neal

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Channel API Javascript dependency

2011-11-07 Thread bryce neal
Hello I have been scouring the web trying to find the .js file i need
to include to use the channel API. Can someone point me in the right
direction?

Additionally any good functional examples of using the Channel API
with Python would be appreciated as well.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Subclass my model classes

2012-08-01 Thread Neal Ehardt
For the benefit of the archive, the solution is the PolyModel class.  This 
was fixed in 2009.

https://developers.google.com/appengine/articles/polymodel

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/HZmV9Hiy0FsJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Server Sent Events in GAE Standard

2018-08-06 Thread Steve Neal

I need to send messages from the Web server to a browser based application.

Server Sent Events are an obvious choice but I cannot see any supporting 
documentation. Is it possible to do this with GAE standard using Java 8 ?

If not, is there a way to run web sockets, or some other technology that 
will allow messages to be sent to the browser. I don't want to resort to 
polling from the browser.

Thanks, Steve.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/da54131c-b8dc-44c6-ab36-bbb918ad3125%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Google App Engine group

2018-08-06 Thread Steve Neal
Hi,

Can you tell me if this group is moderated please?

I've tried twice to post a question and it's not visible.

Thanks, Steve.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAGw%2BpadXaYAj326cwHnWG8e6h%2BkBbdQga93iOKFCXAh8%3DLEuvA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Server Sent Events in GAE standard environment - ADVICE PLEASE

2018-08-06 Thread Steve Neal

I need to be able send notifications to a web application from the app 
engine server. For me Server Sent Events seem to be the best option. 
However, I cannot find any supporting docs for this in GAE standard 
environment (Java 8). 

Is this feature implemented at all in GAE?

Is there something else I should be looking for? web sockets are another 
possibility for me, but from what I can tell, they aren't supported.

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/501f4c6c-513e-48e7-8b28-82ee99220261%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Server Sent Events in GAE standard environment - ADVICE PLEASE

2018-08-06 Thread Steve Neal
Yes it is a duplicate - I hadn't realised the group was moderated and 
didn't see my first attempt to post a question listed and tried again.

There doesn't seem to be a way to delete this post either.

If someone has privileges to delete it, then please do.





On Monday, 6 August 2018 19:32:33 UTC+2, Kamran (Google Cloud Support) 
wrote:
>
> Hello Steve,
>
> This looks like a duplicate post of this 
> <https://groups.google.com/forum/#!topic/google-appengine/mXxBe_WJ4Ok>. 
> Please visit that thread 
> <https://groups.google.com/forum/#!topic/google-appengine/mXxBe_WJ4Ok>, 
> my colleague provided answers to your questions.
>
> Thanks
>
>
> On Monday, August 6, 2018 at 9:07:30 AM UTC-4, Steve Neal wrote:
>>
>>
>> I need to be able send notifications to a web application from the app 
>> engine server. For me Server Sent Events seem to be the best option. 
>> However, I cannot find any supporting docs for this in GAE standard 
>> environment (Java 8). 
>>
>> Is this feature implemented at all in GAE?
>>
>> Is there something else I should be looking for? web sockets are another 
>> possibility for me, but from what I can tell, they aren't supported.
>>
>> Thanks.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9128fe94-5e11-4331-aa20-36a9f7a60090%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Server Sent Events in GAE Standard

2018-08-06 Thread Steve Neal

Thanks for the advice - I'll add a comment to this pwhen I've had a chance 
to try Server Side Events.


On Monday, 6 August 2018 17:19:28 UTC+2, Steren Giannini wrote:
>
> You are correct. 
> And because App Engine in automatic scaling mode has a 60 sec request 
> timeout, this probably means that your events cannot be separated by more 
> than 60sec.
>
> Give it a try, let us know.
>
> On Mon, Aug 6, 2018 at 7:39 AM Barry Hunter  > wrote:
>
>> Well as such Server Sent Events IS long-polling!
>>
>> .. it's just wrapping it up in a 'multi-part' message, but as noted its 
>> still HTTP, using Chunked encoding. 
>>
>> ... and a browser provided trigger mechanism to catch each new 'event' 
>> message. 
>>
>>
>>
>>
>> On Mon, Aug 6, 2018 at 2:07 PM Steve Neal > > wrote:
>>
>>>
>>> I need to send messages from the Web server to a browser based 
>>> application.
>>>
>>> Server Sent Events are an obvious choice but I cannot see any supporting 
>>> documentation. Is it possible to do this with GAE standard using Java 8 ?
>>>
>>> If not, is there a way to run web sockets, or some other technology that 
>>> will allow messages to be sent to the browser. I don't want to resort to 
>>> polling from the browser.
>>>
>>> Thanks, Steve.
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Google App Engine" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to google-appengi...@googlegroups.com .
>>> To post to this group, send email to google-a...@googlegroups.com 
>>> .
>>> Visit this group at https://groups.google.com/group/google-appengine.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/google-appengine/da54131c-b8dc-44c6-ab36-bbb918ad3125%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/google-appengine/da54131c-b8dc-44c6-ab36-bbb918ad3125%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-appengi...@googlegroups.com .
>> To post to this group, send email to google-a...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/google-appengine.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/CAJCAUu%2BXN547NFR_jdaSQnggiwVij%2Bm9M6hUDm073tFGcqMe8g%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/google-appengine/CAJCAUu%2BXN547NFR_jdaSQnggiwVij%2Bm9M6hUDm073tFGcqMe8g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d48fe73e-dac7-4b20-84c0-272da94716b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Number of Entities in DataStore

2009-08-12 Thread Neal Walters

Sboire,
  There is an "offset" parm on the fetch, so yes, you can get 1000
records at a time in a loop.
I believe however this is discouraged because it will eat up your CPU
quota, and potentially you could hit other limits and quotas.  Imagine
if you had 5 million records.  Reading 1000 at a time would take 5000
calls.  Even on a MySQL database with PHP for example, you would
probably hit the various CPU limits per task reading so many records
in one round-trip from the client to the server.

Neal Walters

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---