[google-appengine] Re: SMS: through python AIM/gtalk libraries?

2009-01-05 Thread boson

Take a look at: http://www.textmarks.com/dev/

There's a very easy API to receive SMS into your app (as an HTTP
POST), and your HTTP response gets sent back to the person's phone as
a text message.  Takes 10 minutes or less to set up.  Here's a
tutorial:  http://www.webmonkey.com/tutorial/Build_an_SMS_Notification_App

Also outbound is supported including subscriptions and broadcasts to
groups.

Free to use (ads in message footers) or pay reasonable rates for ad-
free.  US only.


On Jan 1, 2:08 pm, mclovin  wrote:
> I wanted to test out some SMS web app, where I can communicate w/ the
> application from my phone. I was wondering if the App Engine allows me
> to do this through the use of either AIM libraries or Gtalk Libraries
> written in python.
>
> Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Query result caching

2009-01-05 Thread boson

On Dec 2 2008, 9:44 am, gops  wrote:
> another question is , how can i make my entity die after particular
> time  <-- it can be
> done manually .. but is there any automatic/built in way ?

That would be a great feature.
You should go and STAR this issue to raise awareness and register your
request:
http://code.google.com/p/googleappengine/issues/detail?id=914
(Automatic expiration/purge of Datastore entities (like memcache has))
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Expiring DataStore Entities ?

2009-01-05 Thread boson

There is a new issue for this:

Automatic expiration/purge of Datastore entities (like memcache has)
http://code.google.com/p/googleappengine/issues/detail?id=914

STAR it!  You know you want it.


On Nov 20 2008, 10:49 am, Jeff S  wrote:
> Hi boson,
>
> It sounds like this idea belongs in the issue tracker as a feature
> request:http://code.google.com/p/googleappengine/issues/list
>
> Happy coding,
>
> Jeff
>
> On Nov 18, 9:27 am, boson  wrote:
>
> > Anybody like this?  I propose that Google allows Datastore entries to
> >expireand be automatically purged.  The default would be to never
> >expire(current behavior), but we might get an optional param, like
> > "time" from memcache.add():
>
> > time
> > Optional expiration time, either relative number of seconds from
> > current time (up to 1 month), or an absolute Unix epoch time. By
> > default, items neverexpire.
>
> > I'm having a hard time getting my head around managing retention
> > policies on old BigTable data, particularly with the lack of support
> > for long-running requests and the slowness/inability to make large
> > queries.  It seems that this simple addition to the db.Model API would
> > address a lot of these problems!
>
> > E.g. If you're storing "gifts" given for a simple social app, you
> > might set a 6 month retention on your Gift entities.  This keeps your
> > data store clean without requiring extra maintenance.  Users might
> > flag to "keep" a special gift (which would set the entity to never
> >expire), but otherwise you could keep running without indexes getting
> > huger and slower.
>
> > E.g. If you want to store votes for a week-long poll to make sure
> > nobody votes twice.  You tally votes as you go (sharded counters of
> > course), but store Vote Entities keyed by user IDs to allow quick
> > checks if people voted yet.  After the poll is closed, you don't want
> > thousands of Vote records sitting around in your store.  If they had
> > an expiration of 1 month, they'd automatically get cleaned up.
>
> > Is there a better way of handling this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: why java

2009-01-05 Thread Aramaki

There something that's getting me crazy, why don't google anounce wich
language will be the next supported one. There is no reason in not
making this public. Even if it is released later than expected, that
information won't kill anybody.

For example, I'm about to start a multipurpose 'skeleton' for future
application, but the fact is that the language I begin with will be
the one I will use for the next projects. I'm absolutly sure that a
lot of people should be happy with a bit more information.

Some times I think googles people is not seriouse.

For example:

1> The request timeout is dynamic, and may be shortened... With only
that information, How do I implement this in a code. Please, I need at
least the exact time of a 'normalized behaviour' code. The only way
with long time processes is with error/test: WOW, very clever

2> This secret new lenguage: There is no point in not making that
information public

3> There is currently no way to specify a time limit to the URL fetch
action. Didn't anybody at google thought this should be very usefull
(even with severe timeouts limits)

... tons more





On Jan 5, 11:18 am, djidjadji  wrote:
> I would LOL when the next language will be Python 3.
> And that python will be the only language for GAE.
> What is wrong with learning Python?
> When people wanted to use Ruby, PHP, Coldfusion, Flash.. for web
> development
> they did took the time to learn this new syntax. Yes, it is just a
> different syntax.
> They did not complain that is was not C++, Basic, Forth or TCL that
> they could use.
> All these programming languages belong to the same family, procedural 
> languages.
> The new thing you have to get used to is the BigTable-Datastore.
>
> 2009/1/4 Travis Reeder :
>
>
>
> > $10 says the new language is Ruby.
>
> > And although java is awesome, there are a lot of issues with running
> > it in an environment like GAE, the biggest being that you need to
> > recompile and redeploy with every change. Not with Python (or Ruby or
> > any of the new dynamic scripting languages).
>
> > Travis
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine ] Re: 有谁知道怎样 将域名指向app engin e的方法?

2009-01-05 Thread Daniel Lv
Google上面难道没有?

2009/1/5 kang 

> 加我好友吧,告诉你
>
> 2009/1/4 zhuming liu 
>
>> 有谁知道怎样将域名指向app engine的方法?
>>
>>
>
>
> --
> Stay hungry,Stay foolish.
>
>
> >
>

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



[google-appengine ] Re: 有谁知道怎样 将域名指向app engin e的方法?

2009-01-05 Thread Junkie o0o
http://www.google.com/a/cpanel/domain/new
囧
2009/1/4 zhuming liu 

> 有谁知道怎样将域名指向app engine的方法?
> >
>


-- 
fedora, I come back.

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



[google-appengine] Re: return a variable value from html form to python

2009-01-05 Thread Stephen Judd
How about replacing: template_values = dict(place=g_place) with

template_values = {'place': g_place}

Steve

On Mon, Jan 5, 2009 at 11:51 AM, thebrianschott wrote:

> template_values = dict(place=g_place)
>

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



[google-appengine] Re: Configuring Friend Connect

2009-01-05 Thread benzrad

app.yaml:

application: app21zh
version: 1
runtime: python
api_version: 1

handlers:
- url: /static
  static_dir: static

- url: /img
  static_dir: img

- url: .*
  script: main.py

file structure:
-img
-skins
--default
-static

TIA. hope i can get a answer.
btw, do u think if google soon will add native support of friend
connect with its app engine, which render my endeavor to add friend
connect to my appspot a vain?

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



[google-appengine] Re: 1 application, multiple datastores

2009-01-05 Thread hawkett

On Dec 30 2008, 3:14 pm, Andy Freeman  wrote:
> > No, I would prefer GAE to implement the system completely, using
> > existing elements.
>
> I was unaware of the weight that your preferences have.

Isn't that what a feature request is?  Should I raise feature requests
for other people's preferences?  What a strange statement.

> I note that your implementation requires new elements, namely
> additions to app.yaml.

And you fail to note that I said it was not a requirement.  e.g. you
could achieve the same thing when you deploy the app (e.g. when you
choose to tie it to a domain or not), or via configuration in admin
console.

> > As it stands GAE does not allow cross data store queries,
> > and from my perspective that is an aspect of the security
> > architecture.  106 wants that aspect 'relaxed'.
>
> How do you know how the current GAE code actually works?

I read the API docs - how do you manage it?

> 106 or any of the variants that I've mentioned would merely make "open
> datastore" available through some appropriate safeguards and would be
> just as secure as the current system.

Let's examine the token idea - and assume you have obtained N tokens
securely.  You can easily introduce a bug in your application code
that uses the wrong token for the wrong end-user.  Secure access,
buggy exposure of customer data.  Your idea does not prevent the cited
bug, because it is not an alternative to strict data partitioning.
This is not a solution to the concerns of the original poster.
Perhaps I have misunderstood your implementation?

> I don't know Google's code either, but it is generally believed that
> BigTable is used in many internal Google applications.  The easy way
> to make BigTable available to applications is via such a routine
> called byapplication-space code.  To the extent that GAE's datastore
> is "just" a BigTable wrapper

I think you are probably over-simplifying the meaning of BigTable.
BigTable is indeed used by many internal applications (as I understand
it), and as previously stated, I would expect (don't know) that the
data segregation required to achieve this would not be implemented by
each of those internal applications, but by lower level features in
BigTable.  Move common use cases to the platform level.

On Dec 30 2008, 3:14 pm, Andy Freeman  wrote:
> > No, I would prefer GAE to implement the system completely, using
> > existing elements.
>
> I was unaware of the weight that your preferences have.
>
> I note that your implementation requires new elements, namely
> additions to app.yaml.
>
> > It would allow some great additions, such as a
> > common billing and payment engine - something most app developers
> > would love to have taken off their plate.
>
> There are lots of other implementations that have that property, as
> well as the others described below.
>
> > As it stands GAE does not allow cross data store queries,
> > and from my perspective that is an aspect of the security
> > architecture.  106 wants that aspect 'relaxed'.
>
> How do you know how the current GAE code actually works?
>
> One possible implementation that satisfies every currently observable
> behavior involves an "open datastore" routine that is passed the name
> of the relevant datastore and called by Google code that lives 
> inapplicationspace.  This routine returns a token that is used by every
> datastore access routine.  (A given process may access the datastore
> on behalf of urls that require login as well as ones that don't so
> whatever mechanism connects a process to a datastore probably does not
> require any user credentials.  However, "open datastore" may use app-
> specific credentials baked into theapplicationby google's set up
> code.)  There are a number of places where "open datastore" could be
> called.
>
> 106 or any of the variants that I've mentioned would merely make "open
> datastore" available through some appropriate safeguards and would be
> just as secure as the current system.
>
> I don't know Google's code either, but it is generally believed that
> BigTable is used in many internal Google applications.  The easy way
> to make BigTable available to applications is via such a routine
> called byapplication-space code.  To the extent that GAE's datastore
> is "just" a BigTable wrapper
>
> On Dec 30, 6:17 am, hawkett  wrote:
>
> > > "The system" in this case is the combination of the GAE platform and
> > > anapplicationrunning on said platform.
>
> > No, I would prefer GAE to implement the system completely, using
> > existing elements.  How?  In app.yaml, you specify that your
> >applicationsupports mapping multiple google apps user spaces to your
> > app.  Currently it only allows one.  This is anapplication
> > marketplace type concept.  When my app is added, a new data partition
> > is created for their users.  Most importantly I am the administrator
> > of the app and all of the data partitions - this is different to
> > deploying my app to their GAE account - 

[google-appengine] Re: Over Quota: Datastore Indices Count

2009-01-05 Thread Marzia Niccolai
Hi,

The quota limit is 100, but there is currently an issue where vacuumed
indexes don't get credited back when vacuumed.  I have fixed this issue with
your quota for now.

-Marzia

On Sat, Jan 3, 2009 at 8:09 AM, dloomer  wrote:

>
> Is the index quota limit actually 50?  I don't see that listed on my
> Quota Details page or here:
> http://code.google.com/appengine/articles/quotas.html.
>
> Anyway, just today I started seeing that warning in my dashboard even
> though I have only 45 indices (no more than nine for any given entity
> kind).  What's strange is, I had never seen this warning before in
> spite of the fact that up until yesterday, when I did some cleanup, I
> had 13 additional indices on top of the current 45.
>
> Incidentally, late last night I was getting 500 server errors on the
> index update portion of my deployments (no further details on the
> nature of the error were given).
>
> I haven't quite nailed down the security model of my app yet, so I
> don't want to make the app ID public here -- I can provide that in a
> private e-mail.
>
>
> On Dec 20 2008, 1:40 am, paptimus  wrote:
> > Hi, GAE team.
> >
> > I encountered "Your application is exceeding a quota: Datastore
> > Indices Count" on dashboard.
> >
> > The number of indeces is under 50, but one model has about 30 indeces.
> > So I think this one is the point of over quota warning and vacuumed
> > these indeces.
> > Vacuume_index was completed and there is no index of that model.
> >
> > But the warging of over quota ramains over 24 hours and the status of
> > a new index remains "building".
> >
> > I hope you check my index and change the status to "Error" if my index
> > has problems, please.
> >
> > Thanks.
> >
>

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



[google-appengine] Re: Datastore Size Scaling

2009-01-05 Thread djidjadji

In this thread I have posted a few of my measurements.

http://groups.google.com/group/google-appengine/browse_frm/thread/482b83fd91abe570/f9546ef994d644d4

The only info google gives about performance, I know, can be looked at
http://code.google.com/status/appengine

2009/1/5 James Ashley :

> Oh, yeah.  Do you have any solid numbersyou're willing to publish from
> your tests?
>
> Better yet, do you have any statement from google?

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



[google-appengine] Re: NeedIndexError and dynamically created entities

2009-01-05 Thread Marzia Niccolai
Hi,

I do not believe that you will immediately be able to purchase additional
composite indexes when we launch the ability to pay for additional
resources.  However, the ability to add over 100 composite indexes seems
like it will be something that is supported eventually (though I have no
specific timeline as to when this would be).

-Marzia

On Tue, Dec 30, 2008 at 11:13 PM, johnP  wrote:

>
> Is the limit of 100 indexes a permanent limit? Any ETA when it might
> be lifted / we can purchase extra quota?
>
> Thanks -
>
>
>
>
>
> On Dec 30, 4:15 pm, Marzia Niccolai  wrote:
> > Hi Elias,
> >
> > You only need indexes for certain kinds of queries, such as those with
> > inequality filters, or some ancestor queries.  You can run other queries
> > immediately after a kind is created. Composite index queries can be read
> up
> > on here:
> http://code.google.com/appengine/docs/datastore/queriesandindexes.html
> > Also, this article is very helpful:
> http://code.google.com/appengine/articles/index_building.html
> >
> > If you create a kind you believe will need a composite index, you might
> try
> > to log the kind and query type, and periodically add those to your
> > app.yaml.  Please also be aware that there is currently a limit on 100
> > composite indexes per application.
> >
> > As for the reorganization script, you will need to write this script to
> > modify data in batches, probably using some kind of request argument to
> > indicate the start and end of the batch which you are processing.  You
> will
> > need to experiment with the amount of data in one request that you can
> put()
> > and delete(), since it depends largely on the size and shape of your
> data.
> >
> > -Marzia
> >
> > On Tue, Dec 30, 2008 at 2:11 PM, Elias Athanasopoulos <
> >
> > elias.athanasopou...@gmail.com> wrote:
> >
> > > Hello!
> >
> > > My application needs to dynamically create entities. In short, I am
> > > creating an entity per user, in the fashion:
> >
> > > table = type(name, (UserGeneric,), {})
> >
> > > where UserGeneric is a class with all user properties needed by my
> > > application. So, entities are created at run-time. The problem is that
> > > queries lack of an index, since queries are targeting entities have
> > > been created at run-time. For example if a user joins the application
> > > with name 'foo' a new entity (for example '__foo') will be created,
> > > but every query targeting that entity will fail, since there is no way
> > > to generate an index for it. Is there any workaround?
> >
> > > In another context, I need to reorganize my entities in the live
> > > server using a script. This script is meant to run once, just to copy
> > > records for old tables to new ones. However, I am always getting a
> > > time-out when I am trying to execute the script in the live server.
> > > Any hints?
> >
> > > Thanks in advance.
> >
> > > Regards,
> > > Elias
> >
>

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



[google-appengine] Re: Developer invite problem

2009-01-05 Thread Marzia Niccolai
Hi,

I have not seen this issue, but if you want to reply to me with the exact
email address and app id, I can investigate this issue.

-Marzia

On Thu, Jan 1, 2009 at 8:35 PM, AE6RT  wrote:

>
> Good day.
>
> I'm hosting a GAE app on a Google Apps-hosted domain.  Call this
> domain example.com, and my GAE app is available at a.example.com.
>
> I try to invite d...@example.com to be a developer, but the email
> invitation is never delivered to d...@example.com.  In fact, no email
> invitations seem to be deliverable to any @example.com user.  I can,
> however, invite developers on non-example.com domains.  Has anyone
> else seen this problem?  If yes, how did you solve it?
>
> Thanks.
> >
>

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



[google-appengine] Re: maximum number of versions

2009-01-05 Thread Marzia Niccolai
Hi,

Are you experiencing this still?  This error, when it appears, should only
be transient, and I believe it should have been resolved shortly after you
were seeing it three days ago.

-Marzia

On Fri, Jan 2, 2009 at 10:21 AM, bFlood  wrote:

>
> Marzia-
>
> this is happening again, it was working fine all morning and then all
> of a sudden I keep getting that error again
>
> cheers
> brian
>
> On Dec 22 2008, 10:36 am, bFlood  wrote:
> > just wanted to reply to the group for future users. the app started
> > working again about an hour after Marzia posted so I'm assuming he did
> > somethign in the background
> >
> > cheers
> > brian
> >
> > On Dec 18, 2:16 pm, Marzia Niccolai  wrote:
> >
> > > Hi,
> >
> > > Thanks for the info, I'm looking in to this now.
> >
> > > If anyone else is experiencing this, please let me know.
> >
> > > -Marzia
> >
> > > On Thu, Dec 18, 2008 at 11:14 AM, bFlood  wrote:
> >
> > > > I keep getting this error when publishing:
> >
> > > >TooManyVersions(403)
> > > > The application already has the maximum number ofversions
> >
> > > > when I checked the forum, the best advise was to up major version
> > > > number which I did (from 1 to 2). This worked for about an hour and
> > > > now I'm getting the same error again (and I can confirm that url's
> > > > sent via appcfg.py have the proper "2" in the version). I doubt my
> > > > version 2 has gone over the limit already so I'm thinking something
> > > > else is wrong
> >
> > > > any suggestions? (besides going to V3)
> >
> > > > appID: dev-arc2earth
> >
> > > > cheers
> > > > brian
> >
>

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



[google-appengine] Re: How to get "combined API + Runtime" in log files?

2009-01-05 Thread Tony Arkles

Bump?  I posted this over the holidays, maybe someone who knows the
answer might have missed it?

On Dec 30 2008, 9:54 pm, Tony Arkles  wrote:
> Hi all.  Maybe I'm missing something obvious here.  In the Admin
> Console (on the production servers), I get log lines like:
>
> 12-30 12:39PM 36.208 /x 500 552ms 1713ms-cpu 7kb
>
> (with a "CPU warning" icon next to the 1713ms-cpu).
>
> When I retrieve the log files from app engine, I can't seem to find
> either the request time (552ms) or the "combined API +
> Runtime" (1713ms-cpu).  Is there some obvious way to get this
> information that I'm just missing?  It would be fantastic to be able
> to trend this stuff over time, to identify the overall effects of
> changes.
>
> Is there an easy way to get this stuff in bulk?
>
> Cheers
> Tony
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Modeling Article Error

2009-01-05 Thread Marzia Niccolai
Thanks for the report, I'm working on getting this fixed!

-Marzia

On Sat, Jan 3, 2009 at 9:57 AM, gops  wrote:

>
> the think i like about google is , you respect it so much that , even
> if it make mistake , you just point that out the best way you can.
>
> had it been that microsoft made such mistake , i dont think much
> people will bother to even tell them ...
>
> :D
>
> On Dec 31 2008, 1:15 pm, "dave...@gmail.com" 
> wrote:
> > I'm not sure if this is big enough to be posted in the issue tracker,
> > but I noticed a small coding mistake when I was reading the Datastore
> > Modeling article athttp://
> code.google.com/appengine/articles/modeling.html
> >
> > Right at the bottom of the "One to Many" section, is the following
> > paragraph followed by a line of code:
> >
> > "When Scott loses his phone, it's easy enough to delete that record.
> > Just delete the PhoneNumber instance and it can no longer be queried
> > for:"
> >
> > jack.phone_numbers.filter('phone_type =', 'home').get().delete()
> >
> > Shouldn't the line of code be:
> >
> > scott.phone_numbers.filter('phone_type =', 'home').get().delete()
> >
>

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



[google-appengine] Not able to signup for appengine

2009-01-05 Thread manish deora
Hi guys,

I am trying to create a sample application using google app engine.but it
seems i just got stuck at a point, where i am not able to verify my account
since i did not get the confirmation message on mobile.And now i get the
error message "You have sent too many messages".

My info is

email: manish.de...@gmail.com

mobile : +91 9322776373

Any help is apperiecated.
Thanks
Manish Deora

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



[google-appengine] Re: why java

2009-01-05 Thread djidjadji

I would LOL when the next language will be Python 3.
And that python will be the only language for GAE.
What is wrong with learning Python?
When people wanted to use Ruby, PHP, Coldfusion, Flash.. for web
development
they did took the time to learn this new syntax. Yes, it is just a
different syntax.
They did not complain that is was not C++, Basic, Forth or TCL that
they could use.
All these programming languages belong to the same family, procedural languages.
The new thing you have to get used to is the BigTable-Datastore.


2009/1/4 Travis Reeder :
>
> $10 says the new language is Ruby.
>
> And although java is awesome, there are a lot of issues with running
> it in an environment like GAE, the biggest being that you need to
> recompile and redeploy with every change. Not with Python (or Ruby or
> any of the new dynamic scripting languages).
>
> Travis

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



[google-appengine] Re: Get SID in appengine user service

2009-01-05 Thread Bryan Donlan



On Jan 4, 11:01 am, coder_2020  wrote:
> Is there a way to get the SID in appengine user service. After the
> user logged in using google account, I want to be able to access
> google Reader service which requires the SID but I am not sure how to
> get that after the user logged in. I could use another way to
> authenticate users. But I want to use the user service provided for
> app engine.
>
> Thanks

Your app isn't given access to the google SID - this is almost
certainly to make sure people can use their google account to log in
without having to worry about handing over the keys to their gmail
account, etc.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: return a variable value from html form to python

2009-01-05 Thread thebrianschott

Steve,

Your syntax throws a python syntax error for me.

In the meanwhile I have discovered the GAE documentation for
self.request.get() at the following link.

http://code.google.com/appengine/docs/webapp/requesthandlers.html

I am now struggling to make the def(post) part of the code to be
executed. For some reason, it is not executing at all.

Thanks

On Jan 5, 12:35 pm, "Stephen Judd"  wrote:
> How about replacing: template_values = dict(place=g_place) with
>
> template_values = {'place': g_place}
>
> Steve
>
> On Mon, Jan 5, 2009 at 11:51 AM, thebrianschott wrote:
>
> > template_values = dict(place=g_place)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How to get "combined API + Runtime" in log files?

2009-01-05 Thread Marzia Niccolai
Hi,

This information is currently only available in the logs of the admin
console.  The only way to really currently trend this information over time
would be to save the daily graph of 'CPU Seconds Used/Second' available on
the dashboard.

Not an ideal solution, and it seems like this would be a good feature
request.

-Marzia

On Mon, Jan 5, 2009 at 10:19 AM, Tony Arkles  wrote:

>
> Bump?  I posted this over the holidays, maybe someone who knows the
> answer might have missed it?
>
> On Dec 30 2008, 9:54 pm, Tony Arkles  wrote:
> > Hi all.  Maybe I'm missing something obvious here.  In the Admin
> > Console (on the production servers), I get log lines like:
> >
> > 12-30 12:39PM 36.208 /x 500 552ms 1713ms-cpu 7kb
> >
> > (with a "CPU warning" icon next to the 1713ms-cpu).
> >
> > When I retrieve the log files from app engine, I can't seem to find
> > either the request time (552ms) or the "combined API +
> > Runtime" (1713ms-cpu).  Is there some obvious way to get this
> > information that I'm just missing?  It would be fantastic to be able
> > to trend this stuff over time, to identify the overall effects of
> > changes.
> >
> > Is there an easy way to get this stuff in bulk?
> >
> > Cheers
> > Tony
> >
>

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



[google-appengine] Re: URL Fetch API --- Does Google log IP addresses to prevent abuses?

2009-01-05 Thread Marzia Niccolai
Hi,

The ip address of requests are also available in the logs.

-Marzia

On Sat, Jan 3, 2009 at 1:06 PM, Barry Hunter wrote:

>
> Do it yourself:
> http://code.google.com/appengine/docs/python/logging.html
>
> 2009/1/3 KillIEbrowser :
> >
> > Now I'm building a new free web App using HTTPS:
> >
> > "Private URL Fetching"
> >
> > and I think is useful to see a "URL Fetch Log" into the App Engine
> > Admin.
> > Can you make this feature, please?
> >
> >
> > On Dec 30 2008, 9:32 pm, "Barry Hunter" 
> > wrote:
> >> IP addresses of what?
> >>
> >> 2008/12/30 KillIEbrowser :
> >>
> >>
> >>
> >> > Hi All,
> >> > Does Google log IP addresses to prevent abuses?
> >>
> >> --
> >> Barry
> >>
> >> -www.nearby.org.uk-www.geograph.org.uk-
> > >
> >
>
>
>
> --
> Barry
>
> - www.nearby.org.uk - www.geograph.org.uk -
>
> >
>

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



[google-appengine] Re: "Type 'exceptions.TypeError" when test "gettingstarted/usingwebapp.html" example

2009-01-05 Thread djidjadji

GAE is not compatible with Python 2.6.
Install Python 2.5.x

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



[google-appengine] Re: Datastore Size Scaling

2009-01-05 Thread Geoffrey Spear



On Jan 4, 11:07 pm, James Ashley  wrote:
> Better yet, do you have any statement from google?

Is the fact that they use the same technology for their own sites
"statement" enough for you?  If you need to scale bigger then Google
does, you might need to build your own system.  Otherwise...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: PLEASE HELP

2009-01-05 Thread Marzia Niccolai
Hi,

execfile is a builtin Python function, so it seems like there is something
amiss with your python installation.  What version of Python are you using?
Does it run, and can you use built-in functions, from the command line
interpreter? What is your PYTHONPATH?

-Marzia

On Sat, Jan 3, 2009 at 12:58 AM, lanceh...@gmail.com wrote:

>
> help!
> I am a beginer of google app engin
> why when I begin the hello world the computer says that
>
>
> C:\Program Files\Google\google_appengine>dev_appserver.py helloworld
> Traceback (most recent call last):
>  File "C:\Program Files\Google\google_appengine\dev_appserver.py",
> line 50, in
> 
>execfile(script_path, globals())
> NameError: name 'execfile' is not defined
>
> >
>

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



[google-appengine] Re: return a variable value from html form to python

2009-01-05 Thread Stephen Judd
What sort of error?

On Mon, Jan 5, 2009 at 1:36 PM, thebrianschott wrote:

>
> Steve,
>
> Your syntax throws a python syntax error for me.
>
> In the meanwhile I have discovered the GAE documentation for
> self.request.get() at the following link.
>
> http://code.google.com/appengine/docs/webapp/requesthandlers.html
>
> I am now struggling to make the def(post) part of the code to be
> executed. For some reason, it is not executing at all.
>
> Thanks
>
> On Jan 5, 12:35 pm, "Stephen Judd"  wrote:
> > How about replacing: template_values = dict(place=g_place) with
> >
> > template_values = {'place': g_place}
> >
> > Steve
> >
> > On Mon, Jan 5, 2009 at 11:51 AM, thebrianschott  >wrote:
> >
> > > template_values = dict(place=g_place)
> >
>

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



[google-appengine] Re: index.yaml kept generating many unneeded __searchable_text_index

2009-01-05 Thread Marzia Niccolai
Hi,

These indexes are appearing because you are using multiple keywords in your
search, each of which needs a __searchable_text_index field in an index
entry.  And you are right, these will result in exploding indexes.

The bottom line is that searchable model can only realistically be used for
one or two word searches before resulting in an exploding index.

-Marzia

On Sat, Jan 3, 2009 at 8:56 PM, Ferdhie  wrote:

> Dear All
>
> I don't know why, but everytime I run at localhost, the index.yaml kept
> generating so many __searchable_text_index Index
> It will cause error while I update index on appengine servers (perhaps
> because of exploding index)
>
> Here's my model
> class Entry(search.SearchableModel):
> STATUS_CHOICES = (
> ('draft'),
> ('public'),
> ('private'),
> )
>
> COMMENT_STATUS_CHOICES = (
> ('open'),
> ('close'),
> ('password'),
> )
>
> PING_STATUS_CHOICES = (
> ('open'),
> ('close'),
> )
>
> ENTRY_TYPE_CHOICES = (
> ('post'),
> ('page'),
> )
>
> author = db.UserProperty()
> author_name = db.StringProperty()
> title = db.StringProperty()
> slug = db.StringProperty()
> body = db.TextProperty()
> postdate = db.DateTimeProperty()
> postdate_gmt = db.DateTimeProperty()
> excerpt = db.TextProperty()
> status = db.StringProperty(default='draft', choices=STATUS_CHOICES)
> commentstatus = db.StringProperty(default='open',
> choices=COMMENT_STATUS_CHOICES)
> pingstatus = db.StringProperty(default='open',
> choices=PING_STATUS_CHOICES)
> commentcount = db.IntegerProperty(default=0)
> tags = db.ListProperty(db.Key)
> entrytype =
> db.StringProperty(default='post',choices=ENTRY_TYPE_CHOICES)
> year = db.StringProperty()
> month = db.StringProperty()
> day = db.StringProperty()
>
>
> Here's the index
> # Used 7 times in query history.
> - kind: Entry
>   properties:
>   - name: __searchable_text_index
>   - name: __searchable_text_index
>   - name: __searchable_text_index
>   - name: __searchable_text_index
>   - name: __searchable_text_index
>   - name: entrytype
>   - name: postdate
> direction: desc
>
> # Used 6 times in query history.
> - kind: Entry
>   properties:
>   - name: __searchable_text_index
>   - name: __searchable_text_index
>   - name: __searchable_text_index
>   - name: __searchable_text_index
>   - name: __searchable_text_index
>   - name: postdate
> direction: desc
>
> # Used once in query history.
> - kind: Entry
>   properties:
>   - name: __searchable_text_index
>   - name: __searchable_text_index
>   - name: postdate
> direction: desc
>
> # Used 4 times in query history.
> - kind: Entry
>   properties:
>   - name: __searchable_text_index
>   - name: entrytype
>   - name: postdate
> direction: desc
>
> # Used 11 times in query history.
> - kind: Entry
>   properties:
>   - name: __searchable_text_index
>   - name: postdate
> direction: desc
>
> # Used once in query history.
> - kind: Entry
>   properties:
>   - name: postdate
> direction: desc
>
> The question:
> 1. How to suppress those many2 autogenerated __searchable_text_index
> 2. Or maybe I make some mistake in design?
>
> Thanks,
>
> --
> Herdian Ferdianto
> http://beta.ferdianto.com
> http://www.id-snippet.com/
>
>
> >
>

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



[google-appengine] Re: Datastore Size Scaling

2009-01-05 Thread Peter Recore

Personally, I don't like to rely on "google the same technology for
their own sites" as the definitive answer, because app engine does not
give us unlimited access to google's infrastructure.  For example,
maybe it only scales well if you have unlimited indexes, or maybe
appengine itself adds some overhead to bigtable that scales poorly.  I
think it's healthy for us to have a bit of skepticism when it comes to
any new technology, and asking questions of this group and experiments
like djidjadji's help to prove, rather than hype, appengine's true
capabilities.  With all this being said, I'm pretty sure that yeah,
it'll scale just fine :-)

-peter

On Jan 5, 8:30 am, Geoffrey Spear  wrote:
> On Jan 4, 11:07 pm, James Ashley  wrote:
>
> > Better yet, do you have any statement from google?
>
> Is the fact that they use the same technology for their own sites
> "statement" enough for you?  If you need to scale bigger then Google
> does, you might need to build your own system.  Otherwise...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Displaying query results in template (Django)

2009-01-05 Thread Lacrima

Hello!

I am trying to set some extra_context in my template using query.

For example, I have the next model:
class directions(db.Model):
directions = db.StringProperty()
directionsid = db.IntegerProperty()
def __unicode__(self):
return self.directions

Then I try to access data depending on user input and to set
extra_context. A bit of my code:

###
query = GqlQuery("SELECT * FROM directions WHERE directions
= :directions", directions = form.cleaned_data["direction"])
self.extra_context["direction"] = directions.directionsid


And finally, when I use {{direction}} in my template I just receive
something like that:

But I want my results to be human readable.

What should I do?
Looking forward to your replies.

P.S.: Sorry for my English. If most  isn't quite clear i"ll try to
explain it in other way.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Error returned on images in static dir

2009-01-05 Thread Marzia Niccolai
This seems to be working for me.  Can you provide your app.yaml?

-Marzia

On Sun, Jan 4, 2009 at 12:40 PM, tijer  wrote:

>
> Just to provide more info, the error returned is a standard 500, with
> this accompanying text (drafted by Google, I certainly didn't write
> it)
>
> "Error: Server Error
> The server encountered an error and could not complete your request.
> If the problem persists, please report your problem and mention this
> error message and the query that caused it."
>
> The error can be seen here ->
> http://rby.appspot.com/images/_mobile_safari.gif
>
> On Jan 4, 3:38 pm, tijer  wrote:
> > This morning some weird behavior began to emerge on my application.
> > Some of the images began to give errors even though they are placed in
> > a static dir and have nothing to do with the python-code (hence it
> > could not be an error somewhere here). Moving the image away from the
> > folder, uploading the app (without the image), then placing the image
> > back and uploading again seems to fix it. But then some other image or
> > series of images in the static dir instead begin to return errors.
> >
> > This is very odd behavior, are you guys (Google AppEngine team)
> > working on something and I'm seeing the sideeffects of it?
> >
>

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



[google-appengine] Re: Error returned on images in static dir

2009-01-05 Thread tijer

Yeah, that's because I got tired of my users complaining about the
missing smiley, so I ran appcfg.py (rollover then update) over and
over again, cleared cache in between, until it began appearing again.
Sometimes when I deploy a new version it still returns the error on
the same image, and then I redo it until it begins appearing again.
Unfortunately the error does not appear in the AppEngine Dashboard
Logs so I have no way of knowing what's really going on and giving you
proper feedback (and of course it does not happen in the local
development.



On Jan 5, 1:57 pm, Marzia Niccolai  wrote:
> This seems to be working for me.  Can you provide your app.yaml?
>
> -Marzia
>
> On Sun, Jan 4, 2009 at 12:40 PM, tijer  wrote:
>
> > Just to provide more info, the error returned is a standard 500, with
> > this accompanying text (drafted by Google, I certainly didn't write
> > it)
>
> > "Error: Server Error
> > The server encountered an error and could not complete your request.
> > If the problem persists, please report your problem and mention this
> > error message and the query that caused it."
>
> > The error can be seen here ->
> >http://rby.appspot.com/images/_mobile_safari.gif
>
> > On Jan 4, 3:38 pm, tijer  wrote:
> > > This morning some weird behavior began to emerge on my application.
> > > Some of the images began to give errors even though they are placed in
> > > a static dir and have nothing to do with the python-code (hence it
> > > could not be an error somewhere here). Moving the image away from the
> > > folder, uploading the app (without the image), then placing the image
> > > back and uploading again seems to fix it. But then some other image or
> > > series of images in the static dir instead begin to return errors.
>
> > > This is very odd behavior, are you guys (Google AppEngine team)
> > > working on something and I'm seeing the sideeffects of it?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Cant Upload app

2009-01-05 Thread Hugoagogo

for some reason whenever i try to upload my app i get a message
telling me to go to https://www.google.com/accounts/displayunlockcaptcha
to prove that i am human, i go here and fill in the form submit and it
accepts it but i still cant upload

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



[google-appengine] Re: Can't create new application

2009-01-05 Thread Marzia Niccolai
This issue is related to a change in email for your Google Account.  I have
followed up off the group in order to resolve this issue.

-Marzia

On Sun, Jan 4, 2009 at 5:41 PM, himoji  wrote:

>
> I have tried to create new application but it required to verify
> account through SMS although I had verified in the last year and even
> I had created three applications already.
> The verification failed with an error "The phone number has been sent
> too many messages or has already been used to confirm an account."
>
> One possible change which may affect on the situation is I have create
> gmail account and linked it with my original email address which was
> used in the verification in the last year.
> After that gmail address is shown in heading part of google pages even
> if I log in with my original email address.
>
> I guess verification record in google app engine service is associated
> with only my original email address and it fails when it is checked
> with gmail address.
>
> Could any one help to solve this situation?
>
> The account I'm using is same as the one used here.
> --
> himoji
> >
>

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



[google-appengine] Re: Cant Upload app

2009-01-05 Thread Marzia Niccolai
If you are using a Google Apps account, and not a Google Account, you should
go to: https://www.google.com/a/YOURDOMAIN/displayunlockcaptcha

Other than that, I can't imagine why it isn't working.

-Marzia

On Sun, Jan 4, 2009 at 9:37 PM, Hugoagogo wrote:

>
> for some reason whenever i try to upload my app i get a message
> telling me to go to https://www.google.com/accounts/displayunlockcaptcha
> to prove that i am human, i go here and fill in the form submit and it
> accepts it but i still cant upload
>
> >
>

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



[google-appengine] Re: Displaying query results in template (Django)

2009-01-05 Thread Marzia Niccolai
Hi,

In this example you aren't fetching the query results at all.  You should do
something like

query = GqlQuery("SELECT * FROM directions WHERE directions = :directions",
directions = form.cleaned_data["direction"])
my_directions = query.get()
self.extra_context['direction'] = my_directions.directionsid

-Marzia

On Mon, Jan 5, 2009 at 7:37 AM, Lacrima  wrote:

>
> Hello!
>
> I am trying to set some extra_context in my template using query.
>
> For example, I have the next model:
> class directions(db.Model):
>directions = db.StringProperty()
>directionsid = db.IntegerProperty()
>def __unicode__(self):
>return self.directions
>
> Then I try to access data depending on user input and to set
> extra_context. A bit of my code:
>
> ###
> query = GqlQuery("SELECT * FROM directions WHERE directions
> = :directions", directions = form.cleaned_data["direction"])
> self.extra_context["direction"] = directions.directionsid
> 
>
> And finally, when I use {{direction}} in my template I just receive
> something like that:
> 
> But I want my results to be human readable.
>
> What should I do?
> Looking forward to your replies.
>
> P.S.: Sorry for my English. If most  isn't quite clear i"ll try to
> explain it in other way.
> >
>

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



[google-appengine] Re: return a variable value from html form to python

2009-01-05 Thread thebrianschott

James,

You may be right, but I am very new to this and cannot go very far
without some more direction. I suspect the problem is my use of the
word 'place' and 'g_place' in too many places and especially in
the "self.request.get()"s below. I don't quite understand their
purpose especially with respect to the template_values concept (I am
piecing together code from a previous project for which a friend who
is now unavailable gave me code.) For example if under "def get
(self)"  below I change the first

"g_place = self.request.get('place') " to
"g_place = self.request.get('NOplace')"

there is no change in my results, so I cannot figure out the use of
the 'NOplace' parameter, and don't understand if it should be
different in the second usage of "g_place = self.request.get('place')
" under "def post(self)" [notice there is a def get(self) and a def
post(self) below] .

class AddPlace(webapp.RequestHandler):
#creates blank template_values
def get(self):
g_place = self.request.get('place')
user = users.get_current_user()
param = 'add_place.html'
path = os.path.join(os.path.dirname(__file__), param)
template_values = dict(place=g_place)
self.response.out.write(template.render(path,
template_values))
#creates initial group attribute values
def post(self):
g_place = self.request.get('place')
group= Group(key_name=g_place)

Then once I get the above sorted out, I don't understand how to get
the value of g_place into the output of the html via the POST. That
is, I am getting the value of "g_place" into the "iwform" 
variable successfully to show that value to the user in the html, but
cannot figure out how to send the same "g_place" value back to the
python script. I am really stuck on this and would appreciate more
help from anyone with the time and will.

Thank you,

Brian in Atlanta

On Jan 4, 10:41 pm, James Ashley  wrote:
> I'm not real clear where the various errors are happening, so I'm just
> guessing.
>
> Just based on what I'm seeing here, it looks like you're having
> javascript (client-side) issues.  Something about DTC?  Maybe it's a
> variable that isn't getting initialized?  Or maybe a constant that
> needs quotes around it?
>
> Just a guess, and I'm probably totally wrong.
>
> Good luck,
> James
>

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



[google-appengine] why i can not use webapp framework

2009-01-05 Thread Apple_Pan

i follow the GAE Getting Started ->Using the Users Service

i copy the example code to my helloworld program ,but i got some
exception like this(the first helloworld program  run well)  help
me !:



 Python 2.5.2: C:\Python25\python.exe
Mon Jan 05 14:05:57 2009

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

 C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py in _HandleRequest
(self=)
 2441   infile,

 2442   outfile,

 2443   base_env_dict=env_dict)

 2444 finally:

 2445   self.module_manager.UpdateModuleFileModificationTimes
()

base_env_dict undefined, env_dict = {'APPLICATION_ID': 'helloworld',
'CURRENT_VERSION_ID': '1.1', 'REMOTE_ADDR': '127.0.0.1',
'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT':
'8080', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/
1.0'}
 C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py in Dispatch
(self=, relative_url='/', path=None,
headers=,
infile=,
outfile=, base_env_dict=
{'APPLICATION_ID': 'helloworld', 'CURRENT_VERSION_ID': '1.1',
'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME':
'localhost', 'SERVER_PORT': '8080', 'SERVER_PROTOCOL': 'HTTP/1.0',
'SERVER_SOFTWARE': 'Development/1.0'})
  351 infile,

  352 outfile,

  353 base_env_dict=base_env_dict)

  354

  355   return

base_env_dict = {'APPLICATION_ID': 'helloworld', 'CURRENT_VERSION_ID':
'1.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET',
'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', 'SERVER_PROTOCOL':
'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/1.0'}
 C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py in Dispatch
(self=, relative_url='/', path='helloworld.py',
headers=,
infile=,
outfile=, base_env_dict=
{'APPLICATION_ID': 'helloworld', 'CURRENT_VERSION_ID': '1.1',
'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME':
'localhost', 'SERVER_PORT': '8080', 'SERVER_PROTOCOL': 'HTTP/1.0',
'SERVER_SOFTWARE': 'Development/1.0'})
 1867  infile,

 1868  outfile,

 1869  self._module_dict)

 1870   handler.AddDebuggingConsole(relative_url, env, outfile)

 1871 finally:

self = , self._module_dict = {'Cookie': , 'StringIO': , 'UserDict': , '__future__': , '__main__': , '_locale': , '_types': ,
'cPickle': ,
'cStringIO': , 'calendar': , ...}
 C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py in ExecuteCGI(root_path=r'F:\GAE\helloworld',
handler_path='helloworld.py', cgi_path=r'F:\GAE\helloworld
\helloworld.py', env={'APPLICATION_ID': 'helloworld', 'AUTH_DOMAIN':
'gmail.com', 'CONTENT_LENGTH': '', 'CONTENT_TYPE': 'application/x-www-
form-urlencoded', 'CURRENT_VERSION_ID': '1.1', 'GATEWAY_INTERFACE':
'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip,
deflate', 'HTTP_ACCEPT_LANGUAGE': 'zh-cn', 'HTTP_CONNECTION': 'Keep-
Alive', ...}, infile=,
outfile=, module_dict=
{'Cookie': ,
'StringIO': ,
'UserDict': ,
'__future__': , '__main__': , '_locale': ,
'_types': , 'cPickle': , 'cStringIO': , 'calendar': , ...}, exec_script=)
 1785 logging.debug('Executing CGI with env:\n%s', pprint.pformat
(env))

 1786 try:

 1787   reset_modules = exec_script(handler_path, cgi_path, hook)

 1788 except SystemExit, e:

 1789   logging.debug('CGI exited with status: %s', e)

reset_modules = True, exec_script = , handler_path = 'helloworld.py', cgi_path = r'F:\GAE
\helloworld\helloworld.py', hook =

 C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py in ExecuteOrImportScript
(handler_path='helloworld.py', cgi_path=r'F:\GAE\helloworld
\helloworld.py',
import_hook=)
 1681   try:

 1682 if module_code:

 1683   exec module_code in script_module.__dict__

 1684 else:

 1685   script_module.main()

module_code =  at 01579650, file "F:\GAE
\helloworld\helloworld.py", line 1>, script_module = ,
script_module.__dict__ = {'__builtins__': {'ArithmeticError': , 'AssertionError': , 'AttributeError': , 'BaseException': , 'DeprecationWarning': , 'EOFError': , 'Ellipsis': Ellipsis, 'EnvironmentError':
, 'Exception': , 'False': False, ...}, '__doc__': None,
'__file__': r'F:\GAE\helloworld\helloworld.py', '__loader__':
, '__name__': 'helloworld', 'users': , 'webapp': , 'wsgiref': }
 F:\GAE\helloworld\helloworld.py in ()
2 from google.appengine.api import users

3 from google.appengine.ext import webapp

4 class MainPage(webapp.RequestHandler):

5 def get(self):

6 user = users.get_current_user()

MainPage undefined, webapp = ,
webapp.RequestHandler = 
 F:\GAE\helloworld\helloworld.py in MainPage()
   16 wsgiref.handl

[google-appengine] Re: why i can not use webapp framework

2009-01-05 Thread Geoffrey Spear



On Jan 5, 9:11 am, Apple_Pan  wrote:
> : global name 'MainPage' is not defined
>       args = ("global name 'MainPage' is not defined",)
>       message = "global name 'MainPage' is not defined"

Are you defining a class named "MainPage"?  Without seeing your source
code it's hard to debug, but that seems like the most likely 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Server Error While Logging into

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

I am getting a similar problem.  It works fine on my local machine but
not when deployed.

The offending URL is  http://www.klusted.com/_ah/login

Also I looked in the logs and do not see any messages related to the
issue.

Thanks.

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



[google-appengine] Displaying Images within Templates

2009-01-05 Thread Ms. Jen

When I try the straight code from the "Using Images" (http://
code.google.com/appengine/docs/images/usingimages.html) that writes
the html directly from the main.py file, my image display works.  When
I use templates that are separate from the main.py file, the images
don't display even though they are in the datastore and show up when I
view the source of the html page.

Please look at my code and tell me if I am missing a call or if the
MainPage class needs a reference for the image...

Template Page:


What it is outputting:


The main.py is below.  I am getting the same results both in dev and
on my testing spot on GAE. Thanks in advance for your help!

Jen



import cgi
import datetime
import os
import logging

from google.appengine.ext import db
from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.api import images
from google.appengine.ext.webapp import template

logging.getLogger().setLevel(logging.DEBUG)


class Greeting(db.Model):
  author = db.UserProperty()
  fullname = db.StringProperty()
  know = db.StringProperty()
  avatar = db.BlobProperty()
  year = db.StringProperty()
  title = db.StringProperty()
  content = db.TextProperty()
  date = db.DateTimeProperty(auto_now_add=True)

class MainPage(webapp.RequestHandler):
  def get(self):
greetings_query = Greeting.all().order('-date')
greetings = greetings_query.fetch(10)

if users.get_current_user():
  url = users.create_logout_url(self.request.uri)
  url_linktext = 'Logout'
  path = os.path.join(os.path.dirname(__file__), 'post.html')
else:
  url = users.create_login_url(self.request.uri)
  url_linktext = 'Login'
  path = os.path.join(os.path.dirname(__file__), 'index.html')

template_values = {
  'greetings': greetings,
  'url': url,
  'url_linktext': url_linktext,
  }

self.response.out.write(template.render(path, template_values))

class Image (webapp.RequestHandler):
  def get(self):
greeting = db.get(self.request.get("img_id"))
if greeting.avatar:
  self.response.headers['Content-Type'] = "image/png"
  self.response.out.write(greeting.avatar)
else:
  self.response.out.write("No image")

class Guestbook(webapp.RequestHandler):
  def post(self):
greeting = Greeting()

if users.get_current_user():
  greeting.author = users.get_current_user()
greeting.fullname = self.request.get('fullname')
greeting.know = self.request.get('know')
avatar = images.resize(self.request.get('img'), 32, 32)
greeting.avatar = db.Blob(avatar)
greeting.year = self.request.get('year')
greeting.title = self.request.get('title')
greeting.content = self.request.get('content')
greeting.put()
self.redirect('/')


application = webapp.WSGIApplication(
  [('/', MainPage),
   ('/img', Image),
   ('/sign', Guestbook)],
   debug=True)

def main():
  run_wsgi_app(application)

if __name__ == '__main__':
  main()

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



[google-appengine] Re: 有谁知道怎样将域 名指向app engine的方法?

2009-01-05 Thread kang
加我好友吧,告诉你

2009/1/4 zhuming liu 

> 有谁知道怎样将域名指向app engine的方法?
> >
>


-- 
Stay hungry,Stay foolish.

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



[google-appengine] request: versions accessed by URL param rather than prefix?

2009-01-05 Thread Ben Nevile

Hi,

Much of my work with App Engine is on Facebook applications.  Facebook
acts as a proxy through which all requests flow. Every application
registers a callback URL that Facebook directs traffic at.  So for
instance

http://apps.facebook.com/my_application/foo

becomes

http://my_application.appspot.com/foo



One of my favorite GAE features is that I can access and test
different versions of my App Engine code.  Under most circumstances
the URL subdomain-based access (eg,
1.latest.my_application.appspot.com,
2.latest.my_application.appspot.com, etc) is very convenient, but this
convention doesn't fit well with Facebook's idea of the fixed callback
URL.  I can set up a dummy application to access the version of code
that I want, but this is A. kludgy and B. inconvenient because all of
the social context is absent in the dummy application (other friends
using the app, etc.)

I would very much like to be able to access different versions of my
code using a query parameter.  Then I could test my Facebook apps with
URLs like

http://apps.facebook.com/my_application/foo?APP_VERSION=2

which would be translated into

http://my_application.appspot.com/foo?APP_VERSION=2


I'm hoping something like this already possible.  If not, consider
this a feature request!  :)

Ben

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



[google-appengine] Re: 有谁知道怎样将域 名指向app engine的方法?

2009-01-05 Thread Methou

http://code.google.com/appengine/articles/domains.html

On Jan 4, 1:59 pm, "zhuming liu"  wrote:
> 有谁知道怎样将域名指向app engine的方法?

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



[google-appengine] Re: dev_appserver.py Encountered error loading module

2009-01-05 Thread Marzia Niccolai
Hi,

This first message indicates that some of your Python code folders are
missing the necessary __init__.py file which will allow you to import files
in those folders.

Specifically you are trying to import fb.upload.upload which can not be
found.  Make sure the folders fb and fb/upload have __init__.py files.

-Marzia

On Fri, Jan 2, 2009 at 6:09 AM, Toney  wrote:

>
> I get the following errors when I access any page of my application,
> can anyone tell me what i may be missing?
>
> Strange thing is the pages for the apps loads fine, the error below
> comes from the server console.
>
>
>
> ERROR2009-01-02 13:58:20,155 dev_appserver.py] Encountered error
> loading module "fb.upload.uploa
> d": : Could not find module
> fb.upload.upload
> Traceback (most recent call last):
>  File "C:\Program Files\Google\google_appengine\google\appengine\tools
> \dev_appserver.py", line 1607
> , in LoadTargetModule
>module_code = import_hook.get_code(module_fullname)
>  File "C:\Program Files\Google\google_appengine\google\appengine\tools
> \dev_appserver.py", line 847,
>  in decorate
>return func(self, *args, **kwargs)
>  File "C:\Program Files\Google\google_appengine\google\appengine\tools
> \dev_appserver.py", line 1470
> , in get_code
>full_path, search_path, submodule = self.GetModuleInfo(fullname)
>  File "C:\Program Files\Google\google_appengine\google\appengine\tools
> \dev_appserver.py", line 847,
>  in decorate
>return func(self, *args, **kwargs)
>  File "C:\Program Files\Google\google_appengine\google\appengine\tools
> \dev_appserver.py", line 1422
> , in GetModuleInfo
>submodule, search_path = self.GetParentSearchPath(fullname)
>  File "C:\Program Files\Google\google_appengine\google\appengine\tools
> \dev_appserver.py", line 847,
>  in decorate
>return func(self, *args, **kwargs)
>  File "C:\Program Files\Google\google_appengine\google\appengine\tools
> \dev_appserver.py", line 1401
> , in GetParentSearchPath
>parent_package = self.GetParentPackage(fullname)
>  File "C:\Program Files\Google\google_appengine\google\appengine\tools
> \dev_appserver.py", line 847,
>  in decorate
>return func(self, *args, **kwargs)
>  File "C:\Program Files\Google\google_appengine\google\appengine\tools
> \dev_appserver.py", line 1378
> , in GetParentPackage
>raise ImportError('Could not find module %s' % fullname)
> ImportError: Could not find module fb.upload.upload
> WARNING  2009-01-02 13:58:20,155 dev_appserver.py] Missing package
> initialization files: c:\_dmg\fb\
> upload\__init__.py, c:\_dmg\fb\__init__.py
>
>
>
> 
> Exception happened during processing of request from ('127.0.0.1',
> 4951)
> Traceback (most recent call last):
>  File "C:\Python25\lib\SocketServer.py", line 222, in handle_request
>self.process_request(request, client_address)
>  File "C:\Python25\lib\SocketServer.py", line 241, in process_request
>self.finish_request(request, client_address)
>  File "C:\Python25\lib\SocketServer.py", line 254, in finish_request
>self.RequestHandlerClass(request, client_address, self)
>  File "C:\Program Files\Google\google_appengine\google\appengine\tools
> \dev_appserver.py", line 2355
> , in __init__
>BaseHTTPServer.BaseHTTPRequestHandler.__init__(self, *args,
> **kwargs)
>  File "C:\Python25\lib\SocketServer.py", line 521, in __init__
>self.handle()
>  File "C:\Python25\lib\BaseHTTPServer.py", line 316, in handle
>self.handle_one_request()
>  File "C:\Python25\lib\BaseHTTPServer.py", line 310, in
> handle_one_request
>method()
>  File "C:\Program Files\Google\google_appengine\google\appengine\tools
> \dev_appserver.py", line 2359
> , in do_GET
>self._HandleRequest()
>  File "C:\Program Files\Google\google_appengine\google\appengine\tools
> \dev_appserver.py", line 2491
> , in _HandleRequest
>raise e
> error: (10054, 'Connection reset by peer')
> 
>
> 
> Exception happened during processing of request from ('127.0.0.1',
> 4952)
> Traceback (most recent call last):
>  File "C:\Python25\lib\SocketServer.py", line 222, in handle_request
>self.process_request(request, client_address)
>  File "C:\Python25\lib\SocketServer.py", line 241, in process_request
>self.finish_request(request, client_address)
>  File "C:\Python25\lib\SocketServer.py", line 254, in finish_request
>self.RequestHandlerClass(request, client_address, self)
>  File "C:\Program Files\Google\google_appengine\google\appengine\tools
> \dev_appserver.py", line 2355
> , in __init__
>BaseHTTPServer.BaseHTTPRequestHandler.__init__(self, *args,
> **kwargs)
>  File "C:\Python25\lib\SocketServer.py", line 521, in __init__
>self.handle()
>  File "C:\Python25\lib\BaseHTTPServer.py", line 316, in handle
>self.handle_one_request()
>  File "C:\Python25\lib\BaseHTTPServer.py", line 299, in
> handle_one_request
>self.raw_requestline = self.rfile.readl

[google-appengine] Re: Displaying Images within Templates

2009-01-05 Thread Marzia Niccolai
The python seems like it should work, I don't see any issues with it.  Is it
possible you have an HTML typo in the template?  It seems like this might be
the most likely cause.

-Marzia

On Sun, Jan 4, 2009 at 10:34 PM, Ms. Jen  wrote:

>
> When I try the straight code from the "Using Images" (http://
> code.google.com/appengine/docs/images/usingimages.html) that writes
> the html directly from the main.py file, my image display works.  When
> I use templates that are separate from the main.py file, the images
> don't display even though they are in the datastore and show up when I
> view the source of the html page.
>
> Please look at my code and tell me if I am missing a call or if the
> MainPage class needs a reference for the image...
>
> Template Page:
> 
>
> What it is outputting:
>  img>
>
> The main.py is below.  I am getting the same results both in dev and
> on my testing spot on GAE. Thanks in advance for your help!
>
> Jen
>
> 
>
> import cgi
> import datetime
> import os
> import logging
>
> from google.appengine.ext import db
> from google.appengine.api import users
> from google.appengine.ext import webapp
> from google.appengine.ext.webapp.util import run_wsgi_app
> from google.appengine.api import images
> from google.appengine.ext.webapp import template
>
> logging.getLogger().setLevel(logging.DEBUG)
>
>
> class Greeting(db.Model):
>  author = db.UserProperty()
>  fullname = db.StringProperty()
>  know = db.StringProperty()
>  avatar = db.BlobProperty()
>  year = db.StringProperty()
>  title = db.StringProperty()
>  content = db.TextProperty()
>  date = db.DateTimeProperty(auto_now_add=True)
>
> class MainPage(webapp.RequestHandler):
>  def get(self):
>greetings_query = Greeting.all().order('-date')
>greetings = greetings_query.fetch(10)
>
>if users.get_current_user():
>  url = users.create_logout_url(self.request.uri)
>  url_linktext = 'Logout'
>  path = os.path.join(os.path.dirname(__file__), 'post.html')
>else:
>  url = users.create_login_url(self.request.uri)
>  url_linktext = 'Login'
>  path = os.path.join(os.path.dirname(__file__), 'index.html')
>
>template_values = {
>  'greetings': greetings,
>  'url': url,
>  'url_linktext': url_linktext,
>  }
>
>self.response.out.write(template.render(path, template_values))
>
> class Image (webapp.RequestHandler):
>  def get(self):
>greeting = db.get(self.request.get("img_id"))
>if greeting.avatar:
>  self.response.headers['Content-Type'] = "image/png"
>  self.response.out.write(greeting.avatar)
>else:
>  self.response.out.write("No image")
>
> class Guestbook(webapp.RequestHandler):
>  def post(self):
>greeting = Greeting()
>
>if users.get_current_user():
>  greeting.author = users.get_current_user()
>greeting.fullname = self.request.get('fullname')
>greeting.know = self.request.get('know')
>avatar = images.resize(self.request.get('img'), 32, 32)
>greeting.avatar = db.Blob(avatar)
>greeting.year = self.request.get('year')
>greeting.title = self.request.get('title')
>greeting.content = self.request.get('content')
>greeting.put()
>self.redirect('/')
>
>
> application = webapp.WSGIApplication(
>  [('/', MainPage),
>   ('/img', Image),
>   ('/sign', Guestbook)],
>   debug=True)
>
> def main():
>  run_wsgi_app(application)
>
> if __name__ == '__main__':
>  main()
>
> >
>

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



[google-appengine] Re: Server Error While Logging into

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

Now it is possible that I am getting this because I am behind a
firewall but that doesnt make any sense.

A frriend of mine is having no problem with that link and it worked
intermittently for me.

On Jan 5, 2:19 pm, "deji.omis...@gmail.com" 
wrote:
> I am getting a similar problem.  It works fine on my local machine but
> not when deployed.
>
> The offending URL is  http://www.klusted.com/_ah/login
>
> Also I looked in the logs and do not see any messages related to the
> issue.
>
> Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How to get "combined API + Runtime" in log files?

2009-01-05 Thread Tony Arkles

Created Issue 972: http://code.google.com/p/googleappengine/issues/detail?id=972

Cheers, thanks Marzia!

On Jan 5, 12:37 pm, Marzia Niccolai  wrote:
> Hi,
>
> This information is currently only available in the logs of the admin
> console.  The only way to really currently trend this information over time
> would be to save the daily graph of 'CPU Seconds Used/Second' available on
> the dashboard.
>
> Not an ideal solution, and it seems like this would be a good feature
> request.
>
> -Marzia
>
> On Mon, Jan 5, 2009 at 10:19 AM, Tony Arkles  wrote:
>
> > Bump?  I posted this over the holidays, maybe someone who knows the
> > answer might have missed it?
>
> > On Dec 30 2008, 9:54 pm, Tony Arkles  wrote:
> > > Hi all.  Maybe I'm missing something obvious here.  In the Admin
> > > Console (on the production servers), I get log lines like:
>
> > > 12-30 12:39PM 36.208 /x 500 552ms 1713ms-cpu 7kb
>
> > > (with a "CPU warning" icon next to the 1713ms-cpu).
>
> > > When I retrieve the log files from app engine, I can't seem to find
> > > either the request time (552ms) or the "combined API +
> > > Runtime" (1713ms-cpu).  Is there some obvious way to get this
> > > information that I'm just missing?  It would be fantastic to be able
> > > to trend this stuff over time, to identify the overall effects of
> > > changes.
>
> > > Is there an easy way to get this stuff in bulk?
>
> > > Cheers
> > > Tony
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: return a variable value from html form to python

2009-01-05 Thread Marzia Niccolai
Hi,

This seems like it's probably some kind of client side coding issue that is
causing things not to execute properly.  self.request.get('place') is the
proper syntax in this case, so that is not the issue.

FWIW, this is they way I construct my javascript + HTML forms when needing
to do something similar, calling form.submit() from the javascript function
(it uses the maps geocoder, but the principle should be the same):


function populateInfo(form) {
  if (geocoder) {
var loc = geocoder.getLatLng(
  form.address.value,
  function(point) {
if(!point){
alert('Bad Address')
return;
} else {
document.getElementById("lat").value = point.lat();
document.getElementById("lon").value = point.lng();
form.submit();
}
  }
);
  }
}


  Business Name: 
  Business Address: 
  Description: 
  Tag: 
  
  
  


On Mon, Jan 5, 2009 at 10:45 AM, Stephen Judd wrote:

> What sort of error?
>
>
> On Mon, Jan 5, 2009 at 1:36 PM, thebrianschott wrote:
>
>>
>> Steve,
>>
>> Your syntax throws a python syntax error for me.
>>
>> In the meanwhile I have discovered the GAE documentation for
>> self.request.get() at the following link.
>>
>> http://code.google.com/appengine/docs/webapp/requesthandlers.html
>>
>> I am now struggling to make the def(post) part of the code to be
>> executed. For some reason, it is not executing at all.
>>
>> Thanks
>>
>> On Jan 5, 12:35 pm, "Stephen Judd"  wrote:
>> > How about replacing: template_values = dict(place=g_place) with
>> >
>> > template_values = {'place': g_place}
>> >
>> > Steve
>> >
>> > On Mon, Jan 5, 2009 at 11:51 AM, thebrianschott > >wrote:
>> >
>> > > template_values = dict(place=g_place)
>>
>>
>
> >
>

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



[google-appengine] Re: Timeouts

2009-01-05 Thread Marzia Niccolai
Hi Aaron,

I don't believe that saving an entity with a ReferenceProperty would be
noticeably more expensive than using a unique string instead, the
ReferenceProperty just saves a key of the referenced entity behind the
scenes.

It is possible, since you are doing a significant number of writes, that the
issues you are seeing are related to datastore contention.  Are many of
these writes saving to the same entity group?  If this is the case, keep in
mind that writes to entity groups happen in serial, not parallel.  Writing
too often to the same entity group will definitely increase your time outs.

If it is an issue with contention it would be probable that you would only
notice it as traffic to your application increases. More traffic potentially
means more possibility you are increasing your write frequency to the same
entity group.

-Marzia

On Sat, Jan 3, 2009 at 9:46 AM, Aaron OBrien  wrote:

> My app serves a fair amount of requests about 4 a second and ruffly half of
> them save to the datastore.  It is very fault tolerant so our users
> shouldn't be noticing it - and if they are it's still fairly minor.
> In the last 9 hours we have had 10% of these requests fail (about 13,700
> requests).  Prior to 2 days ago it was not uncommon to see the failure rate
> around 1%  less than 100 failures for over 20 hours.
> The code that saves to the data store saves a model that has a reference to
> another object.  This referenced object is pretty simple - StringProperty
> objects and a couple DateProperty objects.
>
> Is saving this reference more expensive than creating a uniqueId of the
> (simple)object and manually saving a the custom defined uniqueId to it?
>
> If this continues throughout the day I guess I'll turn profiling back on
> and see what's going on...
>
> Any thoughts on re-working the reference? Is it a more expensive operation
> to save and retrieve references to objects rather than a custom unqique key
> to the object?  If I reworked the relationship it would force me to turn
> back around and query to get the referenced object when I need it though.
>
> Thanks for helping!
>
> -Aaron
>
>
> On Sat, Jan 3, 2009 at 2:56 AM, Paul Kinlan  wrote:
>
>> Hi,
>>
>> I also regularly get datastore timeouts for reads and writes.  Looking at
>> the status monitor there never seem to be any "problems".
>>
>> Kind Regards,
>> Paul Kinlan
>>
>> 2009/1/3 Xavier Mathews 
>>
>>
>>> Place it in the issue tracker.
>>>
>>> On 01/02/2009, Alexander Kojevnikov  wrote:
>>> >
>>> >> My application is getting a very high number of data store timeouts.
>>> >>
>>> >> Is there an unreported issue going on right now?
>>> >>
>>> > The status monitor doesn't show anything unusual:
>>> > http://code.google.com/status/appengine/detail/datastore/2009/01/02
>>> >
>>> > >
>>> >
>>>
>>>
>>> --
>>> Xavier A. Mathews
>>> Student/Browser Specialist/Developer/Web-Master
>>> Client Based Tech Support Specialist
>>> Hazel Crest Illinois
>>> xavieruni...@gmail.com¥xavierunited@hotmail.com¥truestar...@yahoo.com
>>> "Fear of a name, only increases fear of the thing itself."
>>>
>>>
>>>
>>
>>
>>
>
> >
>

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



[google-appengine] Re: request: versions accessed by URL param rather than prefix?

2009-01-05 Thread Marzia Niccolai
Hi,

There is nothing currently built-in that would allow you to do what you
described.

However, it would be _very_ easy to check for that parameter yourself in a
request and redirect the request to the appropriate version number if it the
version listed is not the default.

-Marzia

On Mon, Jan 5, 2009 at 12:13 PM, Ben Nevile  wrote:

>
> Hi,
>
> Much of my work with App Engine is on Facebook applications.  Facebook
> acts as a proxy through which all requests flow. Every application
> registers a callback URL that Facebook directs traffic at.  So for
> instance
>
> http://apps.facebook.com/my_application/foo
>
> becomes
>
> http://my_application.appspot.com/foo
>
>
>
> One of my favorite GAE features is that I can access and test
> different versions of my App Engine code.  Under most circumstances
> the URL subdomain-based access (eg,
> 1.latest.my_application.appspot.com,
> 2.latest.my_application.appspot.com, etc) is very convenient, but this
> convention doesn't fit well with Facebook's idea of the fixed callback
> URL.  I can set up a dummy application to access the version of code
> that I want, but this is A. kludgy and B. inconvenient because all of
> the social context is absent in the dummy application (other friends
> using the app, etc.)
>
> I would very much like to be able to access different versions of my
> code using a query parameter.  Then I could test my Facebook apps with
> URLs like
>
> http://apps.facebook.com/my_application/foo?APP_VERSION=2
>
> which would be translated into
>
> http://my_application.appspot.com/foo?APP_VERSION=2
>
>
> I'm hoping something like this already possible.  If not, consider
> this a feature request!  :)
>
> Ben
>
> >
>

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



[google-appengine] Re: Server Error While Logging into

2009-01-05 Thread Geoffrey Spear



On Jan 5, 2:19 pm, "deji.omis...@gmail.com" 
wrote:
> I am getting a similar problem.  It works fine on my local machine but
> not when deployed.
>
> The offending URL is  http://www.klusted.com/_ah/login
>
> Also I looked in the logs and do not see any messages related to the
> issue.
>
> Thanks.

/_ah/login is typically the Dev Server login page; unless you've
mapped this to something in app.yaml you shouldn't expect it to exist
on the production server.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: ReferenceProperty failed to be resolved

2009-01-05 Thread Marzia Niccolai
Hi,

One additional question, what happens when you call db.get() on the value
returned from dygmodel.ChatWordStats.timespan.get_value_for_datastore(cws)?
Does this get the proper entity.  I've never seen this before, so I'm not
sure what exactly is occurring here.

-Marzia

On Sun, Jan 4, 2009 at 9:16 AM, dloomer  wrote:

>
> I worked around that last problem, focused on some other things, but
> now I'm running into the issue again.
>
> Same model definitions as above; now getting the error trying to
> reference a StatsTimeSpan property of ChatWordStats.  It shouldn't
> matter, but for completeness an abbreviated definition of
> StatsTimeSpan is as follows:
>
> class StatsTimeSpan(db.Model):
>timespanvalue = db.IntegerProperty()
>year_central = db.IntegerProperty()
>month_central = db.IntegerProperty()
>day_central = db.IntegerProperty()
>hour_central = db.IntegerProperty()
>postcount = db.IntegerProperty(required=True,default=0)
>totalduration = db.FloatProperty(required=True,default=float(0))
> date = db.DateTimeProperty(auto_now_add=True)
>
> The code raising the error:
>
>cws = dygmodel.ChatWordStats.get(key_val)
>logging.info("cws.key()=" + str(cws.key()))
>logging.info
> ("dygmodel.ChatWordStats.timespan.get_value_for_datastore
> (cws)=" + str(dygmodel.ChatWordStats.timespan.get_value_for_datastore
> (cws)))
>cws.timespan.key()
>
> cws.key() is logged as
>
> ahJkeWluZ2dpcmFmZmVsZWFndWVyLAsSDUNoYXRXb3JkU3RhdHMiGWN3c190c18xXzBfMF8wXzBfY3dfX2FsbF8M.
> At
> http://appengine.google.com/datastore/edit?app_id=
> &key=ahJkeWluZ2dpcmFmZmVsZWFndWVyLAsSDUNoYXRXb3JkU3RhdHMiGWN3c190c18xXzBfMF8wXzBfY3dfX2FsbF8M
> this shows a timespan key value of
> ahJkeWluZ2dpcmFmZmVsZWFndWVyHwsSDVN0YXRzVGltZVNwYW4iDHRzXzFfMF8wXzBfMAw.
> dygmodel.ChatWordStats.timespan.get_value_for_datastore(cws) is logged
> as that same key value,
> ahJkeWluZ2dpcmFmZmVsZWFndWVyHwsSDVN0YXRzVGltZVNwYW4iDHRzXzFfMF8wXzBfMAw.
> That key value resolves fine in DataViewer if I go to
> http://appengine.google.com/datastore/edit?app_id=
> &key=ahJkeWluZ2dpcmFmZmVsZWFndWVyHwsSDVN0YXRzVGltZVNwYW4iDHRzXzFfMF8wXzBfMAw.
>
> However, the cws.timespan.key() line, or any alternative code trying
> to reference a property of cws.timespan, throws the "ReferenceProperty
> failed to be resolved" error.
>
> Marzia, you have my app ID from a private e-mail regarding a different
> thread -- the one regarding the Datastore Indices Count quota.
>
> On Dec 29 2008, 1:53 pm, Marzia Niccolai  wrote:
> > Hi,
> >
> > What is the value of the key when you use get_value_for_datastore on this
> > property?  See recipe:
> http://appengine-cookbook.appspot.com/recipe/getting-dbreferenceprope...
> >
> > -Marzia
> >
> > On Sun, Dec 28, 2008 at 11:41 AM, dloomer  wrote:
> >
> > > Getting a "ReferenceProperty failed to be resolved" error and I can
> > > swear up and down that the ReferenceProperty *should* be able to be
> > > resolved -- i.e., this is not your classic case of referenced entities
> > > being deleted, as the data is all there.
> >
> > > Model definition (abridged):
> >
> > > class ChatWordStats(db.Model):
> > >chatword = db.ReferenceProperty(ChatWord)
> > >timespan = db.ReferenceProperty(StatsTimeSpan)
> > >date = db.DateTimeProperty(auto_now_add=True)
> >
> > > class TeamChatWordStats(db.Model):
> > >team = db.ReferenceProperty(Team,required=True)
> > >chatwordstats = db.ReferenceProperty(ChatWordStats)
> > >date = db.DateTimeProperty(auto_now_add=True)
> >
> > > offending code (this has worked fine for thousands of entities, then
> > > just gets stuck on this one):
> >
> > >tcws = dygmodel.TeamChatWordStats.get(key_val)
> > >cws = tcws.chatwordstats
> >
> > > The first line works, and the second line gives the error.  The
> > > key_val for the TeamChatWordStats entity is
> >
> > >
> ahJkeWluZ2dpcmFmZmVsZWFndWVyPAsSEVRlYW1DaGF0V29yZFN0YXRzIiV0Y3dzX3RfNV9jd3N
> fdHNfM18yMDA1XzNfMV8wX2N3X19hbGxfDA.
> > > Looking up the entity in the Data Viewer of my application console,
> > > that shows a chatwordstats property with a key of
> >
> > >
> ahJkeWluZ2dpcmFmZmVsZWFndWVyLwsSDUNoYXRXb3JkU3RhdHMiHGN3c190c18zXzIwMDVfM18
> xXzBfY3dfX2FsbF8M.
> > > This key also resolves fine in the Data Viewer.
> >
> > > And, just in case, I verified that both ReferenceProperty values on
> > > the ChatWordStats entity resolve as well.
> >
> > > So, where does that leave me?  I've double and triple and quadruple-
> > > checked everything and I'm kind of stuck.  I can provide my app name
> > > in a private e-mail if asked.
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups

[google-appengine] The "Application Title" does not change in the login page ????

2009-01-05 Thread adrenochrome

I'd like to display, in the login page, a title that's different than
my GAE app's name.

So I went to the control board of my app, at appengine.google.com,
then I clicked on "Application Settings", and I modified the
"Application Title". There is a comment saying "Displayed if users
authenticate to use your application", so that seemed perfect to me,
but that doesn't work.

Does anybody know how to modify the application title that is
displayed (by GAE) in the login pages ?

Thanks

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



[google-appengine] Re: request: versions accessed by URL param rather than prefix?

2009-01-05 Thread Ben Nevile

Hi Marzia - thanks for your response!

Sadly I cannot redirect before returning to Facebook.  I can ask
Facebook to redirect, but if I redirect to a non-canvas page it won't
render within the Facebook environment.  Does that make sense?

For example, if I wanted to redirect to 2.latest.myapp.appspot.com I
can send Facebook this directive:



But it will render this page in a regular window, not the Facebook
chrome and FBML.

Ben




On Jan 5, 2:38 pm, Marzia Niccolai  wrote:
> Hi,
>
> There is nothing currently built-in that would allow you to do what you
> described.
>
> However, it would be _very_ easy to check for that parameter yourself in a
> request and redirect the request to the appropriate version number if it the
> version listed is not the default.
>
> -Marzia
>
> On Mon, Jan 5, 2009 at 12:13 PM, Ben Nevile  wrote:
>
> > Hi,
>
> > Much of my work with App Engine is on Facebook applications.  Facebook
> > acts as a proxy through which all requests flow. Every application
> > registers a callback URL that Facebook directs traffic at.  So for
> > instance
>
> >http://apps.facebook.com/my_application/foo
>
> > becomes
>
> >http://my_application.appspot.com/foo
>
> > One of my favorite GAE features is that I can access and test
> > different versions of my App Engine code.  Under most circumstances
> > the URL subdomain-based access (eg,
> > 1.latest.my_application.appspot.com,
> > 2.latest.my_application.appspot.com, etc) is very convenient, but this
> > convention doesn't fit well with Facebook's idea of the fixed callback
> > URL.  I can set up a dummy application to access the version of code
> > that I want, but this is A. kludgy and B. inconvenient because all of
> > the social context is absent in the dummy application (other friends
> > using the app, etc.)
>
> > I would very much like to be able to access different versions of my
> > code using a query parameter.  Then I could test my Facebook apps with
> > URLs like
>
> >http://apps.facebook.com/my_application/foo?APP_VERSION=2
>
> > which would be translated into
>
> >http://my_application.appspot.com/foo?APP_VERSION=2
>
> > I'm hoping something like this already possible.  If not, consider
> > this a feature request!  :)
>
> > Ben
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: The "Application Title" does not change in the login page ????

2009-01-05 Thread adrenochrome

Ok, sorry, I found the answer... so if you want to know here it is:
Once you have changed the "Application Title" you must re-upload
your application for the change to take effect.

This should be written somewhere in the page.

On 5 jan, 23:28, adrenochrome  wrote:
> I'd like to display, in the login page, a title that's different than
> my GAE app's name.
>
> So I went to the control board of my app, at appengine.google.com,
> then I clicked on "Application Settings", and I modified the
> "Application Title". There is a comment saying "Displayed if users
> authenticate to use your application", so that seemed perfect to me,
> but that doesn't work.
>
> Does anybody know how to modify the application title that is
> displayed (by GAE) in the login pages ?
>
> Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Displaying Images within Templates

2009-01-05 Thread boson

You likely decided to change your URL from "/image" to "/img" in the
middle of your templatizing, but forgot to change it in the HTML
template itself.  In other words, you're telling the browser to look
at "/image?img_id=...", but your app is only binding a handler to "/
img" (in application=webapp.WSGIApplication(...)).  Don't change more
than one thing at a 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] DateTime Ordering with None?

2009-01-05 Thread Devel63

Is there a standard or easy way to order query results where a "None"
value comes last in an ascending index?

Use case is for a "due_date" property.  Results should be ordered by
due date in from earliest to latest, with "None"s coming last.  Post-
processing won't work because I'm only fetching a few records, so
won't have them all.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Error returned on images in static dir

2009-01-05 Thread djidjadji

I noticed the following when I updated my application recently. I did
an update for the *current* version of the application and a changed
css file was not updated. I tried a couple of times more and that
resulted in getting the css file uploaded. Now when I update the
application I always use a version number that is not the current
version and never had the problem again.
Can this be related to your problem?

Can there be a lock on static files of the current version preventing
an update of them?

If I try to make the latest version update the current version within
30 seconds of deploy it (sometimes) does not succeed.
Is there a certain time needed to prepare the uploaded code/files to
be used by the interpreters?

2009/1/5 tijer :
>
> Yeah, that's because I got tired of my users complaining about the
> missing smiley, so I ran appcfg.py (rollover then update) over and
> over again, cleared cache in between, until it began appearing again.
> Sometimes when I deploy a new version it still returns the error on
> the same image, and then I redo it until it begins appearing again.
> Unfortunately the error does not appear in the AppEngine Dashboard
> Logs so I have no way of knowing what's really going on and giving you
> proper feedback (and of course it does not happen in the local
> development.

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



[google-appengine] Re: Error returned on images in static dir

2009-01-05 Thread Marzia Niccolai
Hi,

I've never observed this behavior myself, but if it is happening it is an
issue.  The next time you observe it, if you file an issue with the app id,
time it occurred, and the output from appcfg.py (using --noisy wouldn't
hurt), this will help us better troubleshoot the issue.

Thanks,
Marzia

On Mon, Jan 5, 2009 at 4:40 PM, djidjadji  wrote:

>
> I noticed the following when I updated my application recently. I did
> an update for the *current* version of the application and a changed
> css file was not updated. I tried a couple of times more and that
> resulted in getting the css file uploaded. Now when I update the
> application I always use a version number that is not the current
> version and never had the problem again.
> Can this be related to your problem?
>
> Can there be a lock on static files of the current version preventing
> an update of them?
>
> If I try to make the latest version update the current version within
> 30 seconds of deploy it (sometimes) does not succeed.
> Is there a certain time needed to prepare the uploaded code/files to
> be used by the interpreters?
>
> 2009/1/5 tijer :
> >
> > Yeah, that's because I got tired of my users complaining about the
> > missing smiley, so I ran appcfg.py (rollover then update) over and
> > over again, cleared cache in between, until it began appearing again.
> > Sometimes when I deploy a new version it still returns the error on
> > the same image, and then I redo it until it begins appearing again.
> > Unfortunately the error does not appear in the AppEngine Dashboard
> > Logs so I have no way of knowing what's really going on and giving you
> > proper feedback (and of course it does not happen in the local
> > development.
>
> >
>

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



[google-appengine] Re: Not able to signup for appengine

2009-01-05 Thread Alexander Kojevnikov

Fill out the SMS issues form:
http://appengine.google.com/waitlist/sms_issues

On Jan 6, 4:31 am, "manish deora"  wrote:
> Hi guys,
>
> I am trying to create a sample application using google app engine.but it
> seems i just got stuck at a point, where i am not able to verify my account
> since i did not get the confirmation message on mobile.And now i get the
> error message "You have sent too many messages".
>
> My info is
>
> email: manish.de...@gmail.com
>
> mobile : +91 9322776373
>
> Any help is apperiecated.
> Thanks
> Manish Deora
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Error returned on images in static dir

2009-01-05 Thread djidjadji

I will use --noisy when I use appcfg.py for my next updates. Otherwise
I will be too late to catch the messages..
The appcfg.py (no options) output was as usual: cloning, uploading,
closing update, upload index definitions.
Thanks for the hint.

2009/1/6 Marzia Niccolai :
> Hi,
>
> I've never observed this behavior myself, but if it is happening it is an
> issue.  The next time you observe it, if you file an issue with the app id,
> time it occurred, and the output from appcfg.py (using --noisy wouldn't
> hurt), this will help us better troubleshoot the issue.
>
> Thanks,
> Marzia

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



[google-appengine] Re: URL Fetch API --- Does Google log IP addresses to prevent abuses?

2009-01-05 Thread KillIEbrowser

Hi,
the log will be deleted when I will update a new version of my
application.
- Can I see the old logs?
- Can I export a log?

I'm thinking to make a Table log...


On Jan 5, 7:38 pm, Marzia Niccolai  wrote:
> Hi,
>
> The ip address of requests are also available in the logs.
>
> -Marzia
>
> On Sat, Jan 3, 2009 at 1:06 PM, Barry Hunter 
> wrote:
>
>
>
> > Do it yourself:
> >http://code.google.com/appengine/docs/python/logging.html
>
> > 2009/1/3 KillIEbrowser :
>
> > > Now I'm building a new free web App using HTTPS:
>
> > > "Private URL Fetching"
>
> > > and I think is useful to see a "URL Fetch Log" into the App Engine
> > > Admin.
> > > Can you make this feature, please?
>
> > > On Dec 30 2008, 9:32 pm, "Barry Hunter" 
> > > wrote:
> > >> IP addresses of what?
>
> > >> 2008/12/30 KillIEbrowser :
>
> > >> > Hi All,
> > >> > Does Google log IP addresses to prevent abuses?
>
> > >> --
> > >> Barry
>
> > >> -www.nearby.org.uk-www.geograph.org.uk-
>
> > --
> > Barry
>
> > -www.nearby.org.uk-www.geograph.org.uk-
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: are numeric ids of deleted entities reused?

2009-01-05 Thread Andy Freeman

I think that this "id counts for an entity-group namespace live
forever" property should be documented because I suspect that many
uses of entity-groups will involve single-use names.

The only reason that I'm not running into it is that I prematurely
optimized to a single db.put, which forced me to use explicit key_name
s.  If I'd gone with multiple db.put s in a transaction, which would
have been somewhat simpler, I'd have let the system assign ids within
my "use once" entity-groups.

Of course, someone will want a way to purge these counts.

On Jan 4, 11:37 pm, ryan  wrote:
> On Dec 31 2008, 6:49 am, Andy Freeman  wrote:
> > If I never allocate ids within a given entity-group namespace, does
> > anything for that namespace live forever (after all entities in said
> > group have been deleted)?
> ...
> > The total number of such groups that have entities at any given time
> > is fairly modest, but the total number that has existed over the life
> > of the application can be fairly large.  Thus, if any information
> > about these groups "live[s] forever", I may have a problem.
>
> ah, i understand the motivation now. if you never create any id-based
> entities, then no, there's nothing in the entity group that lives
> forever.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Error returned on images in static dir

2009-01-05 Thread Rodrigo Moraes

hey tijer,
For the record, I saw this happening yesterday too - a single jpg file
in the static dir wasn't loading, and when i tried to access it
directly I got a 500 error. I updated the app a couple of times, and
the same happened. The static file only loaded after i removed the
image from the app, updated the app, re-added the image and updated
again - as reported. As it affected a single image and was solved more
or less easily I did not care too much, but I thought you'd like to
know that more people saw this. :)

-- rodrigo

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



[google-appengine] Re: index.yaml kept generating many unneeded __searchable_text_index

2009-01-05 Thread Ferdhie
I guess there's too many indexed properties inside the model, the problem
solved after modifying the model into:

class Entry(db.Model):
  ...
  pass

class EntrySearch(search.SearchableModel):
entry = db.ReferenceProperty(Entry)
date = db.DateTimeProperty()
body = db.TextProperty()
title = db.TextProperty()

so searching now is using EntrySearch rather than Entry.
Thanks for the response

On Tue, Jan 6, 2009 at 1:52 AM, Marzia Niccolai  wrote:

> Hi,
>
> These indexes are appearing because you are using multiple keywords in your
> search, each of which needs a __searchable_text_index field in an index
> entry.  And you are right, these will result in exploding indexes.
>
> The bottom line is that searchable model can only realistically be used for
> one or two word searches before resulting in an exploding index.
>
> -Marzia
>
>
> On Sat, Jan 3, 2009 at 8:56 PM, Ferdhie  wrote:
>
>> Dear All
>>
>> I don't know why, but everytime I run at localhost, the index.yaml kept
>> generating so many __searchable_text_index Index
>> It will cause error while I update index on appengine servers (perhaps
>> because of exploding index)
>>
>> Here's my model
>> class Entry(search.SearchableModel):
>> STATUS_CHOICES = (
>> ('draft'),
>> ('public'),
>> ('private'),
>> )
>>
>> COMMENT_STATUS_CHOICES = (
>> ('open'),
>> ('close'),
>> ('password'),
>> )
>>
>> PING_STATUS_CHOICES = (
>> ('open'),
>> ('close'),
>> )
>>
>> ENTRY_TYPE_CHOICES = (
>> ('post'),
>> ('page'),
>> )
>>
>> author = db.UserProperty()
>> author_name = db.StringProperty()
>> title = db.StringProperty()
>> slug = db.StringProperty()
>> body = db.TextProperty()
>> postdate = db.DateTimeProperty()
>> postdate_gmt = db.DateTimeProperty()
>> excerpt = db.TextProperty()
>> status = db.StringProperty(default='draft', choices=STATUS_CHOICES)
>> commentstatus = db.StringProperty(default='open',
>> choices=COMMENT_STATUS_CHOICES)
>> pingstatus = db.StringProperty(default='open',
>> choices=PING_STATUS_CHOICES)
>> commentcount = db.IntegerProperty(default=0)
>> tags = db.ListProperty(db.Key)
>> entrytype =
>> db.StringProperty(default='post',choices=ENTRY_TYPE_CHOICES)
>> year = db.StringProperty()
>> month = db.StringProperty()
>> day = db.StringProperty()
>>
>>
>> Here's the index
>> # Used 7 times in query history.
>> - kind: Entry
>>   properties:
>>   - name: __searchable_text_index
>>   - name: __searchable_text_index
>>   - name: __searchable_text_index
>>   - name: __searchable_text_index
>>   - name: __searchable_text_index
>>   - name: entrytype
>>   - name: postdate
>> direction: desc
>>
>> # Used 6 times in query history.
>> - kind: Entry
>>   properties:
>>   - name: __searchable_text_index
>>   - name: __searchable_text_index
>>   - name: __searchable_text_index
>>   - name: __searchable_text_index
>>   - name: __searchable_text_index
>>   - name: postdate
>> direction: desc
>>
>> # Used once in query history.
>> - kind: Entry
>>   properties:
>>   - name: __searchable_text_index
>>   - name: __searchable_text_index
>>   - name: postdate
>> direction: desc
>>
>> # Used 4 times in query history.
>> - kind: Entry
>>   properties:
>>   - name: __searchable_text_index
>>   - name: entrytype
>>   - name: postdate
>> direction: desc
>>
>> # Used 11 times in query history.
>> - kind: Entry
>>   properties:
>>   - name: __searchable_text_index
>>   - name: postdate
>> direction: desc
>>
>> # Used once in query history.
>> - kind: Entry
>>   properties:
>>   - name: postdate
>> direction: desc
>>
>> The question:
>> 1. How to suppress those many2 autogenerated __searchable_text_index
>> 2. Or maybe I make some mistake in design?
>>
>> Thanks,
>>
>> --
>> Herdian Ferdianto
>> http://beta.ferdianto.com
>> http://www.id-snippet.com/
>>
>>
>>
>>
>
> >
>


-- 
Herdian Ferdianto
http://beta.ferdianto.com
http://www.id-snippet.com/

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



[google-appengine] Re: Displaying Images within Templates

2009-01-05 Thread Ms. Jen


Boson, you got it...  it should have been /img?img_id

It is always the little things that trip me up.

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



[google-appengine] Re: Can't create new application

2009-01-05 Thread himoji

Hi Marzia,

I have confirmed I could create new application.
Thank you very much for your quick and kind help!

--
himoji

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



[google-appengine] Re: 1 application, multiple datastores

2009-01-05 Thread Andy Freeman

> > > As it stands GAE does not allow cross data store queries,
> > > and from my perspective that is an aspect of the security
> > > architecture.  106 wants that aspect 'relaxed'.
>
> > How do you know how the current GAE code actually works?
>
> I read the API docs - how do you manage it?

I'm not the one asserting that there are hard boundaries between GAE
datastores that the GAE run-time can't pierce.

It is generally believed that GAE is built on top of BigTable, which
has a lot of internal Google users.  I don't know that all of them can
work with only one datastore; I'd guess that several require to access
multiple datastores simultaneously.  So, if there is a BigTable-level
"only one datastore" and/or "can't switch" restriction, I'd be very
surprised if was universal or could only be pierced by suid
applications.

Why are you so certain that there are enough any google internal
applications that require "just one datastore" and/or "can't switch"
that they'd bake that option into BigTable?  If there aren't any, you
get to argue why they'd add it just for GAE even though GAE can
provide that segregation in its run-time

FWIW, while I haven't seen Google's BigTable API, the published info
labs.google.com/papers/bigtable-osdi06.pdf, mentions an "open" call.
Yes, there are probably access restrictions on said open call, but
what are the odds that there's a user per GAE application and said
application's datastore is only accessible to said user?

> > 106 or any of the variants that I've mentioned would merely make "open
> > datastore" available through some appropriate safeguards and would be
> > just as secure as the current system.
>
> Let's examine the token idea - and assume you have obtained N tokens
> securely.

Not so fast.  Who said anything about application visible tokens?  In
fact, it could be just "change_to_application_userstore", where a
userstore is an ordinary GAE datastore.  This could easily be written
so it doesn't take any parameters from application code, which makes
it just as secure as an "open datastore" call done at process startup.

Or, it could support one token, so the application has access to the
"default" datastore and a datastore determined by such a call.  Again,
that call need not take parameters from application code.

On Jan 5, 6:34 am, hawkett  wrote:
> On Dec 30 2008, 3:14 pm, Andy Freeman  wrote:
>
> > > No, I would prefer GAE to implement the system completely, using
> > > existing elements.
>
> > I was unaware of the weight that your preferences have.
>
> Isn't that what a feature request is?  Should I raise feature requests
> for other people's preferences?  What a strange statement.
>
> > I note that your implementation requires new elements, namely
> > additions to app.yaml.
>
> And you fail to note that I said it was not a requirement.  e.g. you
> could achieve the same thing when you deploy the app (e.g. when you
> choose to tie it to a domain or not), or via configuration in admin
> console.
>
> > > As it stands GAE does not allow cross data store queries,
> > > and from my perspective that is an aspect of the security
> > > architecture.  106 wants that aspect 'relaxed'.
>
> > How do you know how the current GAE code actually works?
>
> I read the API docs - how do you manage it?
>
> > 106 or any of the variants that I've mentioned would merely make "open
> > datastore" available through some appropriate safeguards and would be
> > just as secure as the current system.
>
> Let's examine the token idea - and assume you have obtained N tokens
> securely.  You can easily introduce a bug in your application code
> that uses the wrong token for the wrong end-user.  Secure access,
> buggy exposure of customer data.  Your idea does not prevent the cited
> bug, because it is not an alternative to strict data partitioning.
> This is not a solution to the concerns of the original poster.
> Perhaps I have misunderstood your implementation?
>
> > I don't know Google's code either, but it is generally believed that
> > BigTable is used in many internal Google applications.  The easy way
> > to make BigTable available to applications is via such a routine
> > called byapplication-space code.  To the extent that GAE's datastore
> > is "just" a BigTable wrapper
>
> I think you are probably over-simplifying the meaning of BigTable.
> BigTable is indeed used by many internal applications (as I understand
> it), and as previously stated, I would expect (don't know) that the
> data segregation required to achieve this would not be implemented by
> each of those internal applications, but by lower level features in
> BigTable.  Move common use cases to the platform level.
>
> On Dec 30 2008, 3:14 pm, Andy Freeman  wrote:
>
>
>
> > > No, I would prefer GAE to implement the system completely, using
> > > existing elements.
>
> > I was unaware of the weight that your preferences have.
>
> > I note that your implementation requires new elements, namely
> > additions to a

[google-appengine] Suggests based on user input

2009-01-05 Thread Shay Ben Dov

Hi Everybody,

Has anyone tried to implement a suggestions based on user input like
inGmail when you start to key in the To: field and you get a lists of
suggested names read from your contacts.

I wish to implement the same reading suggestions from a datastore
table based on user keyed_in input.

Every assistance is appreciated.

Thanks,

Shay Ben Dov

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



[google-appengine] Re: Displaying query results in template (Django)

2009-01-05 Thread Lacrima

Marzia, thanks a lot!

I should learn datastore API more attentively!

On Jan 5, 9:29 pm, Marzia Niccolai  wrote:
> Hi,
>
> In this example you aren't fetching the query results at all.  You should do
> something like
>
> query = GqlQuery("SELECT * FROM directions WHERE directions = :directions",
> directions = form.cleaned_data["direction"])
> my_directions = query.get()
> self.extra_context['direction'] = my_directions.directionsid
>
> -Marzia
>
> On Mon, Jan 5, 2009 at 7:37 AM, Lacrima  wrote:
>
> > Hello!
>
> > I am trying to set some extra_context in my template using query.
>
> > For example, I have the next model:
> > class directions(db.Model):
> >    directions = db.StringProperty()
> >    directionsid = db.IntegerProperty()
> >    def __unicode__(self):
> >        return self.directions
>
> > Then I try to access data depending on user input and to set
> > extra_context. A bit of my code:
>
> > ###
> > query = GqlQuery("SELECT * FROM directions WHERE directions
> > = :directions", directions = form.cleaned_data["direction"])
> > self.extra_context["direction"] = directions.directionsid
> > 
>
> > And finally, when I use {{direction}} in my template I just receive
> > something like that:
> > 
> > But I want my results to be human readable.
>
> > What should I do?
> > Looking forward to your replies.
>
> > P.S.: Sorry for my English. If most  isn't quite clear i"ll try to
> > explain it in other way.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---