[google-appengine] Re: dictionary displays problem

2009-08-04 Thread yuan ping wu
Not working ,help plz

2009/8/4 djidjadji djidja...@gmail.com


 Does this work?

 body
 {%for key in dictionary %}
{{key}}:{{display.key}}
 {%endfor%}
 /body


 2009/8/3 oscarWu oscar821...@gmail.com:
  
  I wanna put my dicitonary object on template
  sth more like
 
  body
 
  {%for value,key in dictionary.items%}
  display key:display value
  {%endfor%}
  /body
 
 
  but my1 doesnt word, any1 can provide me specific code ?
 
  
 

 


--~--~-~--~~~---~--~~
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: dictionary displays problem

2009-08-04 Thread Nick Johnson (Google)

Hi oscarWu,

What error do you get, or if you don't get an error, what gets
displayed? And what is the exact template snippet you're using for
this? We need more details in order to help.

-Nick Johnson

On Mon, Aug 3, 2009 at 4:04 AM, oscarWuoscar821...@gmail.com wrote:

 I wanna put my dicitonary object on template
 sth more like

 body

 {%for value,key in dictionary.items%}
     display key:display value
 {%endfor%}
 /body


 but my1 doesnt word, any1 can provide me specific code ?

 




-- 
Nick Johnson, Developer Programs Engineer, 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: Persisting Enum values?

2009-08-04 Thread Albert Attard
Hi:
I'm not sure about this, but my understanding was that JDO didn't support
ENUMS, JPA does (but I may be wrong).

Cheers,
Albert Attard

Joan Crawfordhttp://www.brainyquote.com/quotes/authors/j/joan_crawford.html
- I, Joan Crawford, I believe in the dollar. Everything I earn, I
spend.

2009/8/3 Jeff S (Google) j...@google.com

 Hi Tom,
 It should be possible to persist objects that use enums without needing to
 do your own additional mapping. I talked this over with Max Ross who
 frequents the Java runtime discussion group (
 http://groups.google.com/group/google-appengine-java) and he pointed out
 an example in the JDO unit tests which uses enums:


 http://www.google.com/codesearch/p?hl=ensa=Ncd=2ct=rc#79kbA0UmWLw/trunk/tests/org/datanucleus/test/HasEnumJDO.java


 http://www.google.com/codesearch/p?hl=ensa=Ncd=2ct=rc#79kbA0UmWLw/trunk/tests/org/datanucleus/test/HasEnumJDO.javaThank
 you,

 Jeff

 On Thu, Jul 30, 2009 at 5:09 PM, Tom Ball tball...@gmail.com wrote:

 We have a simple task object, currently persisted using JDO (using App
 Engine, of course).  We'd like to add a GREEN/YELLOW/RED status enum state.
  Defining the enum class is easy:

 public enum Status {

   NONE(none), GREEN(green), YELLOW(yellow), RED(red);


   private final String label;


   Status(String label) {

 this.label = label;

   }


   public String getLabel() {

 return label;

   }

 }

 We're stumped how to make this class persistent using JDO -- foreign keys
 for the labels, perhaps?  Or do we get it for free, perhaps by JDO storing
 the enum ordinal?

 Tom




 


--~--~-~--~~~---~--~~
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: Remote API (or similar) for java?

2009-08-04 Thread Nick Johnson (Google)

Hi Nick,

If you're happy to use a Python local client, you can do the following:

- Create a Python app.yaml with the same app_id as your Java app, but
a different major version.
- Install the remote_api mapping in the app.yaml
- Deploy the Python app to App Engine
- When you initialize remote_api with ConfigureRemoteDatastore, pass
the parameter server=majorversion.latest.myapp.appspot.com
(substituting majorversion and latest as appropriate).

You can now access your Java app's datastore via Python Remote API.

-Nick Johnson

On Tue, Aug 4, 2009 at 3:19 AM, Nick_Zailliannzaill...@gmail.com wrote:

 Just to clarify: I wouldn't mind working in Python on the local end of
 things if that were necessary (because that would just mean rewriting
 one or two routines).  What I am unwilling to do is to rewrite my
 whole application in Python just so that I can make use of the Remote
 API/AppRocker/App3.  It looks to me like Remote API, AppRocket and
 app3 are all just python scripts, so I'm not too hopeful about the
 prospect of integrating them with my java app.  App3 is probably the
 closest thing to what I'm looking for.  It occurs to me that it may
 not be so complicated to implement this sort thing in java on my own,
 so I may just go ahead and try to do that...unless someone has a
 better idea.
 Cheers,
 Nick

 On Aug 3, 11:58 pm, Nick_Zaillian nzaill...@gmail.com wrote:
 I would like to be able to do some batch processing for a site I'm
 running on GAE (at nicksmap.org).  Right now I've got various database
 maintenance routines bound to URLs that I hit with cron.  Problem is
 that one of these routines requires a few minutes to excecute.  And
 can (and sort of have) hacked up a workaround, but I would be able to
 stretch my quotas much further if I could use something like Remote
 API, App Rocket, or app3.  So far as I can tell, though, all of these
 tools are python only (or am I mistaken?).  Any thoughts on how I
 might be able to accomplish what I'm trying to accomplish (basically
 be able to take a hunk of records from my database and run some time-
 consuming routines on them on a local machine so as not to have to
 hack around the 30 second cutoff for processes)?
 Thanks,
 Nick Zaillian
 




-- 
Nick Johnson, Developer Programs Engineer, 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: Sorting in Memory

2009-08-04 Thread Nick Johnson (Google)

Hi MajorProgramming,

Using the sort method on a List, or the sorted() function, if your
data is not already in a list.

-Nick Johnson

On Tue, Aug 4, 2009 at 1:23 AM, MajorProgammingsefira...@gmail.com wrote:

 What is the most efficient way to sort Datastore results in memory?

 Thanks,
 




-- 
Nick Johnson, Developer Programs Engineer, 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: How to use Picasa API within APP Engine

2009-08-04 Thread cpedia

You can refer to the open source project cpedialog  
http://cpedialog.googlecode.com

The albums feature of cpedialog use google gdata api to fetch the
albums from picasaweb.

My personal albums locate here: http://blog.cpedia.com/albums


On Aug 3, 11:33 am, moonson lgong1...@gmail.com wrote:
 I want to call Google Picasa API to get the list of specific albums
 within API engine framwork.

 But it seems that App engine cannot recognize the following modules
 about Picasa.

 import modules for Google Picasa
 import gdata.photos.service
 import gdata.media
 import gdata.geo

 Who can help me to solve the issue? I'm new start of both App engine
 and Python.
--~--~-~--~~~---~--~~
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 use Picasa API within APP Engine

2009-08-04 Thread Nick Johnson (Google)

Hi monsoon,

The gdata libraries are not part of App Engine by default. You need to
download them and unpack them in your app's directory in order to use
them.

-Nick Johnson

On Mon, Aug 3, 2009 at 4:33 AM, moonsonlgong1...@gmail.com wrote:

 I want to call Google Picasa API to get the list of specific albums
 within API engine framwork.

 But it seems that App engine cannot recognize the following modules
 about Picasa.

 import modules for Google Picasa
 import gdata.photos.service
 import gdata.media
 import gdata.geo


 Who can help me to solve the issue? I'm new start of both App engine
 and Python.

 




-- 
Nick Johnson, Developer Programs Engineer, 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: GQL query failed to return a qualifying entity

2009-08-04 Thread Jaap Taal
I've experienced a similar problem running on the SDK.aplying two filter()s
result in 0 records found. Aplying either one of the filter()s and comparing
the resultsets found a record that matches both filter()s.

Jaap Taal

[ Q42 BV | tel 070 44523 42 | direct 070 44523 65 | http://q42.nl |
Waldorpstraat 17F, Den Haag | KvK 30164662 ]


On Tue, Aug 4, 2009 at 6:01 AM, phtq pher...@typequick.com.au wrote:


 In our application (kbdlessons version 1-01) we have just had a case
 where a query in our application failed to return a record which
 definitely exists. We were able to reproduce this problem using the
 Dataviewer page off the app engine dashboard.

 We put in this query using the Dataviewer:

 SELECT * FROM StudentSubscriptions where StudentKey = 'REBECCA' and
 ProductKey = 'Typequick Professional' and AccountKey = 'SIVF'

 and got no results. However, if we use just 2 out of the 3 tests (any
 2!) the record we want appears amongst the results.

 Also, other valid values for StudentKey when used in this 3 part query
 do return a record in the Dataviewer page, just not this particular
 set of 3 values.

 We had to build a new record (under another name) to get the student
 going, but have left the troubled record in the database so you can
 look at it.

 Please let me know how to avoid this rather worrying 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] Re: Creating a new application

2009-08-04 Thread Nick Johnson (Google)

Hi darshan,

Have you tried going to http://appengine.google.com/a/fuzify.com ? If
you're creating the apps with a Google Apps account, that's where
they'll show up.

-Nick Johnson

On Sat, Aug 1, 2009 at 12:10 PM, dars...@fuzify.comdars...@fuzify.com wrote:

 Hi,

 I am trying to create a new application for the GAE(fuzify-www). On
 the form(/start/createapp?) when I click Save, It just redirects to
 http://appengine.google.com/start. The usual table with the list of
 applications does not show up. No conformation flash etc. Instead it
 just shows the Welcome to Google app engine page, and create a new
 application button.

 I tried this with fuzify-www and also fuzify-test which both ended up
 showing the same welcome page.

 Can someone please tell me what I am doing wrong and how to get to the
 console page for the application. Thanks.

 -darshan

 




-- 
Nick Johnson, Developer Programs Engineer, 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: Sorting in Memory

2009-08-04 Thread Albert Attard
Note that the list returned by the datastore is generaly immutable list,
thus you need to create another one (mutable) in order to be able to sort
it.

Having the sorting done programatically (in memorey) gives you the advantage
that the client (browser) can sort without having to leave the page.

Hope this helps,
Albert Attard

Ogden Nash http://www.brainyquote.com/quotes/authors/o/ogden_nash.html  -
The trouble with a kitten is that when it grows up, it's always a cat.

2009/8/4 Nick Johnson (Google) nick.john...@google.com


 Hi MajorProgramming,

 Using the sort method on a List, or the sorted() function, if your
 data is not already in a list.

 -Nick Johnson

 On Tue, Aug 4, 2009 at 1:23 AM, MajorProgammingsefira...@gmail.com
 wrote:
 
  What is the most efficient way to sort Datastore results in memory?
 
  Thanks,
  
 



 --
 Nick Johnson, Developer Programs Engineer, 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] Predict and Limit Index Size

2009-08-04 Thread Koen Bok

Is there any way to reliably calculate how large an index for an item
will be? That way I could make sure my fulltext wordlists will never
get the exploding inde problem.

My current index is

- kind: SearchableIndex
  properties:
  - name: parentKind
  - name: userKey
  - name: words
  - name: words
  - name: sortKey

Now let's say the words property has 10 words in it. Would my index
then be 1 * 1 * 10 * 10 * 1 = 100? And could I just compare that
against datastore._MAX_INDEXED_PROPERTIES?

- Koen
--~--~-~--~~~---~--~~
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: Predict and Limit Index Size

2009-08-04 Thread Koen Bok

Maybe a better question to as is: how big can my wordlist be at
maximum? And why?

- Koen

On Aug 4, 11:11 am, Koen Bok k...@madebysofa.com wrote:
 Is there any way to reliably calculate how large an index for an item
 will be? That way I could make sure my fulltext wordlists will never
 get the exploding inde problem.

 My current index is

 - kind: SearchableIndex
   properties:
   - name: parentKind
   - name: userKey
   - name: words
   - name: words
   - name: sortKey

 Now let's say the words property has 10 words in it. Would my index
 then be 1 * 1 * 10 * 10 * 1 = 100? And could I just compare that
 against datastore._MAX_INDEXED_PROPERTIES?

 - Koen
--~--~-~--~~~---~--~~
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: update_indexes error

2009-08-04 Thread Tom Wu
Hi Jeff,

My apps id are djangog2100,cccwikig2100,blitzg2100,g2100.
Please reset the index. Thanks a lot.


Best Regards
Tom Wu




2009/8/4 Jeff S (Google) j...@google.com

 It looks like this app was over quota for datastore indices so I reset it.
 You should be all set, please let me know if you are still seeing quota
 errors.
 Happy coding,

 Jeff

 On Sat, Aug 1, 2009 at 10:10 AM, chemuto chem...@gmail.com wrote:


 Hi,

 I cannot update my indexes. Getting Server Error 500. Haven't
 reached yet 100.

 App id: testingryv

 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: Predict and Limit Index Size

2009-08-04 Thread Nick Johnson (Google)

Hi Koen,

The index you describe below is indeed an 'exploding' index, and the
number of index rows will be 1*1*10*9*1 = 90 index entries - it won't
index pairs of the same word.

-Nick Johnson

On Tue, Aug 4, 2009 at 10:11 AM, Koen Bokk...@madebysofa.com wrote:

 Is there any way to reliably calculate how large an index for an item
 will be? That way I could make sure my fulltext wordlists will never
 get the exploding inde problem.

 My current index is

 - kind: SearchableIndex
  properties:
  - name: parentKind
  - name: userKey
  - name: words
  - name: words
  - name: sortKey

 Now let's say the words property has 10 words in it. Would my index
 then be 1 * 1 * 10 * 10 * 1 = 100? And could I just compare that
 against datastore._MAX_INDEXED_PROPERTIES?

 - Koen
 




-- 
Nick Johnson, Developer Programs Engineer, 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: Sorting in Memory

2009-08-04 Thread Nick Johnson (Google)

That's not the case at all. The list returned by datastore .get() and
.fetch() operations is an ordinary Python list.

-Nick Johnson

On Tue, Aug 4, 2009 at 9:46 AM, Albert Attardalbertatt...@gmail.com wrote:
 Note that the list returned by the datastore is generaly immutable list,
 thus you need to create another one (mutable) in order to be able to sort
 it.

 Having the sorting done programatically (in memorey) gives you the advantage
 that the client (browser) can sort without having to leave the page.

 Hope this helps,
 Albert Attard

 Ogden Nash  - The trouble with a kitten is that when it grows up, it's
 always a cat.

 2009/8/4 Nick Johnson (Google) nick.john...@google.com

 Hi MajorProgramming,

 Using the sort method on a List, or the sorted() function, if your
 data is not already in a list.

 -Nick Johnson

 On Tue, Aug 4, 2009 at 1:23 AM, MajorProgammingsefira...@gmail.com
 wrote:
 
  What is the most efficient way to sort Datastore results in memory?
 
  Thanks,
  
 



 --
 Nick Johnson, Developer Programs Engineer, App Engine




 




-- 
Nick Johnson, Developer Programs Engineer, 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: Sorting in Memory

2009-08-04 Thread Albert Attard
Sorry about that, I'm not good in python :( - in Java the data stores
usually returns an immutable list
Albert Attard

Joan Crawfordhttp://www.brainyquote.com/quotes/authors/j/joan_crawford.html
- I, Joan Crawford, I believe in the dollar. Everything I earn, I
spend.

2009/8/4 Nick Johnson (Google) nick.john...@google.com


 That's not the case at all. The list returned by datastore .get() and
 .fetch() operations is an ordinary Python list.

 -Nick Johnson

 On Tue, Aug 4, 2009 at 9:46 AM, Albert Attardalbertatt...@gmail.com
 wrote:
  Note that the list returned by the datastore is generaly immutable list,
  thus you need to create another one (mutable) in order to be able to sort
  it.
 
  Having the sorting done programatically (in memorey) gives you the
 advantage
  that the client (browser) can sort without having to leave the page.
 
  Hope this helps,
  Albert Attard
 
  Ogden Nash  - The trouble with a kitten is that when it grows up, it's
  always a cat.
 
  2009/8/4 Nick Johnson (Google) nick.john...@google.com
 
  Hi MajorProgramming,
 
  Using the sort method on a List, or the sorted() function, if your
  data is not already in a list.
 
  -Nick Johnson
 
  On Tue, Aug 4, 2009 at 1:23 AM, MajorProgammingsefira...@gmail.com
  wrote:
  
   What is the most efficient way to sort Datastore results in memory?
  
   Thanks,
   
  
 
 
 
  --
  Nick Johnson, Developer Programs Engineer, App Engine
 
 
 
 
  
 



 --
 Nick Johnson, Developer Programs Engineer, 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: dictionary displays problem

2009-08-04 Thread yuan ping wu
it gets no thing. noth display on web

2009/8/4 Nick Johnson (Google) nick.john...@google.com


 Hi oscarWu,

 What error do you get, or if you don't get an error, what gets
 displayed? And what is the exact template snippet you're using for
 this? We need more details in order to help.

 -Nick Johnson

 On Mon, Aug 3, 2009 at 4:04 AM, oscarWuoscar821...@gmail.com wrote:
 
  I wanna put my dicitonary object on template
  sth more like
 
  body
 
  {%for value,key in dictionary.items%}
  display key:display value
  {%endfor%}
  /body
 
 
  but my1 doesnt word, any1 can provide me specific code ?
 
  
 



 --
 Nick Johnson, Developer Programs Engineer, 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: dictionary displays problem

2009-08-04 Thread Holger

Perhaps you should start from scratch.

First get the starter examples working. Especially this one using
'template_values' in Python code and the 'greetings'-list within the
template:
http://code.google.com/appengine/docs/python/gettingstarted/templates.html


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



[google-appengine] Re: sub domain without google apps

2009-08-04 Thread Nick Johnson (Google)

Hi Ninjamonk,

On Tue, Aug 4, 2009 at 12:41 PM, Ninjamonkdar...@stuartmedia.co.uk wrote:

 Hi, I am working on an app I plan to sell to clients.

 Can we have it so a cname record can just point to appname.appspot.com
 without the need for google apps.

This is not really possible - all App Engine (or any webapp) sees is
the domain you requested - finding out what name you've CNAMEd it to
would require a lookaside, which would degrade performance.

You can provide an easier service for your clients by signing up for
Apps yourself - either once per client, or just sign up once and add
your clients' domains as aliases on the single Apps account. Then, you
can set up the mapping yourself.

-Nick Johnson


 I have played around with this and I have one domain setup on www. and
 created cname on another domain to point to this and this does not
 work (it just throws a 404). If I create a cname to
 appname.appspot.com I get google loading for me.

 The reason I ask is its just confusing to clients and adds an extra
 layer of support that is not needed(having to setup google apps or
 accessing their current one).

 I think the way that app engine works with domains needs looking at.

 Kind Regards

 Darren


 




-- 
Nick Johnson, Developer Programs Engineer, 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: non default version, static files

2009-08-04 Thread Wooble



On Aug 3, 11:20 am, bFlood bflood...@gmail.com wrote:
 1) are there different static files associated with each major version
 of your app?

Yes.  Everything that was defined in your app.yaml at the time you
uploaded a particular version will stay mapped the way it's mapped in
that file for that version.

 2) if so, is the limit on the number of static files the same for all
 major version or is the aggregate of all your apps major versions?

I haven't tested this, but I'm fairly certain the file count limits
are for each version.
--~--~-~--~~~---~--~~
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 use Picasa API within APP Engine

2009-08-04 Thread ego008
no way upload photo to picasa on GAE

2009/8/4 Nick Johnson (Google) nick.john...@google.com


 Hi monsoon,

 The gdata libraries are not part of App Engine by default. You need to
 download them and unpack them in your app's directory in order to use
 them.

 -Nick Johnson

 On Mon, Aug 3, 2009 at 4:33 AM, moonsonlgong1...@gmail.com wrote:
 
  I want to call Google Picasa API to get the list of specific albums
  within API engine framwork.
 
  But it seems that App engine cannot recognize the following modules
  about Picasa.
 
  import modules for Google Picasa
  import gdata.photos.service
  import gdata.media
  import gdata.geo
 
 
  Who can help me to solve the issue? I'm new start of both App engine
  and Python.
 
  
 



 --
 Nick Johnson, Developer Programs Engineer, App Engine

 



-- 
gae-django-cms (GD-cms)
a multi-user CMS running on GAE 一个基于GAE多用户的CMS
sample http://cmsdome.appspot.com/
projects http://code.google.com/p/gae-django-cms/

--~--~-~--~~~---~--~~
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 end users concerned with phishing Google Accounts ?

2009-08-04 Thread JoeM

If password controlled access is needed trust will be an issue no
matter who implements the procedure.

-Joe

On Aug 1, 3:20 pm, pca pierre.carbonne...@gmail.com wrote:
 I'm discovering Google App, and preparing an App for the general
 public, mostly for FireFox users.  User identification will be
 required, and I'm hesitating between using Google Accounts or my own
 user identification.  I'd be happy to receive comments on my analysis
 of the 2 options below, and my questions.

 If I use Google Accounts, my users will log using their google e-mail
 and password : if they already have a google account, it's easy for
 them as they don't have to create a new account on my site.  It's also
 very easy for me : I don't have to develop anything.

 However:
 - some users may not have a google account, and may not want to create
 one because they are afraid of Google for their privacy
 - some users may be wary of giving their Google e-mail and password to
 another site, not realising that my site won't have access to it.
 They would be afraid of me phishing them, although it clearly would
 not the case here.

 How big are these issues ?  I see that Giftag is not using Google
 Accounts.  Is there any large service for the general public that is
 using Google Accounts ?  Is there any numeric information that could
 help make this decision ?

 Any comments welcome.

 PCa
--~--~-~--~~~---~--~~
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: Limit for db.get?

2009-08-04 Thread djidjadji

if you key list is larger then 1000 items it will be a problem (hard limit).
if you partition the db.get() for n*100 keys at the time it will not
be a problem.
For n=3 it should work. ( I might remember reading the number 300
sometime in this list for db.get() )

2009/8/4 Oliver Zheng goo...@oliverzheng.com:

 I have run into a request too large for db.get (not db.put). It
 appears that sometimes I may need to request for thousands of tiny
 objects, and this is hitting a barrier. What is the limit and what is
 it determined by?

 Thanks,
 Oliver
 


--~--~-~--~~~---~--~~
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: 10 App limit?

2009-08-04 Thread Nick Johnson (Google)

Hi Joshua,

On Mon, Aug 3, 2009 at 7:58 PM, Joshua Smithjesm...@kaon.com wrote:

 I've been using GAE for a while now, and I'm up to 8 apps.  I can
 easily see needing to exceed the 10 app limit in the next couple of
 months.

 Questions:
 - When, if ever, should we expect this limit to be increased?  (Either
 overall, or for a billable fee?)

We don't currently have plans to raise the limit across the board. We
will raise the limit for individual developers who ask and aren't
abusing the system, however.

 - Is it OK to use multiple google accounts to get around this limit,
 or is the intent to really restrict a single developer to just 10
 apps?  (The Terms of Service seem to be silent on this point)

The intent is that each developer has only a single App Engine account
(barring multiple roles, like you-at-work, you-at-home, and
you-consulting-for-clients). If you run out of apps, just ask here and
we'll increase the limit for your account.

-Nick Johnson



 




-- 
Nick Johnson, Developer Programs Engineer, 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: How to translate an application running on GAE?

2009-08-04 Thread ego008
http://docs.djangoproject.com/en/dev/topics/i18n/
you can read the django docs

2009/8/3 dflorey daniel.flo...@gmail.com


 You can use my simple commons project, it worked fine for my GAE app:

 http://commons.apache.org/sandbox/i18n/

 On 3 Aug., 07:57, NiklasRTZ nik...@montao.com.br wrote:
  The sv .po seems to have a colon too much so it doubles with use with
  forms. All ready translations from the django library LC_MESSAGES can
  get reused for our projects which is very good, templates work with
  i18n and a custom request handler and some success currently
  integrating translations with djangoforms where I must translate eg.
  from django.utils import translation
  class i18NForm(djangoforms.ModelForm):
email = forms.CharField(max_length=127,label=_(E-mail
  address).capitalize())
  Then sv.LC_MESSAGES.django.po row 1584 read
  #: contrib/admin/views/doc.py:297
  msgid E-mail address
  msgstr E-postadress:
  Note the colon (:) then doubles when using it with djangoforms. Hence
  my suspicion the colon should be removed otherwise it doubles.
  It's only in the locale sv locale no didn't double the :
  #: contrib/admin/views/doc.py:283
  msgid E-mail address
  msgstr E-post adresse
  Should the colon get removed?
 
  On Aug 2, 2:51 pm, Devel63 danstic...@gmail.com wrote:
 
 
 
   In the templates, use {% trans 'My string' %}.
 
   Put {% load i18n %} at the top of the file (must be one of first
   couple lines).
 
   On Aug 1, 11:22 am, Emilien Klein emilien.kl...@gmail.com wrote:
 
Hi Devel63,
Thanks for your answer. But this is just for inside your Python
 files,
how do you manage text in the templates? Or don't you use templates?
 I
don't really see how you're managing this...
Is your app open source (i.e. Is there a place where I can see your
code)?
 
On 1 août, 10:31, Devel63 danstic...@gmail.com wrote:
 
 We use the Django 0.96 that is bundled with GAE.
 
 from django.utils.translation import gettext as _
 
 Then just use _('My String) in the code, combined with the .po/.mo
 files.
 
 On Aug 1, 8:16 am, Rodrigo Moraes rodrigo.mor...@gmail.com
 wrote:
 
  On Sat, Aug 1, 2009 at 11:51 AM, Emilien Klein wrote:
   The problem I see with using Babel is that it IS an external
 library,
   which means that I need to integrate it with my project. What
 I'm
   looking for is a way to have a translated application WITHOUT
 having
   to install any external library...
 
  Without any other external library, you have 2 options:
 
  1. use gettext -http://docs.python.org/library/gettext.html
  2. hack and patch django's i18n
 
  The problem with the 2nd option is that your app stays tied to
  django's ecosystem - later you need i18n in a small project and
 you'll
  have to add django just for it. Ok, it is a valid solution, I
 just
  personally prefer to use a external library that is not coupled
 with a
  bunch of unrelated things, and avoid all the monkeypatching mess.
 
  -- rodrigo
 



-- 
gae-django-cms (GD-cms)
a multi-user CMS running on GAE 一个基于GAE多用户的CMS
sample http://cmsdome.appspot.com/
projects http://code.google.com/p/gae-django-cms/

--~--~-~--~~~---~--~~
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: Interact with external server for static private files

2009-08-04 Thread Nick Johnson (Google)

To further expand on what others have suggested, you can implement
this using cookies and authentication similar to what Google Accounts
does for App Engine. The flow would go something like this:

1) Your app generates a token for the currently logged in user,
consisting of their username and the current datetime HMACed with a
secret that only your app and the third-party site knows
2) Your app sends a 302 redirect to the user, redirecting them to a
login URL on the third-party server, and containing the token you
generated in step 1, along with a 'continue' URL.
3) The third party server receives and verifies the request with the
token, and issues the user a session cookie identifying them as logged
in, as well as a 302 redirect back to the continue URL you specified
in step 2.
4) Serve up links to files on the third-party service as per normal.
The third-party service checks for the presence and validity of the
session cookie generated in step 3 before serving files to a user.

This way, there's no need for 'secret' or expiring URLs. You can also
reverse the flow - have the third-party server redirect to you if the
user is not authenticated, have a handler on your app that generates
the token and redirects back to the third-party server. This may be
the better option, in fact.

You may find it simpler to use something like OAuth to achieve this,
which will take care of everything except issuing and validating the
cookie. Or you might find it easier to do yourself - but you run the
risk of making a mistake that makes your service vulnerable, of
course. Don't take my off-the-cuff description of how to generate the
token as gospel, naturally.

-Nick

On Mon, Aug 3, 2009 at 4:04 AM, jivanyjiv...@gmail.com wrote:

 I've been unsuccessfully searching through the group for some pointers
 on how to implement this.

 Here's my scenario - I want to be able to push large images and videos
 online, files that would be larger than the current App Engine
 limits.  I want to control access to these files as if they were blobs
 in an App Engine datastore (simple stuff like controlling who can view
 them) but I want to store them on a third party server (that I have
 control over). Obviously, a direct URL to the image isn't good as
 anyone could find that. I'd need a simple backend script running on
 the third-party server.

 I don't really care about how the files are actually going to get
 where they need to go, I can manage that.  What I'm having trouble
 with is how to setup that third-party server with a simple script that
 would serve up the content when requested by the App Engine front end.
 That script would have to check that the request is coming from the
 front-end and for a valid (authorized) user.

 This seems like a pretty trivial thing to do but I can't figure out
 what I need to pull it off. Any help is appreciated!
 




-- 
Nick Johnson, Developer Programs Engineer, 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: I can't see my registered apps :(

2009-08-04 Thread Nick Johnson (Google)

Hi Karlas,

Try logging in at http://appengine.google.com/a/karlas.org . This is
where you need to log in to the admin console if using an Apps domain.

-Nick Johnson

On Mon, Aug 3, 2009 at 1:37 AM, Karlaskar...@karlas.org wrote:

 Hi everybody,

 I registered some apps succesfully (I can manage them after with app
 SDK and I can upload files, and they are working), but I can't see
 them at http://appengine.google.com/, or in My account

 Any suggestion?

 Thank you in advance

 




-- 
Nick Johnson, Developer Programs Engineer, 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: Create an application but not show in my account

2009-08-04 Thread Nick Johnson (Google)

Hi jay,

Have you tried signing in at
http://appengine.google.com/a/jaykyburz.com as suggested in my message
to a previous user?

-Nick Johnson

On Sun, Aug 2, 2009 at 8:15 AM, jayj...@jaykyburz.com wrote:

 I have this exact problem. quite frustrating.

 On Jul 26, 4:12 pm, ez e...@ezwavebot.com wrote:
 Nick,

 Looks like there's a mix-up when a user on a Google Apps domain tries
 to sign up forAppEngine with a Google Account:

 Step 1: Create a Google Apps domain and user account
 Step 2: Try to sign up forAppEngine at appengine.google.com - fails
 because Google Apps user isn't a Google Account
 Step 3: Create a Google Account for the Google Apps user
 Step 4: Try to sign up forAppEngine at appengine.google.com - now it
 works
 Step 5: Create an application
 Step 6: Do SMS verification -AppEngine returns the user to the
 Create Application page, can't see dashboard or apps
 Step 7: Try to create application again - fails because now name is
 already in use
 Step 8: Create a second application with a different name - again
 returns user to the Create Application page, can't see dashboard or
 apps
 Step 9: Sign out ofAppEngine, and sign back in 
 withhttp://appengine.google.com/a/appsdomain.com- now I can see my 2
 domains!
 Step 10: Domain list shows 2 domains, and says I have 10 more left
 (should be 8 more)
 Step 11: Try to create a third application -- requires SMS
 verification again (which won't work because the number has already
 been used)

 So is part of my account authenticated with the Google Account, and
 part with the Google Apps account?

 Thanks!

 On Jul 3, 2:55 am, Nick Johnson (Google) nick.john...@google.com
 wrote:



  Hi Dot,

  Are you using the email address you posted from to create the apps? If
  so, you need to go tohttp://appengine.google.com/a/dotography.comto
  see (and create) your apps.

  -Nick Johnson

  On Thu, Jul 2, 2009 at 8:20 AM, Dotgadg...@dotography.com wrote:

   Hello,

   I have signed up and verified. Then try creating an application at
   this step:http://appengine.google.com/start/createapp.. The chosen
   name is available, after fill all the required field and Save, it
   returns to the welcome page and the created application is not shown
   in my list. But as testing the application name is already take.

   I have done another trial with thenewapplication name and the
   problem is the same.

   Please help suggest what I do wrong. Thank you in advance.

   Best regards,

   Dot

  --
  Nick Johnson,AppEngine Developer Programs Engineer
  Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
  Number: 368047

 




-- 
Nick Johnson, Developer Programs Engineer, 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: 10 App limit?

2009-08-04 Thread Joshua Smith

Cool.  Thanks!

No need yet.  But soon... ;)
--~--~-~--~~~---~--~~
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: Limit for db.get?

2009-08-04 Thread ego008
you can use Memcache to improve your app performance

2009/8/4 djidjadji djidja...@gmail.com


 if you key list is larger then 1000 items it will be a problem (hard
 limit).
 if you partition the db.get() for n*100 keys at the time it will not
 be a problem.
 For n=3 it should work. ( I might remember reading the number 300
 sometime in this list for db.get() )

 2009/8/4 Oliver Zheng goo...@oliverzheng.com:
  
  I have run into a request too large for db.get (not db.put). It
  appears that sometimes I may need to request for thousands of tiny
  objects, and this is hitting a barrier. What is the limit and what is
  it determined by?
 
  Thanks,
  Oliver
  
 

 



-- 
gae-django-cms (GD-cms)
a multi-user CMS running on GAE 一个基于GAE多用户的CMS
sample http://cmsdome.appspot.com/
projects http://code.google.com/p/gae-django-cms/

--~--~-~--~~~---~--~~
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 end users concerned with phishing Google Accounts ?

2009-08-04 Thread ego008
the app-engine-patch can help your work

2009/8/4 JoeM joe.mansig...@gmail.com


 If password controlled access is needed trust will be an issue no
 matter who implements the procedure.

 -Joe

 On Aug 1, 3:20 pm, pca pierre.carbonne...@gmail.com wrote:
  I'm discovering Google App, and preparing an App for the general
  public, mostly for FireFox users.  User identification will be
  required, and I'm hesitating between using Google Accounts or my own
  user identification.  I'd be happy to receive comments on my analysis
  of the 2 options below, and my questions.
 
  If I use Google Accounts, my users will log using their google e-mail
  and password : if they already have a google account, it's easy for
  them as they don't have to create a new account on my site.  It's also
  very easy for me : I don't have to develop anything.
 
  However:
  - some users may not have a google account, and may not want to create
  one because they are afraid of Google for their privacy
  - some users may be wary of giving their Google e-mail and password to
  another site, not realising that my site won't have access to it.
  They would be afraid of me phishing them, although it clearly would
  not the case here.
 
  How big are these issues ?  I see that Giftag is not using Google
  Accounts.  Is there any large service for the general public that is
  using Google Accounts ?  Is there any numeric information that could
  help make this decision ?
 
  Any comments welcome.
 
  PCa
 



-- 
gae-django-cms (GD-cms)
a multi-user CMS running on GAE 一个基于GAE多用户的CMS
sample http://cmsdome.appspot.com/
projects http://code.google.com/p/gae-django-cms/

--~--~-~--~~~---~--~~
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: Questions on session tokens

2009-08-04 Thread Nick Johnson (Google)

Hi Dave,

On Mon, Aug 3, 2009 at 1:58 PM, Davedabo...@gmail.com wrote:

 A couple questions on tokens:

 1) I am reading the documentation on using AuthSub for web
 applications. I am concerned and confused by this statement:

 Google Accounts is not set up to manage large numbers of tokens, and
 in fact will not issue more than ten valid tokens for any one user to
 a web application.

 What exactly does this mean? By user, are you referring to me (the
 developer of the app), or to the users who will be using my app?

'User' here means the user being authenticated. As far as I'm aware,
authsub doesn't even have any concept of an application - it doesn't
care who's requesting the authorization.


 I plan to store only 1 session token per app user (for access to
 spreadsheets), but could potentially have many more than 10 users
 accessing my app at the same time. If the limit is 10 valid tokens per
 app user (at a time), then this is not a problem since I will have
 just 1 token per user. But if it's 10 tokens per app overall at a
 time, then this will limit me. I'm pretty sure it's the former, but
 wanted to be sure.

The only potential issue is if your users are using 10 other services
that also use AuthSub - in which case the session tokens will not
remain valid for all 11 (your app being the 11th).


 2) Is it considered good practice to store user session tokens in the
 Google data store (associated with a user's id)?

That's fine.

-Nick Johnson


 Thanks so much,
 Dave
 




-- 
Nick Johnson, Developer Programs Engineer, 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: sub domain without google apps

2009-08-04 Thread Ninjamonk

Thanks Nick, I willl look into the domains aliases on the single
account as that might be a good fit. otherwise I guess I will have to
set it up per client.

Cheers



On Aug 4, 1:31 pm, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi Ninjamonk,

 On Tue, Aug 4, 2009 at 12:41 PM, Ninjamonkdar...@stuartmedia.co.uk wrote:

  Hi, I am working on an app I plan to sell to clients.

  Can we have it so a cname record can just point to appname.appspot.com
  without the need for google apps.

 This is not really possible - all App Engine (or any webapp) sees is
 the domain you requested - finding out what name you've CNAMEd it to
 would require a lookaside, which would degrade performance.

 You can provide an easier service for your clients by signing up for
 Apps yourself - either once per client, or just sign up once and add
 your clients' domains as aliases on the single Apps account. Then, you
 can set up the mapping yourself.

 -Nick Johnson







  I have played around with this and I have one domain setup on www. and
  created cname on another domain to point to this and this does not
  work (it just throws a 404). If I create a cname to
  appname.appspot.com I get google loading for me.

  The reason I ask is its just confusing to clients and adds an extra
  layer of support that is not needed(having to setup google apps or
  accessing their current one).

  I think the way that app engine works with domains needs looking at.

  Kind Regards

  Darren

 --
 Nick Johnson, Developer Programs Engineer, 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: Serialised events

2009-08-04 Thread David Given

Adam wrote:
 David, I would suggest using a Request Repeater pattern rather than
 Task Queues. What you want to achieve might be difficult or impossible
 with Task Queues.
   

That's very cunning --- ta. I can use that.

However, I'm not sure it quite meets all my requirements. This is good 
for ensuring that the event queue gets flushed periodically, which I'm 
going to want to do, but I also want to flush the queue on-demand (so 
that I can quickly process any pending events while the user's actually 
logged in).

Traditionally I'd do this with a big lock around the event processing 
routine, but appengine can't do this. I could use transactions, but I'd 
have to process each event --- which will involve touching and updating 
multiple entities all over my database --- inside a transaction, and 
that's going to be hideously expensive should contention happen (I'll 
end up processing the same event multiple times!) due to the optimistic 
transactions.

There has to be a better way to do this!

-- 
David Given
d...@cowlark.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: Creating a new application

2009-08-04 Thread Darshan Sawardekar
On Tue, Aug 4, 2009 at 2:13 PM, Nick Johnson (Google) 
nick.john...@google.com wrote:


 Hi darshan,

 Have you tried going to http://appengine.google.com/a/fuzify.com ? If
 you're creating the apps with a Google Apps account, that's where
 they'll show up.


Thanks got it working.

-darshan

--~--~-~--~~~---~--~~
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: sub domain without google apps

2009-08-04 Thread Ninjamonk

scrap that it can do it with out the mx records.

I now have the domain in my dropdown.

I think this will be a lot easier to work out.

On Aug 4, 2:54 pm, Ninjamonk dar...@stuartmedia.co.uk wrote:
 Are there any decent instructions on creating a domain alias on google
 apps? I have tried but it wants me to change the mx records which is
 not what I desire.

 can we actually have domain alias's for just a sub domain?

 Cheers

 On Aug 4, 2:25 pm, Ninjamonk dar...@stuartmedia.co.uk wrote:

  Thanks Nick, I willl look into the domains aliases on the single
  account as that might be a good fit. otherwise I guess I will have to
  set it up per client.

  Cheers

  On Aug 4, 1:31 pm, Nick Johnson (Google) nick.john...@google.com
  wrote:

   Hi Ninjamonk,

   On Tue, Aug 4, 2009 at 12:41 PM, Ninjamonkdar...@stuartmedia.co.uk 
   wrote:

Hi, I am working on an app I plan to sell to clients.

Can we have it so a cname record can just point to appname.appspot.com
without the need for google apps.

   This is not really possible - all App Engine (or any webapp) sees is
   the domain you requested - finding out what name you've CNAMEd it to
   would require a lookaside, which would degrade performance.

   You can provide an easier service for your clients by signing up for
   Apps yourself - either once per client, or just sign up once and add
   your clients' domains as aliases on the single Apps account. Then, you
   can set up the mapping yourself.

   -Nick Johnson

I have played around with this and I have one domain setup on www. and
created cname on another domain to point to this and this does not
work (it just throws a 404). If I create a cname to
appname.appspot.com I get google loading for me.

The reason I ask is its just confusing to clients and adds an extra
layer of support that is not needed(having to setup google apps or
accessing their current one).

I think the way that app engine works with domains needs looking at.

Kind Regards

Darren

   --
   Nick Johnson, Developer Programs Engineer, 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: sub domain without google apps

2009-08-04 Thread Ninjamonk

Are there any decent instructions on creating a domain alias on google
apps? I have tried but it wants me to change the mx records which is
not what I desire.

can we actually have domain alias's for just a sub domain?

Cheers



On Aug 4, 2:25 pm, Ninjamonk dar...@stuartmedia.co.uk wrote:
 Thanks Nick, I willl look into the domains aliases on the single
 account as that might be a good fit. otherwise I guess I will have to
 set it up per client.

 Cheers

 On Aug 4, 1:31 pm, Nick Johnson (Google) nick.john...@google.com
 wrote:

  Hi Ninjamonk,

  On Tue, Aug 4, 2009 at 12:41 PM, Ninjamonkdar...@stuartmedia.co.uk wrote:

   Hi, I am working on an app I plan to sell to clients.

   Can we have it so a cname record can just point to appname.appspot.com
   without the need for google apps.

  This is not really possible - all App Engine (or any webapp) sees is
  the domain you requested - finding out what name you've CNAMEd it to
  would require a lookaside, which would degrade performance.

  You can provide an easier service for your clients by signing up for
  Apps yourself - either once per client, or just sign up once and add
  your clients' domains as aliases on the single Apps account. Then, you
  can set up the mapping yourself.

  -Nick Johnson

   I have played around with this and I have one domain setup on www. and
   created cname on another domain to point to this and this does not
   work (it just throws a 404). If I create a cname to
   appname.appspot.com I get google loading for me.

   The reason I ask is its just confusing to clients and adds an extra
   layer of support that is not needed(having to setup google apps or
   accessing their current one).

   I think the way that app engine works with domains needs looking at.

   Kind Regards

   Darren

  --
  Nick Johnson, Developer Programs Engineer, 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] Compilation failure for method with custom object param

2009-08-04 Thread thepopeofantelope

I created the following class and want to use it between the client
and server. I get this GWT compile error on the Service class:

Compiling module com.test.GWTTEst
   Refreshing module from source
  Validating newly compiled units
 Removing units with errors
[ERROR] Errors in 'file:/C:/GWTTEst/src/com/test/client/
RecipeServiceAsync.java'
   [ERROR] Line 7: No source code is available for type
com.test.server.Recipe; did you forget to inherit a required module?
[ERROR] Errors in 'file:/C:/GWTTEst/src/com/test/client/
RecipeService.java'
   [ERROR] Line 9: No source code is available for type
com.test.server.Recipe; did you forget to inherit a required module?

===

package com.test.client;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.test.server.Recipe;

@RemoteServiceRelativePath(recipe)
public interface RecipeService extends RemoteService {
  public void addStock(Recipe symbol) throws NotLoggedInException;
  public void removeStock(String symbol) throws NotLoggedInException;
  public String[] getStocks() throws NotLoggedInException;
}


==

package com.test.server;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.users.User;
import com.google.gwt.user.client.rpc.IsSerializable;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Recipe implements IsSerializable {

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;
@Persistent
private User user;
@Persistent
private String name;
@Persistent
private String category;
@Persistent
private String cuisine;
@Persistent
private String occasion;
@Persistent
private String ingredients;
@Persistent
private String directions;
@Persistent
private Date created;

public Recipe() {

}

public Recipe(User user, String symbol) {
this();
this.user = user;
}

public User getUser() {
return user;
}

public void setUser(User user) {
this.user = user;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public String getCuisine() {
return cuisine;
}

public void setCuisine(String cuisine) {
this.cuisine = cuisine;
}

public String getIngredients() {
return ingredients;
}

public void setIngredients(String ingredients) {
this.ingredients = ingredients;
}

public String getDirections() {
return directions;
}

public void setDirections(String directions) {
this.directions = directions;
}

public String getOccasion() {
return occasion;
}

public void setOccasion(String occasion) {
this.occasion = occasion;
}

public String getCategory() {
return category;
}

public void setCategory(String category) {
this.category = category;
}

public Date getCreated() {
return created;
}



}
--~--~-~--~~~---~--~~
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] indexes exceeding quota

2009-08-04 Thread niklasr

Indexes seem to be stuck building forever and a text appeared warning
Your application is exceeding a quota: Datastore Indices Count help
Could somebody please explain what to do?
Thank you
Niklas
--~--~-~--~~~---~--~~
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: indexes exceeding quota

2009-08-04 Thread Holger

Above in the search box do a search for 'exploding index'

--~--~-~--~~~---~--~~
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: Contact Application Owner?

2009-08-04 Thread bgood

I am having the same issue with my domain.  No site live at
domain.appspot and no dom...@gmail.com .  We do have the domain at
Google Apps (https://www.google.com/a/) - is this causing the
problem?  If so, how do we claim it ?

Its really not a name that I would expect to have a problem getting -
had no problem at all picking it up for .com a few months ago.  Whats
going on ?

thanks
-Ben


On Jul 24, 3:10 pm, Devel63 danstic...@gmail.com wrote:
 Google looked into it and told me it had been registered.

 On Jul 24, 1:21 pm, Barry Hunter barrybhun...@googlemail.com wrote:



  2009/7/24 Devel63 danstic...@gmail.com:

   No such gmail address.  Also, it's someone who registered the name,
   but hasn't deployed anything to it.

  How can you tell? I get the same 404 for a appid registered but not
  deployed (one of mine) and a bogus one.

   On Jul 24, 8:45 am, Barry Hunter barrybhun...@googlemail.com wrote:
   Have you tried contacting appn...@gmail.com ?

   You can't register apps for already existing gmail addresses (except 
   your own),

    if a valid gmail address you could ask them to signup for appengine,
   and then transfer ownership to you.

   2009/7/24 Devel63 danstic...@gmail.com:

Is there a way to contact the owner of a given application ID?

I ask because someone has registered an app using my company's name,
and we've had the domain.com for years.  I don't know if it was
someone from my company (past or present) doing research, or a third
party who doesn't realize that the name is taken.

Normally these things don't matter, but since GAE doesn't support
HTTPS on an external domain, occasionally pages do need to be served
from appname.appspot.com.

   --
   Barry

--~--~-~--~~~---~--~~
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] Problem with charset

2009-08-04 Thread Сергей Ямщиков

Hello. On my local machine i use eclipse with google plugin. I write
app that store data in DataStore and retrun it by call. In DataStore i
have data in cyrillic, on localhost that data return cirrectly, but
after uploading it look like ?. Character encoding for eclipse
project set to UTF-8. I retrun data with code:

res.setContentType(text/plain);
res.setHeader(encoding, UTF-8);
res.setHeader(charset, UTF-8);
res.setCharacterEncoding(UTF-8);
res.getOutputStream().print(pDescription.toString());

--~--~-~--~~~---~--~~
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: Persisting Enum values?

2009-08-04 Thread datanucleus

 I'm not sure about this, but my understanding was that JDO didn't support
 ENUMS, JPA does (but I may be wrong).

Try this
http://db.apache.org/jdo/field_types.html

It's ok to be wrong ;-)

--~--~-~--~~~---~--~~
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] 404 Forb

2009-08-04 Thread Dhivya Mylsamy

Hello everyone,

Iam getting this error when i try to upload my application.can anyone
help me

E:\appcfg.py -email=myid update e:\helloworld
Scanning files on local disk.
Initiating update.
2009-08-04 18:41:36,703 ERROR appcfg.py:1272 An unexpected error
occurred. Abort
ing.
Traceback (most recent call last):
File C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y, line 1250, in DoUpload
missing_files = self.Begin()
File C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y, line 1045, in Begin
version=self.version, payload=self.config.ToYAML())
File C:\Program Files\Google\google_appengine\google\appengine\tools
\appengin
e_rpc.py, line 344, in Send
f = self.opener.open(req)
File C:\Python25\lib\urllib2.py, line 387, in open
response = meth(req, response)
File C:\Python25\lib\urllib2.py, line 498, in http_response
'http', request, response, code, msg, hdrs)
File C:\Python25\lib\urllib2.py, line 425, in error
return self._call_chain(*args)
File C:\Python25\lib\urllib2.py, line 360, in _call_chain
result = func(*args)
File C:\Python25\lib\urllib2.py, line 506, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden
Error 403: -- begin server output --
You do not have permission to modify this app
(app_id=u'bitstars2010').
-- end server output -


app.yaml


application: bitstars2010
version: 1
runtime: python
api_version: 1

handlers:
- url: /stylesheets
  static_dir: stylesheets

- url: /.*
  script: helloworld.py


--~--~-~--~~~---~--~~
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] Google App Engine Eclipse Plugin Issues

2009-08-04 Thread Rahul Ravikumar

The name of the jar files that get downloaded from the Eclipse
download site for App Engine are extremely long. Windows Xp for
example can only handle a limited number of characters in the absolute
path of a file, and when the absolute path becomes long, it can no
longer open/access/delete the file.

Could you please shorten the names of the jar files that get
downloaded from the Eclipse download site?

--~--~-~--~~~---~--~~
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] Problems uploading to Datastore

2009-08-04 Thread creativepragmatic

Hello,

I am new to App Engine.  I know this problem has come up in other
forums but none of the solutions I have tried have worked for me so
far.  I am trying to upload a simple CSV file with the world's
countries to no avail.  The very first time I tried it, I was prompted
for my email address and password but the CSV still didn't upload.
Since then I have been getting this error message:

python appcfg.py upload_data --config_file=countryloader.py --
filename=creativepragmatic/countries.csv --kind=Country mydomain
appcfg.py:40: DeprecationWarning: the sha module is deprecated; use
the hashlib module instead
  DIR_PATH,
Uploading data records.
[INFO] Logging to bulkloader-log-20090804.113518
[INFO] Opening database: bulkloader-progress-20090804.113518.sql3
[INFO] Connecting to /remote_api
[ERROR   ] Exception during authentication
Traceback (most recent call last):
  File /home/username/Apps/google_appengine/google/appengine/tools/
bulkloader.py, line 3644, in Run
request_manager.Authenticate()
  File /home/username/Apps/google_appengine/google/appengine/tools/
bulkloader.py, line 1464, in Authenticate
self.rpc_server.Send(self.url_path, payload=None)
  File /home/username/Apps/google_appengine/google/appengine/tools/
appengine_rpc.py, line 344, in Send
f = self.opener.open(req)
  File /usr/lib/python2.6/urllib2.py, line 389, in open
response = meth(req, response)
  File /usr/lib/python2.6/urllib2.py, line 502, in http_response
'http', request, response, code, msg, hdrs)
  File /usr/lib/python2.6/urllib2.py, line 427, in error
return self._call_chain(*args)
  File /usr/lib/python2.6/urllib2.py, line 361, in _call_chain
result = func(*args)
  File /usr/lib/python2.6/urllib2.py, line 510, in
http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 500: Internal Server Error
[INFO] Authentication Failed



This is app.yml:

application: mydomain
version: 1
runtime: python
api_version: 1

handlers:
 - url: /remote_api
   script: /home/username/Apps/google_appengine/google/appengine/ext/
remote_api/handler.py
   login: admin

 - url: /.*
   script: mydomain.py



This is my models.py code:

from google.appengine.ext import db

class Country(db.Model):
  code = db.StringProperty()
  name = db.StringProperty()



This is my countryloader.py code:

import datetime
from google.appengine.ext import db
from google.appengine.tools import bulkloader
from models import Country

class CountryLoader(bulkloader.Loader):
  def __init__(self):
bulkloader.Loader.__init__(self, 'Country',
   [('code', str),
('name', str),
   ])

loaders = [CountryLoader]



I don't know if any of you experts have encountered anything similar
but any help would be appreciated.

Orville

--~--~-~--~~~---~--~~
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: indexes exceeding quota

2009-08-04 Thread NiklasRTZ

Thank you. I read many posts and still have troubles with seemingly
trivial queries, specifically to filter by category, boolean, time and
ordered by time. There were too many combinations.

On Aug 4, 5:20 pm, Holger w...@arcor.de wrote:
 Above in the search box do a search for 'exploding index'
--~--~-~--~~~---~--~~
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: DatastoreNeedIndexException: no matching index found.

2009-08-04 Thread Jason (Google)
Are you sure that this is the only query in your application? Do you have
auto-generation of indexes enabled? By any chance, have you tried using the
non-JDOQL syntax?
Query query = pm.newQuery(Entry.class);
ListEntry results = (ListEntry) query.execute();

- Jason

On Sun, Aug 2, 2009 at 11:31 AM, Sudan sudan.ce...@googlemail.com wrote:


 Hello,

 I have a very simple web application which retrieves objets from the
 datastore with the following query:

 select from  + Entry.class.getName();

 Entry is the persistence capable class, full body off which is given
 at the end of this mail. My application works fine on the hosted mode,
 and on 127.0.0.1:8080. But when I deploy the application, I get the
 following error in the server logs (shortened for clarity):

 com.google.appengine.api.datastore.DatastoreNeedIndexException: no
 matching index found.

 If I try to manually add an index to the datastore-indexes.xml file,
 then the deploy fails saying that this index was not necessary and
 cannot be created. I can see that new entries are being added to the
 datastore via the application but getting them raises this exception.

 Can someone with experience with indexes on GAE help me understand why
 the indexes are not autogenerated for this simople query?

 package com.sudancevap.app.server;

 import java.util.Date;

 import javax.jdo.annotations.IdGeneratorStrategy;
 import javax.jdo.annotations.IdentityType;
 import javax.jdo.annotations.PersistenceCapable;
 import javax.jdo.annotations.Persistent;
 import javax.jdo.annotations.PrimaryKey;

 @PersistenceCapable(identityType = IdentityType.APPLICATION)
 public class Entry {

  @PrimaryKey
  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  private Long id;

  @Persistent
  private Date date;

  @Persistent
  private String content;

  public Entry(String entryText) {
this.content = entryText;
  }

  // getters, setters for private fields
 }

 


--~--~-~--~~~---~--~~
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: Limit for db.get?

2009-08-04 Thread Oliver Zheng

Perfect thanks that's what I needed. Is there a limit on the total
size of objects retrieved?

On Aug 4, 5:40 am, djidjadji djidja...@gmail.com wrote:
 if you key list is larger then 1000 items it will be a problem (hard limit).
 if you partition the db.get() for n*100 keys at the time it will not
 be a problem.
 For n=3 it should work. ( I might remember reading the number 300
 sometime in this list for db.get() )

 2009/8/4 Oliver Zheng goo...@oliverzheng.com:



  I have run into a request too large for db.get (not db.put). It
  appears that sometimes I may need to request for thousands of tiny
  objects, and this is hitting a barrier. What is the limit and what is
  it determined by?

  Thanks,
  Oliver


--~--~-~--~~~---~--~~
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: Contact Application Owner?

2009-08-04 Thread bgood

It ~seems that some one has registered my id.

The ambiguity here is a real problem.  We should not need to guess
about why a particular app-id is not available.

If some one has registered the id but not posted anything yet, why not
display a page indicating that info. at http://app-id.appspot.com ?
Users could optionally allow others to contact them when the id is
registered and this process could be mediated through this parked
page.

--~--~-~--~~~---~--~~
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: Over Quota: Datastore Indices Count

2009-08-04 Thread jamesv

My application (me-trics) seems to have this same issue, 37 active
indexes but still receiving the Your application is exceeding a
quota: Datastore Indices Count and is therefore throwing:

Uploading index definitions.
Error 500: --- begin server output ---

Server Error (500)
A server error has occurred.
--- end server output ---
Your app was updated, but there was an error updating your indexes.
Please retry later with appcfg.py update_indexes.

whenever I deploy.
--~--~-~--~~~---~--~~
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] The memcache service increment method is guaranteed to be atomic but is it also guaranteed to be consistent?

2009-08-04 Thread ted stockwell

...in other words, is it possible for memcache to develop a 'split
brain' without notifiying its clients that something bad has happened?
--~--~-~--~~~---~--~~
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 memcache service increment method is guaranteed to be atomic but is it also guaranteed to be consistent?

2009-08-04 Thread ted stockwell

Actually, I meant 'coherent', not consistent.

On Aug 4, 1:24 pm, ted stockwell emorn...@gmail.com wrote:
 ...in other words, is it possible for memcache to develop a 'split
 brain' without notifiying its clients that something bad has happened?
--~--~-~--~~~---~--~~
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: Over Quota: Datastore Indices Count

2009-08-04 Thread NiklasRTZ



On Aug 4, 6:23 pm, jamesv jamesvreel...@gmail.com wrote:
 My application (me-trics) seems to have this same issue, 37 active
 indexes but still receiving the Your application is exceeding a
 quota: Datastore Indices Count and is therefore throwing:

 Uploading index definitions.
 Error 500: --- begin server output ---

 Server Error (500)
 A server error has occurred.
 --- end server output ---
 Your app was updated, but there was an error updating your indexes.
 Please retry later with appcfg.py update_indexes.

 whenever I deploy.
Same issue with my app last day or two. Cause unknown whether it's due
to datastore or modelling.
--~--~-~--~~~---~--~~
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: Remote API (or similar) for java?

2009-08-04 Thread Nick_Zaillian

to clarify: when I said The console view gives me access to the
datastore in that last message, I meant the data viewer at
appengine.google.com, not appengine_console.py.
-Nick

On Aug 4, 7:00 pm, Nick_Zaillian nzaill...@gmail.com wrote:
 Thanks Nick J,
 Alright.  This is probably just me being stupid, but I've been beating
 my head against the wall for, like, an hour trying to get things
 working.  I wrote a simple app.yaml file with your remote_api mapping
 and deployed it to App Engine as v2 of my app.  The console view gives
 me access to the datastore, so I think this is all fine.
 I modified your appengine_console.py such that the call to
 ConfigureRemoteDatastore now reads:

 remote_api_stub.ConfigureRemoteDatastore(app_id=None, path='/
 remote_api', auth_func=auth_func, servername='http://
 2.latest.nicksmap.appspot.com/')

 I've visited the url http://2.latest.nicksmap.appspot.com/remote_api;
 in my browser and it seems to be active (I see This request did not
 contain a necessary header rather than some 403/404 error message) so
 I'm pretty sure that my app configuration is alright.  When I run
 python appengine_console.py [appid] (with my app id -- though I know
 that last argument doesn't really do anything anymore) in the shell, I
 get an error message reading as follows:

 Traceback (most recent call last):
   File appengine_console.py, line 27, in module
     remote_api_stub.ConfigureRemoteDatastore(app_id=None, path='/
 remote_api', auth_func=auth_func, servername='http://
 2.latest.nicksmap.appspot.com/')
   File /home/nick/google_appengine/google/appengine/ext/remote_api/
 remote_api_stub.py, line 433, in ConfigureRemoteDatastore
     response = server.Send(path, payload=None, **urlargs)
   File /home/nick/google_appengine/google/appengine/tools/
 appengine_rpc.py, line 344, in Send
     f = self.opener.open(req)
   File /usr/lib/python2.5/urllib2.py, line 381, in open
     response = self._open(req, data)
   File /usr/lib/python2.5/urllib2.py, line 399, in _open
     '_open', req)
   File /usr/lib/python2.5/urllib2.py, line 360, in _call_chain
     result = func(*args)
   File /usr/lib/python2.5/urllib2.py, line 1107, in http_open
     return self.do_open(httplib.HTTPConnection, req)
   File /usr/lib/python2.5/urllib2.py, line 1064, in do_open
     h = http_class(host) # will parse host:port
   File /usr/lib/python2.5/httplib.py, line 639, in __init__
     self._set_hostport(host, port)
   File /usr/lib/python2.5/httplib.py, line 651, in _set_hostport
     raise InvalidURL(nonnumeric port: '%s' % host[i+1:])
 httplib.InvalidURL: nonnumeric port: ''

 Not really sure what's going on here.  I think that the parameters
 that I'm passing to the ConfigureRemoteDatastore method are valid,
 right?  Any thoughts?

 I'm sure that Remote API is a great tool and I'm eager to be able to
 work with it.

 - Nick Z

 On Aug 4, 8:04 am, Nick Johnson (Google) nick.john...@google.com
 wrote:

  Hi Nick,

  If you're happy to use a Python local client, you can do the following:

  - Create a Python app.yaml with the same app_id as your Java app, but
  a different major version.
  - Install the remote_api mapping in the app.yaml
  - Deploy the Python app to App Engine
  - When you initialize remote_api with ConfigureRemoteDatastore, pass
  the parameter server=majorversion.latest.myapp.appspot.com
  (substituting majorversion and latest as appropriate).

  You can now access your Java app's datastore via Python Remote API.

  -Nick Johnson

  On Tue, Aug 4, 2009 at 3:19 AM, Nick_Zailliannzaill...@gmail.com wrote:

   Just to clarify: I wouldn't mind working in Python on the local end of
   things if that were necessary (because that would just mean rewriting
   one or two routines).  What I am unwilling to do is to rewrite my
   whole application in Python just so that I can make use of the Remote
   API/AppRocker/App3.  It looks to me like Remote API, AppRocket and
   app3 are all just python scripts, so I'm not too hopeful about the
   prospect of integrating them with my java app.  App3 is probably the
   closest thing to what I'm looking for.  It occurs to me that it may
   not be so complicated to implement this sort thing in java on my own,
   so I may just go ahead and try to do that...unless someone has a
   better idea.
   Cheers,
   Nick

   On Aug 3, 11:58 pm, Nick_Zaillian nzaill...@gmail.com wrote:
   I would like to be able to do some batch processing for a site I'm
   running on GAE (at nicksmap.org).  Right now I've got various database
   maintenance routines bound to URLs that I hit with cron.  Problem is
   that one of these routines requires a few minutes to excecute.  And
   can (and sort of have) hacked up a workaround, but I would be able to
   stretch my quotas much further if I could use something like Remote
   API, App Rocket, or app3.  So far as I can tell, though, all of these
   tools are python only (or am I mistaken?).  Any thoughts on how I
   might be able to accomplish 

[google-appengine] Re: Remote API (or similar) for java?

2009-08-04 Thread Nick_Zaillian

to clarify: when I said The console view gives me access to the
datastore in that last message, I meant the data viewer at
appengine.google.com, not appengine_console.py.
-Nick

On Aug 4, 7:00 pm, Nick_Zaillian nzaill...@gmail.com wrote:
 Thanks Nick J,
 Alright.  This is probably just me being stupid, but I've been beating
 my head against the wall for, like, an hour trying to get things
 working.  I wrote a simple app.yaml file with your remote_api mapping
 and deployed it to App Engine as v2 of my app.  The console view gives
 me access to the datastore, so I think this is all fine.
 I modified your appengine_console.py such that the call to
 ConfigureRemoteDatastore now reads:

 remote_api_stub.ConfigureRemoteDatastore(app_id=None, path='/
 remote_api', auth_func=auth_func, servername='http://
 2.latest.nicksmap.appspot.com/')

 I've visited the url http://2.latest.nicksmap.appspot.com/remote_api;
 in my browser and it seems to be active (I see This request did not
 contain a necessary header rather than some 403/404 error message) so
 I'm pretty sure that my app configuration is alright.  When I run
 python appengine_console.py [appid] (with my app id -- though I know
 that last argument doesn't really do anything anymore) in the shell, I
 get an error message reading as follows:

 Traceback (most recent call last):
   File appengine_console.py, line 27, in module
     remote_api_stub.ConfigureRemoteDatastore(app_id=None, path='/
 remote_api', auth_func=auth_func, servername='http://
 2.latest.nicksmap.appspot.com/')
   File /home/nick/google_appengine/google/appengine/ext/remote_api/
 remote_api_stub.py, line 433, in ConfigureRemoteDatastore
     response = server.Send(path, payload=None, **urlargs)
   File /home/nick/google_appengine/google/appengine/tools/
 appengine_rpc.py, line 344, in Send
     f = self.opener.open(req)
   File /usr/lib/python2.5/urllib2.py, line 381, in open
     response = self._open(req, data)
   File /usr/lib/python2.5/urllib2.py, line 399, in _open
     '_open', req)
   File /usr/lib/python2.5/urllib2.py, line 360, in _call_chain
     result = func(*args)
   File /usr/lib/python2.5/urllib2.py, line 1107, in http_open
     return self.do_open(httplib.HTTPConnection, req)
   File /usr/lib/python2.5/urllib2.py, line 1064, in do_open
     h = http_class(host) # will parse host:port
   File /usr/lib/python2.5/httplib.py, line 639, in __init__
     self._set_hostport(host, port)
   File /usr/lib/python2.5/httplib.py, line 651, in _set_hostport
     raise InvalidURL(nonnumeric port: '%s' % host[i+1:])
 httplib.InvalidURL: nonnumeric port: ''

 Not really sure what's going on here.  I think that the parameters
 that I'm passing to the ConfigureRemoteDatastore method are valid,
 right?  Any thoughts?

 I'm sure that Remote API is a great tool and I'm eager to be able to
 work with it.

 - Nick Z

 On Aug 4, 8:04 am, Nick Johnson (Google) nick.john...@google.com
 wrote:

  Hi Nick,

  If you're happy to use a Python local client, you can do the following:

  - Create a Python app.yaml with the same app_id as your Java app, but
  a different major version.
  - Install the remote_api mapping in the app.yaml
  - Deploy the Python app to App Engine
  - When you initialize remote_api with ConfigureRemoteDatastore, pass
  the parameter server=majorversion.latest.myapp.appspot.com
  (substituting majorversion and latest as appropriate).

  You can now access your Java app's datastore via Python Remote API.

  -Nick Johnson

  On Tue, Aug 4, 2009 at 3:19 AM, Nick_Zailliannzaill...@gmail.com wrote:

   Just to clarify: I wouldn't mind working in Python on the local end of
   things if that were necessary (because that would just mean rewriting
   one or two routines).  What I am unwilling to do is to rewrite my
   whole application in Python just so that I can make use of the Remote
   API/AppRocker/App3.  It looks to me like Remote API, AppRocket and
   app3 are all just python scripts, so I'm not too hopeful about the
   prospect of integrating them with my java app.  App3 is probably the
   closest thing to what I'm looking for.  It occurs to me that it may
   not be so complicated to implement this sort thing in java on my own,
   so I may just go ahead and try to do that...unless someone has a
   better idea.
   Cheers,
   Nick

   On Aug 3, 11:58 pm, Nick_Zaillian nzaill...@gmail.com wrote:
   I would like to be able to do some batch processing for a site I'm
   running on GAE (at nicksmap.org).  Right now I've got various database
   maintenance routines bound to URLs that I hit with cron.  Problem is
   that one of these routines requires a few minutes to excecute.  And
   can (and sort of have) hacked up a workaround, but I would be able to
   stretch my quotas much further if I could use something like Remote
   API, App Rocket, or app3.  So far as I can tell, though, all of these
   tools are python only (or am I mistaken?).  Any thoughts on how I
   might be able to accomplish 

[google-appengine] Re: Remote API (or similar) for java?

2009-08-04 Thread Nick Johnson (Google)

On Tue, Aug 4, 2009 at 8:00 PM, Nick_Zailliannzaill...@gmail.com wrote:

 Thanks Nick J,
 Alright.  This is probably just me being stupid, but I've been beating
 my head against the wall for, like, an hour trying to get things
 working.  I wrote a simple app.yaml file with your remote_api mapping
 and deployed it to App Engine as v2 of my app.  The console view gives
 me access to the datastore, so I think this is all fine.

App versions are strings, not integers - you might want to call it
something like 'remote_api' - or anything you like.

 I modified your appengine_console.py such that the call to
 ConfigureRemoteDatastore now reads:

 remote_api_stub.ConfigureRemoteDatastore(app_id=None, path='/
 remote_api', auth_func=auth_func, servername='http://
 2.latest.nicksmap.appspot.com/')

The servername parameter needs to be a server name, not a URL - eg,
just 2.latest.nicksmap.appspot.com.

-Nick Johnson


 I've visited the url http://2.latest.nicksmap.appspot.com/remote_api;
 in my browser and it seems to be active (I see This request did not
 contain a necessary header rather than some 403/404 error message) so
 I'm pretty sure that my app configuration is alright.  When I run
 python appengine_console.py [appid] (with my app id -- though I know
 that last argument doesn't really do anything anymore) in the shell, I
 get an error message reading as follows:

 Traceback (most recent call last):
  File appengine_console.py, line 27, in module
    remote_api_stub.ConfigureRemoteDatastore(app_id=None, path='/
 remote_api', auth_func=auth_func, servername='http://
 2.latest.nicksmap.appspot.com/')
  File /home/nick/google_appengine/google/appengine/ext/remote_api/
 remote_api_stub.py, line 433, in ConfigureRemoteDatastore
    response = server.Send(path, payload=None, **urlargs)
  File /home/nick/google_appengine/google/appengine/tools/
 appengine_rpc.py, line 344, in Send
    f = self.opener.open(req)
  File /usr/lib/python2.5/urllib2.py, line 381, in open
    response = self._open(req, data)
  File /usr/lib/python2.5/urllib2.py, line 399, in _open
    '_open', req)
  File /usr/lib/python2.5/urllib2.py, line 360, in _call_chain
    result = func(*args)
  File /usr/lib/python2.5/urllib2.py, line 1107, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File /usr/lib/python2.5/urllib2.py, line 1064, in do_open
    h = http_class(host) # will parse host:port
  File /usr/lib/python2.5/httplib.py, line 639, in __init__
    self._set_hostport(host, port)
  File /usr/lib/python2.5/httplib.py, line 651, in _set_hostport
    raise InvalidURL(nonnumeric port: '%s' % host[i+1:])
 httplib.InvalidURL: nonnumeric port: ''

 Not really sure what's going on here.  I think that the parameters
 that I'm passing to the ConfigureRemoteDatastore method are valid,
 right?  Any thoughts?

 I'm sure that Remote API is a great tool and I'm eager to be able to
 work with it.

 - Nick Z


 On Aug 4, 8:04 am, Nick Johnson (Google) nick.john...@google.com
 wrote:
 Hi Nick,

 If you're happy to use a Python local client, you can do the following:

 - Create a Python app.yaml with the same app_id as your Java app, but
 a different major version.
 - Install the remote_api mapping in the app.yaml
 - Deploy the Python app to App Engine
 - When you initialize remote_api with ConfigureRemoteDatastore, pass
 the parameter server=majorversion.latest.myapp.appspot.com
 (substituting majorversion and latest as appropriate).

 You can now access your Java app's datastore via Python Remote API.

 -Nick Johnson



 On Tue, Aug 4, 2009 at 3:19 AM, Nick_Zailliannzaill...@gmail.com wrote:

  Just to clarify: I wouldn't mind working in Python on the local end of
  things if that were necessary (because that would just mean rewriting
  one or two routines).  What I am unwilling to do is to rewrite my
  whole application in Python just so that I can make use of the Remote
  API/AppRocker/App3.  It looks to me like Remote API, AppRocket and
  app3 are all just python scripts, so I'm not too hopeful about the
  prospect of integrating them with my java app.  App3 is probably the
  closest thing to what I'm looking for.  It occurs to me that it may
  not be so complicated to implement this sort thing in java on my own,
  so I may just go ahead and try to do that...unless someone has a
  better idea.
  Cheers,
  Nick

  On Aug 3, 11:58 pm, Nick_Zaillian nzaill...@gmail.com wrote:
  I would like to be able to do some batch processing for a site I'm
  running on GAE (at nicksmap.org).  Right now I've got various database
  maintenance routines bound to URLs that I hit with cron.  Problem is
  that one of these routines requires a few minutes to excecute.  And
  can (and sort of have) hacked up a workaround, but I would be able to
  stretch my quotas much further if I could use something like Remote
  API, App Rocket, or app3.  So far as I can tell, though, all of these
  tools are python only (or am I mistaken?).  Any thoughts on how I
  might 

[google-appengine] Re: 404 Forb

2009-08-04 Thread Hrishikesh Bakshi
Are you putting your own email in place of myid?

Otherwise try :

appcfg.py  update e:\helloworld

Then it will ask for credentials.

On Tue, Aug 4, 2009 at 12:21 PM, Dhivya Mylsamy dhivya...@gmail.com wrote:


 Hello everyone,

 Iam getting this error when i try to upload my application.can anyone
 help me

 E:\appcfg.py -email=myid update e:\helloworld
 Scanning files on local disk.
 Initiating update.
 2009-08-04 18:41:36,703 ERROR appcfg.py:1272 An unexpected error
 occurred. Abort
 ing.
 Traceback (most recent call last):
 File C:\Program Files\Google\google_appengine\google\appengine\tools
 \appcfg.p
 y, line 1250, in DoUpload
 missing_files = self.Begin()
 File C:\Program Files\Google\google_appengine\google\appengine\tools
 \appcfg.p
 y, line 1045, in Begin
 version=self.version, payload=self.config.ToYAML())
 File C:\Program Files\Google\google_appengine\google\appengine\tools
 \appengin
 e_rpc.py, line 344, in Send
 f = self.opener.open(req)
 File C:\Python25\lib\urllib2.py, line 387, in open
 response = meth(req, response)
 File C:\Python25\lib\urllib2.py, line 498, in http_response
 'http', request, response, code, msg, hdrs)
 File C:\Python25\lib\urllib2.py, line 425, in error
 return self._call_chain(*args)
 File C:\Python25\lib\urllib2.py, line 360, in _call_chain
 result = func(*args)
 File C:\Python25\lib\urllib2.py, line 506, in http_error_default
 raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
 HTTPError: HTTP Error 403: Forbidden
 Error 403: -- begin server output --
 You do not have permission to modify this app
 (app_id=u'bitstars2010').
 -- end server output -


 app.yaml


 application: bitstars2010
 version: 1
 runtime: python
 api_version: 1

 handlers:
 - url: /stylesheets
  static_dir: stylesheets

 - url: /.*
  script: helloworld.py


 



-- 
Hrishikesh Bakshi

--~--~-~--~~~---~--~~
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: Problems uploading to Datastore

2009-08-04 Thread Hrishikesh Bakshi
Do:

 appcfg.py update mydomain

each time you use the bulk upload.



On Tue, Aug 4, 2009 at 12:49 PM, creativepragmatic 
creativepragma...@gmail.com wrote:


 Hello,

 I am new to App Engine.  I know this problem has come up in other
 forums but none of the solutions I have tried have worked for me so
 far.  I am trying to upload a simple CSV file with the world's
 countries to no avail.  The very first time I tried it, I was prompted
 for my email address and password but the CSV still didn't upload.
 Since then I have been getting this error message:

 python appcfg.py upload_data --config_file=countryloader.py --
 filename=creativepragmatic/countries.csv --kind=Country mydomain
 appcfg.py:40: DeprecationWarning: the sha module is deprecated; use
 the hashlib module instead
  DIR_PATH,
 Uploading data records.
 [INFO] Logging to bulkloader-log-20090804.113518
 [INFO] Opening database: bulkloader-progress-20090804.113518.sql3
 [INFO] Connecting to /remote_api
 [ERROR   ] Exception during authentication
 Traceback (most recent call last):
  File /home/username/Apps/google_appengine/google/appengine/tools/
 bulkloader.py, line 3644, in Run
request_manager.Authenticate()
  File /home/username/Apps/google_appengine/google/appengine/tools/
 bulkloader.py, line 1464, in Authenticate
self.rpc_server.Send(self.url_path, payload=None)
  File /home/username/Apps/google_appengine/google/appengine/tools/
 appengine_rpc.py, line 344, in Send
f = self.opener.open(req)
  File /usr/lib/python2.6/urllib2.py, line 389, in open
response = meth(req, response)
  File /usr/lib/python2.6/urllib2.py, line 502, in http_response
'http', request, response, code, msg, hdrs)
  File /usr/lib/python2.6/urllib2.py, line 427, in error
return self._call_chain(*args)
  File /usr/lib/python2.6/urllib2.py, line 361, in _call_chain
result = func(*args)
  File /usr/lib/python2.6/urllib2.py, line 510, in
 http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
 HTTPError: HTTP Error 500: Internal Server Error
 [INFO] Authentication Failed



 This is app.yml:

 application: mydomain
 version: 1
 runtime: python
 api_version: 1

 handlers:
  - url: /remote_api
   script: /home/username/Apps/google_appengine/google/appengine/ext/
 remote_api/handler.py
   login: admin

  - url: /.*
   script: mydomain.py



 This is my models.py code:

 from google.appengine.ext import db

 class Country(db.Model):
  code = db.StringProperty()
  name = db.StringProperty()



 This is my countryloader.py code:

 import datetime
 from google.appengine.ext import db
 from google.appengine.tools import bulkloader
 from models import Country

 class CountryLoader(bulkloader.Loader):
  def __init__(self):
bulkloader.Loader.__init__(self, 'Country',
   [('code', str),
('name', str),
   ])

 loaders = [CountryLoader]



 I don't know if any of you experts have encountered anything similar
 but any help would be appreciated.

 Orville

 



-- 
Hrishikesh Bakshi

--~--~-~--~~~---~--~~
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: Remote API (or similar) for java?

2009-08-04 Thread Nick_Zaillian

One more thing: I removed the trailing slash from the
servername='http://2.latest.nicksmap.appspot.com/; (because it
clearly doesn't belong there) that I'm passing into the
ConfigureRemoteDatastore method, but am still getting the same
error.
-Nick

On Aug 4, 7:05 pm, Nick_Zaillian nzaill...@gmail.com wrote:
 to clarify: when I said The console view gives me access to the
 datastore in that last message, I meant the data viewer at
 appengine.google.com, not appengine_console.py.
 -Nick

 On Aug 4, 7:00 pm, Nick_Zaillian nzaill...@gmail.com wrote:

  Thanks Nick J,
  Alright.  This is probably just me being stupid, but I've been beating
  my head against the wall for, like, an hour trying to get things
  working.  I wrote a simple app.yaml file with your remote_api mapping
  and deployed it to App Engine as v2 of my app.  The console view gives
  me access to the datastore, so I think this is all fine.
  I modified your appengine_console.py such that the call to
  ConfigureRemoteDatastore now reads:

  remote_api_stub.ConfigureRemoteDatastore(app_id=None, path='/
  remote_api', auth_func=auth_func, servername='http://
  2.latest.nicksmap.appspot.com/')

  I've visited the url http://2.latest.nicksmap.appspot.com/remote_api;
  in my browser and it seems to be active (I see This request did not
  contain a necessary header rather than some 403/404 error message) so
  I'm pretty sure that my app configuration is alright.  When I run
  python appengine_console.py [appid] (with my app id -- though I know
  that last argument doesn't really do anything anymore) in the shell, I
  get an error message reading as follows:

  Traceback (most recent call last):
    File appengine_console.py, line 27, in module
      remote_api_stub.ConfigureRemoteDatastore(app_id=None, path='/
  remote_api', auth_func=auth_func, servername='http://
  2.latest.nicksmap.appspot.com/')
    File /home/nick/google_appengine/google/appengine/ext/remote_api/
  remote_api_stub.py, line 433, in ConfigureRemoteDatastore
      response = server.Send(path, payload=None, **urlargs)
    File /home/nick/google_appengine/google/appengine/tools/
  appengine_rpc.py, line 344, in Send
      f = self.opener.open(req)
    File /usr/lib/python2.5/urllib2.py, line 381, in open
      response = self._open(req, data)
    File /usr/lib/python2.5/urllib2.py, line 399, in _open
      '_open', req)
    File /usr/lib/python2.5/urllib2.py, line 360, in _call_chain
      result = func(*args)
    File /usr/lib/python2.5/urllib2.py, line 1107, in http_open
      return self.do_open(httplib.HTTPConnection, req)
    File /usr/lib/python2.5/urllib2.py, line 1064, in do_open
      h = http_class(host) # will parse host:port
    File /usr/lib/python2.5/httplib.py, line 639, in __init__
      self._set_hostport(host, port)
    File /usr/lib/python2.5/httplib.py, line 651, in _set_hostport
      raise InvalidURL(nonnumeric port: '%s' % host[i+1:])
  httplib.InvalidURL: nonnumeric port: ''

  Not really sure what's going on here.  I think that the parameters
  that I'm passing to the ConfigureRemoteDatastore method are valid,
  right?  Any thoughts?

  I'm sure that Remote API is a great tool and I'm eager to be able to
  work with it.

  - Nick Z

  On Aug 4, 8:04 am, Nick Johnson (Google) nick.john...@google.com
  wrote:

   Hi Nick,

   If you're happy to use a Python local client, you can do the following:

   - Create a Python app.yaml with the same app_id as your Java app, but
   a different major version.
   - Install the remote_api mapping in the app.yaml
   - Deploy the Python app to App Engine
   - When you initialize remote_api with ConfigureRemoteDatastore, pass
   the parameter server=majorversion.latest.myapp.appspot.com
   (substituting majorversion and latest as appropriate).

   You can now access your Java app's datastore via Python Remote API.

   -Nick Johnson

   On Tue, Aug 4, 2009 at 3:19 AM, Nick_Zailliannzaill...@gmail.com wrote:

Just to clarify: I wouldn't mind working in Python on the local end of
things if that were necessary (because that would just mean rewriting
one or two routines).  What I am unwilling to do is to rewrite my
whole application in Python just so that I can make use of the Remote
API/AppRocker/App3.  It looks to me like Remote API, AppRocket and
app3 are all just python scripts, so I'm not too hopeful about the
prospect of integrating them with my java app.  App3 is probably the
closest thing to what I'm looking for.  It occurs to me that it may
not be so complicated to implement this sort thing in java on my own,
so I may just go ahead and try to do that...unless someone has a
better idea.
Cheers,
Nick

On Aug 3, 11:58 pm, Nick_Zaillian nzaill...@gmail.com wrote:
I would like to be able to do some batch processing for a site I'm
running on GAE (at nicksmap.org).  Right now I've got various database
maintenance routines bound to URLs that I hit with cron.  

[google-appengine] Re: Remote API (or similar) for java?

2009-08-04 Thread Nick_Zaillian

disregard that last message -- I hadn't seen your response yet when I
wrote it.  I'm going to get back to work and let you know what
happens.
Best,
Nick Z

On Aug 4, 7:35 pm, Nick_Zaillian nzaill...@gmail.com wrote:
 One more thing: I removed the trailing slash from the
 servername='http://2.latest.nicksmap.appspot.com/; (because it
 clearly doesn't belong there) that I'm passing into the
 ConfigureRemoteDatastore method, but am still getting the same
 error.
 -Nick

 On Aug 4, 7:05 pm, Nick_Zaillian nzaill...@gmail.com wrote:

  to clarify: when I said The console view gives me access to the
  datastore in that last message, I meant the data viewer at
  appengine.google.com, not appengine_console.py.
  -Nick

  On Aug 4, 7:00 pm, Nick_Zaillian nzaill...@gmail.com wrote:

   Thanks Nick J,
   Alright.  This is probably just me being stupid, but I've been beating
   my head against the wall for, like, an hour trying to get things
   working.  I wrote a simple app.yaml file with your remote_api mapping
   and deployed it to App Engine as v2 of my app.  The console view gives
   me access to the datastore, so I think this is all fine.
   I modified your appengine_console.py such that the call to
   ConfigureRemoteDatastore now reads:

   remote_api_stub.ConfigureRemoteDatastore(app_id=None, path='/
   remote_api', auth_func=auth_func, servername='http://
   2.latest.nicksmap.appspot.com/')

   I've visited the url http://2.latest.nicksmap.appspot.com/remote_api;
   in my browser and it seems to be active (I see This request did not
   contain a necessary header rather than some 403/404 error message) so
   I'm pretty sure that my app configuration is alright.  When I run
   python appengine_console.py [appid] (with my app id -- though I know
   that last argument doesn't really do anything anymore) in the shell, I
   get an error message reading as follows:

   Traceback (most recent call last):
     File appengine_console.py, line 27, in module
       remote_api_stub.ConfigureRemoteDatastore(app_id=None, path='/
   remote_api', auth_func=auth_func, servername='http://
   2.latest.nicksmap.appspot.com/')
     File /home/nick/google_appengine/google/appengine/ext/remote_api/
   remote_api_stub.py, line 433, in ConfigureRemoteDatastore
       response = server.Send(path, payload=None, **urlargs)
     File /home/nick/google_appengine/google/appengine/tools/
   appengine_rpc.py, line 344, in Send
       f = self.opener.open(req)
     File /usr/lib/python2.5/urllib2.py, line 381, in open
       response = self._open(req, data)
     File /usr/lib/python2.5/urllib2.py, line 399, in _open
       '_open', req)
     File /usr/lib/python2.5/urllib2.py, line 360, in _call_chain
       result = func(*args)
     File /usr/lib/python2.5/urllib2.py, line 1107, in http_open
       return self.do_open(httplib.HTTPConnection, req)
     File /usr/lib/python2.5/urllib2.py, line 1064, in do_open
       h = http_class(host) # will parse host:port
     File /usr/lib/python2.5/httplib.py, line 639, in __init__
       self._set_hostport(host, port)
     File /usr/lib/python2.5/httplib.py, line 651, in _set_hostport
       raise InvalidURL(nonnumeric port: '%s' % host[i+1:])
   httplib.InvalidURL: nonnumeric port: ''

   Not really sure what's going on here.  I think that the parameters
   that I'm passing to the ConfigureRemoteDatastore method are valid,
   right?  Any thoughts?

   I'm sure that Remote API is a great tool and I'm eager to be able to
   work with it.

   - Nick Z

   On Aug 4, 8:04 am, Nick Johnson (Google) nick.john...@google.com
   wrote:

Hi Nick,

If you're happy to use a Python local client, you can do the following:

- Create a Python app.yaml with the same app_id as your Java app, but
a different major version.
- Install the remote_api mapping in the app.yaml
- Deploy the Python app to App Engine
- When you initialize remote_api with ConfigureRemoteDatastore, pass
the parameter server=majorversion.latest.myapp.appspot.com
(substituting majorversion and latest as appropriate).

You can now access your Java app's datastore via Python Remote API.

-Nick Johnson

On Tue, Aug 4, 2009 at 3:19 AM, Nick_Zailliannzaill...@gmail.com 
wrote:

 Just to clarify: I wouldn't mind working in Python on the local end of
 things if that were necessary (because that would just mean rewriting
 one or two routines).  What I am unwilling to do is to rewrite my
 whole application in Python just so that I can make use of the Remote
 API/AppRocker/App3.  It looks to me like Remote API, AppRocket and
 app3 are all just python scripts, so I'm not too hopeful about the
 prospect of integrating them with my java app.  App3 is probably the
 closest thing to what I'm looking for.  It occurs to me that it may
 not be so complicated to implement this sort thing in java on my own,
 so I may just go ahead and try to do that...unless someone has a
 

[google-appengine] serving a binary file to Internet Explorer

2009-08-04 Thread herbie


I want to enable my app users to download a binary file ( actually  a
symbian mobile application).   I need to keep track of the number of
downloads so I can't simply make it a static file.  I've created a
request handler that looks like this

class DownloadMobApp(webapp.RequestHandler):
  @login_required
  def get (self):
download_filename = 'test.sis'
self.response.headers['Content-type'] = 'application/
vnd.symbian.install'
self.response.headers['Content-disposition'] = 'attachment;
filename=' + download_filename
path = os.path.join(os.path.dirname(__file__), 'mobile_app/
test.sis')
f = open(path,'rb')
self.response.out.write(f.read())
f.close()


Any ideas why Internet Explorer 6/7.  doesn't like my request handler
response?
This works just fine for firefox,safari, chrome and the Nokia phone
browser but NOT IE.   With IE the download window opens but I get an
immediate error “IE cannot download. IE was not able to open the
internet site”  But my app appears to have responded OK with no
errors.

(Using IE and my app running on the dev server  the request works
works fine.)

Many 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: Indices Quota Error

2009-08-04 Thread Jeff S (Google)
Hi Federico,
It looks like the quota issues for this app have been resolved. The limit is
100 indices by default (you can request more if you really need them) but
there is currently a known issue with the index count. It will occasionally
over count the indexes and need to be reset by an App Engine admin.

Thank you,

Jeff

On Mon, Aug 3, 2009 at 8:37 AM, Federico Builes
federico.bui...@gmail.comwrote:


 Hi,

 What's the official quota for indices count on paid applications? I'm
 currently at 29 indexes and
 I'm still seeing: Your application is exceeding a quota: Datastore
 Indices Count

 I tried vacuuming them but that didn't work, what should I do?
 App id is maravilhas09.

 Thank you.

 --
 Federico


 


--~--~-~--~~~---~--~~
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: Two accounts with the same username

2009-08-04 Thread Jeff S (Google)
Hi Jay,
This tends to come up quite a bit actually. When you have a Google Account
and a Google Apps Account with the same username, App Engine will pick one
of them depending on the settings for the app. So if your app is set up to
use gmail accounts, it will always use the Google Account, if you set up the
app to allow only users from your domain, then it will use the Google Apps
Account.

The admin console is a bit different since it supports both Google Accounts
and Google Apps Accounts. To sign in with a Google Account, you use
appengine.google.com/ for your Google Apps Account you use
appengine.google.com/a/yourdomain.com. The last hitch that trips people up
is that when you are creating a new app and you are signed in with an email
address that is both a Google Account and a Google Apps Account, it will
assign ownership of the new apps to the Google Apps Account, so you can find
the new apps listed at appengine.google.com/a/yourdomain.com

Hope this helps,

Jeff

P.S. at some point down the line, we're planning to merge the Google
Accounts and Google Apps Accounts so that this confusion will no longer
occur.

On Sat, Aug 1, 2009 at 8:30 PM, jay j...@jaykyburz.com wrote:


 Hello,

 I seem to be having a similar problem.

 I seem to have 2 Google accounts with the same username which is
 causing me all kinds of problems.

 I first created a Google account using j...@jaykyburz.com for iGoogle
 abd Google Docs many years ago. Just recently I moved the domain over
 to Google apps and in the process seem to have somehow created another
 j...@jaykyburz.com

 App engine seems to be having difficulty distinguishing the
 j...@jaykyburz.com account that is used to access my google apps hosted
 email and documents, and the j...@jaykyburz.com account that i access
 iGoogle and Reader ect.

 Has anybody else seen this problem. Is there a way to fix it?


 On Jul 30, 2:39 am, Nick Johnson (Google) nick.john...@google.com
 wrote:
  Hi Daniel,
 
  Signing up with an additional account is fine, as long as you don't use
 it
  to create apps that attempt to evade the free quota limits by
 distributing
  your traffic across multiple apps. I'll activate your gmail account so
 you
  can use it to create the app. Once you've done so, you can add your other
  address as an administrator on the app, so you don't have to manage two
  separate accounts.
 
  -Nick Johnson
 
 
 
  On Wed, Jul 29, 2009 at 5:31 PM, Daniel Rhoden drho...@gmail.com
 wrote:
   Thanks so much!  I DO have that account.
   If I sign up with that account as well, wouldn't I be in violation of
   having more than one App Engine Account?  Is that ok now?
 
   On Jul 29, 2009, at 11:10 AM, Nick Johnson (Google) wrote:
 
   Hi Daniel,
 
   The app id you mention doesn't exist. It will show up as in use if a
 gmail
   account exists with that username. If that's your gmail account, you
 can
   sign in with it and use it to create the app.
 
   -Nick Johnson
 
   On Wed, Jul 29, 2009 at 3:46 AM, Daniel Rhoden drho...@gmail.com
 wrote:
 
   What can I do about an app name I registered but doesn't appear in my
 app
   list, nor can I register for it now because App Engine thinks it's
 taken.
 
   Who else would really want 'cleanslatesoaps'?
 
   Thanks,
 
   Daniel

 


--~--~-~--~~~---~--~~
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: Compilation failure for method with custom object param

2009-08-04 Thread Albert Attard
Hi:
You cannot access server classes from your client. You can access client
classes from your server.

What you have to do is start using transfer objects. Here's an article:
http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObject.html

Let me know if you need more help.
Albert Attard

Joan Crawfordhttp://www.brainyquote.com/quotes/authors/j/joan_crawford.html
- I, Joan Crawford, I believe in the dollar. Everything I earn, I
spend.

2009/8/4 thepopeofantelope markp...@gmail.com


 I created the following class and want to use it between the client
 and server. I get this GWT compile error on the Service class:

 Compiling module com.test.GWTTEst
   Refreshing module from source
  Validating newly compiled units
 Removing units with errors
[ERROR] Errors in 'file:/C:/GWTTEst/src/com/test/client/
 RecipeServiceAsync.java'
   [ERROR] Line 7: No source code is available for type
 com.test.server.Recipe; did you forget to inherit a required module?
[ERROR] Errors in 'file:/C:/GWTTEst/src/com/test/client/
 RecipeService.java'
   [ERROR] Line 9: No source code is available for type
 com.test.server.Recipe; did you forget to inherit a required module?

 ===

 package com.test.client;

 import com.google.gwt.user.client.rpc.RemoteService;
 import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
 import com.test.server.Recipe;

 @RemoteServiceRelativePath(recipe)
 public interface RecipeService extends RemoteService {
  public void addStock(Recipe symbol) throws NotLoggedInException;
  public void removeStock(String symbol) throws NotLoggedInException;
  public String[] getStocks() throws NotLoggedInException;
 }


 ==

 package com.test.server;

 import java.io.Serializable;
 import java.util.Date;

 import javax.jdo.annotations.IdGeneratorStrategy;
 import javax.jdo.annotations.IdentityType;
 import javax.jdo.annotations.PersistenceCapable;
 import javax.jdo.annotations.Persistent;
 import javax.jdo.annotations.PrimaryKey;

 import com.google.appengine.api.users.User;
 import com.google.gwt.user.client.rpc.IsSerializable;

 @PersistenceCapable(identityType = IdentityType.APPLICATION)
 public class Recipe implements IsSerializable {

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;
@Persistent
private User user;
@Persistent
private String name;
@Persistent
private String category;
@Persistent
private String cuisine;
@Persistent
private String occasion;
@Persistent
private String ingredients;
@Persistent
private String directions;
@Persistent
private Date created;

public Recipe() {

}

public Recipe(User user, String symbol) {
this();
this.user = user;
}

public User getUser() {
return user;
}

public void setUser(User user) {
this.user = user;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public String getCuisine() {
return cuisine;
}

public void setCuisine(String cuisine) {
this.cuisine = cuisine;
}

public String getIngredients() {
return ingredients;
}

public void setIngredients(String ingredients) {
this.ingredients = ingredients;
}

public String getDirections() {
return directions;
}

public void setDirections(String directions) {
this.directions = directions;
}

public String getOccasion() {
return occasion;
}

public void setOccasion(String occasion) {
this.occasion = occasion;
}

public String getCategory() {
return category;
}

public void setCategory(String category) {
this.category = category;
}

public Date getCreated() {
return created;
}



 }
 


--~--~-~--~~~---~--~~
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: serving a binary file to Internet Explorer

2009-08-04 Thread Holger

I remember having read of a similar problem here:
http://developer.symbian.com/forum/message.jspa?messageID=48

Don't know if this is helpful.
--~--~-~--~~~---~--~~
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: Persisting Enum values?

2009-08-04 Thread Albert Attard
Cheers mate. The documentation I've read otherwise (
http://www.jpox.org/docs/1_2/jdovsjpa.html) but good to know that these are
supported.
Cheers,
Albert Attard

Ogden Nash http://www.brainyquote.com/quotes/authors/o/ogden_nash.html  -
The trouble with a kitten is that when it grows up, it's always a cat.

2009/8/4 datanucleus andy_jeffer...@yahoo.com


  I'm not sure about this, but my understanding was that JDO didn't support
  ENUMS, JPA does (but I may be wrong).

 Try this
 http://db.apache.org/jdo/field_types.html

 It's ok to be wrong ;-)

 


--~--~-~--~~~---~--~~
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: Problems uploading to Datastore

2009-08-04 Thread Holger

To my knowledge
 each time you use the bulk upload.

code updating (before bulk upload) is needed only after changing the
app.yaml file.

Once the changed app.yaml file is uploaded, I can do multiple bulk
data uploads without any more code updating.


--~--~-~--~~~---~--~~
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: update_indexes error

2009-08-04 Thread Jeff S (Google)
Hi Tom,
You should be all set.

Cheers,

Jeff

On Tue, Aug 4, 2009 at 2:14 AM, Tom Wu service.g2...@gmail.com wrote:

 Hi Jeff,

 My apps id are djangog2100,cccwikig2100,blitzg2100,g2100.
 Please reset the index. Thanks a lot.


 Best Regards
 Tom Wu




 2009/8/4 Jeff S (Google) j...@google.com

 It looks like this app was over quota for datastore indices so I reset it.
 You should be all set, please let me know if you are still seeing quota
 errors.
 Happy coding,

 Jeff

 On Sat, Aug 1, 2009 at 10:10 AM, chemuto chem...@gmail.com wrote:


 Hi,

 I cannot update my indexes. Getting Server Error 500. Haven't
 reached yet 100.

 App id: testingryv

 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: update_indexes error

2009-08-04 Thread NiklasRTZ

I too seem to need index reset or further instructions. app id
classifiedsmarket
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] Catching database error

2009-08-04 Thread johnP

What specifically should I be catching in order to properly handle the
following item that appears in my stacktrace?  Where do I import this
exception (Error) from?  This error occurs intermittently.


  Error: An error occurred for the API request
datastore_v3.RunQuery().


The full stacktrace is:

  File /base/python_lib/versions/1/google/appengine/ext/db/
__init__.py, line 1382, in get
results = self.fetch(1)
  File /base/python_lib/versions/1/google/appengine/ext/db/
__init__.py, line 1426, in fetch
raw = self._get_query().Get(limit, offset)
  File /base/python_lib/versions/1/google/appengine/api/
datastore.py, line 959, in Get
return self._Run(limit, offset)._Get(limit)
  File /base/python_lib/versions/1/google/appengine/api/
datastore.py, line 900, in _Run
apiproxy_stub_map.MakeSyncCall('datastore_v3', 'RunQuery', pb,
result)
  File /base/python_lib/versions/1/google/appengine/api/
apiproxy_stub_map.py, line 72, in MakeSyncCall
apiproxy.MakeSyncCall(service, call, request, response)
  File /base/python_lib/versions/1/google/appengine/api/
apiproxy_stub_map.py, line 244, in MakeSyncCall
stub.MakeSyncCall(service, call, request, response)
  File /base/data/home/apps/tw3/16.335384870848503913/twa/
datastore_cache.py, line 66, in MakeSyncCall
self.CallWrappedStub(call, request, response)
  File /base/data/home/apps/tw3/16.335384870848503913/twa/
datastore_cache.py, line 54, in CallWrappedStub
self._wrapped_stub.MakeSyncCall(self.SERVICE_NAME, call, request,
response)
  File /base/python_lib/versions/1/google/appengine/runtime/
apiproxy.py, line 183, in MakeSyncCall
rpc.CheckSuccess()
  File /base/python_lib/versions/1/google/appengine/api/
apiproxy_rpc.py, line 110, in CheckSuccess
raise self.exception
Error: An error occurred for the API request datastore_v3.RunQuery().
--~--~-~--~~~---~--~~
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: serving a binary file to Internet Explorer

2009-08-04 Thread herbie

Thanks for the link, very helpful.  So it is an IE issue.  As the
developer.symbian.com/forum thread suggests,  if I use a a href=
link it downloads fine in IE.  But if I type it into the IE address
bar -  it fails !?

Many thanks for your quick response.


On Aug 4, 9:02 pm, Holger w...@arcor.de wrote:
 I remember having read of a similar problem 
 here:http://developer.symbian.com/forum/message.jspa?messageID=48

 Don't know if this is helpful.
--~--~-~--~~~---~--~~
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: Is there a way to have /blog url in GAE display wordpress blog

2009-08-04 Thread Jai

Hi Natalie,

On the lines of solution offered by Adam, you can also write an xmlrpc
client which can use the wordpress metaweblog API
http://codex.wordpress.org/XML-RPC_Support. It is much more work but
you can create a UI of your own.

You can compose, edit and delete any blog using the API.

There is a good article http://brizzled.clapper.org/id/80 for writing
xmlrpc client on app engine.

Regards.

On Aug 3, 10:32 am, Natalie Gordon natalie.gor...@gmail.com wrote:
 Hi,

 I have my app running fine in a subdomain my.url.com. I have a related
 blog built with wordpress on blog.url.com. For SEO reasons, I'm being
 asked if there is a way to serve our blog on my.url.com/blog.

 I can't think of a way to do this. Anyone have any ideas, creative or
 otherwise?

 Thanks!
 Natalie Gordonhttp://lenguajero.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: GQL query failed to return a qualifying entity

2009-08-04 Thread Wooble

Are you sure there isn't a space or other non-printable character in
your data in the datastore?  It's certainly possible your index is
corrupt, but I'd check for more likely causes first.

On Aug 4, 12:01 am, phtq pher...@typequick.com.au wrote:
 In our application (kbdlessons version 1-01) we have just had a case
 where a query in our application failed to return a record which
 definitely exists. We were able to reproduce this problem using the
 Dataviewer page off the app engine dashboard.

 We put in this query using the Dataviewer:

 SELECT * FROM StudentSubscriptions where StudentKey = 'REBECCA' and
 ProductKey = 'Typequick Professional' and AccountKey = 'SIVF'

 and got no results. However, if we use just 2 out of the 3 tests (any
 2!) the record we want appears amongst the results.

 Also, other valid values for StudentKey when used in this 3 part query
 do return a record in the Dataviewer page, just not this particular
 set of 3 values.

 We had to build a new record (under another name) to get the student
 going, but have left the troubled record in the database so you can
 look at it.

 Please let me know how to avoid this rather worrying 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] Re: GQL query failed to return a qualifying entity

2009-08-04 Thread phtq

The fact that the record can be retrieved with any 2 of the 3 filters
indicates that there are no hidden characters.

On Aug 5, 8:41 am, Wooble geoffsp...@gmail.com wrote:
 Are you sure there isn't a space or other non-printable character in
 your data in the datastore?  It's certainly possible your index is
 corrupt, but I'd check for more likely causes first.

 On Aug 4, 12:01 am, phtq pher...@typequick.com.au wrote:



  In our application (kbdlessons version 1-01) we have just had a case
  where a query in our application failed to return a record which
  definitely exists. We were able to reproduce this problem using the
  Dataviewer page off the app engine dashboard.

  We put in this query using the Dataviewer:

  SELECT * FROM StudentSubscriptions where StudentKey = 'REBECCA' and
  ProductKey = 'Typequick Professional' and AccountKey = 'SIVF'

  and got no results. However, if we use just 2 out of the 3 tests (any
  2!) the record we want appears amongst the results.

  Also, other valid values for StudentKey when used in this 3 part query
  do return a record in the Dataviewer page, just not this particular
  set of 3 values.

  We had to build a new record (under another name) to get the student
  going, but have left the troubled record in the database so you can
  look at it.

  Please let me know how to avoid this rather worrying 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] Retrieving source code from App Engine

2009-08-04 Thread Calvin Slayden

Hello,

I've suffered an unfortunate data loss incident, and my last backup is
quite a bit older than the last version of the source I uploaded for
my app onto App Engine. As a result, I'm wondering if I can retrieve
that source somehow.

I suspect not, as it appears that code running on App Engine cannot
access prior versions of itself (trying to list the contents of the
directory containing the earlier version yields a permission denied
error). But before I despair, I figured I'd ask here.

Is there some way I can retrieve the source code to the current
version of an App Engine app, or am I as screwed as I think I am?

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: Retrieving source code from App Engine

2009-08-04 Thread Hrishikesh Bakshi
Hi,

No, i don't think there is a way of retrieving source code from App Engine.

Take backups online!!  Use svn :-  http://www.xp-dev.com/ or for open source
: http://code.google.com/hosting/

On Tue, Aug 4, 2009 at 7:06 PM, Calvin Slayden calvin.slay...@gmail.comwrote:


 Hello,

 I've suffered an unfortunate data loss incident, and my last backup is
 quite a bit older than the last version of the source I uploaded for
 my app onto App Engine. As a result, I'm wondering if I can retrieve
 that source somehow.

 I suspect not, as it appears that code running on App Engine cannot
 access prior versions of itself (trying to list the contents of the
 directory containing the earlier version yields a permission denied
 error). But before I despair, I figured I'd ask here.

 Is there some way I can retrieve the source code to the current
 version of an App Engine app, or am I as screwed as I think I am?

 Thanks.
 



-- 
Hrishikesh Bakshi

--~--~-~--~~~---~--~~
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: Retrieving source code from App Engine

2009-08-04 Thread NiklasRTZ

appfilesbrowser.googlecode.com/files/GAEAppFileBrowser.rar apps
enables deployed source download to local. Placing files from the
GAEAppFileBrowser.rar src folder in the app's root directory,
( listfiles.py in the same root folder as app.yaml ) and the yaml from
the appfilesbrowser's app.yaml to the destination app.yaml (keeping
filenames unique) installs it.
regards
Niklas
--~--~-~--~~~---~--~~
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: Remote API (or similar) for java?

2009-08-04 Thread Nick_Zaillian

Alright...a final follow up.  I adhered to your directions, Nick,
taking the http://; out of the severname I was passing into the
ConfigureRemoteDatastore method and everything works now.  I wrote a
Python definition/mapping for the entity kind my app deals with and
can now remotely pull entities using your demo console.  Awesome!
Really, a commendable little api you have put together.  It's gonna
keep me from having to come up with a clumsy, nasty workaround for
that 30 second process deadline and also from digging too far into my
quotas for things I can easily do on a local machine.
Thanks again,
Nick Z

On Aug 4, 7:38 pm, Nick_Zaillian nzaill...@gmail.com wrote:
 disregard that last message -- I hadn't seen your response yet when I
 wrote it.  I'm going to get back to work and let you know what
 happens.
 Best,
 Nick Z

 On Aug 4, 7:35 pm, Nick_Zaillian nzaill...@gmail.com wrote:

  One more thing: I removed the trailing slash from the
  servername='http://2.latest.nicksmap.appspot.com/; (because it
  clearly doesn't belong there) that I'm passing into the
  ConfigureRemoteDatastore method, but am still getting the same
  error.
  -Nick

  On Aug 4, 7:05 pm, Nick_Zaillian nzaill...@gmail.com wrote:

   to clarify: when I said The console view gives me access to the
   datastore in that last message, I meant the data viewer at
   appengine.google.com, not appengine_console.py.
   -Nick

   On Aug 4, 7:00 pm, Nick_Zaillian nzaill...@gmail.com wrote:

Thanks Nick J,
Alright.  This is probably just me being stupid, but I've been beating
my head against the wall for, like, an hour trying to get things
working.  I wrote a simple app.yaml file with your remote_api mapping
and deployed it to App Engine as v2 of my app.  The console view gives
me access to the datastore, so I think this is all fine.
I modified your appengine_console.py such that the call to
ConfigureRemoteDatastore now reads:

remote_api_stub.ConfigureRemoteDatastore(app_id=None, path='/
remote_api', auth_func=auth_func, servername='http://
2.latest.nicksmap.appspot.com/')

I've visited the url http://2.latest.nicksmap.appspot.com/remote_api;
in my browser and it seems to be active (I see This request did not
contain a necessary header rather than some 403/404 error message) so
I'm pretty sure that my app configuration is alright.  When I run
python appengine_console.py [appid] (with my app id -- though I know
that last argument doesn't really do anything anymore) in the shell, I
get an error message reading as follows:

Traceback (most recent call last):
  File appengine_console.py, line 27, in module
    remote_api_stub.ConfigureRemoteDatastore(app_id=None, path='/
remote_api', auth_func=auth_func, servername='http://
2.latest.nicksmap.appspot.com/')
  File /home/nick/google_appengine/google/appengine/ext/remote_api/
remote_api_stub.py, line 433, in ConfigureRemoteDatastore
    response = server.Send(path, payload=None, **urlargs)
  File /home/nick/google_appengine/google/appengine/tools/
appengine_rpc.py, line 344, in Send
    f = self.opener.open(req)
  File /usr/lib/python2.5/urllib2.py, line 381, in open
    response = self._open(req, data)
  File /usr/lib/python2.5/urllib2.py, line 399, in _open
    '_open', req)
  File /usr/lib/python2.5/urllib2.py, line 360, in _call_chain
    result = func(*args)
  File /usr/lib/python2.5/urllib2.py, line 1107, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File /usr/lib/python2.5/urllib2.py, line 1064, in do_open
    h = http_class(host) # will parse host:port
  File /usr/lib/python2.5/httplib.py, line 639, in __init__
    self._set_hostport(host, port)
  File /usr/lib/python2.5/httplib.py, line 651, in _set_hostport
    raise InvalidURL(nonnumeric port: '%s' % host[i+1:])
httplib.InvalidURL: nonnumeric port: ''

Not really sure what's going on here.  I think that the parameters
that I'm passing to the ConfigureRemoteDatastore method are valid,
right?  Any thoughts?

I'm sure thatRemoteAPIis a great tool and I'm eager to be able to
work with it.

- Nick Z

On Aug 4, 8:04 am, Nick Johnson (Google) nick.john...@google.com
wrote:

 Hi Nick,

 If you're happy to use a Python local client, you can do the 
 following:

 - Create a Python app.yaml with the same app_id as your Java app, but
 a different major version.
 - Install the remote_api mapping in the app.yaml
 - Deploy the Python app to App Engine
 - When you initialize remote_api with ConfigureRemoteDatastore, pass
 the parameter server=majorversion.latest.myapp.appspot.com
 (substituting majorversion and latest as appropriate).

 You can now access your Java app's datastore via PythonRemoteAPI.

 -Nick Johnson

 On Tue, Aug 4, 2009 at 3:19 AM, 

[google-appengine] Why are my plus signs disappearing?

2009-08-04 Thread readyass...@gmail.com

I've noticed a strange bug in my application, which has an AJAX
callback for saving form (textarea) content into a blob in the
database. The problem is that while everything else saves fine, any
'+' characters disappear.

I've added an alert to the AJAX save routine so I can see that, before
the save, the '+' is still in the string, and then the meat of the
callback is this:

  http_request.open('post', xmlUrl, true);
  http_request.setRequestHeader(Content-Type, application/x-www-
form-urlencoded);
  http_request.send('file_name=' + escape(file_name) +
'file_content=' + escape(ta_content));


the ta_content variable is the TextArea content that I just verified
with the javascript alert.

This posts against a save routine which does the following:

class Save(webapp.RequestHandler):
  def post(self):
#fn = self.request.get('file_name')
fc = self.request.get('file_content')

newfile = db.GqlQuery('SELECT * FROM Posts WHERE [yadda yadda]).get
()
if newfile is not None:
  newfile.content = db.Blob(str(fc))
else:
  newfile = Posts(content = db.Blob(str(fc)),
  content_type = ct)
newfile.put()

self.response.out.write('responseok/response')

And the DB entity is as follows:

class Posts(db.Model):
  content = db.BlobProperty()
  created = db.DateTimeProperty(auto_now_add=True)
  #content2 = db.StringProperty()

So my question is, where are my '+' signs disappearing and how can I
stop this?  I'm encoding my data on the post.  I'm converting to a
string before storing to a blob on the AppEngine side.  I even
temporarily added a string to the entity so that I could actually see
the data as it's stored in the datastore and guess what?  I can see my
,,,', and everything else.  Just no +.

Can anyone see what I'm doing wrong here, or does AppEngine just hate
me, plus signs or both?
--~--~-~--~~~---~--~~
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] https support

2009-08-04 Thread J Singh
For an appengine-based site, https://abc.appspot.com is currently supported
but https://www.abc.com can not be supported. I know there is a technical
hurdle to cross but didn't know if any techniques had been proposed for
being able to use www.abc.com with SSL connections?

Thanks.

J Singh

Managing Director
Early Stage IT
(978) 760-2055
http://www.earlystageit.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: Retrieving source code from App Engine

2009-08-04 Thread Calvin Slayden

Yes, but unless I'm mistaken, can't that only view the files in the
current version? If I were to upload a new version with the file
browser source, it would only be able to show me any source I already
uploaded. I don't think that would be helpful.

Thanks, though.

On Aug 4, 8:06 pm, NiklasRTZ nik...@montao.com.br wrote:
 appfilesbrowser.googlecode.com/files/GAEAppFileBrowser.rar apps
 enables deployed source download to local. Placing files from the
 GAEAppFileBrowser.rar src folder in the app's root directory,
 ( listfiles.py in the same root folder as app.yaml ) and the yaml from
 the appfilesbrowser's app.yaml to the destination app.yaml (keeping
 filenames unique) installs it.
 regards
 Niklas
--~--~-~--~~~---~--~~
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 are my plus signs disappearing?

2009-08-04 Thread Bennomatic

One other thing: I set up a form post option, so I was able to set up
the output to echo the input and the + signs are still there.  It only
seems to be when I put those + signs into the datastore that they
become spaces or disappear.

Hlp! (please?)

On Aug 4, 9:28 pm, readyass...@gmail.com readyass...@gmail.com
wrote:
 I've noticed a strange bug in my application, which has an AJAX
 callback for saving form (textarea) content into a blob in the
 database. The problem is that while everything else saves fine, any
 '+' characters disappear.

 I've added an alert to the AJAX save routine so I can see that, before
 the save, the '+' is still in the string, and then the meat of the
 callback is this:

   http_request.open('post', xmlUrl, true);
   http_request.setRequestHeader(Content-Type, application/x-www-
 form-urlencoded);
   http_request.send('file_name=' + escape(file_name) +
 'file_content=' + escape(ta_content));

 the ta_content variable is the TextArea content that I just verified
 with the javascript alert.

 This posts against a save routine which does the following:

 class Save(webapp.RequestHandler):
   def post(self):
     #fn = self.request.get('file_name')
     fc = self.request.get('file_content')

     newfile = db.GqlQuery('SELECT * FROM Posts WHERE [yadda yadda]).get
 ()
     if newfile is not None:
       newfile.content = db.Blob(str(fc))
     else:
       newfile = Posts(content = db.Blob(str(fc)),
                       content_type = ct)
     newfile.put()

     self.response.out.write('responseok/response')

 And the DB entity is as follows:

 class Posts(db.Model):
   content = db.BlobProperty()
   created = db.DateTimeProperty(auto_now_add=True)
   #content2 = db.StringProperty()

 So my question is, where are my '+' signs disappearing and how can I
 stop this?  I'm encoding my data on the post.  I'm converting to a
 string before storing to a blob on the AppEngine side.  I even
 temporarily added a string to the entity so that I could actually see
 the data as it's stored in the datastore and guess what?  I can see my
 ,,,', and everything else.  Just no +.

 Can anyone see what I'm doing wrong here, or does AppEngine just hate
 me, plus signs or both?
--~--~-~--~~~---~--~~
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 are my plus signs disappearing?

2009-08-04 Thread Bennomatic

OK, here's the last item on the list.  I used my non-ajax form to save
the data as a string as well, and now the + signs are being saved.

Should I not be escaping?  Should I double-escape?  Should I use a
content type other than application/x-www-form-urlencoded?

Thanks for any guidance you can offer!

On Aug 4, 9:47 pm, Bennomatic readyass...@gmail.com wrote:
 One other thing: I set up a form post option, so I was able to set up
 the output to echo the input and the + signs are still there.  It only
 seems to be when I put those + signs into the datastore that they
 become spaces or disappear.

 Hlp! (please?)

 On Aug 4, 9:28 pm, readyass...@gmail.com readyass...@gmail.com
 wrote:



  I've noticed a strange bug in my application, which has an AJAX
  callback for saving form (textarea) content into a blob in the
  database. The problem is that while everything else saves fine, any
  '+' characters disappear.

  I've added an alert to the AJAX save routine so I can see that, before
  the save, the '+' is still in the string, and then the meat of the
  callback is this:

    http_request.open('post', xmlUrl, true);
    http_request.setRequestHeader(Content-Type, application/x-www-
  form-urlencoded);
    http_request.send('file_name=' + escape(file_name) +
  'file_content=' + escape(ta_content));

  the ta_content variable is the TextArea content that I just verified
  with the javascript alert.

  This posts against a save routine which does the following:

  class Save(webapp.RequestHandler):
    def post(self):
      #fn = self.request.get('file_name')
      fc = self.request.get('file_content')

      newfile = db.GqlQuery('SELECT * FROM Posts WHERE [yadda yadda]).get
  ()
      if newfile is not None:
        newfile.content = db.Blob(str(fc))
      else:
        newfile = Posts(content = db.Blob(str(fc)),
                        content_type = ct)
      newfile.put()

      self.response.out.write('responseok/response')

  And the DB entity is as follows:

  class Posts(db.Model):
    content = db.BlobProperty()
    created = db.DateTimeProperty(auto_now_add=True)
    #content2 = db.StringProperty()

  So my question is, where are my '+' signs disappearing and how can I
  stop this?  I'm encoding my data on the post.  I'm converting to a
  string before storing to a blob on the AppEngine side.  I even
  temporarily added a string to the entity so that I could actually see
  the data as it's stored in the datastore and guess what?  I can see my
  ,,,', and everything else.  Just no +.

  Can anyone see what I'm doing wrong here, or does AppEngine just hate
  me, plus signs or both?
--~--~-~--~~~---~--~~
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: dictionary displays problem

2009-08-04 Thread Holger

Your HTML template for loop expects a list. But you try to pass a
dictionary.

You mustn't mix up the Python terms 'list' / 'tuple' and 'dictionary'
- see:
http://www.sthurlow.com/python/lesson06/

List values are defined within sqare brackets. If they are immutable
(unchangable) they are called 'tuple' and its values are defined
within rounded brackets. Thus a list may be defined by:
myList = [ 'name1', 'name2']

Dictionary key-value pairs are defined within curly brackets.  For
example by
myDictionary = { 'a':'1', 'b':'2' }
To return a single value you must add the key within square brackets:
myDictionary['b'] will return '2'
To return the whole list of dictionary keys use the keys() function:
myDictionary.keys() will return the list  [ 'a', 'b' ]
To return the whole list of dictionary values use the values()
function:
myDictionary.values() will return the list [ '1', '2' ]


Try the following:
 In Python:
myDictionary = { 'a':'1', 'b':'2' }
listOfmyDictionaryValues= myDictionary.values()
listOfmyDictonaryKeys = myDictionary.keys()

template_values = {
  'keyList': listOfmyDictonaryKeys,
  'valueList': listOfmyDictonaryValues,
  }

 In Template:
 {% for keyXYZ  in keyList %}
   {{keyXYZ}}
 {%endfor%}
 {% for valueXYZ  in valueList %}
   {{valueXYZ}}
 {%endfor%}


This way the dictionary 'template_values' containing the lists
'listOfmyDictonaryKeys' and 'listOfmyDictonaryValues'  is passed from
Python to the Template.

---
Attention:
Don't mix up definig equations with square brackets for lists and
curly brackets for dictionares after the equal sign with the
constructor method with rounded brackets behind the constructor name
and no equal sign.

And don't mix up this Python term of 'dictionary keys' with the
appengine term of datastore 'Entitiy keys'.


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