[google-appengine] Re: Reminder: App Engine chat time, tonight 7-8PM PST

2009-01-07 Thread cz

Hi Marzia,
I've been unable to make the chat times, is there a transcript
archived somewhere?
Thanks,
- Claude

On Jan 7, 11:56 am, Marzia Niccolai  wrote:
> Details about this and future chat times can be found 
> here:http://groups.google.com/group/google-appengine/browse_thread/thread/...
--~--~-~--~~~---~--~~
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 use App Engine Patch

2009-01-07 Thread Ray Malone

thanks for the advice all.

On Jan 4, 12:30 pm, Bobby  wrote:
> I was also undecided on whether to go with Django on top of the GAE
> but ended up going for it using the AppEngine Patch and i'm glad i
> did.
>
> Yesterday i needed to setup feeds and Django took care of everything
> in literally a couple of lines - it just keeps on giving.
>
> Also, the beauty of self-contained apps (so easy to do in Django) is
> something you won't be able to go without after having done a few.
>
> There are some types of sites where i wouldn't use Django but these
> are mostly specialized apps (more of web-based applications than
> content-driven sites).
>
> I highly recommend you look into both the AppEngine Django Helper and
> the AppEngine Patch (create some simple Django apps, go through the
> documentation for the AppEngine and Django side-by-side), above all
> it's important you get a feel for what's out there so you can make the
> best decisions, you'll learn alot about best practices - also see the
> video Waldemar linked to.
>
> Bobby
>
> On Jan 4, 8:20 am, Waldemar Kornewald  wrote:
>
> > On Jan 3, 6:43 pm, gops  wrote:
>
> > > think this way :: if there was a need of app engine patch than google
> > > would have released it.
>
> > Actually, Google did release django-helper, but we (app-engine-patch)
> > disagreed about unnecessarily introducing a new model class for Django
> > users. More interestingly, I discussed that with Matt Brown (maintains
> > django-helper) and he agreed with our decision. It would've just been
> > difficult to remove the custom model class, again.
>
> > > and i personally think , webapp is sufficient for pretty large
> > > project , afterall
>
> > *> no matter how 
> > much django do for you ,
>
> > *
>
> > > atlast for
> > > sufficiently large project we endup
> > > with our own library-or-framework.
>
> > Translation:
> > No matter how much time you can save, code reuse is for sissies! ;)
>
> > Bye,
> > Waldemar Kornewald
--~--~-~--~~~---~--~~
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] cpu usage

2009-01-07 Thread Ray Malone

Hi I get a message on my script that my average cpu is over 1300.
However, when I review the details I can't see any cpu time used or
any High CPU requests used.  Second of all my script is not all that
complicated and only makes 8 datastore api calls per request.  I'm not
sure where to look to tune it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-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] My trial implementation of a transaction between entities in different entity groups.

2009-01-07 Thread Takashi Matsuo

Hi, list

I'd like to share my trial implementation of transaction between
entities in different entity groups. I will be glad if you can discuss
about this implementation freely.
This implementation is basically inspired by this thread:
http://groups.google.com/group/google-appengine/browse_thread/thread/ba1c22b37581/6e92b0d15b5cb587

main.py:
http://pastebin.com/m5aef20b5

This script works with following app.yaml.
 app.yaml 
application: tm-test
version: 1
runtime: python
api_version: 1

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

This script indicates how a particular amount of money/points/etc can
move from User A to User B in transaction manner.
As a notice, this script itself is not perfect. To make this work
correctly, we need cron job or something like that to take care of
incomplete transactions.

Any comments, thoughts, ideas, all of those are welcome.

I hope someone can make this implementation more sophisticated.

Regards,

-- Takashi Matsuo

--~--~-~--~~~---~--~~
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: Inconsistent behaviour when if __name__ == '__main__' missing

2009-01-07 Thread SM

Can someone expound on this a bit more?

Is

  if __name__ == '__main__': main()

required for App Engine to work properly? Or is it sufficient to
simply define a main() function in your script and App Engine will
call it appropriately?

Thanks.

On Dec 16 2008, 11:40 am, Dan Sanderson 
wrote:
> Good catch!  I'll make sure the docs address this case, in both samples and
> descriptions.
> Thanks!
> -- Dan
>
> On Mon, Dec 15, 2008 at 10:49 AM, Jeff S  wrote:
>
> > Thank you for pointing this out. It seems like most code snippets do
> > include the if __name__ == '__main__' but I did find one that omitted
> > it
>
> >http://code.google.com/appengine/docs/webapp/running.html
>
> > Were there others that you had seen?
>
> > Thank you,
>
> > Jeff
>
> > On Dec 13, 7:45 am, mrts  wrote:
> > > This is really a doc bug report, but perhaps it should be discussed
> > > first.
>
> > > The problem:
>
> > > Given
>
> > >  def main():
> > >     run_wsgi_app(handler)
>
> > > if
>
> > >   if __name__ == '__main__':
> > >      main()
>
> > > is omitted from the end of main.py, the application serves a blank
> > > page (i.e. null body) on first request and sporadically later as well
> > > (probably when the main module is imported in another server in the
> > > cloud, i.e. main() is *not* run only on import). Otherwise, main() is
> > > run automagically and everything works as expected.
>
> > > This is highly confusing and hard to track down -- so it would make
> > > sense to either not run main() automagically at all so that zero
> > > length response is always returned if no __name__ == '__main__' clause
> > > is present, or document this behaviour with a big warning in the
> > > official docs.
>
> > > At least two people have tripped on this as of now.
--~--~-~--~~~---~--~~
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: http://carpoolfinder.appspot.com/ won't work now and svn update fails

2009-01-07 Thread thebrianschott

I got great help on the google apps irc. My svn problem was that the
directory I tried to upload was not the directory I had downloaded the
previous version into because I was trying to protect that directory
from being damaged. So the directory did not have a key invisible file
directory. I restored that invisible directory and all is well with
the svn version.

The other problem is that the production version of my app does not
work like the local version. From what I learned on the irc, the
production version works differently at validating a user. I suspect
the process is much slower on the productions system, and so when the
app does a "user = users.get.current_user()" I bet it does not wait
long enough and continues believing the person is not a user. That is
what I will look into, next.

http://carpoolfinder.appspot.com/

Thanks,

Brian in Atlanta
--~--~-~--~~~---~--~~
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: URL Redirection + Pipe = Bad Request

2009-01-07 Thread Jyoti Shete-Javadekar
Please copy the example urls in address to reproduce the behavior I
described.
gmail seems to be url-encoding "|" hence directly clicking on the links
won't reproduce the discrepancy.

http://www.videonym.com/?vertical=Technology&user='stanforduniversity'&video='Darwins%20Legacy%20|%20Lecture%201'&criterion='title'
http://videonym.appspot.com/?vertical=Technology&user='stanforduniversity'&video='Darwins%20Legacy%20|%20Lecture%201'&criterion='title'

I am going to explicitly encode all url parameters to resolve this issue.
However I am curious to know why videonym.appspot.com and
www.videonym.combehave differently.

On Wed, Jan 7, 2009 at 5:28 PM, Jyoti Shete-Javadekar <
jyoti.javade...@gmail.com> wrote:

> Hi,
> I host a video mashup at videonym.appspot.com. I have redirected
> www.videonym.com to my app. I have noticed a strange behavior when url
> parameters contain a "|" (pipe)
>
> I get an Error 400 on www.videonym.com if url parameters have "|"
> e.g.
> http://www.videonym.com/?vertical=Technology&user='stanforduniversity'&video='Darwins%20Legacy%20|%20Lecture%201'&criterion='title'
>
>
> However same url parameters wok fine on videonym.appspot.com
> e.g.
> http://videonym.appspot.com/?vertical=Technology&user='stanforduniversity'&video='Darwins%20Legacy%20|%20Lecture%201'&criterion='title'
>
> Other than the above discrepancy both videonym.appspot.com and
> www.videonym.com work similarly.
>
> Is there any known issue with "|" and url redirection?
> --
> -Jyoti
> www.videonym.com
>
>


-- 
-Jyoti
www.videonym.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-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] URL Redirection + Pipe = Bad Request

2009-01-07 Thread Jyoti Shete-Javadekar
Hi,
I host a video mashup at videonym.appspot.com. I have redirected
www.videonym.com to my app. I have noticed a strange behavior when url
parameters contain a "|" (pipe)

I get an Error 400 on www.videonym.com if url parameters have "|"
e.g.
http://www.videonym.com/?vertical=Technology&user='stanforduniversity'&video='Darwins%20Legacy%20|%20Lecture%201'&criterion='title'


However same url parameters wok fine on videonym.appspot.com
e.g.
http://videonym.appspot.com/?vertical=Technology&user='stanforduniversity'&video='Darwins%20Legacy%20|%20Lecture%201'&criterion='title'

Other than the above discrepancy both videonym.appspot.com and
www.videonym.com work similarly.

Is there any known issue with "|" and url redirection?
-- 
-Jyoti
www.videonym.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-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: Zip Importer High CPU every request

2009-01-07 Thread Anthony

It looks like the info in the logs could be down to the whole page
processing, but very simple pages (no db) consistently taking 500ms+
Ill give it a try without the zipimport.

I'm just using the loader cache from the cookbook (removed the
bytecode cache), jinja works great, although I did need to force
caching off in dev or the internal caches do not update after template
changes...


import config
import os
import sys
from google.appengine.api import memcache

sys.path.insert(0, 'lib/jinja2.zip')
from jinja2 import Environment, FunctionLoader , TemplateNotFound

def jinja2_template_loader(templatename):
templatepath = os.path.abspath(os.curdir+'/templates/'+templatename)
template = memcache.get(templatepath+config.VERSION)
if template is None:
try:
template = file(templatepath).read()
if config.LIVE:

memcache.set(templatepath+config.VERSION,template)
except:
template = None
return template

if config.LIVE:
jinja2_environment = Environment(loader = FunctionLoader
(jinja2_template_loader),cache_size=50)
else:
jinja2_environment = Environment(loader = FunctionLoader
(jinja2_template_loader),cache_size=0)


def render(template_name,context):
template = jinja2_environment.get_template(template_name)
context["stats"]="LIVE:" +str(config.LIVE) + " DEBUG:" +str
(config.DEBUG)
return template.render(context)

On Jan 7, 7:39 pm, "Rodrigo Moraes"  wrote:
> On Wed, Jan 7, 2009 at 2:16 PM, Anthony wrote:
> > Is it normal for the zipimporter to take 500-1000ms every request -
> > should it be caching internally?
>
> > I'm importing like so:
>
> > # templates.py
> > sys.path.insert(0, 'lib/jinja2.zip')
> > from jinja2 import Environment, FunctionLoader , TemplateNotFound ,
> > MemcachedBytecodeCache
>
> > Will it still be caching if im not importing the zip dircetly in the
> > main.py?
>
> Not an answer to your question (which I'd like to know :), just a
> warning: you won't be able to use MemcachedBytecodeCache from Jinja2,
> because bytecode usage is not allowed in App Engine.
>
> The example using MemcachedBytecodeCache in the App Engine Cookbook
> only works in the dev server, not in production. :-/
>
> Apart from this, Jinja2 implementation is very smooth. :)
>
> -- rodrigo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-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: are numeric ids of deleted entities reused?

2009-01-07 Thread ryan

hi robin!

On Jan 7, 10:49 am, Robin B  wrote:

> The first statement says, in practice, the id alone is unique across
> kinds for root-entities, the second statement says the kind+id is
> needed for uniqueness across root-entities.  Could you please clarify?

yes, as you guessed, the difference is between what we explicitly
guarantee and how things actually work under the covers.

as i mentioned earlier, the only hard guarantee is that the full path
is unique. in practice, right now, ids themselves are actually unique
within each entity group (across kinds), and separately, across all
root entities (also across kinds). we don't have any plans to change
that in the near term, but it's still just an implementation detail,
not a hard guarantee.
--~--~-~--~~~---~--~~
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] http://carpoolfinder.appspot.com/ won't work now and svn update fails

2009-01-07 Thread thebrianschott

Our application runs fine on local box and had several successful
deployments, but it will not run correctly on the appspot.

First, doesn't this log say that my deployment works?


*** Running appfg.py with the following flags:
--no_cookies --email=myadd...@gmail.com --passin update
Password for myaddr...@gmail.com: Scanning files on local disk.
Initiating update.
Cloning 2 static files.
Cloning 4 application files.
Uploading 1 files.
Closing update.
Uploading index definitions.
If deploy fails you might need to 'rollback' manually.
The "Make Symlinks..." menu option can help with command-line work.
*** appcfg.py has finished with exit code 0 ***

When I enter a single word in the only text area in the first screen,
and submit, the appspot thinks for a second and then returns me to the
same opening screen instead of sending me to a new screen as it does
in my local system.

When I try to update the svn system I get the following error.

[5:14pm brian~/googleapps/carpoolfinder]% svn statussubversion/
libsvn_wc/lock.c:377: (apr_err=155007)
svn: '.' is not a working copy
[5:14pm brian~/googleapps/carpoolfinder]% ls -al
total 96
drwxr-xr-x   10 brian  staff   340 Jan  7 17:15 ./
drwxr-xr-x   19 brian  staff   646 Jan  6 14:00 ../
-rw-r--r--1 brian  staff  6148 Jan  7 17:15 .DS_Store
-rw-r--r--1 brian  staff  8026 Jan  6 13:44 add_place.html
-rw-r--r--1 brian  staff   329 Jan  7 16:23 app.yaml
-rw-r--r--1 brian  staff  1379 Dec 23 18:00 choose_place.html
-rw-r--r--1 brian  staff   534 Jan  7 14:02 index.yaml
-rw-r--r--1 brian  staff  9290 Jan  6 13:31 map.html
-rw-r--r--1 brian  staff  5782 Jan  7 16:26 maps.py
drwxr-xr-x5 brian  staff   170 Dec  4 08:16 static/

Could these problems be related?

http://carpoolfinder.appspot.com/

Thanks,

Brian in Atlanta
--~--~-~--~~~---~--~~
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] App Gallery Submission Questions

2009-01-07 Thread deji.omis...@gmail.com

How long does it take from when you submit your app to the gallery to
the time it shows up?

Also is there a manual app review and approval process by Goolge?

Thanks for your help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-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: DateTime Ordering with None?

2009-01-07 Thread Devel63

Thanks for the ideas.  To avoid making 2 queries, I ended up
translating None to MAXYEAR when putting objects into the DB, and
untranslating on the way out.

On Jan 7, 11:14 am, Jeff S  wrote:
> As you've probably noticed, entities with None in the ordered property
> normally appear first when sorting is ascending (the default). To put
> these entities at the end of the result set, you could set this
> property to a high value which would ensure it appears at the end. You
> could set this up as something like UNSET_DATE =
> some_date_in_the_very_distant_future :)
>
> If you want to stick with None, you may need to create two queries,
> one which excludes entities with property set to None and another
> which looks only at entities with the property set to None. If you
> don't have enough results from the first query (no None) to fill the
> page, then you would query for additional entities which do have None.
> These are just a couple of ideas.
>
> Happy coding,
>
> Jeff
>
> On Jan 5, 3:35 pm, Devel63  wrote:
>
> > Is there a standard or easy way to order query results where a "None"
> > value comes last in an ascending index?
>
> > Use case is for a "due_date" property.  Results should be ordered by
> > due date in from earliest to latest, with "None"s coming last.  Post-
> > processing won't work because I'm only fetching a few records, so
> > won't have them all.
>
>
--~--~-~--~~~---~--~~
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: Yahoo Domain redirect

2009-01-07 Thread Pankaj Vishwani

I already tried all that but yahoo doesn't give any such thing for
redirecting...
can google give some other way to do it like IPs???


On Jan 6, 4:37 pm, Marzia Niccolai  wrote:
> Hi,
>
> A Record configurations for naked domains will no longer work with App
> Engine.  Please 
> see:http://code.google.com/appengine/kb/commontasks.html#naked_domain
>
> You will need to configure a 302 redirect from the naked domain with your
> domain registrar to the 'www' domain.
>
> -Marzia
>
> On Tue, Jan 6, 2009 at 1:45 PM, Pankaj Vishwani 
> wrote:
>
>
>
> > Hi,
>
> > I saw a lot of posts about redirecting from domain.com towww.domain.com
> > but unfortunately none of them were helpful in my case.
> > So here's what is happening:
>
> > I bought a domain from yahoo and there I added
> > * A Record 'hullabu.com' to destination '216.239.38.21' for
> > hullabu.com rediecting towww.hullabu.com
> > * CNAME Record '*.hullabu.com' to destination 'ghs.google.com' for
> > rediectingwww.hullabu.comto app engine.
>
> > Now,www.hullabu.comworks fine but not hullabu.com.
>
> > Tried Yahoo support and they say both hullabu.com andwww.hullabu.com
> > go to same IP, so it's google app engine's problem.
>
> > Any help is greatly appreciated.
>
> > Regards,
> > Pankaj Vishwani
--~--~-~--~~~---~--~~
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: Django Templates Usage

2009-01-07 Thread MajorProgamming

Got ya. Didn't realize that would solve the problem. Thanks for your
help!

On Jan 7, 3:42 pm, "Rodrigo Moraes"  wrote:
> On Wed, Jan 7, 2009 at 6:25 PM, MajorProgamming wrote:
> > This all worked well when my pages looked like "http://example.com/
> > apage", where the relative pointers to the images "directory" would
> > resolve well. However, I am now creating pages that look like "http://
> > example.com/adir/apage", and my relative URLs are breaking! The
> > problem is that I can't just change the base.html template, because
> > the my "http://example.com/apage"; URLs would break. Is there any way
> > to handle this using django?
>
> > (Also, I would rather not use absolute URLs)
>
> Not sure if i understood the problem, but I'm guessing you should just
> standardize to use relative url's based on the root, in other words,
> always start relative url's with / and provide the full path.
>
> This will avoid lots of headaches.
>
> -- rodrigo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-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: Django Templates Usage

2009-01-07 Thread Rodrigo Moraes

On Wed, Jan 7, 2009 at 6:25 PM, MajorProgamming wrote:
> This all worked well when my pages looked like "http://example.com/
> apage", where the relative pointers to the images "directory" would
> resolve well. However, I am now creating pages that look like "http://
> example.com/adir/apage", and my relative URLs are breaking! The
> problem is that I can't just change the base.html template, because
> the my "http://example.com/apage"; URLs would break. Is there any way
> to handle this using django?
>
> (Also, I would rather not use absolute URLs)

Not sure if i understood the problem, but I'm guessing you should just
standardize to use relative url's based on the root, in other words,
always start relative url's with / and provide the full path.

This will avoid lots of headaches.

-- rodrigo

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-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] Django Templates Usage

2009-01-07 Thread MajorProgamming

I currently have a complex html template structure which extends from
a "base.html" main template. Part of the "base.html" template includes
images URLs that point to images/[xyz].jpg (which is a static file
handler).

This all worked well when my pages looked like "http://example.com/
apage", where the relative pointers to the images "directory" would
resolve well. However, I am now creating pages that look like "http://
example.com/adir/apage", and my relative URLs are breaking! The
problem is that I can't just change the base.html template, because
the my "http://example.com/apage"; URLs would break. Is there any way
to handle this using django?

(Also, I would rather not use absolute URLs)

Thanks,
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-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] Reminder: App Engine chat time, tonight 7-8PM PST

2009-01-07 Thread Marzia Niccolai
Details about this and future chat times can be found here:
http://groups.google.com/group/google-appengine/browse_thread/thread/8ea64f610b5ed428

--~--~-~--~~~---~--~~
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: Zip Importer High CPU every request

2009-01-07 Thread Rodrigo Moraes

On Wed, Jan 7, 2009 at 2:16 PM, Anthony wrote:
> Is it normal for the zipimporter to take 500-1000ms every request -
> should it be caching internally?
>
> I'm importing like so:
>
> # templates.py
> sys.path.insert(0, 'lib/jinja2.zip')
> from jinja2 import Environment, FunctionLoader , TemplateNotFound ,
> MemcachedBytecodeCache
>
> Will it still be caching if im not importing the zip dircetly in the
> main.py?

Not an answer to your question (which I'd like to know :), just a
warning: you won't be able to use MemcachedBytecodeCache from Jinja2,
because bytecode usage is not allowed in App Engine.

The example using MemcachedBytecodeCache in the App Engine Cookbook
only works in the dev server, not in production. :-/

Apart from this, Jinja2 implementation is very smooth. :)

-- rodrigo

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-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: 2 reference to same model causing problem

2009-01-07 Thread Rodrigo Moraes

On Wed, Jan 7, 2009 at 1:54 PM, james...@163.com wrote:
> class webdir(db.model):
>  name = db.StringProperty()
>
> class webcontain(db.model):
>  dirA = db.ReferenceProperty(webdir)
>  dirB = db.ReferenceProperty(webdir)

when you have two references to entities of the same kind, you need to
define collection_name, or the collection names will collide. this
should fix your problem:

class webcontain(db.model):
  dirA = db.ReferenceProperty(webdir)
  dirB = db.ReferenceProperty(webdir, collection_name="something_else")

-- rodrigo

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-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: Alternate way to receive verification code than SMS?

2009-01-07 Thread pratyk

Hi, I am from Nepal. I tried every method you guys discussed here.
I get error in mobile no. I have mobile but cannot get sms.

Pratyk

On Nov 21 2008, 10:46 pm, Marzia Niccolai  wrote:
> Hi Robert,
>
> I can help you get your account manually activated, I will follow up
> offline.  But what is the browser/OS you are using when you get the error
> you described?  I have not been able to get that message when testing on my
> Mac.
>
> -Marzia
>
> On Fri, Nov 21, 2008 at 5:00 AM, roschler  wrote:
>
> > On Nov 20, 2:17 pm, Marzia Niccolai  wrote:
> > > Hi Robert,
>
> > > Please fill out this form:
> >http://appengine.google.com/waitlist/sms_issues
>
> > > -Marzia
>
> > Hello Marzia,
>
> > I just tried that form.  After I filled it out and then hit submit, I
> > got a response saying "there were errors".  Below that message was a
> > link with the anchor text "Comments" that went to this URL:
>
> >http://appengine.google.com/waitlist/sms_issues.do#comments
>
> > Clicking on the link does nothing.  I have no idea now if the form
> > with my message was actually submitted.  I tried this a few times and
> > always got that error.
>
> > Thanks,
> > Robert

--~--~-~--~~~---~--~~
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: DateTime Ordering with None?

2009-01-07 Thread Jeff S

As you've probably noticed, entities with None in the ordered property
normally appear first when sorting is ascending (the default). To put
these entities at the end of the result set, you could set this
property to a high value which would ensure it appears at the end. You
could set this up as something like UNSET_DATE =
some_date_in_the_very_distant_future :)

If you want to stick with None, you may need to create two queries,
one which excludes entities with property set to None and another
which looks only at entities with the property set to None. If you
don't have enough results from the first query (no None) to fill the
page, then you would query for additional entities which do have None.
These are just a couple of ideas.

Happy coding,

Jeff

On Jan 5, 3:35 pm, Devel63  wrote:
> Is there a standard or easy way to order query results where a "None"
> value comes last in an ascending index?
>
> Use case is for a "due_date" property.  Results should be ordered by
> due date in from earliest to latest, with "None"s coming last.  Post-
> processing won't work because I'm only fetching a few records, so
> won't have them all.
--~--~-~--~~~---~--~~
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: are numeric ids of deleted entities reused?

2009-01-07 Thread Robin B

Ryan,

These 2 statements appear to contradict:

"...in practice, every id-based root entity has an id
that's across all other root entities..."

"...bare ids or key names are generally only
interesting or useful when the rest of the path is held constant,
including the kind of the entity in question. that's the only way to
guarantee the key names or ids will be unique"

The first statement says, in practice, the id alone is unique across
kinds for root-entities, the second statement says the kind+id is
needed for uniqueness across root-entities.  Could you please clarify?

When you say 'in practice' does that mean, in the current
implementation, all root entities regardless of kind each will have a
unique id, but that it is not guaranteed in the future?

Robin



On Jan 5, 7:23 pm, Andy Freeman  wrote:
> I think that this "idcounts for an entity-group namespace live
> forever" property should be documented because I suspect that many
> uses of entity-groups will involve single-use names.
>
> The only reason that I'm not running into it is that I prematurely
> optimized to a single db.put, which forced me to use explicit key_name
> s.  If I'd gone with multiple db.put s in a transaction, which would
> have been somewhat simpler, I'd have let the system assign ids within
> my "use once" entity-groups.
>
> Of course, someone will want a way to purge these counts.
>
> On Jan 4, 11:37 pm, ryan  wrote:
>
> > On Dec 31 2008, 6:49 am, Andy Freeman  wrote:
> > > If I never allocate ids within a given entity-group namespace, does
> > > anything for that namespace live forever (after all entities in said
> > > group have been deleted)?
> > ...
> > > The total number of such groups that have entities at any given time
> > > is fairly modest, but the total number that has existed over the life
> > > of the application can be fairly large.  Thus, if any information
> > > about these groups "live[s] forever", I may have a problem.
>
> > ah, i understand the motivation now. if you never create anyid-based
> > entities, then no, there's nothing in the entity group that lives
> > forever.
--~--~-~--~~~---~--~~
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: URL Fetch API --- Does Google log IP addresses to prevent abuses?

2009-01-07 Thread KillIEbrowser

...??

The other side of the question is:
Can I don't make any log, delegating the checks to the GAE
administrators Team?

What is the responsability of a free developer about its free
application?

(Thanks for the patience)


On Jan 6, 2:15 am, KillIEbrowser  wrote:
> Hi,
> the log will be deleted when I will update a new version of my
> application.
> - Can I see the old logs?
> - Can I export a log?
>
> I'm thinking to make a Table log...
>
> On Jan 5, 7:38 pm, Marzia Niccolai  wrote:
>
> > Hi,
>
> > The ip address of requests are also available in the logs.
>
> > -Marzia
>
> > On Sat, Jan 3, 2009 at 1:06 PM, Barry Hunter 
> > wrote:
>
> > > Do it yourself:
> > >http://code.google.com/appengine/docs/python/logging.html
>
> > > 2009/1/3 KillIEbrowser :
>
> > > > Now I'm building a new free web App using HTTPS:
>
> > > > "Private URL Fetching"
>
> > > > and I think is useful to see a "URL Fetch Log" into the App Engine
> > > > Admin.
> > > > Can you make this feature, please?
>
> > > > On Dec 30 2008, 9:32 pm, "Barry Hunter" 
> > > > wrote:
> > > >> IP addresses of what?
>
> > > >> 2008/12/30 KillIEbrowser :
>
> > > >> > Hi All,
> > > >> > Does Google log IP addresses to prevent abuses?
>
> > > >> --
> > > >> Barry
>
> > > >> -www.nearby.org.uk-www.geograph.org.uk-
>
> > > --
> > > 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] 2 reference to same model causing problem

2009-01-07 Thread james...@163.com

class webdir(db.model):
  name = db.StringProperty()

class webcontain(db.model):
  dirA = db.ReferenceProperty(webdir)
  dirB = db.ReferenceProperty(webdir)

When running, a duplex property error for model "webdir" will pop out.
Basicly I blelive there is a bug in the db library when try to define
a property "webcontain_set" for model "webdir". Looks like it did not
consider there maybe 2 reference in "webcontain" model to the same
"webdir" model

That is blocking my application development.Wish it could be fixed
soon.
Parts of the error:

   File "E:\Program Files\Google\google_appengine\google\appengine\ext
\db\__init_
_.py", line 296, in __init__
attr.__property_config__(cls, attr_name)
  File "E:\Program Files\Google\google_appengine\google\appengine\ext
\db\__init_
_.py", line 2232, in __property_config__
self.collection_name))
DuplicatePropertyError: Class WebUsers already has property webdir_set

--~--~-~--~~~---~--~~
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: Getting back the previous version files

2009-01-07 Thread greg whittier
see http://knol.google.com/k/marce/app-engine-community-faqs/vkzeph4si12v/1#

On Wed, Jan 7, 2009 at 5:26 AM, Madhusudan.C.S wrote:

>
> When working with my local copy of the application, some problem
> caused many files of the app to be deleted. Is it possible to obtain
> the files of the last version running on App Engine. Otherwise I am
> lost. I have to do all the work again. Kindly help me.
>
> -- Thanks and regards,
>   Madhusudan.C.S
>
>

--~--~-~--~~~---~--~~
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] Zip Importer High CPU every request

2009-01-07 Thread Anthony

Hi,

Is it normal for the zipimporter to take 500-1000ms every request -
should it be caching internally?

I'm importing like so:

# templates.py
sys.path.insert(0, 'lib/jinja2.zip')
from jinja2 import Environment, FunctionLoader , TemplateNotFound ,
MemcachedBytecodeCache

# main.py
import templates

Will it still be caching if im not importing the zip dircetly in the
main.py?

Anthony

--~--~-~--~~~---~--~~
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 Twitter API Wrapper problem w/ urlfetch

2009-01-07 Thread ehmo

try something like this

  def _AddAuthorizationHeader(self, username, password):
if username and password:
  basic_auth = base64.encodestring('%s:%s' % (username, password))
[:-1]
  self.request_headers['Authorization'] = 'Basic %s' % basic_auth

On Nov 23 2008, 7:31 pm, Amir  Michail  wrote:
> On Nov 22, 5:35 pm, Amir  Michail  wrote:
>
> > Hi,
>
> > I'm stuck on the authorization part:
>
> Update:  both the local and deployed versions result in an
> authentication failure.
>
> Any hints on how I could debug this?
>
> Amir
>
>
>
> >       if self._username and self._password:
> >           self._AddAuthorizationHeader(self._username, self._password)
> >       print "self._request_headers = "+`self._request_headers`
>
> >       requestBody = urllib.urlencode(self._request_headers)
> >       url_data = urlfetch.fetch(url,
> >                                 method=urlfetch.POST,
> >                                 headers={'Content-type':
> >                                          'application/x-www-form-
> > urlencoded',
> >                                          'Content-Length':
> >                                          str(len(requestBody))},
> >                                          payload=requestBody).content
>
> > This gives the following exception when a username and password are
> > supplied:
>
> > ...\src\twitter.py in NewFromJsonDict(data=u'request')
> >   547     else:
> >   548       status = None
> >   549     return User(id=data.get('id', None),
> >   550                 name=data.get('name', None),
> >   551                 screen_name=data.get('screen_name', None),
> > global User = , builtin id =  > id>, data = u'request', data.get undefined, builtin None = None, name
> > undefined, screen_name undefined, location undefined, description
> > undefined, profile_image_url undefined, url undefined, status = None
> > : 'unicode' object has no attribute
> > 'get'
>
> > Any ideas how to get this to work?
>
> > Amir

--~--~-~--~~~---~--~~
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] looking for simple searchable database help for datastore Gql

2009-01-07 Thread computero71

have .asp microsoft database http://data1.oldcomputer.com/compa/qbecomp.asp
and looking to convert this to anything but microsoft or sql to rid of
constant hack issues
need some advise or sample template for python
thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-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] [Django form] Problem with non-ascii characters in Choice field

2009-01-07 Thread vinays


Background :
Choices passed to the field contains non-ascii characterset
On submit while comparing the input value with valid values--it raises
a invalid choice error
 - this happens only when a choice with non-ascii character in choosen


My finding:
Django smart-unicodes(and encode to UTF-8) the input value before
comparing;
but "str" the valid value set ( Refer the under-scripted code )

 [code]
 google_appengine/lib/django/django/newforms/fields.py:ChoiceField

 def clean(self, value):
"""
Validates that the input is in self.choices.
"""
value = super(ChoiceField, self).clean(value)
if value in EMPTY_VALUES:
value = u''
value = smart_unicode(value)
if value == u'':
return value
valid_values = set([str(k) for k, v in self.choices])  # line
causing the trouble
if value not in valid_values:
raise ValidationError(gettext(u'Select a valid choice.
That choice is not one of the available choices.'))
return value
 [/code]

As far as I know the unicode represents the non-ascii character a one
char and str divides it in to multiple bytes and hence they do not
match; And once I change str to unicode or smart_unicode everything
works perfect.
How do I fix it on appengine -- as the code is part of appengine
source. Please suggest.

I feel others who internationalized their app must have also faced the
same issue.

--~--~-~--~~~---~--~~
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] Getting back the previous version files

2009-01-07 Thread Madhusudan.C.S

When working with my local copy of the application, some problem
caused many files of the app to be deleted. Is it possible to obtain
the files of the last version running on App Engine. Otherwise I am
lost. I have to do all the work again. Kindly help me.

-- Thanks and regards,
   Madhusudan.C.S

--~--~-~--~~~---~--~~
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] [Django form] Problem with non-ascii characters in Choice field

2009-01-07 Thread vinays


Background :
Choices passed to the field contains non-ascii characterset
On submit while comparing the input value with valid values--it raises
a invalid choice error
 - this happens only when a choice with non-ascii character in choosen


My finding:
Django smart-unicodes(and encode to UTF-8) the input value before
comparing;
but "str" the valid value set ( Refer the under-scripted code )

 [code]
 google_appengine/lib/django/django/newforms/fields.py:ChoiceField

 def clean(self, value):
"""
Validates that the input is in self.choices.
"""
value = super(ChoiceField, self).clean(value)
if value in EMPTY_VALUES:
value = u''
value = smart_unicode(value)
if value == u'':
return value
valid_values = set([str(k) for k, v in self.choices])  # line
causing the trouble
if value not in valid_values:
raise ValidationError(gettext(u'Select a valid choice.
That choice is not one of the available choices.'))
return value
 [/code]

As far as I know the unicode represents the non-ascii character a one
char and str divides it in to multiple bytes and hence they do not
match; And once I change str to unicode or smart_unicode everything
works perfect.
How do I fix it on appengine -- as the code is part of appengine
source. Please suggest.

I feel others who internationalized their app must have also faced the
same issue.

--~--~-~--~~~---~--~~
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: Submitting App to the Gallery

2009-01-07 Thread tianxin...@gmail.com

almost immediately, as far as I have experienced. You need to add your
application to the gallery manually.

On Jan 6, 5:49 pm, "deji.omis...@gmail.com" 
wrote:
> Anyone knows how long this takes to show up in the gallery?   Thanks.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-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: 1 application, multiple datastores

2009-01-07 Thread bowman.jos...@gmail.com

Guys, I think you need to take a step back and look at this from a
higher level.

Appengine supplies you with an instance in a cloud that includes a
customized python set, and a BigTable backend. It does not support
multiple BigTable backends and design wise I doubt it ever will. There
comes a time when you have to look at your application and determine
what is the right environment for it to be built in to meet your
business requirements. In this case, it does not sound like appengine
in and of itself is going to meet those requirements.

Generally business requirements dictate the speed at which your
product must become available for use. Google has a published roadmap
for appengine, and support for multiple BigTable instances per
application is not on it, and they have not even implied it's
something they have any interest in implementing.

So, at this point, I'd suggest you look at other alternatives in order
to meet your business requirements.

 - Separate it by table within BigTable as has been suggested.
 - Pull everything back inhouse and build server(s) capable of
supporting your application with the requirements you have. Such as
with MySQL running a different database for each of your users.
 - Examine other cloud db storage options to see if they can meet your
requirements, such as the offering from Amazon. Though, while you
could use appengine combined with that solution, I would question how
quick you'd hit the urlfetch quota limits.
 - Examine all the offerings at Amazon and other cloud providers such
as Aptana to see if any of them are a better fit for your
requirements.

Sometimes you have to stop and realize that business/security
requirements will dictate the technology you need to use, rather than
personal preference/comfort with technology you know. Over a decade of
preaching Linux while supporting Exchange and Citrix on Windows has
pounded this into my head.
--~--~-~--~~~---~--~~
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: 1 application, multiple datastores

2009-01-07 Thread hawkett

> Huh?  How can you make a "wrong call" that doesn't have any
> parameters?
>
> Here's the application code:
>  {operations on application-wide datastore}
>  change_to_application_userstore() # note - no parameters
>  {operations on user-specific datastore}
>  {return to user}

Ok - I understand (maybe), I don't think it matches what 106 is asking
for though - none of these data stores appear to be accessible between
applications - they all appear to be tied to a single application - or
are you saying the user specific data store is portable between
applications? i.e. my application can access it via db APIs, and so
can yours, provided the user is logged in?

If you don't intend portability of the user store, I agree that the
risk is different, and much lower, because the partitioning mechanism
does at least exist, and the chance of a bug is *much* lower because
the actual db query is likely to be different.  When we were talking
about cross app queries, the db schemas in each data store were liekly
to be the same, which made the risk of data exposure very high.  In
the implementation you now describe, the user data store and the
application data store probably have substantially different schemas.
The datastores with the same schema (user) is partitioned.  I can see
value in this approach, although it does add complexity.

Essentially you are recommending strict data partitioning (aka 945)
plus a shared application datastore?

If you intend for the user data store to be portable between apps,
then I have problems with that approach.  I think it should use a
specific data API, and not db level access.  There's too much
unwarranted trust involved between the apps - i.e. you have to trust
that I read/write the db properly, as does everyone else - I imagine
over time such a shared database would get very 'dirty'.  If you use
an API then it can enforce structure and data integrity through
validation.  The portable user datastore (if that is what you are
suggesting) is a good idea, but I think it is something that google
has already implemented to some degree with their social data API -
i.e. a bunch of data attached to your identity.  I guess it depends on
your implementation how useful this is.

To me, the portability of data and data partitioning should be treated
separately.

The other thing to note is that in order to map users to data
partitions, you need one of two things -
1.  An API that your application can use to do so - accidently map the
wrong user to the wrong data store = data exposure problem.
2.  Some form of platform supplied user provisioing - aka 945

Which of the above are you proposing?

On Jan 6, 2:46 pm, Andy Freeman  wrote:
> > I guess one of us will be surprised then :) - I would be surprised if
> > gmail, sites, blogger, picassa, orkut etc. all operated in an open
> > space and avoided data exposure through code implemented in each of
> > those applications.
>
> If the separation is by name and ordinary "file" access control, the
> "code implemented" consists of the name of the datastore for the
> application plus some application configuration that has to happen
> regardless.  I'm pretty sure that google thinks that their folks can
> open an application-specific datastore name reliably.  And, if they
> fail, they're talking to a datastore with the wrong structure.
>
> Or, are you thinking that those applications use a different datastore
> per external user?  (If "separate datastore per user" is the usage
> pattern, bigtable requires far less concurrency support than the
> report mentions.)
>
> > - and does not give DB level access to it.  So I think just by
> > observing google's current architecture, it makes sense that they
> > wouldn't break with that tradition at the application level for GAE.
> > And not just because its tradition, but because it is rooted in sound
> > architectural principles
>
> What "db level access" are you talking about?  The result of that open
> call is used by every other bigtable operation, including all db
> operations performed at the datastore.  Unless GAE works differently,
> the runtime has access to that result.
>
> > > Not so fast.  Who said anything about application visible tokens?  In
> > > fact, it could be just "change_to_application_userstore", where a
> > > userstore is an ordinary GAE datastore.  This could easily be written
> > > so it doesn't take any parameters from application code, which makes
> > > it just as secure as an "open datastore" call done at process startup.
> > And regardless, you can easily introduce the cited bug based on your
> > clarification.  Simply make the wrong call to 'change_to_datastore',
> > and you still have the exposure problem.  When your code is
> > responsible for selecting the datastore, you can introduce the bug.
> > This is fairly obvious.
>
> Huh?  How can you make a "wrong call" that doesn't have any
> parameters?
>
> Here's the application code:
>      {operations on application-

[google-appengine] Re: Help! Locked out of my application.

2009-01-07 Thread meepmeepmeepena...@gmail.com


On Jan 7, 12:35 pm, "David Wilson"  wrote:
> Hi there,
>
> The main application I've been working on has just disappeared from my
> appspot.com dashboard. This may be related to deleting the Gmail
> service from primary Google account. Can someone please fix? I'm smack
> bang in the middle of this project! :)
>
> If you can't figure out which application it is (should have been tied
> to this e-mail address) can someone please mail me offlist?

Someone on IRC suggested logging in via appspot.com/a/mydomain, which
worked since I'd previously added some mydomain accounts as
application administrators so I could send mail from their addresses.
My primary e-mail address was still shown as one of the
administrators. Deleting and re-adding it caused the application to
show up again under my normal account.


>
> Thanks,
>
> David.
>
> --
> It is better to be wrong than to be vague.
>   — Freeman Dyson
--~--~-~--~~~---~--~~
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] Help! Locked out of my application.

2009-01-07 Thread David Wilson

Hi there,

The main application I've been working on has just disappeared from my
appspot.com dashboard. This may be related to deleting the Gmail
service from primary Google account. Can someone please fix? I'm smack
bang in the middle of this project! :)

If you can't figure out which application it is (should have been tied
to this e-mail address) can someone please mail me offlist?

Thanks,


David.

-- 
It is better to be wrong than to be vague.
  — Freeman Dyson

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---