[google-appengine] Re: Since 1.1.5 import cgi/urllib/traceback/etc fails (on MacOS)

2008-10-09 Thread Greg

Is there anywhere we can download 1.1.4 of the helper in the mean
time? It'd be nice to get back to coding again.

Greg

On Oct 8, 10:49 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Thanks.  Did you also have the output of the dev_appserver logs console when
> this happens?  And what is the output of 'which python'?
>
> Your help is really appreciated.
>
> -Marzia
>
> On Wed, Oct 8, 2008 at 1:14 PM, Greg <[EMAIL PROTECTED]> wrote:
>
> > Running dev_appserver.py from the command line gives me the same "No
> > module named cgi" error.
>
> > The result of "defaults read ~/Library/Preferences/
> > com.google.GoogleAppEngineLauncher" :
>
> > =
> > {
> >    EditDirectory = 1;
> >    Editor = "";
> >    GMClientAuthWindowSignInName = "[EMAIL PROTECTED]";
> >    NSNavLastCurrentDirectory = "~/Documents/workspace";
> >    NSNavLastRootDirectory = "~";
> >    NSNavPanelExpandedSizeForOpenMode = "{518, 400}";
> >    NSNavSidebarWidth = 120;
> >    "NSTableView Columns NSNavOutlineColumnSettings.v1" =     (
> >        <040b7374 7265616d 74797065 6481e803 84014084 8484084e
> > 53537472 696e6701 8484084e 534f626a 65637400 8584012b 1c4e534e
> > 61764469 73706c61 794e616d 6546696c 6550726f 70657274 7986>,
> >        225,
> >        <040b7374 7265616d 74797065 6481e803 84014084 8484084e
> > 53537472 696e6701 8484084e 534f626a 65637400 8584012b 184e534e
> > 61764d6f 64446174 6546696c 6550726f 70657274 7986>,
> >        145
> >    );
> >    "NSTableView Hidden Columns NSNavOutlineColumnSettings.v1" =     (
> >    );
> >    "NSTableView Sort Ordering NSNavOutlineColumnSettings.v1" =     (
> >        <040b7374 7265616d 74797065 6481e803 84014084 8484084e
> > 53537472 696e6701 8484084e 534f626a 65637400 8584012b 184e534e
> > 61764d6f 64446174 6546696c 6550726f 70657274 7986>,
> >        0
> >    );
> >    "NSToolbar Configuration DocTB" =     {
> >        "TB Display Mode" = 1;
> >        "TB Icon Size Mode" = 1;
> >        "TB Is Shown" = 1;
> >        "TB Item Identifiers" =         (
> >            Run,
> >            Stop,
> >            Browse,
> >            Logs,
> >            "SDK Console",
> >            NSToolbarSeparatorItem,
> >            Edit,
> >            NSToolbarFlexibleSpaceItem,
> >            Deploy,
> >            Dashboard
> >        );
> >        "TB Size Mode" = 1;
> >        "TB Visibility Priority Values" =         {
> >        };
> >    };
> > }
> > =
>
> > "os.path.exists(os.path.join(os.path.dirname(os.__file__), 'cgi.py'))"
> > gives me a value of True.
>
> > greg
>
> > On Oct 8, 9:06 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> > > Yet more troubleshooting requests :)
>
> > > This may be more specific than just 1.1.5 + 10.5.5 as we have cases where
> > > this installation is working.
>
> > > If you could send the results of running this command on the command
> > line:
> > > defaults read ~/Library/Preferences/com.google.GoogleAppEngineLauncher
>
> > > Also, the entire output in the Console window, such as:
> > > *** Running dev_appserver with the following flags:
> > >    --admin_console_server= --port=8080 --datastore_path=/Users/name/q
> > > --debug
> > > Python command: /usr/bin/python
>
> > > And finally when you run python from the shell, what is the output of:
> > > import os
> > > os.path.exists(os.path.join(os.path.dirname(os.__file__), 'cgi.py'))
>
> > > Thanks,
> > > Marzia
>
> > > On Wed, Oct 8, 2008 at 11:30 AM, Marzia Niccolai <[EMAIL PROTECTED]>
> > wrote:
> > > > Hi,
>
> > > > Another question for those experiencing the issue - what is the output
> > when
> > > > you type 'python' in to your command line in the Mac shell?
>
> > > > Thanks,
> > > > Marzia
>
> > > > On Wed, Oct 8, 2008 at 11:19 AM, Marzia Niccolai <[EMAIL PROTECTED]>
> > wrote:
>
> > > >> Hi,
>
> > > >> I couldn't find this filed so I went ahead:
> > > >>http://code.google.com/p/googleappengine/issues/detail?id=778
>
> > > >> The scope so far seems to be limited to 10.5.5, and we'll keep you
> > updated
> > > >> on the progress.  I wonder if you can still run the SDK by making the
> > > >> symlinks and running from the command line?
>
> > > >> Thanks for the troubleshooting help.
>
> > > >> -Marzia
>
> > > >> On Wed, Oct 8, 2008 at 10:39 AM, Greg <[EMAIL PROTECTED]> wrote:
>
> > > >>> I'm having the same error (on OS 10.5.5 and Launcher 1.1.5). I tried
> > > >>> explicit setting my Python path. It didn't fix the problem
>
> > > >>> Greg
>
> > > >>> On Oct 8, 5:59 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> > > >>> > Hi,
>
> > > >>> > Thanks.  Right now it seems that this is an issue specific to
> > 10.5.5 +
> > > >>> the
> > > >>> > App Engine Launcher.  Since I don't have access to a 10.5.5
> > > >>> installation of
> > > >>> > Mac OS, I'd like to ask you to try one more step.
>
> > > >>> > Would it be possible for you to explicitly set the Python Path in
> > the
> > > >>> > Launcher to your python installation?  Or if someone else has
> > 10.5.5 +
> > > >>> the
> >

[google-appengine] Re: datastore transaction question

2008-10-09 Thread Josh Heitzman

In this scenario "Update both the User and the Thing using a single
db.put([thing, user])" the thing and the user won't be updated in the
same transaction, so the put of the thing could succeed while the put
of the user failed.

On Oct 9, 9:29 pm, johnP <[EMAIL PROTECTED]> wrote:
> Why not simply have the reference in the Thing, pointing to the
> User?   Then use the idiom: x = user.thing_set.fetch(1000) to get the
> User's Things?  Update both the User and the Thing using a single
> db.put([thing, user])
>
> johnP
>
> On Oct 9, 2:19 pm, Josh Heitzman <[EMAIL PROTECTED]> wrote:
>
> > I ran into a similar problem with the strategy game I'm working on.
> > The game world is divided up into areas and each area can have a more
> > then one player's troops in it at a time.  I've modeled these with
> > three entities, player, area, and areaplayer.  When a player has his
> > troops do something in an area it can potentially affect the area
> > state, the associated areaplayer states, and the associated player
> > states.  If all of those things were in the same entity group that
> > would mean the entire game state would be in the same entity group
> > resulting in massive contention.  Instead each player and their home
> > area is an entity group and each non-home area is an entity group.
> > The areaplayer is in the entity group with the area, which is the same
> > as the player for the case of the home area.
>
> > So when a player orders troops to do something in their home area when
> > no other player has troops there, its no problem as the player, the
> > area, and the sole areaplayer are all in the same entity group so a
> > GAE DS transaction can be used.  However, orders given to troops away
> > from home or at home other players have troops there have to make
> > updates to multiple entity groups.
>
> > I'm dealing with this by via a reliable multi-entity group update
> > mechanism (no rollback, but will continue processing the update across
> > requests and server process instances) that I hope can be enhance into
> > true multi-entity group transactions if that can actually be done will
> > still staying under quotas.  I'm getting close to deploying my
> > prototype with the reliable multi-entity group update mechanism, so I
> > can find out how I'm doing on quotas as it is.  Then I'll know if
> > there is possibly create a cross-entity group transaction mechanism.
>
> > I really think Google needs to provide cross-entity group transactions
> > though, as they'll be able to do it in native code, and thus faster
> > then we'll be able to do it in Python on at the app level.
>
> > On Oct 9, 1:20 pm, David <[EMAIL PROTECTED]> wrote:
>
> > > thanks for the replies.
>
> > > as i mentioned in the question, the Thing will become a product and
> > > could be sold to another user at a later date. A list of keys is also
> > > what ive been using, as a referenece property in the Thing causes the
> > > blobs to pulled from the data store (they can be quite large, well
> > > less then a mb aye ;) ) when i want to list the users current things
> > > (by title).
>
> > > i guess another way of looking at it is really the user is creating a
> > > new product. and then is trying to buy it. if the product is no longer
> > > wanted by anyone it can be deleted.
>
> > > i was trying to work out a was to safly trasact on the money so the
> > > Thing never touches the datastore if there isnt enough cash. But this
> > > is a unuaul case, things will be sold between users more then created.
>
> > > any thoughts? its all a learning process for me.
>
> > > On Oct 9, 8:49 pm, Bill <[EMAIL PROTECTED]> wrote:
>
> > > > > Have you seen: "Entity Groups, Ancestors and Paths" 
> > > > > ?http://code.google.com/appengine/docs/datastore/keysandentitygroups.html
>
> > > > Good point. If a Thing will never be used for another User (e.g., it's
> > > > not a product), you could make the Thing part of a User's entity group.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] database

2008-10-09 Thread amshuhu

HI GAE friends

How can we add/delete a field in data, in my
app their are 3 fields eg:
1.name
2.phoneno
3.email
  I need to add address field instead of phoneno
field and also insert another field as contact ,i dont know how to add/
delete so please guide me

Thanks

jaikumar.cn

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] a way to determine image size would be greatly appreciated

2008-10-09 Thread cz

If there was just one thing to add to the Image api, a way to
determine the image size would be highest on my list.

It just seems so easy to add... would it not be possible to stuff a
couple of integers (height,width) along with the image data into the
image service response ProtocolMessage? Maybe it's not so easy, I
don't really know.

But please, please, could someone at Google spend a couple of minutes
to look into it?

thanks,
- Claude
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: datastore transaction question

2008-10-09 Thread johnP

Why not simply have the reference in the Thing, pointing to the
User?   Then use the idiom: x = user.thing_set.fetch(1000) to get the
User's Things?  Update both the User and the Thing using a single
db.put([thing, user])

johnP


On Oct 9, 2:19 pm, Josh Heitzman <[EMAIL PROTECTED]> wrote:
> I ran into a similar problem with the strategy game I'm working on.
> The game world is divided up into areas and each area can have a more
> then one player's troops in it at a time.  I've modeled these with
> three entities, player, area, and areaplayer.  When a player has his
> troops do something in an area it can potentially affect the area
> state, the associated areaplayer states, and the associated player
> states.  If all of those things were in the same entity group that
> would mean the entire game state would be in the same entity group
> resulting in massive contention.  Instead each player and their home
> area is an entity group and each non-home area is an entity group.
> The areaplayer is in the entity group with the area, which is the same
> as the player for the case of the home area.
>
> So when a player orders troops to do something in their home area when
> no other player has troops there, its no problem as the player, the
> area, and the sole areaplayer are all in the same entity group so a
> GAE DS transaction can be used.  However, orders given to troops away
> from home or at home other players have troops there have to make
> updates to multiple entity groups.
>
> I'm dealing with this by via a reliable multi-entity group update
> mechanism (no rollback, but will continue processing the update across
> requests and server process instances) that I hope can be enhance into
> true multi-entity group transactions if that can actually be done will
> still staying under quotas.  I'm getting close to deploying my
> prototype with the reliable multi-entity group update mechanism, so I
> can find out how I'm doing on quotas as it is.  Then I'll know if
> there is possibly create a cross-entity group transaction mechanism.
>
> I really think Google needs to provide cross-entity group transactions
> though, as they'll be able to do it in native code, and thus faster
> then we'll be able to do it in Python on at the app level.
>
> On Oct 9, 1:20 pm, David <[EMAIL PROTECTED]> wrote:
>
> > thanks for the replies.
>
> > as i mentioned in the question, the Thing will become a product and
> > could be sold to another user at a later date. A list of keys is also
> > what ive been using, as a referenece property in the Thing causes the
> > blobs to pulled from the data store (they can be quite large, well
> > less then a mb aye ;) ) when i want to list the users current things
> > (by title).
>
> > i guess another way of looking at it is really the user is creating a
> > new product. and then is trying to buy it. if the product is no longer
> > wanted by anyone it can be deleted.
>
> > i was trying to work out a was to safly trasact on the money so the
> > Thing never touches the datastore if there isnt enough cash. But this
> > is a unuaul case, things will be sold between users more then created.
>
> > any thoughts? its all a learning process for me.
>
> > On Oct 9, 8:49 pm, Bill <[EMAIL PROTECTED]> wrote:
>
> > > > Have you seen: "Entity Groups, Ancestors and Paths" 
> > > > ?http://code.google.com/appengine/docs/datastore/keysandentitygroups.html
>
> > > Good point. If a Thing will never be used for another User (e.g., it's
> > > not a product), you could make the Thing part of a User's entity group.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: webapp template inheritance problem

2008-10-09 Thread MHblue

After talking to some people on #django it seems that with Django,
template searches always begin with the template_dirs, which would
include /templates/ and further, relative template paths do not work.

However, for me on GAE,  {% extend 'base.html' %} does not work if the
template is not in the same folder as 'base.html' -- so somehow the
template-searching is not working as it does in Django.

I can't find any documentation or information on this. Does anyone
know how I can specify / look at how GAE's webapp/templating system
works? How do I set the equivalent of TEMPLATE_DIRS given that I am
not using Django?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: webapp template inheritance problem

2008-10-09 Thread MHblue

OK I took the "try... except" out to see errors.

Here's what's happening.

My folder / template structure:
/templates/base.html
/templates/section.html   <-- inherits from base.html   {% extends
"base.html" %}
/templates/section/item.html  <-- inherits from section.html  {%
extends "../section.html" }%

item.html "finds" section.html just fine.

But section.html can't find base.html unless I change it to {% extends
"../base.html" %} ... despite the fact that it is located in the same
directory.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] page not refreshing properly

2008-10-09 Thread ae

I have a Sign Out link that signs somebody out and redirects them back
to where they were (same url but with slightly different content)...
but the page doesn't seem to refresh properly all the time.  What's
the best way to solve this?  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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Setting up your dev environment

2008-10-09 Thread Angel

Blog post for setting up a development environment. I tried to be OS
neutral and tried to minimize link-outs for more info, so a noob
does'nt have to go all over the place and figure how the pieces fit
together.

http://appmecha.wordpress.com/2008/10/09/gae-setup/

Comments welcome! -angel
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: unable to add 'www' subdomain for app engine service

2008-10-09 Thread Adam Fisk

littleshoot.org.  I didn't realize it was a www issue at first, but it
definitely is.  I'm able to add multiple other subdomains no problem.

On Oct 9, 1:33 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> Hi Adam,
>
> With which domain are you experiencing this issue?
>
> -Marzia
>
> On Thu, Oct 9, 2008 at 1:27 PM, Adam Fisk <[EMAIL PROTECTED]> wrote:
>
> > I have the exact same problem.  Any solutions?  The unfortunately
> > result is *my site is completely down.*  This makes it virtually
> > impossible to port a www.* site, which would account for, well, most
> > of the sites on the Internet.
>
> > -Adam
>
> > On Oct 9, 11:13 am, ajablo <[EMAIL PROTECTED]> wrote:
> > > Hello,
>
> > > the domain in question is probud.info
> > > At the very begining it returned a 404, but it seemed like it
> > > originated from google page creator team (???)
> > > Then I configured google sites (it was google pages before I guess) in
> > > my apps profile to use 'www' prefix and it worked perfectly for sites.
> > > What I did then was to change the sites prefix from 'www' to
> > > 'temp' (both in my domain's CNAME records) just to try if maybe this
> > > time my appengine's service will work under 'www', unfortunately it
> > > didn't. Any attempt to assign it to appengine service is simply
> > > ignored without any error message.
> > > Current status is: I disabled sites completely for my domain (prefix
> > > history for sites is 'www' -> 'temp' -> disabled), when I open
> > bothwww.probud.infoandtemp.probud.info I get 'forbidden error 403' now.
> > > Assigning 'www' to my appengine service still fails.
> > > It seems like google has a big mess in there?
>
> > > Many thanks for your help,
> > > Adam
>
> > > On Oct 9, 6:57 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
>
> > > > Hi,
>
> > > > Can you please reply with the domain experiencing the issue?  Also if
> > you go
> > > > towww.yourdomain.comanditdoes not return a 404, what is shown would
> > > > indicate what service it's currently mapped to.
>
> > > > -Marzia
>
> > > > On Thu, Oct 9, 2008 at 5:31 AM, ajablo <[EMAIL PROTECTED]>
> > wrote:
>
> > > > > Hello,
> > > > > All my attempts to add 'www'subdomainto host my app as a
> > > > > AppEngine service in Google Apps fail silently. No error message. I
> > > > > can add
> > > > > any othersubdomain, like 'temp' or whatever with success. And I would
> > > > > like
> > > > > to assure that there are no other services configured to use 'www'
> > > > >subdomain.
> > > > > Many thanks for your help,
> > > > > Adam
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Problem creating new application!!!

2008-10-09 Thread DXD

Great! It has been fixed. Thank you guys a lot.

David.

On Oct 9, 4:20 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> This issue should now be fixed.
>
> -Marzia
>
> On Thu, Oct 9, 2008 at 4:10 PM, Marzia Niccolai <[EMAIL PROTECTED]> wrote:
> > Hi,
>
> > This is an issue with the Admin Console, and we hope to have it fixed
> > shortly.
>
> > -Marzia
>
> > On Thu, Oct 9, 2008 at 4:04 PM, Marzia Niccolai <[EMAIL PROTECTED]> wrote:
>
> >> Hi David,
>
> >> What is the app id you were trying to register?
>
> >> -Marzia
>
> >> On Thu, Oct 9, 2008 at 4:00 PM, DXD <[EMAIL PROTECTED]> wrote:
>
> >>> I got a problem creating a new application. The app identifier was
> >>> confirmed to be available; the app title was set to be the same as the
> >>> identifier. The authentication option was set to the default. But when
> >>> I hit "Save", it always said "Server Error
> >>> A server error has occurred"
>
> >>> And the app was not created. Any idea about what was happening?
>
> >>> Thanks,
> >>> David.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Newbie question - save geocode to the Datastore

2008-10-09 Thread Yang

Hi,

I am sorry for such newbie question...  I would appreciate any help.

I am trying to write a simple code which allows a user to place
markers on a map and save them. Those saved markers would be displayed
to everyone. There are more thing I want to do past it, but I am stuck
at saving the markers geocode to the Datastore.  I created db class,
and initialized instance of it, but since marking activity happens in
javascript, I don't know how to pass the geocode information from
javascript portion to  part of HTML code so that it could be
saved. Also, in reverse direction, I need to pass geocodes of all
markers in the map canvas to display them.  I am very new to the whole
Google App Engine thing, so any help would be much much appreciated.

Thank you,

-Yang

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: unique identifier for server process

2008-10-09 Thread yejun

Or create an empty datastore object. Its id will be globally unique.

On Oct 9, 12:30 pm, Tony Arkles <[EMAIL PROTECTED]> wrote:
> I just used a random number within an import (since imports only
> happen once per instance, it should persist for the lifetime of the
> process)
>
> On Oct 9, 12:56 am, Josh Heitzman <[EMAIL PROTECTED]> wrote:
>
> > The state of the process is not of interest, just which instance of
> > many processes it is (i.e. there is no process specific state to store
> > and query).  I've got side entities all setup so that I can reliably
> > make multi-entity group changes (i.e. processing will continue across
> > requests, even from different clients).
>
> > I'm currently just using a random number as a process instance
> > identity, to determine if a change was left hanging by the same
> > process so its write lock (custom not GAE) can be expired immediately,
> > as the processes are not threaded, rather then waiting the full
> > timeout period.  Rather then a random number I could use an entity key
> > path, but that's more time consuming to generate and then it needs to
> > periodically have a datetime field updated so the staleness of it can
> > be used determined if the entity can be deleted.
>
> > I figure GAE already got some kind of process identifier around
> > (likely an entity in the datastore) as part of the infrastructure, so
> > its just a matter of providing an API to access it (I don't care if
> > its hashed if there some concern about security, but there shouldn't
> > be since one app is never supposed to be able to get any data outside
> > its domain).
>
> > On Oct 8, 9:27 pm, pr3d4t0r <[EMAIL PROTECTED]> wrote:
>
> > > On Oct 8, 6:03 pm, Josh Heitzman <[EMAIL PROTECTED]> wrote:
>
> > > > As os.getpid is not supported by GAE, is there another API that
> > > > provides a unique (preferably across all of GAE) identifier for the
> > > > process?  I'd like to use this to identify if an incomplete update
> > > > sequence (spanning entity groups, so no it can't be done in a
> > > > transaction) was left hanging by the current process or another, as if
> > > > it was the current it can be immediately restarted, where as if it is
> > > > another, it'll have to wait a time period before continuing the
> > > > sequence.
>
> > > Because of the distributed nature of App Engine, about the only way
> > > you have of ensuring that something committed/finished to completion
> > > is to use transactions and entities.  You could create an entity group
> > > that tracks your process(es) state and updates it as various stages
> > > are completed.  Remember that there is no guarantee that your process
> > > will run on any given machine across subsequent calls.
>
> > > Cheers,
>
> > > pr3d4t0rhttp://www.istheserverup.comhttp://www.teslatestament.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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] webapp template inheritance problem

2008-10-09 Thread MHblue

Hi there,
I have a simple request handler that is supposed to take a URL and map
it to template files where/when they exist [see #1, below] and it
works *except* where I have a template inside a folder (/templates/
folder/thisone.html) that inherits from a template in its parent /
templates/ folder (/templates/base.html).

So when I navigate to myurl.com/folder/thisone.html (which starts with
{% extends 'base.html' %} or {% extends '../base.html' %}) I see the
results shown in [#2].

Navigating to myurl.com/folder/atemplate.html does work if it is not
tryiing to extend 'base.html'.

Any ideas?

Thanks,

Matt

[#1] request handler
class MainPage(webapp.RequestHandler):
  def get(self):
if self.request.path == "/":
  thistemplate = "index.html"
else:
  thistemplate = self.request.path
template_values = []
template_path = 'templates' + thistemplate
path = os.path.join(os.path.dirname(__file__), template_path)
try:
  self.response.out.write(template.render(path, template_values))
except:
  self.response.out.write('Page does not exist... sorry! 
Your path: '+str(self.request.path)+'Template path:
'+str(template_path))

[#2] results of navigating to myurl.com/folder/thisone.html

Page does not exist... sorry! path: /folder/thisone.html
Template path: templates/folder/thisone.html
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Modeling mutual references

2008-10-09 Thread yejun

You don't have to give class for ReferenceProperty.
first = db.ReferenceProperty()

On Oct 9, 6:53 pm, acuth <[EMAIL PROTECTED]> wrote:
> Is it possible to have two models reference each other? I can't get
> this to work and haven't been able to find this limitation in the
> documentation. As a simple example, consider:
>
> class Book(db.Model):
>         title = db.StringProperty()
>         first = db.ReferenceProperty(Page)
>
> class Page(db.Model):
>         text = db.TextProperty()
>         next = db.SelfReferenceProperty()
>         book = db.ReferenceProperty(Book)
>
> which generates "NameError: name 'Page' is not defined" when
> processing the Book class definition. Is this really a limitation of
> the underlying data store or is it more related to how models are
> defined in Python?
>
> I'm guessing the solution is to record the 'first page in book'
> information as a separate class, for example:
>
> class FirstPage(db.Model):
>         book = db.ReferenceProperty(Book)
>         first = db.ReferenceProperty(Page)
>
> any pointers would be gratefully received, Adrian
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: ImportError: No module named wsgiref.handlers (in hello, world application)

2008-10-09 Thread Brett Hoerner

On Oct 9, 5:23 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> I'm fairly certain it was 
> this:http://code.google.com/p/googleappengine/issues/detail?id=778
>
> We are looking in to it.

Thanks, let me know if I can provide any more information to help.

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Problem creating new application!!!

2008-10-09 Thread Marzia Niccolai
This issue should now be fixed.

-Marzia

On Thu, Oct 9, 2008 at 4:10 PM, Marzia Niccolai <[EMAIL PROTECTED]> wrote:

> Hi,
>
> This is an issue with the Admin Console, and we hope to have it fixed
> shortly.
>
> -Marzia
>
>
> On Thu, Oct 9, 2008 at 4:04 PM, Marzia Niccolai <[EMAIL PROTECTED]> wrote:
>
>> Hi David,
>>
>> What is the app id you were trying to register?
>>
>> -Marzia
>>
>>
>> On Thu, Oct 9, 2008 at 4:00 PM, DXD <[EMAIL PROTECTED]> wrote:
>>
>>>
>>> I got a problem creating a new application. The app identifier was
>>> confirmed to be available; the app title was set to be the same as the
>>> identifier. The authentication option was set to the default. But when
>>> I hit "Save", it always said "Server Error
>>> A server error has occurred"
>>>
>>> And the app was not created. Any idea about what was happening?
>>>
>>> Thanks,
>>> David.
>>> >>>
>>>
>>
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Problem creating new application!!!

2008-10-09 Thread Marzia Niccolai
Hi,

This is an issue with the Admin Console, and we hope to have it fixed
shortly.

-Marzia

On Thu, Oct 9, 2008 at 4:04 PM, Marzia Niccolai <[EMAIL PROTECTED]> wrote:

> Hi David,
>
> What is the app id you were trying to register?
>
> -Marzia
>
>
> On Thu, Oct 9, 2008 at 4:00 PM, DXD <[EMAIL PROTECTED]> wrote:
>
>>
>> I got a problem creating a new application. The app identifier was
>> confirmed to be available; the app title was set to be the same as the
>> identifier. The authentication option was set to the default. But when
>> I hit "Save", it always said "Server Error
>> A server error has occurred"
>>
>> And the app was not created. Any idea about what was happening?
>>
>> Thanks,
>> David.
>> >>
>>
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Problem creating new application!!!

2008-10-09 Thread Marzia Niccolai
Hi David,

What is the app id you were trying to register?

-Marzia

On Thu, Oct 9, 2008 at 4:00 PM, DXD <[EMAIL PROTECTED]> wrote:

>
> I got a problem creating a new application. The app identifier was
> confirmed to be available; the app title was set to be the same as the
> identifier. The authentication option was set to the default. But when
> I hit "Save", it always said "Server Error
> A server error has occurred"
>
> And the app was not created. Any idea about what was happening?
>
> Thanks,
> David.
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Problem creating new application!!!

2008-10-09 Thread DXD

I got a problem creating a new application. The app identifier was
confirmed to be available; the app title was set to be the same as the
identifier. The authentication option was set to the default. But when
I hit "Save", it always said "Server Error
A server error has occurred"

And the app was not created. Any idea about what was happening?

Thanks,
David.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Modeling mutual references

2008-10-09 Thread acuth

Is it possible to have two models reference each other? I can't get
this to work and haven't been able to find this limitation in the
documentation. As a simple example, consider:

class Book(db.Model):
title = db.StringProperty()
first = db.ReferenceProperty(Page)

class Page(db.Model):
text = db.TextProperty()
next = db.SelfReferenceProperty()
book = db.ReferenceProperty(Book)

which generates "NameError: name 'Page' is not defined" when
processing the Book class definition. Is this really a limitation of
the underlying data store or is it more related to how models are
defined in Python?

I'm guessing the solution is to record the 'first page in book'
information as a separate class, for example:

class FirstPage(db.Model):
book = db.ReferenceProperty(Book)
first = db.ReferenceProperty(Page)

any pointers would be gratefully received, Adrian



--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: unique identifier for server process

2008-10-09 Thread Jon McAlister

A random number computed at startup is your best bet. We intentionally
do not provide a way to learn the real process id or the id of the
machine.

On Oct 8, 11:56 pm, Josh Heitzman <[EMAIL PROTECTED]> wrote:
> The state of the process is not of interest, just which instance of
> many processes it is (i.e. there is no process specific state to store
> and query).  I've got side entities all setup so that I can reliably
> make multi-entity group changes (i.e. processing will continue across
> requests, even from different clients).
>
> I'm currently just using a random number as a process instance
> identity, to determine if a change was left hanging by the same
> process so its write lock (custom not GAE) can be expired immediately,
> as the processes are not threaded, rather then waiting the full
> timeout period.  Rather then a random number I could use an entity key
> path, but that's more time consuming to generate and then it needs to
> periodically have a datetime field updated so the staleness of it can
> be used determined if the entity can be deleted.
>
> I figure GAE already got some kind of process identifier around
> (likely an entity in the datastore) as part of the infrastructure, so
> its just a matter of providing an API to access it (I don't care if
> its hashed if there some concern about security, but there shouldn't
> be since one app is never supposed to be able to get any data outside
> its domain).
>
> On Oct 8, 9:27 pm, pr3d4t0r <[EMAIL PROTECTED]> wrote:
>
> > On Oct 8, 6:03 pm, Josh Heitzman <[EMAIL PROTECTED]> wrote:
>
> > > As os.getpid is not supported by GAE, is there another API that
> > > provides a unique (preferably across all of GAE) identifier for the
> > > process?  I'd like to use this to identify if an incomplete update
> > > sequence (spanning entity groups, so no it can't be done in a
> > > transaction) was left hanging by the current process or another, as if
> > > it was the current it can be immediately restarted, where as if it is
> > > another, it'll have to wait a time period before continuing the
> > > sequence.
>
> > Because of the distributed nature of App Engine, about the only way
> > you have of ensuring that something committed/finished to completion
> > is to use transactions and entities.  You could create an entity group
> > that tracks your process(es) state and updates it as various stages
> > are completed.  Remember that there is no guarantee that your process
> > will run on any given machine across subsequent calls.
>
> > Cheers,
>
> > pr3d4t0rhttp://www.istheserverup.comhttp://www.teslatestament.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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: ImportError: No module named wsgiref.handlers (in hello, world application)

2008-10-09 Thread Marzia Niccolai
I'm fairly certain it was this:
http://code.google.com/p/googleappengine/issues/detail?id=778

We are looking in to it.

Thanks,
Marzia

On Thu, Oct 9, 2008 at 2:05 PM, Brett Hoerner <[EMAIL PROTECTED]>wrote:

>
> I'm trying to use AppEngine with MacPorts Python on OS X.  I've
> changed my Python binary to /opt/local/bin/python, but now I'm having
> import problems (in a brand new app with the default hello world
> code).  Below is some information my sys.path, etc.
>
> This is just proving my MacPorts Python works correctly and the module
> is really there,
>
>[EMAIL PROTECTED]:~$ which python
>/opt/local/bin/python
>[EMAIL PROTECTED]:~$ python
>Python 2.5.2 (r252:60911, Oct  5 2008, 17:58:11)
>[GCC 4.0.1 (Apple Inc. build 5488)] on darwin
>Type "help", "copyright", "credits" or "license" for more
> information.
>>>> import wsgiref.handlers
>>>> wsgiref.__file__
>'/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/wsgiref/__init__.pyc'
>
>
> Then I can replace the code in main.py with the following to get the
> sys.path in a response,
>
>print 'Content-Type: text/plain'
>print ''
>import sys
>print sys.path
>
>
> Which gives,
>
>['/Users/brett/Documents/Development/community-map', '/
> Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine', '/
> Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/
> django', '/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/
> webob', '/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/
> yaml/lib', '/Applications/GoogleAppEngineLauncher.app/Contents/
> Resources/GoogleAppEngine-default.bundle/Contents/Resources/
> google_appengine', '/Applications/GoogleAppEngineLauncher.app/Contents/
> Resources/GoogleAppEngine-default.bundle/Contents/Resources', '/opt/
> local/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python25.zip', '/opt/local/Library/Frameworks/Python.framework/
> Versions/2.5/lib/python2.5', '/opt/local/Library/Frameworks/
> Python.framework/Versions/2.5/lib/python2.5/plat-darwin', '/opt/local/
> Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-
> mac', '/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/plat-mac/lib-scriptpackages', '/opt/local/Library/Frameworks/
> Python.framework/Versions/2.5/lib/python2.5/lib-tk', '/opt/local/
> Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-
> dynload', '/opt/local/Library/Frameworks/Python.framework/Versions/2.5/
> lib/python2.5/site-packages']
>
>
> As you can see "/opt/local/Library/Frameworks/Python.framework/
> Versions/2.5/lib/python2.5" is on my path, so "wsgiref" should be
> found.
>
> But if I go back to the default hello world project, which begins with
> "import wsgiref.handlers", I get an ImportError: No module named
> wsgiref.handlers.
>
> Any ideas?
>
> Thanks,
> 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] ImportError: No module named wsgiref.handlers (in hello, world application)

2008-10-09 Thread Brett Hoerner

I'm trying to use AppEngine with MacPorts Python on OS X.  I've
changed my Python binary to /opt/local/bin/python, but now I'm having
import problems (in a brand new app with the default hello world
code).  Below is some information my sys.path, etc.

This is just proving my MacPorts Python works correctly and the module
is really there,

[EMAIL PROTECTED]:~$ which python
/opt/local/bin/python
[EMAIL PROTECTED]:~$ python
Python 2.5.2 (r252:60911, Oct  5 2008, 17:58:11)
[GCC 4.0.1 (Apple Inc. build 5488)] on darwin
Type "help", "copyright", "credits" or "license" for more
information.
>>> import wsgiref.handlers
>>> wsgiref.__file__
'/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/wsgiref/__init__.pyc'


Then I can replace the code in main.py with the following to get the
sys.path in a response,

print 'Content-Type: text/plain'
print ''
import sys
print sys.path


Which gives,

['/Users/brett/Documents/Development/community-map', '/
Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine', '/
Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/
django', '/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/
webob', '/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/
yaml/lib', '/Applications/GoogleAppEngineLauncher.app/Contents/
Resources/GoogleAppEngine-default.bundle/Contents/Resources/
google_appengine', '/Applications/GoogleAppEngineLauncher.app/Contents/
Resources/GoogleAppEngine-default.bundle/Contents/Resources', '/opt/
local/Library/Frameworks/Python.framework/Versions/2.5/lib/
python25.zip', '/opt/local/Library/Frameworks/Python.framework/
Versions/2.5/lib/python2.5', '/opt/local/Library/Frameworks/
Python.framework/Versions/2.5/lib/python2.5/plat-darwin', '/opt/local/
Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-
mac', '/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/plat-mac/lib-scriptpackages', '/opt/local/Library/Frameworks/
Python.framework/Versions/2.5/lib/python2.5/lib-tk', '/opt/local/
Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-
dynload', '/opt/local/Library/Frameworks/Python.framework/Versions/2.5/
lib/python2.5/site-packages']


As you can see "/opt/local/Library/Frameworks/Python.framework/
Versions/2.5/lib/python2.5" is on my path, so "wsgiref" should be
found.

But if I go back to the default hello world project, which begins with
"import wsgiref.handlers", I get an ImportError: No module named
wsgiref.handlers.

Any ideas?

Thanks,
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: exceptions.SystemError?

2008-10-09 Thread Alexander Kojevnikov

I get the same error from time to time. I'm using Django 1.0 with app-
engine-patch.

I starred the issue and included my stacktrace.

On Oct 10, 1:34 am, Aral Balkan <[EMAIL PROTECTED]> wrote:
> Is anyone else seeing errors similar to the following. It seems to
> happen randomly -- possibly following a datastore write.
>
> The only thing that fixes the app after it happens is to re-deploy.
>
> Thoughts?
>
> Issue link:http://tinyurl.com/4c2z2v
>
> Thanks,
> Aral
>
> 500 Error at /admin/ ()
> : Parent module 'django.template' not
> loaded
> Traceback (most recent call last):
>   File "/base/data/home/apps/si/4.18/common/appenginepatch/main.py",
> line 24, in real_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/si/4.18/common/django/core/handlers/
> wsgi.py", line 239, in
> __call__
>     response = self.get_response(request)
>   File "/base/data/home/apps/si/4.18/common/django/core/handlers/
> base.py", line 128, in
> get_response
>     return self.handle_uncaught_exception(request, resolver, exc_info)
>   File "/base/data/home/apps/si/4.18/common/django/core/handlers/
> base.py", line 160, in
> handle_uncaught_exception
>     return callback(request, **param_dict)
>   File "/base/data/home/apps/si/4.18/core/decorators.py", line 189, in
> autorization_decorator
>     return target_method(request, first_level, second_level, context,
> *args, **kwargs)
>   File "/base/data/home/apps/si/4.18/core/views.py", line 2643, in
> error_500
>     return helpers.render_response('500', first_level, second_level,
> context,
> 'HttpResponseServerError')
>   File "/base/data/home/apps/si/4.18/core/helpers.py", line 214, in
> render_response
>     return eval(response_type)(loader.render_to_string(templateFile,
> context))
>   File "/base/data/home/apps/si/4.18/common/django/template/
> loader.py", line 102, in
> render_to_string
>     t = get_template(template_name)
>   File "/base/data/home/apps/si/4.18/common/django/template/
> loader.py", line 80, in
> get_template
>     source, origin = find_template_source(template_name)
>   File "/base/data/home/apps/si/4.18/common/django/template/
> loader.py", line 54, in
> find_template_source
>     mod = __import__(module, globals(), locals(), [attr])
> : Parent module 'django.template' not
> loaded
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: unable to add 'www' subdomain for app engine service

2008-10-09 Thread Marzia Niccolai
Hi Adam,

With which domain are you experiencing this issue?

-Marzia

On Thu, Oct 9, 2008 at 1:27 PM, Adam Fisk <[EMAIL PROTECTED]> wrote:

>
> I have the exact same problem.  Any solutions?  The unfortunately
> result is *my site is completely down.*  This makes it virtually
> impossible to port a www.* site, which would account for, well, most
> of the sites on the Internet.
>
> -Adam
>
>
> On Oct 9, 11:13 am, ajablo <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > the domain in question is probud.info
> > At the very begining it returned a 404, but it seemed like it
> > originated from google page creator team (???)
> > Then I configured google sites (it was google pages before I guess) in
> > my apps profile to use 'www' prefix and it worked perfectly for sites.
> > What I did then was to change the sites prefix from 'www' to
> > 'temp' (both in my domain's CNAME records) just to try if maybe this
> > time my appengine's service will work under 'www', unfortunately it
> > didn't. Any attempt to assign it to appengine service is simply
> > ignored without any error message.
> > Current status is: I disabled sites completely for my domain (prefix
> > history for sites is 'www' -> 'temp' -> disabled), when I open
> bothwww.probud.infoand temp.probud.info I get 'forbidden error 403' now.
> > Assigning 'www' to my appengine service still fails.
> > It seems like google has a big mess in there?
> >
> > Many thanks for your help,
> > Adam
> >
> > On Oct 9, 6:57 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> >
> > > Can you please reply with the domain experiencing the issue?  Also if
> you go
> > > towww.yourdomain.comandit does not return a 404, what is shown would
> > > indicate what service it's currently mapped to.
> >
> > > -Marzia
> >
> > > On Thu, Oct 9, 2008 at 5:31 AM, ajablo <[EMAIL PROTECTED]>
> wrote:
> >
> > > > Hello,
> > > > All my attempts to add 'www'subdomainto host my app as a
> > > > AppEngine service in Google Apps fail silently. No error message. I
> > > > can add
> > > > any othersubdomain, like 'temp' or whatever with success. And I would
> > > > like
> > > > to assure that there are no other services configured to use 'www'
> > > >subdomain.
> > > > Many thanks for your help,
> > > > Adam
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: datastore transaction question

2008-10-09 Thread Josh Heitzman

I ran into a similar problem with the strategy game I'm working on.
The game world is divided up into areas and each area can have a more
then one player's troops in it at a time.  I've modeled these with
three entities, player, area, and areaplayer.  When a player has his
troops do something in an area it can potentially affect the area
state, the associated areaplayer states, and the associated player
states.  If all of those things were in the same entity group that
would mean the entire game state would be in the same entity group
resulting in massive contention.  Instead each player and their home
area is an entity group and each non-home area is an entity group.
The areaplayer is in the entity group with the area, which is the same
as the player for the case of the home area.

So when a player orders troops to do something in their home area when
no other player has troops there, its no problem as the player, the
area, and the sole areaplayer are all in the same entity group so a
GAE DS transaction can be used.  However, orders given to troops away
from home or at home other players have troops there have to make
updates to multiple entity groups.

I'm dealing with this by via a reliable multi-entity group update
mechanism (no rollback, but will continue processing the update across
requests and server process instances) that I hope can be enhance into
true multi-entity group transactions if that can actually be done will
still staying under quotas.  I'm getting close to deploying my
prototype with the reliable multi-entity group update mechanism, so I
can find out how I'm doing on quotas as it is.  Then I'll know if
there is possibly create a cross-entity group transaction mechanism.

I really think Google needs to provide cross-entity group transactions
though, as they'll be able to do it in native code, and thus faster
then we'll be able to do it in Python on at the app level.

On Oct 9, 1:20 pm, David <[EMAIL PROTECTED]> wrote:
> thanks for the replies.
>
> as i mentioned in the question, the Thing will become a product and
> could be sold to another user at a later date. A list of keys is also
> what ive been using, as a referenece property in the Thing causes the
> blobs to pulled from the data store (they can be quite large, well
> less then a mb aye ;) ) when i want to list the users current things
> (by title).
>
> i guess another way of looking at it is really the user is creating a
> new product. and then is trying to buy it. if the product is no longer
> wanted by anyone it can be deleted.
>
> i was trying to work out a was to safly trasact on the money so the
> Thing never touches the datastore if there isnt enough cash. But this
> is a unuaul case, things will be sold between users more then created.
>
> any thoughts? its all a learning process for me.
>
> On Oct 9, 8:49 pm, Bill <[EMAIL PROTECTED]> wrote:
>
> > > Have you seen: "Entity Groups, Ancestors and Paths" 
> > > ?http://code.google.com/appengine/docs/datastore/keysandentitygroups.html
>
> > Good point. If a Thing will never be used for another User (e.g., it's
> > not a product), you could make the Thing part of a User's entity group.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: datastore transaction question

2008-10-09 Thread yejun

Maybe you can store money and ownership relation in a single entity
group.
ListProperty only works with key value not reference, so they won't be
dereferenced automatically. If you want to access partial information
about thing without pulling the blob value, you need to make a
separated kind in datastore.

On Oct 9, 4:20 pm, David <[EMAIL PROTECTED]> wrote:
> thanks for the replies.
>
> as i mentioned in the question, the Thing will become a product and
> could be sold to another user at a later date. A list of keys is also
> what ive been using, as a referenece property in the Thing causes the
> blobs to pulled from the data store (they can be quite large, well
> less then a mb aye ;) ) when i want to list the users current things
> (by title).
>
> i guess another way of looking at it is really the user is creating a
> new product. and then is trying to buy it. if the product is no longer
> wanted by anyone it can be deleted.
>
> i was trying to work out a was to safly trasact on the money so the
> Thing never touches the datastore if there isnt enough cash. But this
> is a unuaul case, things will be sold between users more then created.
>
> any thoughts? its all a learning process for me.
>
> On Oct 9, 8:49 pm, Bill <[EMAIL PROTECTED]> wrote:
>
> > > Have you seen: "Entity Groups, Ancestors and Paths" 
> > > ?http://code.google.com/appengine/docs/datastore/keysandentitygroups.html
>
> > Good point. If a Thing will never be used for another User (e.g., it's
> > not a product), you could make the Thing part of a User's entity group.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: unable to add 'www' subdomain for app engine service

2008-10-09 Thread Adam Fisk

I have the exact same problem.  Any solutions?  The unfortunately
result is *my site is completely down.*  This makes it virtually
impossible to port a www.* site, which would account for, well, most
of the sites on the Internet.

-Adam


On Oct 9, 11:13 am, ajablo <[EMAIL PROTECTED]> wrote:
> Hello,
>
> the domain in question is probud.info
> At the very begining it returned a 404, but it seemed like it
> originated from google page creator team (???)
> Then I configured google sites (it was google pages before I guess) in
> my apps profile to use 'www' prefix and it worked perfectly for sites.
> What I did then was to change the sites prefix from 'www' to
> 'temp' (both in my domain's CNAME records) just to try if maybe this
> time my appengine's service will work under 'www', unfortunately it
> didn't. Any attempt to assign it to appengine service is simply
> ignored without any error message.
> Current status is: I disabled sites completely for my domain (prefix
> history for sites is 'www' -> 'temp' -> disabled), when I open 
> bothwww.probud.infoand temp.probud.info I get 'forbidden error 403' now.
> Assigning 'www' to my appengine service still fails.
> It seems like google has a big mess in there?
>
> Many thanks for your help,
> Adam
>
> On Oct 9, 6:57 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > Can you please reply with the domain experiencing the issue?  Also if you go
> > towww.yourdomain.comandit does not return a 404, what is shown would
> > indicate what service it's currently mapped to.
>
> > -Marzia
>
> > On Thu, Oct 9, 2008 at 5:31 AM, ajablo <[EMAIL PROTECTED]> wrote:
>
> > > Hello,
> > > All my attempts to add 'www'subdomainto host my app as a
> > > AppEngine service in Google Apps fail silently. No error message. I
> > > can add
> > > any othersubdomain, like 'temp' or whatever with success. And I would
> > > like
> > > to assure that there are no other services configured to use 'www'
> > >subdomain.
> > > Many thanks for your help,
> > > Adam
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: datastore transaction question

2008-10-09 Thread David

thanks for the replies.

as i mentioned in the question, the Thing will become a product and
could be sold to another user at a later date. A list of keys is also
what ive been using, as a referenece property in the Thing causes the
blobs to pulled from the data store (they can be quite large, well
less then a mb aye ;) ) when i want to list the users current things
(by title).

i guess another way of looking at it is really the user is creating a
new product. and then is trying to buy it. if the product is no longer
wanted by anyone it can be deleted.

i was trying to work out a was to safly trasact on the money so the
Thing never touches the datastore if there isnt enough cash. But this
is a unuaul case, things will be sold between users more then created.

any thoughts? its all a learning process for me.


On Oct 9, 8:49 pm, Bill <[EMAIL PROTECTED]> wrote:
> > Have you seen: "Entity Groups, Ancestors and Paths" 
> > ?http://code.google.com/appengine/docs/datastore/keysandentitygroups.html
>
> Good point. If a Thing will never be used for another User (e.g., it's
> not a product), you could make the Thing part of a User's entity group.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] GAE Bless America

2008-10-09 Thread Davide Rognoni

http://finance.google.com/finance?q=Google

"God Bless The Globalized World"

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: 404 Server Not Found Error?

2008-10-09 Thread Adam Fisk

I'm experiencing this now with a second subdomain I've just added to
Google Apps.

I get the not found, and Google Apps also seems to fail to recognize
I've added a new subdomain.  I go to "Add a new URL", and I add it,
but then nothing appears below my original URL.

Did this just eventually go away for you guys?

Thanks.

-Adam


On Sep 18, 11:05 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Same here.  mail.lcgs.net used to work great.  Now nothing.  Do I need
> to update my mx records to a new address?  Did Google change the
> incoming address location?  What is the solution?
>
> Greg Wallace
>
> On Sep 17, 7:38 am, Shark <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I have been using for more than 5 monthsGoogleApps, but today when I
> > tried to accesshttp://mail.creativemood.co.inisshowing me 
> > "ServerNotFoundError404", something that is really strange, yesterday was
> > working perfectly, alsomydomainis registered correctly.
>
> > Now I am in a hurry, since I use this email daily formybusiness, so
> > if any of the GTeam is available, please have a look to it as soon as
> > possible.
>
> > Awaiting for your response.
>
> > Shark
>
> > On Sep 8, 12:53 pm, demonite <[EMAIL PROTECTED]> wrote:
>
> > > I'm actually experiencing the same issue; howevermydomainname is
> > > registered at another registar. I followed the instructions 
> > > at:http://www.google.com/support/a/bin/answer.py?hl=en&answer=47283
>
> > > but when try to access email.domainname.com I get the "servernot
> > >founderror" also. What's strange about this is that I did this a
> > > while back for anotherdomainname and it works perfectly.
>
> > > On Sep 2, 4:11 am, Gregor Hochmuth <[EMAIL PROTECTED]> wrote:
>
> > > > Hello,
> > > > I've set-up an externaldomainformyGAE app (www.linktea.com) and
> > > > followed all the steps to create the proper CNAME records (for www and
> > > > other subdomains) as well as the "naked"DNSA record 
> > > > forhttp://linktea.com/
> > > > (as described 
> > > > onhttp://www.google.com/support/a/bin/answer.py?hl=en&answer=91080)
>
> > > > Although thedomainis successfully registered withGoogleAppsfor
> > > > YourDomainand the appengine service is running (withwww.linktea.com
> > > > and m.linktea.com registered as access URLs), the 
> > > > websitehttp://linktea.com/
> > > > still gives me a404"ServerNotFound"error.
>
> > > > Has anyone encountered this problem before? How can it be resolved?
>
> > > > Thanks for your help!
> > > > Greg
>
> > > > (If you tryhttp://linktea.comnow, you maynotget the IP that points
> > > > to GAE yet -- theDNSis still updating. If you set the IP for
> > > > linktea.com to 216.239.32.21 manually, you can see the problem)
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] DownloadError: ApplicationError: 2 ?

2008-10-09 Thread Jean-Lou Dupont

What is the significance of "DownloadError: ApplicationError: 2"
errors?

I got to " user_service_pb.py " but couldn't find any meaningful
explanation.

I get this error whilst accessing Freebase through their API e.g.
http://www.freebase.com/api/service/mqlread?queries=

jld.


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: datastore transaction question

2008-10-09 Thread Bill


> Have you seen: "Entity Groups, Ancestors and Paths" 
> ?http://code.google.com/appengine/docs/datastore/keysandentitygroups.html

Good point. If a Thing will never be used for another User (e.g., it's
not a product), you could make the Thing part of a User's entity group.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: GAE Obfuscator?

2008-10-09 Thread Jorge Vargas

have you heard of MACOSX? this isn't really new... anyway I'm going to
stop replying as you seem to be trolling about how bad google is, and
to be honest that's a discussion I'll prefer not to have with
strangers.

On Wed, Oct 8, 2008 at 1:37 PM, Davide Rognoni <[EMAIL PROTECTED]> wrote:
>
> ...and I can't see its secret code?
>
> "Google Chrome: Good or evil?"
> http://blog.sp.or.at/2008/09/02/google-chrome-good-or-evil/
>
> See the last comment:
> "The source code for Google's Chrome Browser has never been released.
> Google uses the code from the open source browser Chromium in their
> proprietary browser Chrome. They can do this because the Chromium code
> is released under the BSD License. Clever marketing by Google. Google
> only offers Chrome in binary form (it's closed source) and they only
> offer the source code (not the binary) for Chromium. If you want to
> use the open source browser Chromium you can download a binary at
> http://free-chrome.net";
>
> On Oct 3, 11:13 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote:
>> Why Google can see my secret code?
>>
>> i.e.http://www.lysator.liu.se/~astrand/projects/pyobfuscate/
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Simple Graphics App

2008-10-09 Thread yejun

I think what Op want is a standalone .Net application with gdata.
Maybe he can also use GAE as a rpc server to store some data.

On Oct 9, 3:28 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote:
> IE or Linux: "Mono is a cross platform, open source .NET development
> framework."http://www.mono-project.com/Main_Page
>
> "600 Million Internet Users At Risk Due To 
> Browser"http://www.webguild.org/2008/07/600-million-internet-users-at-risk-du...
>
> On Oct 8, 10:30 pm, Wooble <[EMAIL PROTECTED]> wrote:
>
> > On Oct 8, 3:20 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote:
>
> > > You can use my browser based on .NET (do you know Python and .NET ?)
>
> > Unless of course he wants people to actually use his application.
> > It's bad enough tying an application to IE; you want him to tie his to
> > an application no user in their right mind would ever install because
> > the documentation SAYS it's a big security hole?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: datastore transaction question

2008-10-09 Thread Davide Rognoni

Have you seen: "Entity Groups, Ancestors and Paths" ?
http://code.google.com/appengine/docs/datastore/keysandentitygroups.html


On Oct 9, 7:04 pm, David <[EMAIL PROTECTED]> wrote:
> Hi, a question for all you datastore gurus:
>
> If I have:
>
> class User(db.Model):
>     money = db.IntegerProperty(required=True)
>
> class Thing(db.Model):
>     cost = db.IntegerProperty(required=True)
>     stuff = db.BlobProperty(required=True)
>
> I need to allow a user to create a new thing and then reference the
> things they have somehow. So a request would be called with the cost
> and the blob data, and I would like to put a new Thing in the
> datastore. But heres the problem, only if the user has enough money to
> create the new Thing.
>
> This is causing me a issue, as i cant update two separate entity
> groups in one transaction. unless im missing something i dont want to
> group them as the Thing may be sold at a later data to a new User.
>
> so i need to:
>
> 1)get the users money
> 2)if they have enough create the Thing and put it in the datastore
> 3)update the users money and reference the Thing to the user somehow
> and re-store
>
> If any of this fails i need it all to roll back.
>
> Currently im creating the Thing regardles and performing a transaction
> on the User, if this fails i delete the Thing after. This makes me
> uneasy :)
>
> any suggestions would be most welcome.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: datastore transaction question

2008-10-09 Thread Bill

If there aren't a huge number of Things for each User, then your
approach sounds workable.  A User would have a ListProperty of keys to
Things.  Your transaction on the User would add the key to a
previously created (before the txn) Thing and adjust the money
property.  You could garbage collect unreferenced Things at a later
time.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Why Google App Engine is broken and what Google must do to fix it.

2008-10-09 Thread Jorge Vargas

On Thu, Oct 9, 2008 at 6:09 AM, Filip <[EMAIL PROTECTED]> wrote:
>
>
>> Lets look at it from a performance perspective.
>>
>> 1- 1MB datastructure - which unit of data (leaving files outside)
>> should be bigger than 1mb? IMO that's a badly design datastore.
>> 2- 1000 query limit, which user is going to want 1000 results?
>> 3- Short CPU, it is common knowledge that a user will go away from a
>> page after 3 seconds of loading. so in order to eliminate this
>> bottleneck you use catching, after all if it's intensive to compute
>> it's worth catching.
>> 4- Quotas in general, not even google has enough machines for us to waste.
>> 5- Admin, a django junkie complaining for the lack of UI
>
> Let's stop the slogans, and get down to a real discussion here.
> Discussions are useful. This post misrepresents the original article
> needlessly and this does not add to the discussion at all.
>
> Use-cases for 1 MB were given, and there are plenty more. It is not
> sufficient that you can use S3, because the over 1 MB file may well be
> autogenerated (like a downloadable PDF or Excel or XML file).
>
Ok that seems like a valid use case, I'll give you that point when you
are generating a file on the fly you may get stuck with the 1MB limit.
But keep in mind the "big file serving" Guido talks about still
apllies to this use case.

> The query limit was given specifically in combination with the lack of
> expression power to select the records. Nobody wants to return 10.000
> records to the browser, but you have to be able to get the 50 records
> you do want to return. True, some applications know upfront what the
> exact key will be, but some applications need more dynamic querying.
> Also, the limit is hurtful because currently MapReduce can only be
> implemented as a series of successive calls.
>
will you post an example where you need 1000 results to then narrow it
down to 50? this seems to me like a "joins" design which is something
you shouldn't be doing in datastore, it has been discuss several times
that you shouldn't use datastore as a relation database. You may
disagree if you are strong on SQL but denormalization is the first
step of scalability.

> Likewise, the CPU was not discussed in the context of rendering a
> standard user page but in the context of background processing and/or
> report building.
>
Which are facilities that aren't out on the engine, so you can't
critize an interface that was build to serve pages as a bad background
processing tool, it will be like complaining about how bad that
Italian restaurant is at making Hamburgers.

> Quota's were discussed with lot of understanding, but also a lot of
> nuance. How do you actually respond to the remarks made? Let's get
> down to real applications.
>
I'm a minimalistic at heart, and I strongly believe that any app
running that is getting over the head of it's quota is because it
isn't efficient enough, with the sole exception of the max page views
in which case google has and will increase that bar for the
applications that demand it. Again from the talk, the top 5
applications running on GAE have had their quotas raised because they
really need it not because some script kiddie is loading half his
datastore into memory on every request.

> Admin again was not about being able to use Django, but about how to
> do data transformation on your database. Do you think Google would be
> able to rebuild its index, or do any other part of its magic, without
> MapReduce? Admin is about the ability to prepare things before the
> user needs them, so that yes you can respond in subsecond turnarounds.
>

what? the Admin (in a django concept) is a way to fix error in the
data and sometimes input data by advanced users, you shouldn't be
manipulating a db structure from a GUI, that is why we have migration
scripts and so many project dedicated to them.

>> The only concern where I agree is file upload, we do need a facility
>> to uplod videos or pdf or images or whatever we want, but that is
>> being worked out, same with SSL.
>
> Look, Google has declined to provide forward looking data. Yes, I was
> at Google IO and they ARE good guys and I believe them when they
> express their best intentions to meet specific targets (back then, at
> the beginning of the year). But not providing an official calendar
> means they are not putting their foot down, essentially that they
> don't know themselves. Google is asking us to use what is there, and
> only what is there (not that I wouldn't like a calendar, and that
> would reframe this discussion completely - but it simply isn't there).
> And there is little tangible evidence that warrant the faith that they
> will in fact have a big bang improvement within what has now become a
> really very short time frame. So my guess is that we'll see
> substantial delays relative to what was said back at Google IO.

Well that's a social issue, and I wasn't there so I don't have the
first hand experience. But do keep in mind the sam

[google-appengine] Re: Simple Graphics App

2008-10-09 Thread Davide Rognoni

IE or Linux: "Mono is a cross platform, open source .NET development
framework."
http://www.mono-project.com/Main_Page

"600 Million Internet Users At Risk Due To Browser"
http://www.webguild.org/2008/07/600-million-internet-users-at-risk-due-to-browser.php


On Oct 8, 10:30 pm, Wooble <[EMAIL PROTECTED]> wrote:
> On Oct 8, 3:20 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote:
>
> > You can use my browser based on .NET (do you know Python and .NET ?)
>
> Unless of course he wants people to actually use his application.
> It's bad enough tying an application to IE; you want him to tie his to
> an application no user in their right mind would ever install because
> the documentation SAYS it's a big security hole?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] datastore transaction question

2008-10-09 Thread David


Hi, a question for all you datastore gurus:

If I have:

class User(db.Model):
money = db.IntegerProperty(required=True)


class Thing(db.Model):
cost = db.IntegerProperty(required=True)
stuff = db.BlobProperty(required=True)


I need to allow a user to create a new thing and then reference the
things they have somehow. So a request would be called with the cost
and the blob data, and I would like to put a new Thing in the
datastore. But heres the problem, only if the user has enough money to
create the new Thing.

This is causing me a issue, as i cant update two separate entity
groups in one transaction. unless im missing something i dont want to
group them as the Thing may be sold at a later data to a new User.

so i need to:

1)get the users money
2)if they have enough create the Thing and put it in the datastore
3)update the users money and reference the Thing to the user somehow
and re-store

If any of this fails i need it all to roll back.

Currently im creating the Thing regardles and performing a transaction
on the User, if this fails i delete the Thing after. This makes me
uneasy :)

any suggestions would be most welcome.


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: unable to add 'www' subdomain for app engine service

2008-10-09 Thread ajablo

Hello,

the domain in question is probud.info
At the very begining it returned a 404, but it seemed like it
originated from google page creator team (???)
Then I configured google sites (it was google pages before I guess) in
my apps profile to use 'www' prefix and it worked perfectly for sites.
What I did then was to change the sites prefix from 'www' to
'temp' (both in my domain's CNAME records) just to try if maybe this
time my appengine's service will work under 'www', unfortunately it
didn't. Any attempt to assign it to appengine service is simply
ignored without any error message.
Current status is: I disabled sites completely for my domain (prefix
history for sites is 'www' -> 'temp' -> disabled), when I open both
www.probud.info and temp.probud.info I get 'forbidden error 403' now.
Assigning 'www' to my appengine service still fails.
It seems like google has a big mess in there?

Many thanks for your help,
Adam

On Oct 9, 6:57 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Can you please reply with the domain experiencing the issue?  Also if you go
> towww.yourdomain.comand it does not return a 404, what is shown would
> indicate what service it's currently mapped to.
>
> -Marzia
>
> On Thu, Oct 9, 2008 at 5:31 AM, ajablo <[EMAIL PROTECTED]> wrote:
>
> > Hello,
> > All my attempts to add 'www' subdomain to host my app as a
> > AppEngine service in Google Apps fail silently. No error message. I
> > can add
> > any other subdomain, like 'temp' or whatever with success. And I would
> > like
> > to assure that there are no other services configured to use 'www'
> > subdomain.
> > Many thanks for your help,
> > Adam
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Since 1.1.5 import cgi/urllib/traceback/etc fails (on MacOS)

2008-10-09 Thread Gijsbert

Tried that, problem remains. From my main.py I log sys.path and it
contains /opt/local/Library/Frameworks/Python.framework/Versions/2.5/
lib/python2.5, where urllib.py* can be found.

More info:

which python2.5
/opt/local/bin/python2.5

python2.5
Python 2.5.2 (r252:60911, Jul 22 2008, 00:43:13)
[GCC 4.0.1 (Apple Inc. build 5478)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib
>>> urllib

>>>
>>> import os
os.path.exists(os.path.join(os.path.dirname(os.__file__), 'cgi.py'))
>>>
True

defaults read ~/Library/Preferences/
com.google.GoogleAppEngineLauncher
{
NSNavBrowserPreferedColumnContentWidth = 186;
NSNavLastCurrentDirectory = "~/p/ivur/GoogleWebApp";
NSNavLastRootDirectory = "~";
NSNavPanelExpandedSizeForOpenMode = "{518, 401}";
NSNavSidebarWidth = 120;
Python = "/opt/local/bin/python2.5";
}

Not sure what you mean by 'making the symlinks'. But I usually run
from the command line, same output as with GoogleAppEngineLauncher.

Console output:

*** Running dev_appserver with the following flags:
--admin_console_server= --port=
Python command: /opt/local/bin/python2.5
INFO 2008-10-09 17:19:01,061 dev_appserver_main.py] Running
application ice on port : http://localhost:
INFO 2008-10-09 17:19:09,502 main.py] path ['/Users/gijsbert/p/
ivur/GoogleWebApp', '/Applications/GoogleAppEngineLauncher.app/
Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/
google_appengine', '/Applications/GoogleAppEngineLauncher.app/Contents/
Resources/GoogleAppEngine-default.bundle/Contents/Resources/
google_appengine/lib/django', '/Applications/
GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-
default.bundle/Contents/Resources/google_appengine/lib/webob', '/
Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/
yaml/lib', '/Applications/GoogleAppEngineLauncher.app/Contents/
Resources/GoogleAppEngine-default.bundle/Contents/Resources/
google_appengine', '/Applications/GoogleAppEngineLauncher.app/Contents/
Resources/GoogleAppEngine-default.bundle/Contents/Resources', '/opt/
local/Library/Frameworks/Python.framework/Versions/2.5/lib/
python25.zip', '/opt/local/Library/Frameworks/Python.framework/
Versions/2.5/lib/python2.5', '/opt/local/Library/Frameworks/
Python.framework/Versions/2.5/lib/python2.5/plat-darwin', '/opt/local/
Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-
mac', '/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/plat-mac/lib-scriptpackages', '/opt/local/Library/Frameworks/
Python.framework/Versions/2.5/lib/python2.5/lib-tk', '/opt/local/
Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-
dynload', '/opt/local/Library/Frameworks/Python.framework/Versions/2.5/
lib/python2.5/site-packages', '/opt/local/Library/Frameworks/
Python.framework/Versions/2.5/lib/python2.5/site-packages/PIL']
ERROR2008-10-09 17:19:09,507 dev_appserver.py] Exception
encountered handling request
Traceback (most recent call last):
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py", line 2413, in _HandleRequest
base_env_dict=env_dict)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py", line 348, in Dispatch
base_env_dict=base_env_dict)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py", line 1848, in Dispatch
self._module_dict)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py", line 1766, in ExecuteCGI
reset_modules = exec_script(handler_path, cgi_path, hook)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py", line 1662, in
ExecuteOrImportScript
exec module_code in script_module.__dict__
  File "/Users/gijsbert/p/ivur/GoogleWebApp/main.py", line 15, in

import re, urllib, os.path
ImportError: No module named urllib

Hope this helps,
Gijsbert



On Oct 8, 11:59 am, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Thanks.  Right now it seems that this is an issue specific to 10.5.5 + the
> App Engine Launcher.  Since I don't have access to a 10.5.5 installation of
> Mac OS, I'd like to ask you to try one more step.
>
> Would it be possible for you to explicitly set the Python Path in the
> Launcher to your python installation?  Or if someone else has 10.5.5 + the
> 1.1.5 SDK if you could do this and see if it solves 

[google-appengine] Re: How to use timeutil module in GAE?

2008-10-09 Thread Marzia Niccolai
Hi,

Please read the following FAQ on what python libraries are available with
Google App Engine:
http://code.google.com/appengine/kb/general.html#libraries

-Marzia

On Wed, Oct 8, 2008 at 8:28 PM, Kang <[EMAIL PROTECTED]> wrote:

>
> I cannot import that module in GAE. Wish your help.
>
> p.s. I cannot import epsilon module either...
>
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: inconsistent indexes

2008-10-09 Thread Marzia Niccolai
Hi,

I can see one problem off the bat.  The fetch() method returns an iterator,
so even if there are no results in the query, it would not be None, thus
your assert would always succeed.

I don't see any reason why the two count statements would be different.  Can
I see the actual code that is being executed?

-Marzia

On Thu, Oct 9, 2008 at 8:09 AM, tigrillo <
[EMAIL PROTECTED]> wrote:

>
> Hello;
>
> There's an unexpected  indexes behavior; I noticed it doing as follow:
>
> now = datetime.datetime.now()
> entity1 = Task.gql("WHERE date_f <= :1 ORDER BY date_f ASC",
> now).get()
> if entity1 != None:
>   entity2 = Task.gql("WHERE date_f = :1",
> entity1.date_f).fetch(limit=1, offset=0)
>   assert entity2!=None, "This assert shows inconsistent indexes"
>
> The exception is: "This assert shows inconsistent indexes"
>
> Also:
>
> n1 = Task.gql("WHERE date_f <= :1 ORDER BY date_f DESC", now).count()
> n2 = Task.gql("WHERE date_f <= :1 ORDER BY date_f ASC", now).count()
>
> assert n1 == n2, "This assert shows inconsistent indexes"
>
> it raises the exception again. :(
>
> There is a way to avoid inconsistent indexes or force index updating?
>
> Thanks, best regards
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] mistake in your FAQ page

2008-10-09 Thread cm_gui

http://code.google.com/appengine/kb/general.html#create

should it be 10 applications per developer?

http://code.google.com/appengine/articles/quotas.html
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: mistake in your FAQ page

2008-10-09 Thread Marzia Niccolai
Hi,

Thanks, this will be updated to reflect the new limit.

-Marzia

On Thu, Oct 9, 2008 at 9:27 AM, cm_gui <[EMAIL PROTECTED]> wrote:

>
> http://code.google.com/appengine/kb/general.html#create
>
> should it be 10 applications per developer?
>
> http://code.google.com/appengine/articles/quotas.html
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: unable to add 'www' subdomain for app engine service

2008-10-09 Thread Marzia Niccolai
Hi,

Can you please reply with the domain experiencing the issue?  Also if you go
to www.yourdomain.com and it does not return a 404, what is shown would
indicate what service it's currently mapped to.

-Marzia

On Thu, Oct 9, 2008 at 5:31 AM, ajablo <[EMAIL PROTECTED]> wrote:

>
> Hello,
> All my attempts to add 'www' subdomain to host my app as a
> AppEngine service in Google Apps fail silently. No error message. I
> can add
> any other subdomain, like 'temp' or whatever with success. And I would
> like
> to assure that there are no other services configured to use 'www'
> subdomain.
> Many thanks for your help,
> Adam
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Linking directly to the Google Accounts "new account" page + feature request and UX complaint!

2008-10-09 Thread Bill

> As far as the UI concerns, what do you think about the "new account"
> button for the sign-in page onhttp://moderator.appspot.com/?We are
> experimenting there, and could make that the default for all
> applications.

It would be great if Google provided a customizable sign-in page like
moderator.appspot.com.  Right now, I have a two step process with
graphics trying to explain what to do on the standard Google login
page:
http://workshops.writertopia.com/

You could put the disclaimer "Google is not affiliated with the
contents of Writertopia or its owners. If you sign in..." over on the
right by the login boxes if we could tailor content on the left part
of the sign-in page.

I've piggybacked onto an existing feature request for better Google
Account login information:
http://code.google.com/p/googleappengine/issues/detail?id=713
Star it if you'd like to see this feature.
-Bill
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: 'module' object has no attribute 'getaddrinfo'

2008-10-09 Thread Jeff S

There was a change in introduced in version 1.2.0 of the gdata-python-
client which requires use of a new function to swap out the HTTP
request mechanism.

gdata.alt.appengine.run_on_appengine(client)

Please see instructions here: 
http://code.google.com/appengine/articles/gdata.html
. Unfortunately this did break the old sample code in the code lab,
but this new design will better allow for new features in the future.

Happy coding,

Jeff

On Oct 8, 3:56 pm, pragmaticobjects <[EMAIL PROTECTED]>
wrote:
> I know that is another post with the same subject, but that one was
> still not helping me.  So can I start a new thread of discussion.
>
> In my handler, I have the following couple of lines:
>
> client = gdata.contacts.service.ContactsService()
> feeds = client.GetContactsFeed()
>
> and the following imports:
>
> import wsgiref.handlers
> import gdata.service
>
> import gdata.urlfetch
> # Use urlfetch instead of httplib
> gdata.service.http_request_handler = gdata.urlfetch
>
> import gdata.contacts
> import gdata.contacts.service
>
> from google.appengine.ext import webapp
> from google.appengine.ext.webapp import template
>
> but I am still getting the following errors:
>
> Traceback (most recent call last):
>   File "/home/user/Data/Dev/google_appengine/google/appengine/ext/
> webapp/__init__.py", line 496, in __call__
>     handler.get(*groups)
>   File "/home/user/Data/Dev/google_appengine/workspace/vnmail/view/my/
> handler.py", line 43, in get
>     feeds = client.GetContactsFeed()
>   File "/usr/lib/python2.5/site-packages/gdata/contacts/service.py",
> line 58, in GetContactsFeed
>     return self.Get(uri,
> converter=gdata.contacts.ContactsFeedFromString)
>   File "/usr/lib/python2.5/site-packages/gdata/service.py", line 665,
> in Get
>     headers=extra_headers)
>   File "/usr/lib/python2.5/site-packages/atom/service.py", line 163,
> in request
>     data=data, headers=all_headers)
>   File "/usr/lib/python2.5/site-packages/atom/http_interface.py", line
> 148, in perform_request
>     return http_client.request(operation, url, data=data,
> headers=headers)
>   File "/usr/lib/python2.5/site-packages/atom/http.py", line 117, in
> request
>     connection.endheaders()
>   File "/usr/lib/python2.5/httplib.py", line 860, in endheaders
>     self._send_output()
>   File "/usr/lib/python2.5/httplib.py", line 732, in _send_output
>     self.send(msg)
>   File "/usr/lib/python2.5/httplib.py", line 699, in send
>     self.connect()
>   File "/usr/lib/python2.5/httplib.py", line 666, in connect
>     for res in socket.getaddrinfo(self.host, self.port, 0,
> AttributeError: 'module' object has no attribute 'getaddrinfo'
>
> Line 43 in .../my/handler.py is the line that says     feeds =
> client.GetContactsFeed()
>
> I also saw the posthttp://code.google.com/p/hello-youtube/wiki/Codelab,
> and /atom and /gdata in my application directory.  What am I doing
> wrong?  It looks like httplib.py still is still the one in effect.
> Please help.  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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: unique identifier for server process

2008-10-09 Thread Tony Arkles

I just used a random number within an import (since imports only
happen once per instance, it should persist for the lifetime of the
process)


On Oct 9, 12:56 am, Josh Heitzman <[EMAIL PROTECTED]> wrote:
> The state of the process is not of interest, just which instance of
> many processes it is (i.e. there is no process specific state to store
> and query).  I've got side entities all setup so that I can reliably
> make multi-entity group changes (i.e. processing will continue across
> requests, even from different clients).
>
> I'm currently just using a random number as a process instance
> identity, to determine if a change was left hanging by the same
> process so its write lock (custom not GAE) can be expired immediately,
> as the processes are not threaded, rather then waiting the full
> timeout period.  Rather then a random number I could use an entity key
> path, but that's more time consuming to generate and then it needs to
> periodically have a datetime field updated so the staleness of it can
> be used determined if the entity can be deleted.
>
> I figure GAE already got some kind of process identifier around
> (likely an entity in the datastore) as part of the infrastructure, so
> its just a matter of providing an API to access it (I don't care if
> its hashed if there some concern about security, but there shouldn't
> be since one app is never supposed to be able to get any data outside
> its domain).
>
> On Oct 8, 9:27 pm, pr3d4t0r <[EMAIL PROTECTED]> wrote:
>
> > On Oct 8, 6:03 pm, Josh Heitzman <[EMAIL PROTECTED]> wrote:
>
> > > As os.getpid is not supported by GAE, is there another API that
> > > provides a unique (preferably across all of GAE) identifier for the
> > > process?  I'd like to use this to identify if an incomplete update
> > > sequence (spanning entity groups, so no it can't be done in a
> > > transaction) was left hanging by the current process or another, as if
> > > it was the current it can be immediately restarted, where as if it is
> > > another, it'll have to wait a time period before continuing the
> > > sequence.
>
> > Because of the distributed nature of App Engine, about the only way
> > you have of ensuring that something committed/finished to completion
> > is to use transactions and entities.  You could create an entity group
> > that tracks your process(es) state and updates it as various stages
> > are completed.  Remember that there is no guarantee that your process
> > will run on any given machine across subsequent calls.
>
> > Cheers,
>
> > pr3d4t0rhttp://www.istheserverup.comhttp://www.teslatestament.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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Linking directly to the Google Accounts "new account" page + feature request and UX complaint!

2008-10-09 Thread Feris Thia
Hi Jon,
How can we create a custom sign in / new account like the one in
moderator.appspot.com ?

Regards,

Feris

On Mon, Oct 6, 2008 at 9:24 AM, Jon <[EMAIL PROTECTED]> wrote:

> You can send users to https://www.google.com/accounts/NewAccount
>
> As far as the UI concerns, what do you think about the "new account"
> button for the sign-in page on http://moderator.appspot.com/? We are
> experimenting there, and could make that the default for all
> applications.
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Linking directly to the Google Accounts "new account" page + feature request and UX complaint!

2008-10-09 Thread Alex Vartan

Thanks, Jon.
Does appending redirect information to NewAccount work as it does for
createLoginUrl?

The button looks OK. I actually used to work for Google in marketing
and remember when webteam standardized on that button, I'm not a huge
fan of it, but I know it's used everywhere now. Personally I think the
text is too bold and tight, and when I did some webpage optimization
for some AdWords pages, we found that adding a "»" to a button
increased clicks. I think it would be ideal to provide appengine users
some control over this page (it looks like Google Moderator was able
to customize it, will this feature be released soon), or at least the
button.

I prefer "Start now »" or "Click to begin »" based on the data we saw
on the adwords homepage, "Click to begin »" performed very slightly
but statistically significantly better than all other options (Sign up
now, Get Started, Start Now).
Thanks for the response,
Alex
P.S. I think we lived in castano together long ago...

On Oct 5, 7:24 pm, Jon <[EMAIL PROTECTED]> wrote:
> You can send users tohttps://www.google.com/accounts/NewAccount
>
> As far as the UI concerns, what do you think about the "new account"
> button for the sign-in page onhttp://moderator.appspot.com/?We are
> experimenting there, and could make that the default for all
> applications.
>
> On Oct 4, 3:09 pm, Alex Vartan <[EMAIL PROTECTED]> wrote:
>
> > Hi there,
>
> > Since for many novice users, the idea of logging into a non-Google
> > branded app with a Google account is a bit nonintuitive, I'd like to
> > create a page with some language in my app that says to the effect
> > "Got a Google Account? Sign in by clicking here. / Otherwise, create a
> > new account by clicking here"
>
> > I'd like to offer my users a choice of clicking on a button that links
> > to the standard GAEloginlink, and in the second case, bypass the
> > splash screen and send users directly to the 'create new google
> > account' page.
>
> > Is this possible?
>
> > Hope so. And if not, it should be. From a marketing perspective, it's
> > really strange to expect new users to my app to click on the same
> > button tologinand to sign up for a new account. The messaging
> > required to clarify this would be unnecessarily unweildy ("Click this
> > button,loginwith your google account. No Google account? Then find
> > the little link on the next page, create a google account, and you'll
> > be sent back to this app."
>
> > If anything, the GAloginpage could be improved by creating a larger
> > "New account" button or allowing App owners to customize the messaging
> > on that page.
>
> > -Alex
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] inconsistent indexes

2008-10-09 Thread tigrillo

Hello;

There's an unexpected  indexes behavior; I noticed it doing as follow:

now = datetime.datetime.now()
entity1 = Task.gql("WHERE date_f <= :1 ORDER BY date_f ASC",
now).get()
if entity1 != None:
   entity2 = Task.gql("WHERE date_f = :1",
entity1.date_f).fetch(limit=1, offset=0)
   assert entity2!=None, "This assert shows inconsistent indexes"

The exception is: "This assert shows inconsistent indexes"

Also:

n1 = Task.gql("WHERE date_f <= :1 ORDER BY date_f DESC", now).count()
n2 = Task.gql("WHERE date_f <= :1 ORDER BY date_f ASC", now).count()

assert n1 == n2, "This assert shows inconsistent indexes"

it raises the exception again. :(

There is a way to avoid inconsistent indexes or force index updating?

Thanks, best regards
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Cannot create naked or alternate domains for my GAE app.

2008-10-09 Thread Dennis

I created Issue 777 for naked domain support:
http://code.google.com/p/googleappengine/issues/detail?id=777



On Sep 8, 7:30 pm, "Paul Kinlan" <[EMAIL PROTECTED]> wrote:
> Yeah I had to do this one as well.
>
> I don't think Google solution is a long term viable solution for the
> majority of users.  For instance I can't configure my host to move 
> eweri.comtowww.eweri.com.
>
> What is the reason why Google changed this?
>
> Paul.
>
> 2008/9/8 Dennis <[EMAIL PROTECTED]>
>
>
>
>
>
> > Worked for me, also!!   But,
>
> > I'm a bit concerned:
> > this workaround will work while the current version of the control
> > panel is available.
> > When google apps upgrades it, the workaround will stop working.
>
> > I tried the google suggestion of forwarding my domain (naked or not)
> > towww.my_domain.com (
> >http://www.google.com/support/a/bin/answer.py?answer=91080&hl=en
> > )  but it did not allow my naked domain to work (got a 404 error but I
> > did not wait for hours or days to see if that suggestion would work
> > after some time passes).
>
> > Just wondering if anyone has gotten naked domains to work using the
> > google suggested way...
>
> > On Aug 14, 10:06 pm, Leo <[EMAIL PROTECTED]> wrote:
> > > This morning I dug further since I didn't stir any to answer this
> > > question last night and I found the answer for me at least.  Here it
> > > is:
>
> > > You get invalid domain when adding the naked domain when your version
> > > of google apps ("Manage this domain"->"Domain settings"->"Control
> > > panel"->"Next generation" ) set to "Next generation" instead of
> > > "Current version" ("Manage this domain"->"Domain settings"->"Control
> > > panel"->"Current version").  I switched my google apps control panel
> > > version to "Current version" and promptly visited the app engine app
> > > URL management area and SUCCESSFULLY added the naked domain
> > > raeleo.com!
>
> > > I found the answer at:
> >http://movetogae.blogspot.com/2008/08/setting-up-dns.html
> > > Not in the main post, but in a follow up comment.  Thank you Akash
> > > Xavier.
>
> > > In case you are wondering, yes the domain which allowed me to add the
> > > naked domain all along had the default Control panel version of
> > > "Current version"  I hadn't fooled around with that one.
>
> > > On Aug 13, 10:08 pm, Leo <[EMAIL PROTECTED]> wrote:
>
> > > > I'm having the same problem.
>
> > > > I have the A records on raeleo.com set up correctly and I get "invalid
> > > > domain" when I try to add my naked domain, raeleo.com, to the list of
> > > > URLs which point to my app engine app.  The URL which succeeded is
> > > > raechelleleo.raeleo.com   An oddity is that a visiting raeleo.com
> > > > results in a redirect from the google appengine IPs I set as A records
> > > > on this domain.  The redirect is to a host I had setup previously in
> > > > google apps pointing to the site creation tool: pages.raeleo.com.
> > > > That request fails because I don't have DNS setup for
> > > > pages.raeleo.com.
>
> > > > I too have another domain, squidpress.com, setup similarly in DNS and
> > > > for that one I can add the naked domain to the list of URLs that point
> > > > to a different app engine app in a different google apps account.
>
> > > > I've tried deleting and re adding the urls on the app engine config in
> > > > the google apps dashboard a few different ways to see if this would
> > > > reset it.  I even removed the app engine app from my active services.
> > > > No luck.  I still can't add the naked domain to my URL list.
>
> > > > Google, what is the status of this problem?  Let us know if we're
> > > > doing something wrong or you're working on a bug.
>
> > > > Sincerely,Leo, A person who likes the simplicity you're trying to offer
> > us.
>
> > > > On Aug 7, 3:28 pm, ia <[EMAIL PROTECTED]> wrote:
>
> > > > > I'm having the same issue as Jonathan, with silent failure for both
> > > > > www and thenakeddomain, even with a placeholder subdomain in place.
> > > > > Has anyone managed get a resolution on this?- Hide quoted text -
>
> > > - Show quoted text -- 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Longer timeouts - but not cpu

2008-10-09 Thread Joel

Similar to the problem of wanting resource intensive requests...

I would find it convenient to be able to mark some of my URLs with a
general timeout for that url.  Due to using urlfetch in certain ways I
may be able to determine that my timeout should be closer to 20
seconds.  But I'm not using more than a normal amount of cpu during
this process due to the urlfetch calls.

I think this makes sense in those cases where the user of my
application expects that it may take a little longer for the response
than typical web pages.

Is this already an issue or does anyone have comments on 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] exceptions.SystemError?

2008-10-09 Thread Aral Balkan

Is anyone else seeing errors similar to the following. It seems to
happen randomly -- possibly following a datastore write.

The only thing that fixes the app after it happens is to re-deploy.

Thoughts?

Issue link: http://tinyurl.com/4c2z2v

Thanks,
Aral

500 Error at /admin/ ()
: Parent module 'django.template' not
loaded
Traceback (most recent call last):
  File "/base/data/home/apps/si/4.18/common/appenginepatch/main.py",
line 24, in real_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/si/4.18/common/django/core/handlers/
wsgi.py", line 239, in
__call__
response = self.get_response(request)
  File "/base/data/home/apps/si/4.18/common/django/core/handlers/
base.py", line 128, in
get_response
return self.handle_uncaught_exception(request, resolver, exc_info)
  File "/base/data/home/apps/si/4.18/common/django/core/handlers/
base.py", line 160, in
handle_uncaught_exception
return callback(request, **param_dict)
  File "/base/data/home/apps/si/4.18/core/decorators.py", line 189, in
autorization_decorator
return target_method(request, first_level, second_level, context,
*args, **kwargs)
  File "/base/data/home/apps/si/4.18/core/views.py", line 2643, in
error_500
return helpers.render_response('500', first_level, second_level,
context,
'HttpResponseServerError')
  File "/base/data/home/apps/si/4.18/core/helpers.py", line 214, in
render_response
return eval(response_type)(loader.render_to_string(templateFile,
context))
  File "/base/data/home/apps/si/4.18/common/django/template/
loader.py", line 102, in
render_to_string
t = get_template(template_name)
  File "/base/data/home/apps/si/4.18/common/django/template/
loader.py", line 80, in
get_template
source, origin = find_template_source(template_name)
  File "/base/data/home/apps/si/4.18/common/django/template/
loader.py", line 54, in
find_template_source
mod = __import__(module, globals(), locals(), [attr])
: Parent module 'django.template' not
loaded

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] unable to add 'www' subdomain for app engine service

2008-10-09 Thread ajablo

Hello,
All my attempts to add 'www' subdomain to host my app as a
AppEngine service in Google Apps fail silently. No error message. I
can add
any other subdomain, like 'temp' or whatever with success. And I would
like
to assure that there are no other services configured to use 'www'
subdomain.
Many thanks for your help,
Adam
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Why Google App Engine is broken and what Google must do to fix it.

2008-10-09 Thread Filip


> Lets look at it from a performance perspective.
>
> 1- 1MB datastructure - which unit of data (leaving files outside)
> should be bigger than 1mb? IMO that's a badly design datastore.
> 2- 1000 query limit, which user is going to want 1000 results?
> 3- Short CPU, it is common knowledge that a user will go away from a
> page after 3 seconds of loading. so in order to eliminate this
> bottleneck you use catching, after all if it's intensive to compute
> it's worth catching.
> 4- Quotas in general, not even google has enough machines for us to waste.
> 5- Admin, a django junkie complaining for the lack of UI

Let's stop the slogans, and get down to a real discussion here.
Discussions are useful. This post misrepresents the original article
needlessly and this does not add to the discussion at all.

Use-cases for 1 MB were given, and there are plenty more. It is not
sufficient that you can use S3, because the over 1 MB file may well be
autogenerated (like a downloadable PDF or Excel or XML file).

The query limit was given specifically in combination with the lack of
expression power to select the records. Nobody wants to return 10.000
records to the browser, but you have to be able to get the 50 records
you do want to return. True, some applications know upfront what the
exact key will be, but some applications need more dynamic querying.
Also, the limit is hurtful because currently MapReduce can only be
implemented as a series of successive calls.

Likewise, the CPU was not discussed in the context of rendering a
standard user page but in the context of background processing and/or
report building.

Quota's were discussed with lot of understanding, but also a lot of
nuance. How do you actually respond to the remarks made? Let's get
down to real applications.

Admin again was not about being able to use Django, but about how to
do data transformation on your database. Do you think Google would be
able to rebuild its index, or do any other part of its magic, without
MapReduce? Admin is about the ability to prepare things before the
user needs them, so that yes you can respond in subsecond turnarounds.

> The only concern where I agree is file upload, we do need a facility
> to uplod videos or pdf or images or whatever we want, but that is
> being worked out, same with SSL.

Look, Google has declined to provide forward looking data. Yes, I was
at Google IO and they ARE good guys and I believe them when they
express their best intentions to meet specific targets (back then, at
the beginning of the year). But not providing an official calendar
means they are not putting their foot down, essentially that they
don't know themselves. Google is asking us to use what is there, and
only what is there (not that I wouldn't like a calendar, and that
would reframe this discussion completely - but it simply isn't there).
And there is little tangible evidence that warrant the faith that they
will in fact have a big bang improvement within what has now become a
really very short time frame. So my guess is that we'll see
substantial delays relative to what was said back at Google IO.

And I like Google App Engine very much. Really. And yes, I do build
real applications on top of it. And I do believe that many of their
limitations stem from the need to scale.

I feel that still leaves plenty of room for discussion, and especially
for this blog post that makes a lot of very good arguments. Plus the
author clearly uses and understands GAE, uses Python, isn't
complaining about the designers philosophy.

The good news is that by the end of *2009*, the world might be really
interesting with GAE, and with competing platforms driving each others
features.

Filip


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Where are the codes of GAE SDK Development Console?

2008-10-09 Thread Barry Hunter

I think you need to look in
http://code.google.com/p/googleappengine/source/browse/#svn/trunk/google/appengine/tools

its not a real file, so look at admin_dispatcher of
http://code.google.com/p/googleappengine/source/browse/trunk/google/appengine/tools/dev_appserver.py

which in turn takes to
http://code.google.com/p/googleappengine/source/browse/trunk/google/appengine/ext/admin/__init__.py

views.py is probably just to make the urls similar to the online admin.

On Thu, Oct 9, 2008 at 8:46 AM, GAEFans <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I know the 'templates' of URL 'http://127.0.0.1:8000/_ah/admin/
> datastore', i.e, C:\Program Files\Google\google_appengine\google
> \appengine\ext\admin\templates, but How can I find the 'views.py' of
> that URL ?
>
> Thanks.
>
>
> >
>



-- 
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Updating index.yaml

2008-10-09 Thread Arun Shanker Prasad

The error from the server seemed to be something wrong on googles
side, as it is working correctly now..
Sorry for the delay in posting it here

On Sep 24, 8:16 am, Arun Shanker Prasad <[EMAIL PROTECTED]>
wrote:
> Hi Marzia,
>
>   Thank you very much for the quick reply.
>
>    The # AUTOGENERATED line was there in the index.yaml, I will check
> the file ending..
>
> I actually tried deleting the index.yaml and the restarted the dev
> server to get the index.yaml generated. But then I found errors when
> uploading my app to the app engine, I got a 500 error from the server
> while trying to upload the index..
>
> Thanks,
> Arun Shanker Prasad.
>
> On Sep 24, 7:48 am, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > If the # AUTOGENERATED line is omitted from your index.yaml file, the
> > dev_appserver will not add any indexes to your index.yaml file, assuming you
> > are adding them by hand.
>
> > If you notice that the line is there, but the indexes still aren't being
> > added, it's possible that you've run in to a known issue where the indexes
> > won't generated if the line endings of your file are '\r\n'.  If this is the
> > case, you should be able to get the indexes to generate by either deleting
> > the file or fixing the line endings.
>
> > -Marzia
>
> > On Wed, Sep 24, 2008 at 1:32 AM, Arun Shanker Prasad <
>
> > [EMAIL PROTECTED]> wrote:
>
> > > Hi all,
>
> > > When ever I run my application locally, I get the following message,
>
> > > INFO     2008-09-24 08:31:09,174 dev_appserver_index.py] Detected
> > > manual index.yaml, will not update
>
> > > and none of the new indexes are automatically added to the
> > > index.yaml..
>
> > > I mean there is no change in the yaml file after I run the requests
> > > that need the new index, but this causes NeedIndex error in the app
> > > engine.
>
> > > This started to happen i tried to clear the datastore and began to
> > > work with a new copy of my whole source [I meant a backup of the
> > > files].
>
> > > Any help will be appreciated
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Where are the codes of GAE SDK Development Console?

2008-10-09 Thread GAEFans

Hi,

I know the 'templates' of URL 'http://127.0.0.1:8000/_ah/admin/
datastore', i.e, C:\Program Files\Google\google_appengine\google
\appengine\ext\admin\templates, but How can I find the 'views.py' of
that URL ?

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Where does the development Datastore put its data?

2008-10-09 Thread pr3d4t0r

On Oct 8, 11:11 pm, "David Symonds" <[EMAIL PROTECTED]> wrote:
> On Thu, Oct 9, 2008 at 5:03 PM, pr3d4t0r <[EMAIL PROTECTED]> wrote:
> > Where does the development Datastore put its data?  It's not in the
> > application directory, so I assume it's somewhere under /usr, /var, or
> > maybe even /tmp...  thanks in advance.
>
> It's OS-dependent. Try "dev_appserver.py --help", and see the comment
> next to --datastore_path. On my Mac, it's under /var/folders; on Linux
> it is in /tmp.

Coolio -- /var/folders here as well.  Thanks!

pr3d4t0r
http://www.istheserverup.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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] How many time does the application have to throw a result

2008-10-09 Thread Aramaki

in api->sandbox docs you can read:

spawn a sub-process or thread. A web request to an application must be
handled in a single process within a few seconds. Processes that take
a very long time to respond are terminated to avoid overloading the
web server.

In order to avoid the ugly server error by implementing a simple time
mesurement function that force an output I would like to know how many
seconds is it talking about.

thank you 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Help: I want to have an app engine space!!

2008-10-09 Thread wenxin ren
thank you every much.

2008/10/9 sfox <[EMAIL PROTECTED]>

> Use China Mobile for Carrier name.
>
> 2008/10/9 wenxin ren <[EMAIL PROTECTED]>
>
>> thanks a lot.
>>
>> for my poor english, would you please make me clear about the carrier
>> name?
>> what does this mean? does carrier means the companies like AT & T? which
>> operating on the wireless network for the mobile phone?
>>
>> 2008/10/9 fedekun <[EMAIL PROTECTED]>
>>
>>  Im from argentina i had the same problem, just fill this form
>>> http://appengine.google.com/waitlist/sms_issues
>>>
>>> 2008/10/8 ajaxer <[EMAIL PROTECTED]>
>>>

 I am from china,
 but the mobile number I entered didn't work for me
 can google manually handler this problem for me?

 chinese developers are eagerly for tasting google app engine.

 but we still have difficulties in using it.

 hope you can help us!!
 thanks.



>>>
>>>
>>> --
>>> Best Regards.
>>> fedekun
>>>
>>>
>>>
>>   >>
>>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---