Does this do what you'd like?
import copy
import pickle
# should work on any pickle able datatype
# tested with both dicts and lists, works with unicode keys, data,
elements
# empty() is arguably wrong, but what's correct?
# choices probably doesn't make any sense here, but
# readable=True
I mean Get method...
I have not seen any Get/parameter method in the page..
def post(self):
greeting = Greeting()
if users.get_current_user():
greeting.author = users.get_current_user()
greeting.content = self.request.get('content')
it's in the post function...
On Thu, Oct
Andy Freeman wrote:
> I'd assumed that the length of a db.Model instance's db.Key().name()
> was a constant plus a linear function of the depth the entity in its
> entity group.
The length of the instance's db.Key().name() is the same as the
key_name you set when you created it. If you didn't se
I've made a benchmark and testing of the google app engine fetching
system. The data I've recolected have been very useful to me:
The full benchmark is at http://analysis.buenoslinks.com
...As you see, the first try shows a low quote but executing the loop
more and more times has the m
http://www.google.com/search?q=python+hebrew+calendar
On Oct 15, 8:31 pm, MajorProgamming <[EMAIL PROTECTED]> wrote:
> I know this is more of a general Python question, but is there any way
> to implement a Hebrew Calendar? I know that PHP has one implemented in
> the general Calendar functions,
self.request.get will return parameters either passed in the URL (for
a get method) or as form data (for a post method). Unlike in, say,
PHP, there's no need to use different syntax based on how the
variables are sent.
On Oct 16, 3:59 am, kang <[EMAIL PROTECTED]> wrote:
> I mean Get method...
>
>
I don't know if you can help but I wonder if you’ve tried doing a bulk
load on existing tables with a relation. I’ve tried but come up
against a problem . I used the bulkloader example.
This is my schema.
Member — Running club member
Race — a race event racename,date, distance
Runner — is child o
To get this working on Leopard, I ran the installers as suggested in
the GAE docs, but I kept on getting the 'ImportError: No module named
PIL' error message.
I tried the suggestions listed on
http://www.p16blog.com/p16/2008/05/appengine-installing-pil-on-os-x-1053.html
but this made no differenc
到这个网址:http://appengine.google.com/waitlist/sms_issues
On 10月16日, 上午11时44分, "Wlliam.Zhang" <[EMAIL PROTECTED]> wrote:
> 如何申述啊?
>
> On 10月16日, 上午10时04分, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > 申诉成功了,哈哈
> > 剩下的时间就是好好学习python了
>
> > On 10月16日, 上午8时58分, kang <[EMAIL PROTECTED]> wrote:
>
Are you trying to load the data in production or the local datastore?
I found it much easier to load data using either one of these methods:
1. Write a python script that loads the data for you. For example, I
access mine via:
http://localhost:8080/load
2. Use Fixture!:
Fixture is pretty awesome
Hi. I want do something like this:
query = MyModel.all()
query.filter('field1 =', 'value1')
query.order('-parent.parent_field')
But when i do so i get "PropertyError: Invalid property name
'parent'." How can i access parent fields in query.
--~--~-~--~~~---~--~~
Yo
there are no cellular carriers listed in your appengine activation
screen. the "carriers" list is filled with "undefined".
as a result, i cannot activate
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Google App E
Hi,
I am new in google app engine and Gql as well.
i have made class as follows:
class MyBooks(db.Model):
book_id=db.IntegerProperty(name='key')
author = db.StringProperty(multiline=True)
book_name = db.StringProperty(multiline=True)
price = db.IntegerProperty()
date = db.DateTimeProp
Hello!
I want to upload movies to my site (and convert them to .flv)
does Google App Engine support FFmpeg server (or somthing similar)
thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Google App Engine" grou
Hi kang,
After I stopped windows firewall and tried several times, I succeeded
in the end.
Anyhow, thank you!
Best Regards,
Jason
On Oct 16, 9:03 am, kang <[EMAIL PROTECTED]> wrote:
> you can ping appspot.com and give us the result.
>
>
>
>
>
> On Wed, Oct 15, 2008 at 9:15 PM, Chao Loo <[EMAIL
I would like to include the # of mcycles consumed in some of my logging. At
the moment it a put to two entities has occasional timeouts and the number
of mcycles appears to fluctuate for essentially the same put. I would like
to add some logging to see if this is the case and if so what the variati
If the lenghth of an instance's db.Key().name() when key_name isn't
set is a constant, that's even better for my purposes.
On Oct 16, 2:13 am, Ross Ridge <[EMAIL PROTECTED]> wrote:
> Andy Freeman wrote:
> > I'd assumed that the length of a db.Model instance's db.Key().name()
> > was a constant pl
If key_name isn't set, db.Key().name() will return None.
-Marzia
On Thu, Oct 16, 2008 at 9:07 AM, Andy Freeman <[EMAIL PROTECTED]> wrote:
>
> If the lenghth of an instance's db.Key().name() when key_name isn't
> set is a constant, that's even better for my purposes.
>
> On Oct 16, 2:13 am, Ross
Hi,
We are looking in to this issue. In the meantime you can fill out the
issues form:
http://appengine.google.com/waitlist/sms_issues
-Marzia
On Thu, Oct 16, 2008 at 8:42 AM, johny why <[EMAIL PROTECTED]> wrote:
>
> there are no cellular carriers listed in your appengine activation
> screen.
You might want to profile your code:
http://code.google.com/appengine/kb/commontasks.html#profiling
On Oct 16, 12:04 pm, "Ethan Post" <[EMAIL PROTECTED]> wrote:
> I would like to include the # of mcycles consumed in some of my logging. At
> the moment it a put to two entities has occasional timeo
Currently, there is a size limit of 1mb on uploaded files, and an
overall 500 mb storage limit.
-Mahmoud
On Oct 16, 9:53 am, PythoNewbie <[EMAIL PROTECTED]> wrote:
> Hello!
> I want to upload movies to my site (and convert them to .flv)
> does Google App Engine support FFmpeg server (or somthing
I am getting this error. and can't load my page at all.
HTTP response was too large: 1081869. The limit is: 1048576.
Please help..can't get to the home page of my app
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
I have profiled the code. The problem with profiling is that the top CPU
consuming calls appear to be part of the appengine framework, nothing I can
do anything about. Also I don't understand how to correlate the information
from profiling directly to mcycles. Just putting debug calls and looking a
App Engine will only serve content less than 1 mb. You need to make your
home page smaller.
On Thu, Oct 16, 2008 at 1:00 PM, Venkatesh Rangarajan <
[EMAIL PROTECTED]> wrote:
>
> I am getting this error. and can't load my page at all.
>
> HTTP response was too large: 1081869. The limit is: 104857
Right - I wrote db.Key().name() for input to construct a key_name when
I should have written str of db.Key instance.
In short, I have three root db.Model instances that were constructed
without a key_name, I want to construct a key_name for another root
instance by concatenating str of those ins
Can you help me?
Why I download the file every time I reload?
On Oct 15, 7:05 pm, Mahmoud <[EMAIL PROTECTED]> wrote:
> What makes you think it is not cached? The headers seem to be set
> appropriately:
>
> HTTP/1.1 200 OK
> Date Wed, 15 Oct 2008 17:03:35 GMT
> Expires Sun, 19 Oct 2008 22:03:3
Does Google App Engine is CDN? where can I find details about how it's
working?
On Oct 15, 5:01 pm, noamway <[EMAIL PROTECTED]> wrote:
> We are locate in Israel and we like to know where google is locate her
> servers.
>
> Thanks for any detail.
--~--~-~--~~~---~--~---
I've experimented with pickling and found that in about 810 mcycles
are consumed getting the entity (just one BlobProperty), unpickling,
pickling, and then putting the entity. Of those mcycles most (~730)
go into the put operation.
This only leaves 190 mcycles to actually do the work of parsing
I'm not aware of anyway to get the mcycle in code either. As a result
I've been breaking out little chunks of my processing and testing how
long each on takes and I've found that updating an existing entity
consumes no less then an average of 718 mcycles. And that's for an
entity with an empty S
> I'd assumed that the length of a db.Model instance's db.Key().name()
> was a constant plus a linear function of the depth the entity in its
> entity group.]
As I wrote above, I should have said length of str(db.Key() instance).
db.Key's __str__ definition on google/appengine/api/
datastore_typ
http://code.google.com/appengine/docs/urlfetch/
On Oct 15, 4:19 am, Vacilando <[EMAIL PROTECTED]> wrote:
> Thanks.
>
> My intention is to be able to use an intelligent agent to examine
> other websites' pages - and then flagging pages that contain something
> important (words, patterns, etc.)
>
>
Just opened http://code.google.com/p/googleappengine/issues/detail?id=789
- API to get current mcycle consumption during request processing.
On Oct 16, 9:04 am, "Ethan Post" <[EMAIL PROTECTED]> wrote:
> I would like to include the # of mcycles consumed in some of my logging. At
> the moment it a
I think the question is whether or not there's a convenient way to
retrieve the url from google's cache, instead of pushing the request
out onto the (potentially slow) internet.
On Oct 16, 3:24 pm, Jon McAlister <[EMAIL PROTECTED]> wrote:
> http://code.google.com/appengine/docs/urlfetch/
>
> On
I like the idea of a GAE Java version: it will run under Tomcat.
On Oct 16, 3:50 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Thanks, David! I thought that my first attempt to ask question have
> failed. And what do you think about Java in GAE ?
>
> Davide Rognoni wrote:
> > "web forms wi
One of the most frequently requested features for App Engine has been HTTPS
serving capabilities. Today we're excited to announce that App Engine now
supports incoming HTTPS connections using a certificate valid for all
appspot.com URLs. Here's how it works:
* app.yaml files now support a new ha
I must have missed the TextProperty doesn't have an index and can't be
filtered on in the documentation!
Thank you so much! :)
On Oct 15, 11:58 pm, djidjadji <[EMAIL PROTECTED]> wrote:
> A db.TextProperty() has no index so you can't filter on it.
> Why not set the PermLink value as the key_name
you can only use fields that are in know in the kind used in the query.
Here the kind is MyModel.
2008/10/16 Микола <[EMAIL PROTECTED]>:
>
> Hi. I want do something like this:
> query = MyModel.all()
> query.filter('field1 =', 'value1')
> query.order('-parent.parent_field')
>
> But when i do so i
> but in the data base how can i store unique number which should
> incremented.
In the datastore create an object with only an IntegerProperty (counter).
It has a method that increments the value of the counter with an
transaction and returns
the previous value. Parameters for the transaction is
I believe the excessive consumption of megacycles is due to the
datastore API busy-waiting on all puts. Also see Issue 764.
On Oct 14, 10:24 pm, Josh Heitzman <[EMAIL PROTECTED]> wrote:
> I've been digging into where may app is spending its mcycles. By
> using memcache I've gotten all of my req
I believe the excessive consumption of megacycles is due to the
datastore API busy-waiting on all puts. Also see Issue 764.
On Oct 16, 12:17 am, Josh Heitzman <[EMAIL PROTECTED]> wrote:
> As we didn't see anyone from the GAE team confirm or deny that the
> excessive mcycle consumption for doing
Thank you. I will test it later.
On Thu, Oct 16, 2008 at 9:19 PM, Wooble <[EMAIL PROTECTED]> wrote:
>
> self.request.get will return parameters either passed in the URL (for
> a get method) or as form data (for a post method). Unlike in, say,
> PHP, there's no need to use different syntax based o
well done
On Fri, Oct 17, 2008 at 6:03 AM, Marzia Niccolai <[EMAIL PROTECTED]> wrote:
> One of the most frequently requested features for App Engine has been HTTPS
> serving capabilities. Today we're excited to announce that App Engine now
> supports incoming HTTPS connections using a certificat
So there is no default way to order by 'ID"?
On Fri, Oct 17, 2008 at 7:53 AM, djidjadji <[EMAIL PROTECTED]> wrote:
>
> > but in the data base how can i store unique number which should
> > incremented.
> In the datastore create an object with only an IntegerProperty (counter).
> It has a method t
Let's say it can't be elegantly solved! ;)
On Oct 15, 9:46 pm, Andy Freeman <[EMAIL PROTECTED]> wrote:
> as yejun wrote up at the top, the following works, but doesn't verify
> that assignments to Book().first are instances of Page.
>
> class Book(db.Model):
> title = db.StringProperty()
show error like this, but i did not get any code , what can i do?
-
There were errors:
* Mobile Number or Username
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Google A
http://appengine.google.com/waitlist/sms_issues
On Fri, Oct 17, 2008 at 9:38 AM, Freshow <[EMAIL PROTECTED]> wrote:
>
> show error like this, but i did not get any code , what can i do?
>
> -
>
> There were errors:
>
>* Mobile Number or Username
>
>
> >
>
I'm storing application preferences in the datastore, they come in a
variety of types. As I see it I've got three choices for implementation:
* Name / Blob
-- "general" has a json encoded object of all of the sub-settings
* Name / ID / Lots of Fields
-- Where ID = "general"
If you add a reference to one model from the other, the other model
automatically gets a back reference...
class Point(db.Model):
"""Store the map points"""
point = db.GeoPtProperty(required = True)
title = db.StringProperty(required = False)
owner =
db.ReferenceProperty(Customer,
See
http://groups.google.com/group/google-appengine/browse_thread/thread/a29a4b1dd606f52e
regarding the mcycle consumption impact of having lots of fields.
On Oct 16, 9:11 pm, David koblas <[EMAIL PROTECTED]> wrote:
> I'm storing application preferences in the datastore, they come in a
> variety
And what about using python to make server side code instead of java
servlets? Is that a proper way to integrate GAE and GWT? Excuse me
for my bad english.
On Oct 17, 1:49 am, Davide Rognoni <[EMAIL PROTECTED]> wrote:
> I like the idea of a GAE Java version: it will run under Tomcat.
>
> On Oct 1
Hi Google
Hmm, this is EXCELLENT progress! Than you for listenting. Might I
suggest that you also offer a few custom whitelabel domains, like
securecheckout.com, secureconnection.net or something? Main domain is
not as necessary as it looking professional.
/mattias
On 17 Okt, 02:31, kang <[EMAI
51 matches
Mail list logo