[google-appengine] Re: datastore query ignoring filter argument.

2009-04-05 Thread OliWeiD

I didn't get it to work, so I created a workaround:
Two additional fields linked to the next or previous key name.
These links are updated by for loop over the sequence.
If I get more pictures or I have to be more dynamic with the sequence
I have to add some more logic to keep the links updated
with a single operation instead of a big loop.
Grace to the initial concern it's a poor workaround.

On 2 Apr., 20:39, OliWeiD oliver.weimar.dr...@googlemail.com wrote:
 Hi Jeff,

 Example: I'm looking at picture 1, so I pass 1 to img_next.
 I want to have the next sequence  1 (e.g. 2)
 and of cause it's ordered ascending.

 As long as the filter sequence   or sequence   is in,
 the result is empty.

 Hope that answers your questions.

 Thank you

 OliWeiD.

 On 2 Apr., 19:05, Jeff S j...@google.com wrote:



  Hi OliWeiD,

  The  in your filter looks a bit suspicious. The default ordering
  direction is ascending, and since you order on sequence ascending,
  should the inequality be ? I'm not sure what img_next signifies.

  Thank you,

  Jeff

  On Apr 1, 10:44 am, OliWeiD oliver.weimar.dr...@googlemail.com
  wrote:

   The following query is not working normal:
               q = Photo.all().filter('viewer = ', True) \
                       .filter('sequence  ', img_next) \
                       .order('sequence').order('__key__')
   the query is returning nothing,
   but when the filter(sequence ) is not in, the first image is
   retrieved.
   Thanks in advance for any hint..OliWeiD- Zitierten Text ausblenden -

  - Zitierten Text anzeigen -- Zitierten Text ausblenden -

 - Zitierten Text anzeigen -
--~--~-~--~~~---~--~~
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: Fastest Templating on AppEngine?

2009-04-05 Thread Jarek Zgoda

Mako (http://www.makotemplates.org/) is believed to be the fastest
templating engine in wide use (didn't found any reasonable tests to
prove this statement in the GAE environment).

Personally I prefer Jinja2 (http://jinja.pocoo.org/2/) because I like
Django templates syntax - although Jinja2 gives more flexibility at
the cost of slight differing from this syntax. I normal environment
Jinja2 template rendering is faster than Django, but on GAE you can
not use bytecode cache so templates are recompiled on every request -
no speed gain here.

On 3 Kwi, 02:13, Lee Olayvar leeolay...@gmail.com wrote:
 I'm curious, has anyone ran across any tests on appengine with various
 templating engines? I know there are speed comparisons all over the place,
 but im specifically concerning appengine since it has many aspects that
 force various templating engines to not use feature X or speed enhancing
 module Y.

 Any opinions would also be handy. I'm looking for an obviously sane
 language, but i have no desire/requirement for the ability to run complex
 logic inside templates (nor should anyone, imo.)

 Comments and opinions are much appreciated.

 Thanks,
 --
 Lee Olayvar
--~--~-~--~~~---~--~~
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: How to update DB record

2009-04-05 Thread Arun Shanker Prasad

Hi,

A small correction in the solution above,

phrase = Phrases.get_by_id(2)
# or
phrase = Phrases.get_by_key_name('my_key_2')
phraseContent = 'typing a longer phrase'
#Correction
#phraseContent.put()
phrase.phraseContent = phraseContent
phrase.put()

or
phrase.phraseContent = 'typing a longer phrase'
phrase.put()

Thanks,
Arun Shanker Prasad.

On Apr 5, 4:08 am, djidjadji djidja...@gmail.com wrote:
 If you don't have a primary key in your object model you should use key_names.
 Don't rely on the object ID's that are given.

 To update an object in the datastore you first retrieve it with a query.
 Change the members of the object.
 and put the object back

 phrase = Phrases.get_by_id(2)
 # or
 phrase = Phrases.get_by_key_name('my_key_2')

 phraseContent = 'typing a longer phrase'
 phraseContent.put()

 2009/4/4 Larkin2 michael.mer...@gmail.com:





  I've been reviewing the example provided here:
 http://code.google.com/appengine/kb/commontasks.html#updatein regards
  to updating a record in my DB.

  I have the following DB model

  class Phrases(db.Model,):
   phraseContent = db.StringProperty(multiline=True)

  Assuming the following records exist

  ID | phraseContent
  ---
  1 | before a window
  2 | typing a phrase
  3 } into a computer

  How would I update #2 to read: 'typing a longer phrase'

  without creating a new record all together?
--~--~-~--~~~---~--~~
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: Fastest Templating on AppEngine?

2009-04-05 Thread Tim Hoffman

How about we come up with some standard test cases that can easily be
run under gae
that we can try a few of the different template engines and compare
like for like
(where possible) taking into account start up times and any possible
caching,.

I am using zpt it if I take startup time out of the equation and just
look at rendering a page with details
from about 20 entities takes about 250 ms.

Not very useful for comparison for anyone else, as whatever I am doing
isn't likely to be that same as other people ;-)

T

On Apr 5, 5:56 pm, Jarek Zgoda jarek.zg...@gmail.com wrote:
 Mako (http://www.makotemplates.org/) is believed to be the fastest
 templating engine in wide use (didn't found any reasonable tests to
 prove this statement in the GAE environment).

 Personally I prefer Jinja2 (http://jinja.pocoo.org/2/) because I like
 Django templates syntax - although Jinja2 gives more flexibility at
 the cost of slight differing from this syntax. I normal environment
 Jinja2 template rendering is faster than Django, but on GAE you can
 not use bytecode cache so templates are recompiled on every request -
 no speed gain here.

 On 3 Kwi, 02:13, Lee Olayvar leeolay...@gmail.com wrote:

  I'm curious, has anyone ran across any tests on appengine with various
  templating engines? I know there are speed comparisons all over the place,
  but im specifically concerning appengine since it has many aspects that
  force various templating engines to not use feature X or speed enhancing
  module Y.

  Any opinions would also be handy. I'm looking for an obviously sane
  language, but i have no desire/requirement for the ability to run complex
  logic inside templates (nor should anyone, imo.)

  Comments and opinions are much appreciated.

  Thanks,
  --
  Lee Olayvar
--~--~-~--~~~---~--~~
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] Model-driven architecture on GAE

2009-04-05 Thread RSS Language Translation

Does an open source project exist?

--~--~-~--~~~---~--~~
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: Memcache return different object for same key?

2009-04-05 Thread Sylvain

To see the issue, your entity must have a blob with a big size
(500k) (so each update, the quota will grow fastly)
Then you run this many times and check the quota.
Check the pictures (inside the case) with 10 entity, my datastore
grows up to 450 mb ;)

Since few weeks, there is GAE batch that recalculates the real
quota, so now, each day the bug is gone.

Another thing with this bug :
If you update the entity and you put it back to datastore, the changes
are not saved :
db.get() - entity - Memcached - entity - UPDATE entity - dp.put()

I will check it again, maybe the bug is gone, but I don't think.

Regards


On 4 avr, 17:36, 秦锋 feng.w@gmail.com wrote:
 I did the same scenario but one more:
 db.get() - entity - Memcached - entity - dp.put() - memcache.set
 (Mykey, object())
 I don't the difference with yours, and currently it seems OK for my
 quota.

 On 4月4日, 下午10时59分, Sylvain sylvain.viv...@gmail.com wrote:

  db.get() - entity - Memcached - entity - dp.put() = bug

  You can check this bug 
  :http://code.google.com/p/googleappengine/issues/detail?id=631
  But it not a good idea to use the memcache to store an entity then to
  put this entity back to datastore.

  Regards

  On 4 avr, 16:15, Alkis Evlogimenos ('Αλκης Ευλογημένος)

  evlogime...@gmail.com wrote:
   You need to do both. Memcache doesn't persist.

   2009/4/4 秦锋 feng.w@gmail.com

Thanks!
Does it means I have to put entity back to db or pickle it back to
memcache after changed something? Otherwise changes will be lost, I
guess.

On 4月4日, 下午9时31分, Tim Hoffman zutes...@gmail.com wrote:
 That is correct, an instance is being recreated from the data stored
 in memcache

 You will find the same value inside it though.

 What happens is the object is being pickled when you stick it into
 memcache, when you get it the object it
 is unpickled and essentially a new instance is created from the data
 stored.

 T

 On Apr 4, 7:14 pm, 秦锋 feng.w@gmail.com wrote:

  Following is my code in interactive console in local SDK admin web
  page:

  from google.appengine.api import memcache
  from google.appengine.ext import db

  r = db.Model()
  memcache.set(Mytest, r)

  i = 0
  while i10:
    print memcache.get(Mytest)
    i+=1

  When I run it, I got different instances for the same key? Is it
  wrong?

  google.appengine.ext.db.Model object at 0x024DCFF0
  google.appengine.ext.db.Model object at 0x024DCE10
  google.appengine.ext.db.Model object at 0x024DCDD0
  google.appengine.ext.db.Model object at 0x024DCF50
  google.appengine.ext.db.Model object at 0x024DCFF0
  google.appengine.ext.db.Model object at 0x024DCE10
  google.appengine.ext.db.Model object at 0x024DCDD0
  google.appengine.ext.db.Model object at 0x024DCF50
  google.appengine.ext.db.Model object at 0x024DCFF0
  google.appengine.ext.db.Model object at 0x024DCE10

   --

   Alkis
--~--~-~--~~~---~--~~
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: uploading app failed.... need help to fix..

2009-04-05 Thread Wooble



On Apr 3, 10:05 pm, Aaron shyhockey...@gmail.com wrote:
 So it's basicly saying I am going over a free limit?

 I am working for a company and they had the previous programmer to
 make a admin interface where I can just copy and paste in my css and
 html code to make changes to the website.

 So this basicly is saying I am exceeding a limit  based on free
 service. So the company if they want this content on their website
 they need to pay for it or more.

It's not a free limit, it's a hard limit.  You can't have more than
1000 program files or 1000 static files. This is a fundamental
BigTable restriction; note that Google Reader won't tell you how many
feed items you have if it's over 1000, but will display 1000+.  If
you need to serve more than 1000 different HTML files, you'll need to
put each one on the datastore and have a python script pull them out
and serve them.
--~--~-~--~~~---~--~~
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: Fastest Templating on AppEngine?

2009-04-05 Thread Lee Olayvar
One thing i think mako has in its favor, is if i remember right (from what
i've read, not used), is that a form of caching/speed enhancement is its
ability to turn a template into a python module. Now this can't be done on
appengine ofcourse, but it can be done before hand im sure.

So far im choosing Jinja2 however, because i like the syntax, but if it
proves to be too slow, i may try automating the process of mako and its
python-module-template thing. (I use a wrapper for the gae uploader which
will be made to handle things like this)

On Sun, Apr 5, 2009 at 4:26 AM, Tim Hoffman zutes...@gmail.com wrote:


 How about we come up with some standard test cases that can easily be
 run under gae
 that we can try a few of the different template engines and compare
 like for like
 (where possible) taking into account start up times and any possible
 caching,.

 I am using zpt it if I take startup time out of the equation and just
 look at rendering a page with details
 from about 20 entities takes about 250 ms.

 Not very useful for comparison for anyone else, as whatever I am doing
 isn't likely to be that same as other people ;-)

 T

 On Apr 5, 5:56 pm, Jarek Zgoda jarek.zg...@gmail.com wrote:
  Mako (http://www.makotemplates.org/) is believed to be the fastest
  templating engine in wide use (didn't found any reasonable tests to
  prove this statement in the GAE environment).
 
  Personally I prefer Jinja2 (http://jinja.pocoo.org/2/) because I like
  Django templates syntax - although Jinja2 gives more flexibility at
  the cost of slight differing from this syntax. I normal environment
  Jinja2 template rendering is faster than Django, but on GAE you can
  not use bytecode cache so templates are recompiled on every request -
  no speed gain here.
 
  On 3 Kwi, 02:13, Lee Olayvar leeolay...@gmail.com wrote:
 
   I'm curious, has anyone ran across any tests on appengine with various
   templating engines? I know there are speed comparisons all over the
 place,
   but im specifically concerning appengine since it has many aspects that
   force various templating engines to not use feature X or speed
 enhancing
   module Y.
 
   Any opinions would also be handy. I'm looking for an obviously sane
   language, but i have no desire/requirement for the ability to run
 complex
   logic inside templates (nor should anyone, imo.)
 
   Comments and opinions are much appreciated.
 
   Thanks,
   --
   Lee Olayvar
 



-- 
Lee Olayvar

--~--~-~--~~~---~--~~
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: what factors make Loading __main__ very time-consume

2009-04-05 Thread Coonay

Maybe it's the write operation that slow down the Loading __main__ ,in
the request ,a new record is insert into the app engine store,i
suspect thats the main reason of my problem,
what method do u use to profile the write  operation and optimize the
write operation?

On Apr 5, 9:27 pm, Coonay fla...@gmail.com wrote:
 The following log  is extracted from the Administration Console, the
 Loading __main__ spend nearly 1 second,i use
 app engine + django,what factors   do u think make Loading __main__
 very time-consume?

 04-05 04:00AM 14.739 /gwt/Home/post_nost 500 909ms 1873ms-cpu 8kb
 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19
 (KHTML, like Gecko) Chrome/1.0.154.53 Safari/525.19,gzip(gfe)

 222.65.30.191 - [05/Apr/2009:04:00:15 -0700] POST /gwt/Home/post_nost
 HTTP/1.1 500 8074 http://coonay.appspot.com/
 1DD6B98BD09B2027717DAF593993F70D.cache.html Mozilla/5.0 (Windows; U;
 Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/
 1.0.154.53 Safari/525.19,gzip(gfe)
 D 04-05 04:00AM 14.766
 Loading __main__
 I 04-05 04:00AM 15.517
 update ok
--~--~-~--~~~---~--~~
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: test server won't work anymore getting errors...

2009-04-05 Thread dartdog1

Looks like you changed myapp in settings.py to your app name, change
it back to myapp..I had the same issue, the myapp thing is related to
other things which I have not determined yet!

On Apr 4, 6:18 pm, Aaron shyhockey...@gmail.com wrote:
 Now I can't even run the test server anymore.

 I get a new error:

 Traceback (most recent call last):
   File manage.py, line 4, in module
     setup_env(manage_py_env=True)
   File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
 google_appengine/common/appenginepatch/aecmd.py, line 63, in
 setup_env
     patch_all()
   File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
 google_appengine/common/appenginepatch/appenginepatcher/patch.py,
 line 21, in patch_all
     patch_django()
   File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
 google_appengine/common/appenginepatch/appenginepatcher/patch.py,
 line 535, in patch_django
     from ragendja import template
   File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
 google_appengine/common/appenginepatch/ragendja/template.py, line 84,
 in module
     app_template_dirs = get_app_dirs('templates')
   File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
 google_appengine/common/appenginepatch/ragendja/apputils.py, line 38,
 in get_app_dirs
     for appname, module in get_app_modules().items():
   File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
 google_appengine/common/appenginepatch/ragendja/apputils.py, line 32,
 in get_app_modules
     if module_name in list_modules(import_module(app)):
   File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
 google_appengine/common/appenginepatch/ragendja/apputils.py, line 5,
 in import_module
     return __import__(module_name, {}, {}, [''])
 ImportError: No module named contact
 r...@demonicproductions:/home/aaron/websites/Chillenvillen.com/apps/
 google_app_engine/google_appengine# python manage.py runserver
 Traceback (most recent call last):
   File manage.py, line 4, in module
     setup_env(manage_py_env=True)
   File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
 google_appengine/common/appenginepatch/aecmd.py, line 63, in
 setup_env
     patch_all()
   File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
 google_appengine/common/appenginepatch/appenginepatcher/patch.py,
 line 21, in patch_all
     patch_django()
   File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
 google_appengine/common/appenginepatch/appenginepatcher/patch.py,
 line 535, in patch_django
     from ragendja import template
   File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
 google_appengine/common/appenginepatch/ragendja/template.py, line 84,
 in module
     app_template_dirs = get_app_dirs('templates')
   File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
 google_appengine/common/appenginepatch/ragendja/apputils.py, line 38,
 in get_app_dirs
     for appname, module in get_app_modules().items():
   File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
 google_appengine/common/appenginepatch/ragendja/apputils.py, line 32,
 in get_app_modules
     if module_name in list_modules(import_module(app)):
   File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
 google_appengine/common/appenginepatch/ragendja/apputils.py, line 5,
 in import_module
     return __import__(module_name, {}, {}, [''])
 ImportError: No module named contact

 that's what the terminal spits out.

 I am using linux ubuntu OS.

 I have not changed anything. This just happened when I restarted the
 test server.

 I now got a headache urgh.  I been working on this all day today.

 I work for a company and this ceo wants it up as soon as possible and
 is losing patience.

 How do I fix these errors.

 I typed in python manage.py runserver.

 then I get what I posted above.

 Then it dosen't start the test server.

 I was able this morning to run the test server just now for some
 reason it dosen't allow me.

 I didn't change anything. I just restarted the test server 4 times
 today and then this happens.
--~--~-~--~~~---~--~~
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: what factors make Loading __main__ very time-consume

2009-04-05 Thread Coonay

No,i profiled the db insert operation  and found the it's not the db
insert that 's time consuming,it's the Loading __main__ itself
consuming a lot of time,could you tell me why
Loading __main__ spend so much time?

04-05 07:13AM 57.908 /gwt/Home/post_nost 500 888ms 1677ms-cpu 0kb
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19
(KHTML, like Gecko) Chrome/1.0.154.53 Safari/525.19,gzip(gfe)

222.65.30.191 - [05/Apr/2009:07:13:58 -0700] POST /gwt/Home/post_nost
HTTP/1.1 500 180 http://coonay.appspot.com/
1DD6B98BD09B2027717DAF593993F70D.cache.html Mozilla/5.0 (Windows; U;
Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/
1.0.154.53 Safari/525.19,gzip(gfe)

04-05 07:13AM 57.944
Loading __main__

04-05 07:13AM 58.629
Trace into post_nost

04-05 07:13AM 58.715
update ok
04-05 07:13AM 58.722
Trace out post_nost


On Apr 5, 9:43 pm, Coonay fla...@gmail.com wrote:
 Maybe it's the write operation that slow down the Loading __main__ ,in
 the request ,a new record is insert into the app engine store,i
 suspect thats the main reason of my problem,
 what method do u use to profile the write  operation and optimize the
 write operation?

 On Apr 5, 9:27 pm, Coonay fla...@gmail.com wrote:

  The following log  is extracted from the Administration Console, the
  Loading __main__ spend nearly 1 second,i use
  app engine + django,what factors   do u think make Loading __main__
  very time-consume?

  04-05 04:00AM 14.739 /gwt/Home/post_nost 500 909ms 1873ms-cpu 8kb
  Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19
  (KHTML, like Gecko) Chrome/1.0.154.53 Safari/525.19,gzip(gfe)

  222.65.30.191 - [05/Apr/2009:04:00:15 -0700] POST /gwt/Home/post_nost
  HTTP/1.1 500 8074 http://coonay.appspot.com/
  1DD6B98BD09B2027717DAF593993F70D.cache.html Mozilla/5.0 (Windows; U;
  Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/
  1.0.154.53 Safari/525.19,gzip(gfe)
  D 04-05 04:00AM 14.766
  Loading __main__
  I 04-05 04:00AM 15.517
  update ok
--~--~-~--~~~---~--~~
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: one more

2009-04-05 Thread hawkett

Got a problem with a couple of statements above -

1.  [Xavier] Google should be able to look at your code to fix
problems that arise.

Why can't they just shut it down?  Also, I hope you don't mean fix
customer code.

2.  [Xavier] As long as they do not tamper with the code I see no
problem of them looking at it!

We are talking about business customers - just because you see no
problem, doesn't mean everyone should be happy to have their code
looked at - by all means you could tick a hypothetical box that lets
Google look at your code.  The key point here is that Google reserving
the right to look at code stops business customers putting their code
there.  As Tim pointed out, if you have a problem with people looking
at your code, don't host it on their hardware.  Unfortunately, that is
exactly the approach that business takes.  If Google wants business
customers on their platform, then they need to give them confidence in
this area, or that is exactly the way they will go.  This is paid
hosting service, if there is no *need* to look at customer's code,
then you shouldn't look at it - just because you would *like* to look
at it to improve your service is not a sufficient reason.  I see no
*need*, so why put up unnecessary barriers to adoption?

3.  [Tim] 'the terms the service are made available under is really up
to the service provider'

I agree that the terms are up to the provider, but they should be
clear.  Marzia has said one thing (http://groups.google.com/group/
google-appengine/browse_thread/thread/98320071f78b0aab/
7ca6960f8aa217c5), the terms say another.  Google, perhaps you could
answer two simple questions

a.  Do you reserve the right to look at customer code, at your
discretion, without notifying the customer?
b.  Why is stopping a badly behaved app not sufficient?

In the end Google can create whatever terms it wants, but there are
people out there eager to use App Engine for business apps, and they
want some confidence and clarity about the the privacy of their code.
Business customers read the terms and conditions, and privacy policy,
and right now these say Google can look at your code and use it to
improve their service whenever they want and without notifying the
customer.  Business customers and commercial app vendors don't want
this.


On Apr 4, 5:48 pm, Xavier Mathews xavieruni...@gmail.com wrote:
 Laws are diffrent all over. The point is you can't do anything about
 your code on Google but take it off! So its your choice! And if you do
 take it off Google will still have a copy!

 On 04/04/2009, Tim Hoffman zutes...@gmail.com wrote:





  Hi

  On Apr 4, 7:20 pm, Portos ciber...@gmail.com wrote:
  And your car is on a public road, but it doesn't mean it 's public
  property, does it? The fact that google offers a hosting / cluster
  service don't give them authoring rights in any country I know.

  No, but in Western Australia if I break certain hoon laws the cops can
  confiscate my car for a period,
  and if I perform the same offence several times I will lose it
  permanently,

  I would have to say the analogy is between google and the police/
  government not the public.

  The public have no access to my code on app engine unless I make it
  available.

  If I where google I would reserve the right to access the code if the
  need arose  to ensure the
  service runs correctly, and investigate problems that can arise if
  something in code does
   something strange. The same goes with the cops, they can seize my car
  or lock me up, if I do something
  inappropriate which ensures the roads (in theory ) remain safe ;-)

  There is an inherent acceptance on my part of the road rules when I
  use the car on the road.

  You are accepting  googles rules when you use their service.  (I am
  not saying privacy etc isn't important at all)
  but the terms the service are made available under is really up to the
  service provider (unless it is breaking some other law) and that
  everyone planning to use google or any other cloud type service needs
  to think carefully about whether
  it is appropriate to use it, laws can differ signficantly between
  countries. (I believe these differences are one of the reasons why
  Amazon introduced availability zones in europe, so that the laws there
  can cover the data held in europe rather than us law.

  T

 --
 Sent From Sony Slim-Line PSP

 Xavier A. Mathews
 Web-Developer
--~--~-~--~~~---~--~~
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: one more

2009-04-05 Thread hawkett

 No, but in Western Australia if I break certain hoon laws the cops can
 confiscate my car for a period,
 and if I perform the same offence several times I will lose it
 permanently,

 I would have to say the analogy is between google and the police/
 government not the public.

Luckily, in Western Australia, you can find out what the hoon laws are
that could result in the confiscation of your car.  On GAE, it is like
the cops being able to confiscate your car whenever they feel like it,
citing the 'behaving badly' clause.  In fact the terms equate to being
able to do do without citing any clause - they don't even have to tell
you they do it - the equivalent would be the WA cops nicking your car
from the driveway in the middle of the night.  It would be a horror
living in any state that had laws as draconian as GAE's concerning
your property.

Believe it or not, business aren't too keen on these terms.

On Apr 4, 1:46 pm, Tim Hoffman zutes...@gmail.com wrote:
 Hi

 On Apr 4, 7:20 pm, Portos ciber...@gmail.com wrote: And your car is on a 
 public road, but it doesn't mean it 's public
  property, does it? The fact that google offers a hosting / cluster
  service don't give them authoring rights in any country I know.

 No, but in Western Australia if I break certain hoon laws the cops can
 confiscate my car for a period,
 and if I perform the same offence several times I will lose it
 permanently,

 I would have to say the analogy is between google and the police/
 government not the public.

 The public have no access to my code on app engine unless I make it
 available.

 If I where google I would reserve the right to access the code if the
 need arose  to ensure the
 service runs correctly, and investigate problems that can arise if
 something in code does
  something strange. The same goes with the cops, they can seize my car
 or lock me up, if I do something
 inappropriate which ensures the roads (in theory ) remain safe ;-)

 There is an inherent acceptance on my part of the road rules when I
 use the car on the road.

 You are accepting  googles rules when you use their service.  (I am
 not saying privacy etc isn't important at all)
 but the terms the service are made available under is really up to the
 service provider (unless it is breaking some other law) and that
 everyone planning to use google or any other cloud type service needs
 to think carefully about whether
 it is appropriate to use it, laws can differ signficantly between
 countries. (I believe these differences are one of the reasons why
 Amazon introduced availability zones in europe, so that the laws there
 can cover the data held in europe rather than us law.

 T
--~--~-~--~~~---~--~~
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: one more

2009-04-05 Thread hawkett

And just to distill the current policy -

TC: http://code.google.com/appengine/terms.html
Privacy: http://code.google.com/appengine/privacy.html

TC Seciton 6: Here are your rights, except as outlined in section 8
TC Section 8: ... in accordance with the privacy policy
Privacy Policy:
   'Personal Information: Content. Google App Engine stores, processes
your application source code and content in order to provide the
service to you.'
   'Uses: We use this information internally to deliver the best
possible service to you, such as improving the Google App Engine user
interface and maintaining a consistent and reliable user experience.'

On Apr 4, 1:46 pm, Tim Hoffman zutes...@gmail.com wrote:
 Hi

 On Apr 4, 7:20 pm, Portos ciber...@gmail.com wrote: And your car is on a 
 public road, but it doesn't mean it 's public
  property, does it? The fact that google offers a hosting / cluster
  service don't give them authoring rights in any country I know.

 No, but in Western Australia if I break certain hoon laws the cops can
 confiscate my car for a period,
 and if I perform the same offence several times I will lose it
 permanently,

 I would have to say the analogy is between google and the police/
 government not the public.

 The public have no access to my code on app engine unless I make it
 available.

 If I where google I would reserve the right to access the code if the
 need arose  to ensure the
 service runs correctly, and investigate problems that can arise if
 something in code does
  something strange. The same goes with the cops, they can seize my car
 or lock me up, if I do something
 inappropriate which ensures the roads (in theory ) remain safe ;-)

 There is an inherent acceptance on my part of the road rules when I
 use the car on the road.

 You are accepting  googles rules when you use their service.  (I am
 not saying privacy etc isn't important at all)
 but the terms the service are made available under is really up to the
 service provider (unless it is breaking some other law) and that
 everyone planning to use google or any other cloud type service needs
 to think carefully about whether
 it is appropriate to use it, laws can differ signficantly between
 countries. (I believe these differences are one of the reasons why
 Amazon introduced availability zones in europe, so that the laws there
 can cover the data held in europe rather than us law.

 T
--~--~-~--~~~---~--~~
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: 308K CSV file cost 20% GAE data space!

2009-04-05 Thread Andy Freeman

Something is wrong here - it should not generate multiple indices per
tag, regardless of the length of the list.  (The query won't work if
the length is greater than 30, but that's a different problem.)

see Ryan's message in

http://groups.google.com/group/google-appengine/browse_thread/thread/1285c272c0e1b62a

That time, the problem turned out to be some user error, but I didn't
see an explanation.



On Apr 3, 8:58 am, 秦锋 feng.w@gmail.com wrote:
 Alkis:
 I re-check my code and found if I use list property in gql like
 following:

 WHERE tags = :1, inputTags (it's a list)

 If there are 3 tag in inputTags, index will be:

 name:tag
 name:tag
 name:tag

 Does this cost huge space?

 But it's really cool for multi-tags searching in app!

 On 4月3日, 下午8时50分, Alkis Evlogimenos ('Αλκης Ευλογημένος)



 evlogime...@gmail.com wrote:
  What do your models look like?

  On Fri, Apr 3, 2009 at 2:00 PM, 秦锋 feng.w@gmail.com wrote:

   My App: cndata4u.appspot.com
   Now I have imported about 2500 records there, and with only THREE
   entities. But I have found that these data have occurred 20% data
   store, about 200M!
   My original CSV files have only 308K!

   Any idea?

  --

  Alkis- 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: Should I take my website somewhere else? - blocked in China

2009-04-05 Thread Andy Freeman

 Feel free to hair-split the word obligation.

It's the plain meaning of the word.  I apologise for not knowing that
you didn't know what it meant when you wrote that Google had an
obligation to make GAE available in China.  Are there other statements
that you made without understanding their meaning?

China availability issue is one of the few issues where folks claim
that/act like Google has an obligation even though it's an issue where
Google has very little capability to change things.

 That's why I want to hear from a Google representative on their plan.

I predict that if Google says anything, it will be roughly equivalent
to we're doing what we can.  At that point, you'll have to decide if
the results, which will vary with the whim of the Chinese govt, are
adequate for your purposes.

Of course, if you're better at dealing with the Chinese govt than
Google is

 Now just accept that fact and act accordingly.

And the basis for this order is...


On Apr 4, 6:11 pm, Andy selforgani...@gmail.com wrote:
  I'm someone who understands that obligations come from laws and
  contracts.  Feel free to point to the relevant chapter and verse that

  However, absent a contract and/or a law, Google isn't obligated to
  make GAE applications visible in China.

 Feel free to hair-split the word obligation.

 Does Google have the legal obligation to solve this problem? No. Just
 like Google doesn't have any legal obligation to improve this service
 or add any new features. Does that mean users should stop posting any
 thread that's about improving GAE?

 Does that mean you're going to start polluting every single thread in
 this forum by posting your 'Google has no legal obligation to do this
 drivel?

  Good for you.  And Google may, or may not, offer such an option.  Note
  may not - they're under no obligation to do so.  (I don't presume to
  know the risks and costs of offering such an option.  After all, China
  can block at the edge of the data centers, impose conditions, or even
  shut them down.)

 Another zero-value drivel.

 Yes Google may or may not offer that solution, just like they may or
 may not offer any solution to any other problems raised in this forum

 That's why I want to hear from a Google representative on their plan.
 Your speculation on what Google may or may not do is just that,
 worthless speculation that serves no purpose in this discussion.

 You're right to not presume to know though, seeing how you don't
 know anything in this matter.

 Now just accept that fact and act accordingly.
--~--~-~--~~~---~--~~
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] Seeing a Load of Datastore Errors Today.....

2009-04-05 Thread cc

We have not seen any errors like this before today they are popping up
1 in 20 requests:


File /base/python_lib/versions/1/google/appengine/api/datastore.py,
line 886, in _Run
_ToDatastoreError(err)
  File /base/python_lib/versions/1/google/appengine/api/
datastore.py, line 1965, in _ToDatastoreError
raise errors[err.application_error](err.error_detail)
Timeout


What is up with this?
--~--~-~--~~~---~--~~
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: DataStore timeout

2009-04-05 Thread gg

We are seein g the same issue today. No problem in the past.
Somebody tweaked something!

On Apr 3, 6:14 pm, Jeff S j...@google.com wrote:
 Hi DarkCoiote,

 How rapidly are puts being made on a single entity? There is a write
 speed limit for a single entity or entity-group so if these puts are
 being made against the same person, or if puts are being made to
 objects which share the same parent, the put operations may queue up
 and eventually time out. Does this seem like it could be the issue?

 Thank you,

 Jeff

 On Apr 3, 5:31 am, DarkCoiote darkcoi...@gmail.com wrote:

  Getting a bad number of datastore timeout... and the operation is
  'simple', is a put in simple model;...

  Traceback (most recent call last):
    File /base/python_lib/versions/1/google/appengine/ext/webapp/
  __init__.py, line 501, in __call__
      handler.get(*groups)
    File /base/data/home/apps/naval-war/1.332510333196150921/main.py,
  line 218, in get
      person.put()
    File /base/python_lib/versions/1/google/appengine/ext/db/
  __init__.py, line 669, in put
      return datastore.Put(self._entity)
    File /base/python_lib/versions/1/google/appengine/api/
  datastore.py, line 166, in Put
      raise _ToDatastoreError(err)
    File /base/python_lib/versions/1/google/appengine/api/
  datastore.py, line 1965, in _ToDatastoreError
      raise errors[err.application_error](err.error_detail)
  Timeout

  person model:
  class Person(db.Model):
    id = db.StringProperty()
    score = db.IntegerProperty(default=0)
    currentFleet = db.IntegerProperty(default=0)
    availableShots = db.IntegerProperty(default=0)
    maxShots = db.IntegerProperty(default=0)
    shipsSunk = db.ListProperty(int,verbose_name=Sunken ships list,
  default=[0,0,0,0,0])
    shipsLost = db.ListProperty(int,verbose_name=Lost ships list,
  default=[0,0,0,0,0])
    lastAccess = db.DateTimeProperty(auto_now_add=True)

  see... no references or anything complicated

  any tips on how to reduce the number of datastore timeouts??
--~--~-~--~~~---~--~~
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: DataStore timeout

2009-04-05 Thread cc

We are seeing the same issue today. No problem in the past.
Somebody tweaked something!

On Apr 3, 5:31 am, DarkCoiote darkcoi...@gmail.com wrote:
 Getting a bad number of datastore timeout... and the operation is
 'simple', is a put in simple model;...

 Traceback (most recent call last):
   File /base/python_lib/versions/1/google/appengine/ext/webapp/
 __init__.py, line 501, in __call__
     handler.get(*groups)
   File /base/data/home/apps/naval-war/1.332510333196150921/main.py,
 line 218, in get
     person.put()
   File /base/python_lib/versions/1/google/appengine/ext/db/
 __init__.py, line 669, in put
     return datastore.Put(self._entity)
   File /base/python_lib/versions/1/google/appengine/api/
 datastore.py, line 166, in Put
     raise _ToDatastoreError(err)
   File /base/python_lib/versions/1/google/appengine/api/
 datastore.py, line 1965, in _ToDatastoreError
     raise errors[err.application_error](err.error_detail)
 Timeout

 person model:
 class Person(db.Model):
   id = db.StringProperty()
   score = db.IntegerProperty(default=0)
   currentFleet = db.IntegerProperty(default=0)
   availableShots = db.IntegerProperty(default=0)
   maxShots = db.IntegerProperty(default=0)
   shipsSunk = db.ListProperty(int,verbose_name=Sunken ships list,
 default=[0,0,0,0,0])
   shipsLost = db.ListProperty(int,verbose_name=Lost ships list,
 default=[0,0,0,0,0])
   lastAccess = db.DateTimeProperty(auto_now_add=True)

 see... no references or anything complicated

 any tips on how to reduce the number of datastore timeouts??
--~--~-~--~~~---~--~~
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: 308K CSV file cost 20% GAE data space!

2009-04-05 Thread Barry Hunter

That thread is refering to 'in' which effectivly is a OR - which as
pointed out by ryan expands to three(or multiple) queries under the
hood.

But 秦锋 I think is referring to AND, the code in the quoted post is
only pseudo code (and/or gql expands to 'and' internally - sorry, I
dont know enough python)

a query of WHERE tag = 'tag1' AND tag = 'tag2' AND tag = 'tag3'  -
will require *three* indexes on `tag`

 - this only make sense for ListProperties. But is a valid query. For
Lists,  tag = 'tag1'  could be written like  ('tag1' IN LIST `tag`)
 - which is different to the sql/gql IN keyword.



On 05/04/2009, Andy Freeman ana...@earthlink.net wrote:

  Something is wrong here - it should not generate multiple indices per
  tag, regardless of the length of the list.  (The query won't work if
  the length is greater than 30, but that's a different problem.)

  see Ryan's message in

  
 http://groups.google.com/group/google-appengine/browse_thread/thread/1285c272c0e1b62a

  That time, the problem turned out to be some user error, but I didn't
  see an explanation.




  On Apr 3, 8:58 am, 秦锋 feng.w@gmail.com wrote:
   Alkis:
   I re-check my code and found if I use list property in gql like
   following:
  
   WHERE tags = :1, inputTags (it's a list)
  
   If there are 3 tag in inputTags, index will be:
  
   name:tag
   name:tag
   name:tag
  
   Does this cost huge space?
  
   But it's really cool for multi-tags searching in app!
  
   On 4月3日, 下午8时50分, Alkis Evlogimenos ('Αλκης Ευλογημένος)
  
  
  
   evlogime...@gmail.com wrote:
What do your models look like?
  
On Fri, Apr 3, 2009 at 2:00 PM, 秦锋 feng.w@gmail.com wrote:
  
 My App: cndata4u.appspot.com
 Now I have imported about 2500 records there, and with only THREE
 entities. But I have found that these data have occurred 20% data
 store, about 200M!
 My original CSV files have only 308K!
  
 Any idea?
  
--
  

   Alkis- Hide quoted text -
  
   - Show quoted text -

 



-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~-~--~~~---~--~~
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: failure in Django 1.0.2 and Helper r76 only in deployed app about AttributeError for HttpResponse

2009-04-05 Thread Brett C.

In case anyone cares, turned out a decorator of mine for automatic
memcache usage was triggering this. I was never able to reproduce on
dev_appserver; trial and error by disabling Django apps led to the
discovery.

On Mar 22, 3:32 pm, Brett C. bcan...@gmail.com wrote:
 I am getting a failure on deployment that I am not getting through the
 dev_appserver and for the life of me I can't figure out what the heck
 could be causing this.

 I had not touched my site prior to 1.1.9 and the released copy (r52)
 of the Django helper was obviously not working anymore against
 dev_appserver. So I grabbed svn (r76) of the Helper and Django 1.0.2,
 fixed my templates, and thought everything was great as everything ran
 fine locally.

 Then I deployed where I keep getting the following error:

 type 'exceptions.AttributeError': 'HttpResponse' object has no
 attribute '_headers'
 Traceback (most recent call last):
   File /base/data/home/apps/dr-brett/4.332258713963491395/main.py,
 line 51, in module
     main()
   File /base/data/home/apps/dr-brett/4.332258713963491395/main.py,
 line 48, in main
     util.run_wsgi_app(application)
   File /base/python_lib/versions/1/google/appengine/ext/webapp/
 util.py, line 76, in run_wsgi_app
     result = application(env, _start_response)
   File /base/data/home/apps/dr-brett/4.332258713963491395/django.zip/
 django/core/handlers/wsgi.py, line 244, in __call__
   File /base/data/home/apps/dr-brett/4.332258713963491395/django.zip/
 django/core/handlers/base.py, line 174, in apply_response_fixes
   File /base/data/home/apps/dr-brett/4.332258713963491395/django.zip/
 django/http/utils.py, line 19, in fix_location_header
   File /base/data/home/apps/dr-brett/4.332258713963491395/django.zip/
 django/http/__init__.py, line 328, in has_header

 Has anyone run into this? Any changes happened deployment-side where
 run_wsgi_app could be the cause of this? I looked at the Django code I
 zipped up and _headers is set in the __init__ for HttpResponse so I
 can't think of what the heck could be triggering this error in a
 deployed app but not locally.

 -Brett
--~--~-~--~~~---~--~~
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: 308K CSV file cost 20% GAE data space!

2009-04-05 Thread Dan Sanderson
Specifically, a query with multiple equality filters on a single list
property requires an (exploding) custom index with the property repeated in
multiple columns if and only if the query also uses inequality filters or
sort orders on other properties.  If a query uses nothing but equality
filters and no sort orders, it can be performed using the merge join
algorithm using only the built-in single property indexes.

It's a lot to ask for a tag search to not use a custom sort order, so I
won't say it's a complete solution.  If it helps, the effective sort order
of an equality-filter-only query is key order, ascending.

-- Dan

On Sun, Apr 5, 2009 at 1:04 PM, Barry Hunter barrybhun...@googlemail.comwrote:


 That thread is refering to 'in' which effectivly is a OR - which as
 pointed out by ryan expands to three(or multiple) queries under the
 hood.

 But 秦锋 I think is referring to AND, the code in the quoted post is
 only pseudo code (and/or gql expands to 'and' internally - sorry, I
 dont know enough python)

 a query of WHERE tag = 'tag1' AND tag = 'tag2' AND tag = 'tag3'  -
 will require *three* indexes on `tag`

  - this only make sense for ListProperties. But is a valid query. For
 Lists,  tag = 'tag1'  could be written like  ('tag1' IN LIST `tag`)
  - which is different to the sql/gql IN keyword.



 On 05/04/2009, Andy Freeman ana...@earthlink.net wrote:
 
   Something is wrong here - it should not generate multiple indices per
   tag, regardless of the length of the list.  (The query won't work if
   the length is greater than 30, but that's a different problem.)
 
   see Ryan's message in
 
 
 http://groups.google.com/group/google-appengine/browse_thread/thread/1285c272c0e1b62a
 
   That time, the problem turned out to be some user error, but I didn't
   see an explanation.
 
 
 
 
   On Apr 3, 8:58 am, 秦锋 feng.w@gmail.com wrote:
Alkis:
I re-check my code and found if I use list property in gql like
following:
   
WHERE tags = :1, inputTags (it's a list)
   
If there are 3 tag in inputTags, index will be:
   
name:tag
name:tag
name:tag
   
Does this cost huge space?
   
But it's really cool for multi-tags searching in app!
   
On 4月3日, 下午8时50分, Alkis Evlogimenos ('Αλκης Ευλογημένος)
   
   
   
evlogime...@gmail.com wrote:
 What do your models look like?
   
 On Fri, Apr 3, 2009 at 2:00 PM, 秦锋 feng.w@gmail.com wrote:
   
  My App: cndata4u.appspot.com
  Now I have imported about 2500 records there, and with only THREE
  entities. But I have found that these data have occurred 20% data
  store, about 200M!
  My original CSV files have only 308K!
   
  Any idea?
   
 --
   
 
Alkis- Hide quoted text -
   
- Show quoted text -
 
  
 


 --
 Barry

 - www.nearby.org.uk - www.geograph.org.uk -

 


--~--~-~--~~~---~--~~
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] AppEngine SDK Server on a Virtualenv? Is there a trick to this?

2009-04-05 Thread Lee Olayvar
I've been trying to get the sdk/dev server working on a VirtualEnv (with
--no-site-packages defined). So far i've had no luck getting any remotely
complex app to run.

The plain text print Hello World will run, but if i try to run the
template app in the sdk, i get this error:

   24 from google.appengine.ext import webapp
25
26
 google *undefined*, webapp *undefined**type 'exceptions.ImportError'*: No
module named ext
  args = ('No module named ext',)
  message = 'No module named ext'

Note that importing google, and google.appengine will work just fine.

This is a completely fresh version of the sdk aswell. Any thoughts as to
what could be wrong?

-- 
Lee Olayvar

--~--~-~--~~~---~--~~
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: Get All StringListProperty Values

2009-04-05 Thread Andrew Fong

Thanks Alkis. Forgot I could manually assign key names to entities.

On Apr 4, 2:27 am, Alkis Evlogimenos ('Αλκης Ευλογημένος)
evlogime...@gmail.com wrote:
 I think the only way is to scan (using the __key property) all the entities
 of the Knights model and update a set of the strings.
 Another way to do it, is to have a another entity:

 KnightColor:
   pass

 The keyname for each empty entity is the color. For each Knight you put in
 the datastore, check if the colors are in the datastore or not, if not add
 the missing ones. Then you can scan this table and get the list of all
 colors. I am not sure if it matters but it is also going to be sorted by
 color as well.



 On Sat, Apr 4, 2009 at 3:01 AM, Andrew Fong fongand...@gmail.com wrote:

  Hi all,

  Given a model with a StringListProperty, is there a way to query for
  all strings across all string list properties for this kind?

  For example, if I have Knight(colors=['blue','yellow']) and Knight
  (colors=['black']), can I do Knight.some_function('colors') # =
  ['blue','yellow','black']?

  I was going to implement this myself with a separate datastore table,
  but it occurred to me that depending on how ListProperty is indexed,
  there's probably some table with I data I want already in the system.
  Is there any way to query that table?

  -- Andrew

 --

 Alkis
--~--~-~--~~~---~--~~
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: 308K CSV file cost 20% GAE data space!

2009-04-05 Thread Andy Freeman

 But 秦锋 I think is referring to AND, the code in the quoted post is
 only pseudo code (and/or gql expands to 'and' internally - sorry, I
 dont know enough python)

Why do you think that WHERE tags = :1, inputTags (it's a list) is
pseudo code?  It looks to me like an excerpt from query construction
code together with a description.

The :1 isn't python-specific, it's a convention in the API for query
construction.  It means the first argument after the query string.
If the query string ended with :1, the comma would separate it from
the first argument, which I take to be the value of inputTags, which
is described as being a list.

Where are you finding something relevant in GQL which expands
internally into an AND?

Maybe 秦锋 will post the actual code.

On Apr 5, 1:04 pm, Barry Hunter barrybhun...@googlemail.com wrote:
 That thread is refering to 'in' which effectivly is a OR - which as
 pointed out by ryan expands to three(or multiple) queries under the
 hood.

 But 秦锋 I think is referring to AND, the code in the quoted post is
 only pseudo code (and/or gql expands to 'and' internally - sorry, I
 dont know enough python)

 a query of WHERE tag = 'tag1' AND tag = 'tag2' AND tag = 'tag3'  -
 will require *three* indexes on `tag`

  - this only make sense for ListProperties. But is a valid query. For
 Lists,  tag = 'tag1'  could be written like  ('tag1' IN LIST `tag`)
  - which is different to the sql/gql IN keyword.

 On 05/04/2009, Andy Freeman ana...@earthlink.net wrote:







   Something is wrong here - it should not generate multiple indices per
   tag, regardless of the length of the list.  (The query won't work if
   the length is greater than 30, but that's a different problem.)

   see Ryan's message in

   http://groups.google.com/group/google-appengine/browse_thread/thread/...

   That time, the problem turned out to be some user error, but I didn't
   see an explanation.

   On Apr 3, 8:58 am, 秦锋 feng.w@gmail.com wrote:
    Alkis:
    I re-check my code and found if I use list property in gql like
    following:

    WHERE tags = :1, inputTags (it's a list)

    If there are 3 tag in inputTags, index will be:

    name:tag
    name:tag
    name:tag

    Does this cost huge space?

    But it's really cool for multi-tags searching in app!

    On 4月3日, 下午8时50分, Alkis Evlogimenos ('Αλκης Ευλογημένος)

    evlogime...@gmail.com wrote:
     What do your models look like?

     On Fri, Apr 3, 2009 at 2:00 PM, 秦锋 feng.w@gmail.com wrote:

      My App: cndata4u.appspot.com
      Now I have imported about 2500 records there, and with only THREE
      entities. But I have found that these data have occurred 20% data
      store, about 200M!
      My original CSV files have only 308K!

      Any idea?

     --

Alkis- Hide quoted text -

    - Show quoted text -

 --
 Barry

 -www.nearby.org.uk-www.geograph.org.uk-- 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: AppEngine SDK Server on a Virtualenv? Is there a trick to this?

2009-04-05 Thread Tim Hoffman

HI Lee

I use virtualenv a lot, but to be honest I don't see a lot of value in
it for the
app engine sdk.

The sdk isn't installed normally into you python site-packages etc

So you just stick it whereever you want and just run the dev server
with a fully
specified path., and everything is fine,

I usually use virtualenv becuase I need to install lots of
dependancies (ie zope)
and don't want that in my core python.

Rgds

Tim

On Apr 6, 5:17 am, Lee Olayvar leeolay...@gmail.com wrote:
 I've been trying to get the sdk/dev server working on a VirtualEnv (with
 --no-site-packages defined). So far i've had no luck getting any remotely
 complex app to run.

 The plain text print Hello World will run, but if i try to run the
 template app in the sdk, i get this error:

    24 from google.appengine.ext import webapp
     25
     26
  google *undefined*, webapp *undefined**type 'exceptions.ImportError'*: No
 module named ext
       args = ('No module named ext',)
       message = 'No module named ext'

 Note that importing google, and google.appengine will work just fine.

 This is a completely fresh version of the sdk aswell. Any thoughts as to
 what could be wrong?

 --
 Lee Olayvar
--~--~-~--~~~---~--~~
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: Should I take my website somewhere else? - blocked in China

2009-04-05 Thread Joe Bowman

Plenty of companies would be willing to deal with not being able to
support customers in China. Either for reasons of they only support
selling products within in their own countries, to, startups that will
move off of appengine if the need and funding arises to allow them
move off of appengine to support Chinese customers.

So far, I've only seen two people complaining about the Chinese
firewall and appengine, and a couple others voicing their opinion on
it not being Google's obligation to support it. So really, when you
count how many members this group has, I'd venture a guess that most
just don't care either way. So maybe we're all wasting our time. If
Google was going to respond, they'd have done it days ago.

I'd say do as they ask, file an issue, and move on.

On Apr 5, 6:16 pm, WallyDD shaneb...@gmail.com wrote:
 Google is more or less obligated to solve this issue.

 No company is willing to be a pawn in the game of politics between
 Google and China.
 Name a single company (that has any international presence) who would
 be willing to use GAE knowing full well that it is blocked in its
 current form?
 This issue has nothing to do with the Chinese government and there is
 no way Google will point the finger at them.

 Perhaps google can also take on all the other countries that are
 blocking GAE and while they are at it they can point fingers at
 corporate america and their firewalls?
 You have to remember that at the moment this is a preview release.

 I don't really understand why you persist with this argument. You have
 raised some valid points which should be looked at and considered in
 the scheme of things but most of the diatribe you present here seems
 aimed at China/Chinese Government. I have always found prejudices
 cloud peoples judgement.

 To sumarise how this problem will probably be viewed;
 Google created a dns based system (for GAE addressing) which puts
 everything though ghs.google.com. This system works really well and
 from my experience it was very clever and efficient. However it has an
 issue with firewalls that got overlooked. Google has just recently
 been made aware of this problem.

 On Apr 5, 12:53 pm, Andy Freeman ana...@earthlink.net wrote:

   Feel free to hair-split the word obligation.

  It's the plain meaning of the word.  I apologise for not knowing that
  you didn't know what it meant when you wrote that Google had an
  obligation to make GAE available in China.  Are there other statements
  that you made without understanding their meaning?

  China availability issue is one of the few issues where folks claim
  that/act like Google has an obligation even though it's an issue where
  Google has very little capability to change things.

   That's why I want to hear from a Google representative on their plan.

  I predict that if Google says anything, it will be roughly equivalent
  to we're doing what we can.  At that point, you'll have to decide if
  the results, which will vary with the whim of the Chinese govt, are
  adequate for your purposes.

  Of course, if you're better at dealing with the Chinese govt than
  Google is

   Now just accept that fact and act accordingly.

  And the basis for this order is...

  On Apr 4, 6:11 pm, Andy selforgani...@gmail.com wrote:

I'm someone who understands that obligations come from laws and
contracts.  Feel free to point to the relevant chapter and verse that

However, absent a contract and/or a law, Google isn't obligated to
make GAE applications visible in China.

   Feel free to hair-split the word obligation.

   Does Google have the legal obligation to solve this problem? No. Just
   like Google doesn't have any legal obligation to improve this service
   or add any new features. Does that mean users should stop posting any
   thread that's about improving GAE?

   Does that mean you're going to start polluting every single thread in
   this forum by posting your 'Google has no legal obligation to do this
   drivel?

Good for you.  And Google may, or may not, offer such an option.  Note
may not - they're under no obligation to do so.  (I don't presume to
know the risks and costs of offering such an option.  After all, China
can block at the edge of the data centers, impose conditions, or even
shut them down.)

   Another zero-value drivel.

   Yes Google may or may not offer that solution, just like they may or
   may not offer any solution to any other problems raised in this forum

   That's why I want to hear from a Google representative on their plan.
   Your speculation on what Google may or may not do is just that,
   worthless speculation that serves no purpose in this discussion.

   You're right to not presume to know though, seeing how you don't
   know anything in this matter.

   Now just accept that fact and act accordingly.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 

[google-appengine] Secure Requests for Static Files Being Redirected

2009-04-05 Thread Doug

Good Evening,


It appears that requests that I make to the secure URL are being
redirected to the insecure address.  I noticed this is my Google
Analytics reports when trying to identify a way to track my GAE.  To
try and track my application I created a static html page and then
load the page in an iframe in my application.  When I call the iframe
I am able to pass a parm to the trackPageview function, but the
request is being redirected from the secure URL to the insecure URL
and the parms are being dropped.  For example, if I put
https://myapp.appspot.com/ga/ga.html?track=page1 in iframe or directly
in a browser it is redirected to http://myapp.appspot.com/ga/ga.html.

Any ideas why this is happening?

Thanks,
Doug
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---