[google-appengine] Re: Too many indexed properties for entity

2009-05-12 Thread baytiger

TextProperty and BlobProperty are ALREADY not indexed. So it doesn't
make any difference.

The problem with the searchable model is that it makes a few extra
rows in your database that contains among other things a list of all
the words that appear in your TextProperty. This means that it runs
out of indexes and explodes and gives you the too many indexes error.

There is no way around this. Its, unfortunately, a pitfall of the
system. I think we can assume that Google is working on it. But nobody
knows when it will be ready. It is likely that their database
structure was not built for such large indexes.

On May 12, 1:57 am, Ben bhym...@gmail.com wrote:
 I thought maybe the 1.2.2 update with the addition of indexed=false
 would solve this problem for me, but it doesn't seem to have any
 effect.  I can move the title into a separate property is i mentioned
 above and that works ok, but i feel like i must be missing some other
 obvious solution here.  my property is set like so:

 -
 class Item(search.SearchableModel):
   title = db.StringProperty(required=True)
   category = db.IntegerProperty()
   product =  db.IntegerProperty()
   priority = db.IntegerProperty()
   description = db.TextProperty(indexed=False)
   contributors = db.StringProperty()
 -

 any ideas?

 On May 9, 12:20 am, 风笑雪 kea...@gmail.com wrote:



  SDK 1.2.2 can use indexed=False parameter on property constructor now.

  2009/5/9 Ben bhym...@gmail.com

   I didn't figure out what was causing the problem, but i solved it by
   moving my Title  string prop to a separate searchable class with a
   reference property, and leaving the description in a standard db
   model.  might not work for everyone but solved my problem. thanks for
   the help.

   On May 8, 10:11 am, Devel63 danstic...@gmail.com wrote:
You should be able to have a searchable TextProperty and a
StringProperty.  I do.  If the advice below doesn't help, try posting
your class definition here.

On May 7, 10:27 am, ryan 
ryanb+appeng...@google.comryanb%2bappeng...@google.com
   wrote:

http://code.google.com/appengine/docs/python/datastore/queriesandinde.
   ..
 describes this error.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] Error: Server Error after updating the application

2009-05-12 Thread Racz

hello there,

i have the following problem the application runs perfectly on
localhost, but i have successfully update it and try accessing it i
receive this useless error log:

Error: Server Error
The server encountered an error and could not complete your request.

If the problem persists, please report your problem and mention this
error message and the query that caused it.

i didnt found any answer yet even though i've searched through the
issues and other group postings.

my app.yaml looks like this:

application: portalsmartmetering
version: 1
runtime: python
api_version: 1

handlers:
- url: /static
  static_dir: static
- url: /.*
  script: index.py

my directory structure includes
a static directory for css, javascript
and other application directories like template, gdata and
gchartwrapper

portalsmartmetering.appspot.com

any solution?

thanks a lot
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: email issue with Google Apps e-mail Group

2009-05-12 Thread Sylvain

For me it's a very big issue.
Currently the dev is frozen.

So I've created an issue here : 
http://code.google.com/p/googleappengine/issues/detail?id=1530

Maybe I could have more help from the Google Apps team ?

Regards.


On 7 mai, 16:11, Sylvain sylvain.viv...@gmail.com wrote:
 No,

 I've posted a question on the Google Apps help forum.
 And there  is no good answer (spf ?)

 So I'm waiting for a googler with a solution else I will fill a bug.
 But I don't know where is the issue : GAE or Google Apps, so it is
 very difficult.

 Regards.

 On 5 mai, 18:46, Srid ban...@gmail.com wrote:

  Sylvain

  I am having this same problem.  Did you find any solution?

  thx
  Srid

  On May 5, 8:05 am, Sylvain sylvain.viv...@gmail.com wrote:

   I don't think we are talking about the same thing.
   You are talking about Post a message.
   I just want to send a mail

   Here is a picture about what I'm talking.

  http://img206.imageshack.us/my.php?image=gappgroup.jpg

   Sylvain

   On 5 mai, 13:57, Sylvain sylvain.viv...@gmail.com wrote:

Yes, thisgroupis correctly parameter.

I'm just testing to send a mail to support@domain.com with my gmail
adress and many other e-mail adresses (hotmail,... etc,...). And all
my tests work.

So there is only an issue with mails from GAE.

Sylvain

On 5 mai, 13:42, Nick Johnson (Google) nick.john...@google.com
wrote:

 Hi Sylvain,

 Even for groups that are marked 'public', they generally require that
 the sender be a member of thegroupbefore they can post. In addition
 to setting thegroupas public, you also need to select anyone can
 post under who can post messages? on the Access tab of thegroup's
 settings.

 -Nick Johnson
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: Download a doc file from HTML page

2009-05-12 Thread Satyajit p
I have tried with all but still I m facing problem.its not getting
downloaded.Can anybody please try and help

2009/5/11 djidjadji djidja...@gmail.com


 If you want to serve the files dynamically you can use the method in

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

 2009/5/11 风笑雪 kea...@gmail.com:
  Sorry, I made a mistake on the path
  - url: /sample\.doc
static_files: static/sample.doc  # no \
upload: static/sample\.doc
  2009/5/11 Satyajit p satyajit100...@gmail.com
 
  Thanks Keakon for your immediate response.
 
  I have done the changes what U mentioned but its not asking for to
  download.
 
  Its recognizing the path from YAML file.
 
  Regards,
  Satyajit
 
 
 
  On Mon, May 11, 2009 at 12:48 PM, 风笑雪 kea...@gmail.com wrote:
 
  You need specify a url to locate sample.doc in your app.yaml file.
  eg:
  - url: /sample\.doc
static_files: static/sample\.doc
upload: static/sample\.doc
  And put sample.doc in static folder.
 
 
 
 http://code.google.com/intl/zh-CN/appengine/docs/python/config/appconfig.html
 
  2009/5/11 Satyajit p satyajit100...@gmail.com
 
  Hi All,
 I am trying to download(a href=sample.docdownload/a)
 a
  word file from html page through python/google apps.But I am unable to
 do
  so.
 
  Can anybody help me on this issue.
 
  Eagerly waiting for an early reply.
 
  Thanks in advance...
 
  Regards,
  Satyajit
 
 
 
 
 
 
 
 
 
 
  
 

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: Download a doc file from HTML page

2009-05-12 Thread 风笑雪
I've tried that, and met no problem.

2009/5/12 Satyajit p satyajit100...@gmail.com

 I have tried with all but still I m facing problem.its not getting
 downloaded.Can anybody please try and help

 2009/5/11 djidjadji djidja...@gmail.com


 If you want to serve the files dynamically you can use the method in

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

 2009/5/11 风笑雪 kea...@gmail.com:
  Sorry, I made a mistake on the path
  - url: /sample\.doc
static_files: static/sample.doc  # no \
upload: static/sample\.doc
  2009/5/11 Satyajit p satyajit100...@gmail.com
 
  Thanks Keakon for your immediate response.
 
  I have done the changes what U mentioned but its not asking for to
  download.
 
  Its recognizing the path from YAML file.
 
  Regards,
  Satyajit
 
 
 
  On Mon, May 11, 2009 at 12:48 PM, 风笑雪 kea...@gmail.com wrote:
 
  You need specify a url to locate sample.doc in your app.yaml file.
  eg:
  - url: /sample\.doc
static_files: static/sample\.doc
upload: static/sample\.doc
  And put sample.doc in static folder.
 
 
 
 http://code.google.com/intl/zh-CN/appengine/docs/python/config/appconfig.html
 
  2009/5/11 Satyajit p satyajit100...@gmail.com
 
  Hi All,
 I am trying to download(a href=sample.docdownload/a)
 a
  word file from html page through python/google apps.But I am unable
 to do
  so.
 
  Can anybody help me on this issue.
 
  Eagerly waiting for an early reply.
 
  Thanks in advance...
 
  Regards,
  Satyajit
 
 
 
 
 
 
 
 
 
 
  
 




 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: Download a doc file from HTML page

2009-05-12 Thread Satyajit p
I am getting the below error.

Traceback (most recent call last):
  File C:\Program
Files\Google\google_appengine\google\appengine\ext\webapp\__init__.py,
line 498, in __call__
handler.get(*groups)
  File C:\Documents and
Settings\Administrator\Desktop\apps\scoobies1\main.py, line 103, in
get
self.response.out.write(template.render(path, template_values))
  File C:\Program
Files\Google\google_appengine\google\appengine\ext\webapp\template.py,
line 80, in render
t = load(template_path, debug)
  File C:\Program
Files\Google\google_appengine\google\appengine\ext\webapp\template.py,
line 108, in load
template = django.template.loader.get_template(file_name)
  File C:\Program
Files\Google\google_appengine\lib\django\django\template\loader.py,
line 79, in get_template
source, origin = find_template_source(template_name)
  File C:\Program
Files\Google\google_appengine\lib\django\django\template\loader.py,
line 72, in find_template_source
raise TemplateDoesNotExist, name
TemplateDoesNotExist: hello.doc



2009/5/12 风笑雪 kea...@gmail.com

 I've tried that, and met no problem.

 2009/5/12 Satyajit p satyajit100...@gmail.com

 I have tried with all but still I m facing problem.its not getting
 downloaded.Can anybody please try and help

 2009/5/11 djidjadji djidja...@gmail.com


 If you want to serve the files dynamically you can use the method in

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

 2009/5/11 风笑雪 kea...@gmail.com:
  Sorry, I made a mistake on the path
  - url: /sample\.doc
static_files: static/sample.doc  # no \
upload: static/sample\.doc
  2009/5/11 Satyajit p satyajit100...@gmail.com
 
  Thanks Keakon for your immediate response.
 
  I have done the changes what U mentioned but its not asking for to
  download.
 
  Its recognizing the path from YAML file.
 
  Regards,
  Satyajit
 
 
 
  On Mon, May 11, 2009 at 12:48 PM, 风笑雪 kea...@gmail.com wrote:
 
  You need specify a url to locate sample.doc in your app.yaml file.
  eg:
  - url: /sample\.doc
static_files: static/sample\.doc
upload: static/sample\.doc
  And put sample.doc in static folder.
 
 
 
 http://code.google.com/intl/zh-CN/appengine/docs/python/config/appconfig.html
 
  2009/5/11 Satyajit p satyajit100...@gmail.com
 
  Hi All,
 I am trying to download(a
 href=sample.docdownload/a) a
  word file from html page through python/google apps.But I am unable
 to do
  so.
 
  Can anybody help me on this issue.
 
  Eagerly waiting for an early reply.
 
  Thanks in advance...
 
  Regards,
  Satyajit
 
 
 
 
 
 
 
 
 
 
  
 







 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: Download a doc file from HTML page

2009-05-12 Thread 风笑雪
Put this handler before main.py, so that it will be handled as a static
file.

2009/5/12 Satyajit p satyajit100...@gmail.com

 I am getting the below error.

 Traceback (most recent call last):
   File C:\Program 
 Files\Google\google_appengine\google\appengine\ext\webapp\__init__.py, line 
 498, in __call__
 handler.get(*groups)
   File C:\Documents and 
 Settings\Administrator\Desktop\apps\scoobies1\main.py, line 103, in get

 self.response.out.write(template.render(path, template_values))
   File C:\Program 
 Files\Google\google_appengine\google\appengine\ext\webapp\template.py, line 
 80, in render
 t = load(template_path, debug)

   File C:\Program 
 Files\Google\google_appengine\google\appengine\ext\webapp\template.py, line 
 108, in load
 template = django.template.loader.get_template(file_name)
   File C:\Program 
 Files\Google\google_appengine\lib\django\django\template\loader.py, line 79, 
 in get_template

 source, origin = find_template_source(template_name)
   File C:\Program 
 Files\Google\google_appengine\lib\django\django\template\loader.py, line 72, 
 in find_template_source
 raise TemplateDoesNotExist, name

 TemplateDoesNotExist: hello.doc



 2009/5/12 风笑雪 kea...@gmail.com

 I've tried that, and met no problem.

 2009/5/12 Satyajit p satyajit100...@gmail.com

 I have tried with all but still I m facing problem.its not getting
 downloaded.Can anybody please try and help

 2009/5/11 djidjadji djidja...@gmail.com


 If you want to serve the files dynamically you can use the method in

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

 2009/5/11 风笑雪 kea...@gmail.com:
  Sorry, I made a mistake on the path
  - url: /sample\.doc
static_files: static/sample.doc  # no \
upload: static/sample\.doc
  2009/5/11 Satyajit p satyajit100...@gmail.com
 
  Thanks Keakon for your immediate response.
 
  I have done the changes what U mentioned but its not asking for to
  download.
 
  Its recognizing the path from YAML file.
 
  Regards,
  Satyajit
 
 
 
  On Mon, May 11, 2009 at 12:48 PM, 风笑雪 kea...@gmail.com wrote:
 
  You need specify a url to locate sample.doc in your app.yaml file.
  eg:
  - url: /sample\.doc
static_files: static/sample\.doc
upload: static/sample\.doc
  And put sample.doc in static folder.
 
 
 
 http://code.google.com/intl/zh-CN/appengine/docs/python/config/appconfig.html
 
  2009/5/11 Satyajit p satyajit100...@gmail.com
 
  Hi All,
 I am trying to download(a
 href=sample.docdownload/a) a
  word file from html page through python/google apps.But I am unable
 to do
  so.
 
  Can anybody help me on this issue.
 
  Eagerly waiting for an early reply.
 
  Thanks in advance...
 
  Regards,
  Satyajit
 
 
 
 
 
 
 
 
 
 
  
 










 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: Download a doc file from HTML page

2009-05-12 Thread Satyajit p
I have done this same .I have put that before the main.py

Do we need to change anything in main.py?

2009/5/12 风笑雪 kea...@gmail.com

 Put this handler before main.py, so that it will be handled as a static
 file.


 2009/5/12 Satyajit p satyajit100...@gmail.com

 I am getting the below error.

 Traceback (most recent call last):
   File C:\Program 
 Files\Google\google_appengine\google\appengine\ext\webapp\__init__.py, line 
 498, in __call__
 handler.get(*groups)
   File C:\Documents and 
 Settings\Administrator\Desktop\apps\scoobies1\main.py, line 103, in get


 self.response.out.write(template.render(path, template_values))
   File C:\Program 
 Files\Google\google_appengine\google\appengine\ext\webapp\template.py, line 
 80, in render
 t = load(template_path, debug)


   File C:\Program 
 Files\Google\google_appengine\google\appengine\ext\webapp\template.py, line 
 108, in load
 template = django.template.loader.get_template(file_name)
   File C:\Program 
 Files\Google\google_appengine\lib\django\django\template\loader.py, line 
 79, in get_template


 source, origin = find_template_source(template_name)
   File C:\Program 
 Files\Google\google_appengine\lib\django\django\template\loader.py, line 
 72, in find_template_source
 raise TemplateDoesNotExist, name


 TemplateDoesNotExist: hello.doc



 2009/5/12 风笑雪 kea...@gmail.com

 I've tried that, and met no problem.

 2009/5/12 Satyajit p satyajit100...@gmail.com

 I have tried with all but still I m facing problem.its not getting
 downloaded.Can anybody please try and help

 2009/5/11 djidjadji djidja...@gmail.com


 If you want to serve the files dynamically you can use the method in

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

 2009/5/11 风笑雪 kea...@gmail.com:
  Sorry, I made a mistake on the path
  - url: /sample\.doc
static_files: static/sample.doc  # no \
upload: static/sample\.doc
  2009/5/11 Satyajit p satyajit100...@gmail.com
 
  Thanks Keakon for your immediate response.
 
  I have done the changes what U mentioned but its not asking for to
  download.
 
  Its recognizing the path from YAML file.
 
  Regards,
  Satyajit
 
 
 
  On Mon, May 11, 2009 at 12:48 PM, 风笑雪 kea...@gmail.com wrote:
 
  You need specify a url to locate sample.doc in your app.yaml
 file.
  eg:
  - url: /sample\.doc
static_files: static/sample\.doc
upload: static/sample\.doc
  And put sample.doc in static folder.
 
 
 
 http://code.google.com/intl/zh-CN/appengine/docs/python/config/appconfig.html
 
  2009/5/11 Satyajit p satyajit100...@gmail.com
 
  Hi All,
 I am trying to download(a
 href=sample.docdownload/a) a
  word file from html page through python/google apps.But I am
 unable to do
  so.
 
  Can anybody help me on this issue.
 
  Eagerly waiting for an early reply.
 
  Thanks in advance...
 
  Regards,
  Satyajit
 
 
 
 
 
 
 
 
 
 
  
 













 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] cgi.escape and HTML Rendering Inquiry

2009-05-12 Thread Brandon

I'm curious as to what the 'standard' is for handling both single and
double quotes when sanitizing data for HTML rendering.

Obviously cgi.escape can handle one, but not both, if I'm not
mistaken.  Is there a standardized approach for sanitizing in the
manner that cgi.escape does, but also handles double and single quotes?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] AppEngine and Google Base API

2009-05-12 Thread conman

Hello,

I am thinkting about using Google Base API to establish keyword based
search for my application.

After reading through the docs I am pretty sure this could work out
quite well :)

Does anyone have experience in that field? Is it the right appoach to
use Google Base like that (I know that's not the correct syntax):

item RelatedMedia
  keywordsSummer, Sand, Beach, Sea/keywords
 keyhdk383kadj93ujdkl/key
/item

I want to query for one or more keywords which would give me matching
items.
The attribute key is the DataStore key for the actual media object I
want to present the user.

Furthermore I am confused how to establish authentication so my web
application can  insert/edit or delete items inside Google Base.

If I understand correctly I need to gather a request token via OAuth
or AuthSub and use this to
to to either make one request or to to gather a session token for some
more requests.
This makes sense if my application would access personal data like a
calendar or docs - but I want to store/retrieve only application data.

How can I prevent my application from authenticating all the time?
Isn't there something like an application-key to authenticate valid
requests (similar to Amazon-Database-Requests).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: Download a doc file from HTML page

2009-05-12 Thread 风笑雪
Just make sure when you visit http://localhost:8080/sample.doc;, you can
get a file download dialog.
It seems you mistook template and static file, which are much difference
from each other, in your main.py.

I suggest you read all the document before your developing.

2009/5/12 Satyajit p satyajit100...@gmail.com

 I have done this same .I have put that before the main.py

 Do we need to change anything in main.py?


 2009/5/12 风笑雪 kea...@gmail.com

 Put this handler before main.py, so that it will be handled as a static
 file.


 2009/5/12 Satyajit p satyajit100...@gmail.com

 I am getting the below error.

 Traceback (most recent call last):
   File C:\Program 
 Files\Google\google_appengine\google\appengine\ext\webapp\__init__.py, 
 line 498, in __call__
 handler.get(*groups)
   File C:\Documents and 
 Settings\Administrator\Desktop\apps\scoobies1\main.py, line 103, in get



 self.response.out.write(template.render(path, template_values))
   File C:\Program 
 Files\Google\google_appengine\google\appengine\ext\webapp\template.py, 
 line 80, in render
 t = load(template_path, debug)



   File C:\Program 
 Files\Google\google_appengine\google\appengine\ext\webapp\template.py, 
 line 108, in load
 template = django.template.loader.get_template(file_name)
   File C:\Program 
 Files\Google\google_appengine\lib\django\django\template\loader.py, line 
 79, in get_template



 source, origin = find_template_source(template_name)
   File C:\Program 
 Files\Google\google_appengine\lib\django\django\template\loader.py, line 
 72, in find_template_source
 raise TemplateDoesNotExist, name



 TemplateDoesNotExist: hello.doc



 2009/5/12 风笑雪 kea...@gmail.com

 I've tried that, and met no problem.

 2009/5/12 Satyajit p satyajit100...@gmail.com

 I have tried with all but still I m facing problem.its not getting
 downloaded.Can anybody please try and help

 2009/5/11 djidjadji djidja...@gmail.com


 If you want to serve the files dynamically you can use the method in

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

 2009/5/11 风笑雪 kea...@gmail.com:
  Sorry, I made a mistake on the path
  - url: /sample\.doc
static_files: static/sample.doc  # no \
upload: static/sample\.doc
  2009/5/11 Satyajit p satyajit100...@gmail.com
 
  Thanks Keakon for your immediate response.
 
  I have done the changes what U mentioned but its not asking for to
  download.
 
  Its recognizing the path from YAML file.
 
  Regards,
  Satyajit
 
 
 
  On Mon, May 11, 2009 at 12:48 PM, 风笑雪 kea...@gmail.com wrote:
 
  You need specify a url to locate sample.doc in your app.yaml
 file.
  eg:
  - url: /sample\.doc
static_files: static/sample\.doc
upload: static/sample\.doc
  And put sample.doc in static folder.
 
 
 
 http://code.google.com/intl/zh-CN/appengine/docs/python/config/appconfig.html
 
  2009/5/11 Satyajit p satyajit100...@gmail.com
 
  Hi All,
 I am trying to download(a
 href=sample.docdownload/a) a
  word file from html page through python/google apps.But I am
 unable to do
  so.
 
  Can anybody help me on this issue.
 
  Eagerly waiting for an early reply.
 
  Thanks in advance...
 
  Regards,
  Satyajit
 
 
 
 
 
 
 
 
 
 
  
 
















 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] Business Class Project: how much would it cost to run this on Google App engine

2009-05-12 Thread mclovin

Hey guys, I hope this is allowed.

I am in a business class and our project is like an e-commerce site.
One of the things that we have to report on is how much it will cost
to run the business. So I thought of Google App Engine, but when I
look at the pricing, I have no idea what I am looking at since it is
basically all in computing hours.

I am pretty sure that it would be cheaper to deploy on google's
servers if this business was a startup since they would not have to
buy the several thousand dollars in equipment and more money in
bandwidth, but I would appreciate some hard numbers.

On average (I know that it differs from web app to web app, but I just
need a broad ballpark figure), but how much on average does app engine
cost for

10k users
100k users
1million users
5 million users

?

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



[google-appengine] Re: appengine stop to deploy new files!!!!!!!!!!

2009-05-12 Thread Adam

When you updated your files, did you change the version number in
app.yaml? If you did, you need to use the management console to make
the new version the default one. To do so, log in to the AppEnigne
Dashboard (appengine.google.com) and select the application in
question. Along the left-hand side, under 'Administration', there's a
'Versions' link. Click it. You should see a radio button for each
version that you have uploaded. Select the most recent one and click
the 'Make Default' button. Your changes should be live.

On May 12, 1:42 am, wenxin.ren calid...@gmail.com wrote:
 I am using python runtime environment.
 by using appcfg.py update appfolder many times and get no update

 On May 12, 1:39 pm, ajaxer calid...@gmail.com wrote:

  I uploaded new files many times.
  but the server don't updated with them.
  what is the problem?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Any issues with URL fetch tonight?

2009-05-12 Thread Pindropper Info

Looks like it was fixed around:   Mon May 11 23:45:00 PDT 2009



I have still not seen an announcement from google (on the outage
group) about this


On May 11, 9:55 pm, yobin yyo...@gmail.com wrote:
 I met this problem too..



 - Original Message -
 From: Pindropper Info i...@pindropper.com
 To: Google App Engine google-appengine@googlegroups.com
 Sent: Tuesday, May 12, 2009 11:39 AM
 Subject: [google-appengine] Any issues with URL fetch tonight?

  About 2+ hours ago, our app started having issues calling out to a 3rd
  party webservice using url fetch

  urlfetch

   File quot;/base/python_lib/versions/1/google/appengine/api/
  urlfetch.pyquot;, line 240, in fetch
     return rpc.get_result(allow_truncated)
   File quot;/base/python_lib/versions/1/google/appengine/api/
  urlfetch.pyquot;, line 387, in get_result
     self.check_success(allow_truncated)
   File quot;/base/python_lib/versions/1/google/appengine/api/
  urlfetch.pyquot;, line 361, in check_success
     raise DownloadError(str(e))
  DownloadError: ApplicationError: 5

  This was working fine as recently as this AMI am not at my quota.

  Anyone have any ideas?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: Business Class Project: how much would it cost to run this on Google App engine

2009-05-12 Thread 'Αλκης Ευλογημένος
What you are asking is more or less: I have 5 things, how much do they
cost?. Obviously that doesn't have a meaningful answer. Just the number of
users is not going to give you an estimate. You need to get some rough
numbers on these:

1) How many pages does each user views per day
2) What kind of requests do they do: simple page request with 1 fetch from
the datastore? image manipulation? reporting pages that list hundreds of
entities worth of data?
3) How many users are active?
4) How many users you have total?
4) How much data do you store per user?
5) Do you send lots of emails from the app? If so how many?
6) Do you upload data to the application? If so how much?
7) Do you fetch data from other websites to implement your service?

If you look at the table:

Outgoing Bandwidth gigabytes $0.12  Incoming Bandwidth gigabytes $0.10  CPU
Time CPU hours $0.10  Stored Data gigabytes per month $0.15  Recipients
Emailed recipients $0.0001
You can compute almost everything based on the above:

Outgoing Bandwidth = Number of active users per day * Number of pages per
user per day * size of page
Outgoing Bandwidth = Number of active users per day * Number of pages per
user per day * Ratio of pages served to pages fetched * size of fetched page
CPU Time = Really depends on how complex each page is, can't even start
estimating without any background on what the app does
Stored Data = Number of users * data per user
Recipients Emailed = Number of active users * Number of emails sent per user

I think you should be able to come up with some very ballpark values for the
above if you have some quasi-clear idea of an app in mind.

On Tue, May 12, 2009 at 4:06 PM, mclovin hanoo...@gmail.com wrote:


 Hey guys, I hope this is allowed.

 I am in a business class and our project is like an e-commerce site.
 One of the things that we have to report on is how much it will cost
 to run the business. So I thought of Google App Engine, but when I
 look at the pricing, I have no idea what I am looking at since it is
 basically all in computing hours.

 I am pretty sure that it would be cheaper to deploy on google's
 servers if this business was a startup since they would not have to
 buy the several thousand dollars in equipment and more money in
 bandwidth, but I would appreciate some hard numbers.

 On average (I know that it differs from web app to web app, but I just
 need a broad ballpark figure), but how much on average does app engine
 cost for

 10k users
 100k users
 1million users
 5 million users

 ?

 Thank you
 



-- 

Alkis

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



[google-appengine] Can we add 3rd party Libraries to a Java App?

2009-05-12 Thread West

Hi,

I'm using the Google App Eclipse SDK. In my application i want to use
some external libraries and jar functionalities. I'm able to add these
Libraries to the Project but when the application is tested on G.
Development Server i get a class not found error! Can someone please
help??


Regards
West

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: ProtocolBufferEncodeError: Required field: multiple not set

2009-05-12 Thread Liz

Thanks for the solution.  Saved me a lot of time!

On May 11, 12:52 am, joshuacronemeyer joshuacroneme...@gmail.com
wrote:
 I recently noticed that the 'full text search' feature of my app was
 throwing a stacktrace like this:

 Traceback (most recent call last):
   File /base/python_lib/versions/1/google/appengine/ext/webapp/
 __init__.py, line 503, in __call__
     handler.post(*groups)
   File /base/data/home/apps/shell-sink/2.331785781902411868/
 shellsink.py, line 191, in post
     commands = full_text_search(sysadmin, query, paging_helper.page)
   File /base/data/home/apps/shell-sink/2.331785781902411868/
 command.py, line 55, in full_text_search
     return query.fetch(Command.COMMANDS_PER_PAGE, (page - 1) *
 Command.COMMANDS_PER_PAGE)
   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 964, in Get
     return self._Run(limit, offset)._Next(limit)
   File /base/python_lib/versions/1/google/appengine/api/
 datastore.py, line 905, 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 68, in MakeSyncCall
     apiproxy.MakeSyncCall(service, call, request, response)
   File /base/python_lib/versions/1/google/appengine/api/
 apiproxy_stub_map.py, line 240, in MakeSyncCall
     stub.MakeSyncCall(service, call, request, response)
   File /base/python_lib/versions/1/google/appengine/runtime/
 apiproxy.py, line 181, in MakeSyncCall
     rpc.MakeCall(package, call, request, response)
   File /base/python_lib/versions/1/google/appengine/api/
 apiproxy_rpc.py, line 92, in MakeCall
     self._MakeCallImpl()
   File /base/python_lib/versions/1/google/appengine/runtime/
 apiproxy.py, line 124, in _MakeCallImpl
     self.request.Output(e)
   File /base/python_lib/versions/1/google/net/proto/
 ProtocolBuffer.py, line 162, in Output
     raise ProtocolBufferEncodeError, '\n\t'.join(dbg)
 ProtocolBufferEncodeError: Required field: multiple not set.

 I am using a gently modified version of SearchableModel in my app so I
 immediately suspected some change in the db.Model super class.  It
 looks like the following line was added to the _ToPb method of
 SearchableQuery: prop.set_multiple(len(keywords)  1)

 I applied the following patch to my custom SearchableModel and it
 works fine again.

 232a263         prop.set_multiple(len(keywords)  1)
 237a269,286
  class SearchableMultiQuery(datastore.MultiQuery):
    A multiquery that supports Search() by searching subqueries.

    def Search(self, *args, **kwargs):
      Add a search query, by trying to add it to all subqueries.

      Args:
        args: Passed to Search on each subquery.
        kwargs: Passed to Search on each subquery.

      Returns:
        self for consistency with SearchableQuery.
      
      for q in self:
        q.Search(*args, **kwargs)
      return self

 264c312,314
        query = db.Query._get_query(self,
 _query_class=SearchableQuery)
 ---

        query = db.Query._get_query(self,
                                    _query_class=SearchableQuery,
                                    _multi_query_class=SearchableMultiQuery)

 Thought I would post just in case anyone else runs into it.

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



[google-appengine] repoze.bfg web framework runs on GAE

2009-05-12 Thread cguardia

Hi,

just read the blog entry about support for web2py and wanted to let
you know that repoze.bfg is among the Python web frameworks that work
well with GAE.

http://bfg.repoze.org/

BFG is a pay only for what you eat Python web framework. You can get
started easily and learn new concepts as you go, and only if you need
them. It's simple, well tested, well documented, and fast.

Thanks,

Carlos de la Guardia

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] Facing problem in downloading a file

2009-05-12 Thread s s
Hi,
 I am very new to python.

I am trying to get a word page download when I click on a the link.But I am
unable to do so.

Kindly help.What I need to do in YAML file and .py file.

Thanks in Advance.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] GAE for math computing

2009-05-12 Thread ros

Is GAE ok for math computing like FFT or Wavelet?
How much computing power is assigned to Web app using GAE?
Any one want to talk about this?

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



[google-appengine] What's the difference among key, id, and key name?

2009-05-12 Thread Oliver Zheng

I have been looking at the stored data of some apps, and noticed those
3 columns. Key appears to be a hash/string of some sort. ID is usually
empty. Key name looks like an actual readable identifier, but it's
usually just key_ + username or something that already exists.

What is the use for any of this, from the perspective of a (python)
app? Why are they created and what can or should I do with them?

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



[google-appengine] what about this application's idea:what were you doing then?

2009-05-12 Thread mbo

http://itwittered.appspot.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] Application update errored

2009-05-12 Thread hongde.liu

Hi everyone

   when I run the command appcfg.py update ../cpedialog in new
project
   I always get the same information:
Scanning files on local disk.
Initiating update.
Could not guess mimetype for img/favicon.ico.  Using application/
octet-
stream.
Cloning 83 static files.
Cloning 165 application files.
Cloned 100 files.
Deploying new version.
Checking if new version is ready to serve.
Will check again in 1 seconds.
Checking if new version is ready to serve.
Closing update: new version is ready to start serving.
Uploading index definitions.
Error 400: --- begin server output ---
Creating a composite index failed: This index:
entity_type: Archive
ancestor: false
Property {
 name: date
 direction: 2
}

is not necessary, since single-property indices are built in. Please
remove it f
rom your index file and upgrade to the latest version of the SDK, if
you haven't
 already.
--- end server output ---
Your app was updated, but there was an error updating your indexes.
Please retry
 later with appcfg.py update_indexes.

and I also run the command appcfg.py --force vacuum_indexes ../
cpedialog

it shows
Fetching index definitions diff.


I do not know what to do next

can any one help me?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] Datastore design ideas

2009-05-12 Thread Hugh

I'm looking for some high level ideas on how to design a datastore for
a Facebook application.

In this app a user can collect widgets.
I'd like to be able to show a user lists of the widgets owned by their
friends - something like:

q = db.GqlQuery(SELECT * FROM Widget WHERE owner IN ( friendlist )
and other filter criteria )

The problem with this approach is that friendlist can only have 30
entries.

Since the Facebook TOS  don't allow you to store the friend list (for
more than 24 hours anyway), it seems like the options here are pretty
limited.

Some of the ideas I've been considering are:
1) divide into 30 friend chunks  make (potentially) lots of datastore
calls.
2) Combine #1 with some cron jobs that do the datastore calls 
populate memcahed with the results.
3) Use a clever design that allows you to formulate the query in such
a way that you don't hit 30 entry limit on in clauses

Any thoughts?

Thanks -
Hugh

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] Datastore design ideas

2009-05-12 Thread Hugh

I'm looking for some high level ideas on how to design a datastore for
a Facebook application.

In this app a user can collect widgets.
I'd like to be able to show a user lists of the widgets owned by their
friends - something like:

q = db.GqlQuery(SELECT * FROM Widget WHERE owner IN ( friendlist )
and other filter criteria )

The problem with this approach is that friendlist can only have 30
entries.

Since the Facebook TOS  don't allow you to store the friend list (for
more than 24 hours anyway), it seems like the options here are pretty
limited.

Some of the ideas I've been considering are:
1) divide into 30 friend chunks  make (potentially) lots of datastore
calls.
2) Combine #1 with some cron jobs that do the datastore calls 
populate memcahed with the results.
3) Use a clever design that allows you to formulate the query in such
a way that you don't hit 30 entry limit on in clauses

Any thoughts?

Thanks -
Hugh

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] how do i assign a primary key in the datastore while doing bulk upload of a csv file.

2009-05-12 Thread angelo_steven

can someone help me with this i have posted the code below:

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

class DbaV2(db.Model):
Symbol=db.StringProperty()
Series=db.StringProperty()
Date=db.DateProperty()
Pre_close=db.FloatProperty()
Op_pr=db.FloatProperty()
Hi_pr=db.FloatProperty()
lo_pr=db.FloatProperty()
las_pr=db.FloatProperty()
Clo_pr=db.FloatProperty()
To_tr_quan=db.FloatProperty()
turn_ovr_lac=db.FloatProperty()


class DbaV2Loader(bulkloader.Loader):
def __init__(self):
bulkloader.Loader.__init__(self, 'DbaV2',
[('Symbol', str),
 ('Series', str),
 ('Op_pr', float),
 ('Hi_pr', float),
 ('lo_pr', float),
 ('Clo_pr', float),
 ('las_pr', float),
 ('Pre_close', float),
 ('To_tr_quan', float),
 ('turn_ovr_lac', float),
 ('Date', lambda x: datetime.datetime.strptime(x, '%d-%b-
%Y').date()),
])




'''def GenerateKey(self, i, values):
a=P
b=str(values[0])
c=str(values[10])
d=str(values[1])
c=a+b+d+c
return c'''


loaders=[DbaV2Loader]

the Generate key function was used by me to generate a user defind key
to prevent data replication.It was working fine when i was using bulk
uploader, but now i want to do a similar thing  using the appcfg
upload can someone please help me out.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] Upgrade to 1.2.2, can no longer read files with csv.reader

2009-05-12 Thread obvious

I upgraded from 1.2.1 to 1.2.2 last night and now I can't read files
with csv.reader.
I do this:
reader = csv.reader(open(applications.csv,'rU'))
and I get the following error:
IOError: [Errno 13] file not accessible: 'applications.csv'

I've tried reinstalling the python environment, the SDK to no avail.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] Java Permission error

2009-05-12 Thread B

So, I figured out that my error Invalid runtime Specified is due to
Java permission.
that being said, i keep seeing they are limiting the number of Java
engine users to 1.
I have not received an email to confirm permissions. Does anyone know
if the 1 limit has been reached?


Thanks!
B

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] How to send authentication requests like u...@password through secure data connector?

2009-05-12 Thread Emil Kjer

I have been creating my own transporter to reach other ports than the
common HTTP ports in XMLRPC calls through google Secure Data
Connector. It is working fine, but i need to send user authentication
with my requests like u...@password: . Do anyone know how to do that?

My transporter is:

import xmlrpclib
import logging
from google.appengine.api import urlfetch

class MyTransport(xmlrpclib.Transport):
#overriding this method is enougth
#to put the 'user_intranet' header
def request(self, host, handler, request_body, verbose=0):
result = None
url = 'http://%s%s' % (host, handler)
try:
response = urlfetch.fetch(url,
  payload=request_body,
  method=urlfetch.POST,
  headers={'use_intranet':'yes'},
follow_redirects=True)
except:
msg = 'Failed to fetch %s' % url
logging.error(msg)
raise xmlrpclib.ProtocolError(host + handler, 500, msg,
{})

if response.status_code != 200:
logging.error('%s returned status code %s' %
  (url, response.status_code))
raise xmlrpclib.ProtocolError(host + handler,
  response.status_code,
  ,
  response.headers)
else:
result = self.__parse_response(response.content)

return result

def send_user_agent(self, connection):
connection.putheader(User-Agent, self.user_agent)
connection.putheader(use_intranet, yes)

def __parse_response(self, response_body):
p, u = xmlrpclib.getparser(use_datetime=False)
p.feed(response_body)
return u.close()

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] 'ModelOptions' object has no attribute 'fields' error with GAE Helper

2009-05-12 Thread simon101

Hi guys

I have this strange error coming up on a model form.  I have packaged
Django 1.0.2 myself in my application directory with appengine
helper.  My code with a subset of fields looks like this:

from appengine_django.models import BaseModel
from google.appengine.ext import db
from django import forms
from django.forms import ModelForm
from django.forms import fields


class Contract(BaseModel):
TITLE_CHOICES = (
('M', 'Mr'),
('R', 'Mrs'),
('I', 'Miss'),
('S', 'Ms'),
)
forenames = db.StringProperty(verbose_name=forenames)
surname = db.StringProperty(verbose_name=surname)
title = db.StringProperty(verbose_name=title,choices=TITLE_CHOICES)

class ContractForm(ModelForm):
forenames = fields.CharField(max_length=50)
surname = fields.CharField(max_length=50)
title = fields.CharField(max_length=1)

class Meta:
model = Contract

After a lot of trial and error involving a lot of cutting and pasting
I narrowed it down to the class Meta declaration.  The problem seems
to arise when a model inherits BaseModel and which then has a
modelform created from it.

Can anyone offer any clues as to how to fix this little problem.

Thanks

Simon


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] HOW to create label and filters using api ...can you provide me the code for it ...

2009-05-12 Thread Nikhar

HOW to create label and filters using api ...can you provide me the
code for it ..

i want to create my label and filters as provided by gmail can you
provide the code for it 

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



[google-appengine] The next Google Earth?

2009-05-12 Thread Ihavenoname

  I don't know if this is the right place to put this posting, but
maybe somebody can help me out anyways. I was wondering how somebody
would go about submitting an idea to Google. I sent them an e-mail,
but they didn't respond.
  I am somewhat a beginner at software development, and would like
to learn the ins and outs of coding. But this idea I have is quite the
large scale project. Due to limited experience the only thing that I
would really be able to do at this point is make a powerpoint
presentation to show them what I would like to do, then maybe from
there, if they like it, they might want to start developing it.
  Who knows they may say that its a stupid idea, but it could also
be the next Google Earth any responces welcome... 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] Datastore design ideas

2009-05-12 Thread Hugh Phelps

I'm looking for some high level ideas on how to design a datastore for
a Facebook application.

In this app a user can collect widgets.
I'd like to be able to show a user lists of the widgets owned by their
friends - something like:

q = db.GqlQuery(SELECT * FROM Widget WHERE owner IN ( friendlist )
and other filter criteria )

The problem with this approach is that friendlist can only have 30
entries.

Since the Facebook TOS  don't allow you to store the friend list (for
more than 24 hours anyway), it seems like the options here are pretty
limited.

Some of the ideas I've been considering are:
1) divide into 30 friend chunks  make (potentially) lots of datastore
calls.
2) Combine #1 with some cron jobs that do the datastore calls 
populate memcahed with the results.
3) Use a clever design that allows you to formulate the query in such
a way that you don't hit 30 entry limit on in clauses

Any thoughts?

Thanks -
Hugh

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] Creating a filter using google api

2009-05-12 Thread Nikhar

Hi 


I wanna create a filter and add it to my application using an google
api can some help me with it 
i have reached up to some extent bt can't make it display ..




thanx

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] Application update errored

2009-05-12 Thread hongde.liu

Hi everyone

when I run the command appcfg.py update ../cpedialog in new
project
I always get the same information:
Scanning files on local disk.
Initiating update.
Could not guess mimetype for img/favicon.ico.  Using application/octet-
stream.
Cloning 83 static files.
Cloning 165 application files.
Cloned 100 files.
Deploying new version.
Checking if new version is ready to serve.
Will check again in 1 seconds.
Checking if new version is ready to serve.
Closing update: new version is ready to start serving.
Uploading index definitions.
Error 400: --- begin server output ---
Creating a composite index failed: This index:
entity_type: Archive
ancestor: false
Property {
  name: date
  direction: 2
}

is not necessary, since single-property indices are built in. Please
remove it f
rom your index file and upgrade to the latest version of the SDK, if
you haven't
 already.
--- end server output ---
Your app was updated, but there was an error updating your indexes.
Please retry
 later with appcfg.py update_indexes.

and I also run the command appcfg.py --force vacuum_indexes ../
cpedialog

it shows
Fetching index definitions diff.


I do not know what to do next

can any one help me?



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: iPhone cannot log in any more, system-wide issue, Google pls help

2009-05-12 Thread rkluin

I created an issue to report this problem, see Issue #1524.

The sign in page appears broken on the iPhone.  There is no
application name, it just says New Service.  My apps domain-specific
applications are working fine.

Robert Kluin

---
Ezox Systems, LLC
www.ezoxsystems.com


On May 11, 9:59 am, baytiger troels...@gmail.com wrote:
 Possibly we should add the issue in the tracker... There currently is
 one but it has to do with a wrongly entered password and not with the
 login actually not working even if provided with correct
 credidentials...

 Everybody I know who is on app engine is facing this problem.

 On May 11, 12:16 pm, Pankaj Vishwani pankajvishw...@gmail.com wrote:

  I have been getting this for past two days too.
  Can someone please look into it since we are launching our website
  (www.wallpipe.com) on Monday (7:00pm PST).

  Thanks!!

  On May 10, 1:54 pm, mckoss mck...@gmail.com wrote:

   This is also failing with the Google Android browser (G1 phone).
   Didn't every Google employee get this phone for Christmas?  Why has
   this fatalerrorin AppEngine persisted for over 36 hours?

   On May 9, 4:14 am, tijer troels...@gmail.com wrote:

To reproduce the problem go to the google-developed app
shell.appspot.com and try to login with aniphone.

It not having aniphonethen spoof the useragent to theiphone(like
with Safari 4's debug menu) and try logging in then. It fails with a
   500-errorpage.

What to do? This has been going on for two days now.

It really sux when you're developing aniPhoneapplication :)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] upload error!help me...

2009-05-12 Thread ajiao

i want to upload micolog(blog application) to gae.

but  show me

Error 400 ---begin sever output---
creating a composite index failed: This index:
entity_type:Archive
ancestor:false
Property{
name:date
direction:2
}
is not necessary ,since single-property indices are built in.Please
remove it from your index file 

when i upload . who know why?help me please..


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: iPhone cannot log in any more, system-wide issue, Google pls help

2009-05-12 Thread areutter

Me too!  Most of my users are dead in the water for this reason.

On May 9, 8:27 am, Matt Trinneer matt.trinn...@gmail.com wrote:
 Hello,

 I can confirm that I am also encountering this issue.

 Best, Matt

 On May 9, 7:14 am, tijer troels...@gmail.com wrote:



  To reproduce the problem go to the google-developed app
  shell.appspot.com and try to login with an iphone.

  It not having an iphone then spoof the useragent to the iphone (like
  with Safari 4's debug menu) and try logging in then. It fails with a
  500-error page.

  What to do? This has been going on for two days now.

  It really sux when you're developing an iPhone application :)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] What's the difference among key, id, and key name?

2009-05-12 Thread Oliver Zheng

I have been looking at the stored data of some apps, and noticed those
3 columns. Key appears to be a hash/string of some sort. ID is usually
empty. Key name looks like an actual readable identifier, but it's
usually just key_ + username or something that already exists.

What is the use for any of this, from the perspective of a (python)
app? Why are they created and what can or should I do with them?

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



[google-appengine] Datastore design ideas

2009-05-12 Thread Hugh

I'm looking for some high level ideas on how to design a datastore for
a Facebook application.

In this app a user can collect widgets.
I'd like to be able to show a user lists of the widgets owned by their
friends - something like:

q = db.GqlQuery(SELECT * FROM Widget WHERE owner IN ( friendlist )
and other filter criteria )

The problem with this approach is that friendlist can only have 30
entries.

Since the Facebook TOS  don't allow you to store the friend list (for
more than 24 hours anyway), it seems like the options here are pretty
limited.

Some of the ideas I've been considering are:
1) divide into 30 friend chunks  make (potentially) lots of datastore
calls.
2) Combine #1 with some cron jobs that do the datastore calls 
populate memcahed with the results.
3) Use a clever design that allows you to formulate the query in such
a way that you don't hit 30 entry limit on in clauses

Any thoughts?

Thanks -
Hugh

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: my app suddenly shows an error! yesterday, everything OK

2009-05-12 Thread Rodrigo Amaral

I'm getting a slightly different error. My application behaves like
the API had not been upgraded yet, but the Query object is called in
the new way. Please note that the only thing I do in this case is to
call the all() method of the model. Here's the traceback:

Traceback (most recent call last):
  File /base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py,
line 501, in __call__
handler.get(*groups)
  File /base/data/home/apps/f1gp/3.45031119336744/f1gp.py, line
116, in get
'pilotos' : Piloto.all() }))
  File /base/python_lib/versions/1/google/appengine/ext/webapp/template.py,
line 81, in render
return t.render(Context(template_dict))
  File /base/python_lib/versions/1/google/appengine/ext/webapp/template.py,
line 121, in wrap_render
return orig_render(context)
  File /base/python_lib/versions/1/django/template/__init__.py, line
168, in render
return self.nodelist.render(context)
  File /base/python_lib/versions/1/django/template/__init__.py, line
705, in render
bits.append(self.render_node(node, context))
  File /base/python_lib/versions/1/django/template/__init__.py, line
718, in render_node
return(node.render(context))
  File /base/python_lib/versions/1/django/template/loader_tags.py,
line 82, in render
return compiled_parent.render(context)
  File /base/python_lib/versions/1/django/template/__init__.py, line
168, in render
return self.nodelist.render(context)
  File /base/python_lib/versions/1/django/template/__init__.py, line
705, in render
bits.append(self.render_node(node, context))
  File /base/python_lib/versions/1/django/template/__init__.py, line
718, in render_node
return(node.render(context))
  File /base/python_lib/versions/1/django/template/loader_tags.py,
line 23, in render
result = self.nodelist.render(context)
  File /base/python_lib/versions/1/django/template/__init__.py, line
705, in render
bits.append(self.render_node(node, context))
  File /base/python_lib/versions/1/django/template/__init__.py, line
718, in render_node
return(node.render(context))
  File /base/python_lib/versions/1/django/template/loader_tags.py,
line 23, in render
result = self.nodelist.render(context)
  File /base/python_lib/versions/1/django/template/__init__.py, line
705, in render
bits.append(self.render_node(node, context))
  File /base/python_lib/versions/1/django/template/__init__.py, line
718, in render_node
return(node.render(context))
  File /base/python_lib/versions/1/django/template/defaulttags.py,
line 99, in render
values = list(values)
  File /base/python_lib/versions/1/google/appengine/ext/db/__init__.py,
line 1372, in __iter__
return self.run()
  File /base/python_lib/versions/1/google/appengine/ext/db/__init__.py,
line 1360, in run
iterator = self._get_query().Run()
  File /base/python_lib/versions/1/google/appengine/ext/db/__init__.py,
line 1591, in _get_query
keys_only=self._keys_only)
AttributeError: 'Query' object has no attribute '_keys_only'



Do you guys have any clue?

Thanks in advance!

Rodrigo Amaral


On Sat, May 9, 2009 at 9:08 PM, Kwame iweg...@gmail.com wrote:

 I just upgraded to version 1.2.2 and I'm getting a similar error:

 Exception exceptions.SystemError: 'error return without exception set'
 in generator object at 0x3033300 ignored
 ERROR    2009-05-10 00:04:36,585 __init__.py:385] __init__() got an
 unexpected keyword argument 'keys_only'
 Traceback (most recent call last):
 ...

  File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/ext/db/__init__.py, line 1381, in get
    results = self.fetch(1)
  File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/ext/db/__init__.py, line 1425, in fetch
    raw = self._get_query().Get(limit, offset)
  File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/ext/db/__init__.py, line 1590, in _get_query
    keys_only=self._keys_only)
 TypeError: __init__() got an unexpected keyword argument 'keys_only'
 ...


 I'm not using BookmarkQuery, so how do I fix this???

 Please help!

 On May 8, 11:04 am, Manu manuelar...@gmail.com wrote:
 Hi!

 Thanks a bunch!
 That fixed all :D:D:D

 Will that work after the upcoming release?
 Can I ask you (if you have time, tell me, if not, no problem)
 why was that failing? I'd really like to understand a little more.

 Also, I'd like to understand how all of this BookmarkQuery works...
 I'll have to read the source and learn a bit
 Thanks for your time!

 Manu

 On 8 mayo, 11:27, Nick Johnson (Google) nick.john...@google.com
 wrote:

  Hi Manu,

  For now you can get things working again by replacing lines 36 and 37
  of bookmark.py with this:
  ---
      def __init__(self, kind, filters={}, _app=None, 

[google-appengine] Data disappears.

2009-05-12 Thread Dennis123

Hi all,

I'm doing a new app (Java) and I've noticed that after a while (12
hours or so) data that I have stored disappears.  I'm using the
PersistenceManagerFactory and the PersistenceManager and I've got all
of my classes set up with the right annotations.

I'm on a free account.   Could that be the problem?

Thanks,
Dennis

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] Initialize datastore in dev server

2009-05-12 Thread Ben Lau

Hi ,

 Is it possible to initialize the datastore in the Development Web
Server by a CSV
(or any other format)? I am developing an application that depends on
a large set
of data, and it is trouble to insert it one by one in the admin console.

 I know that it could use appcfg.py to upload CSV to App Engine
,however, I would
prefer to test the application in local machine first.

 Thanks for any advise.

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



[google-appengine] Server Error when update application with appcfg

2009-05-12 Thread Squall

Suddenly my application versions stop working. I could not set the
default version at [Versions] page.

Screenshoot: 
http://img.photobucket.com/albums/v124/squallz/MWSnap2009-05-1014_15_12.jpg

I have deleted most of the versions but it still didn't work as of
now.
I cant change the default version (Server Error: A server error has
occurred.)
I cant delete the version 8 either. (Error: cannot delete default
version)

Below is what I get when try to update version 8

appcfg --noisy update mydir/

2009-05-10 14:11:49,203 DEBUG appengine_rpc.py:349 Got http error,
this is try #1
2009-05-10 14:11:49,203 DEBUG appengine_rpc.py:343 Sending HTTP
request:
POST /api/appversion/create?version=8app_id=smsjinx HTTP/1.1
Host: appengine.google.com
X-appcfg-api-version: 1
Content-type: application/octet-stream
User-agent: appcfg_py/1.2.2 win32/5.1.2600.2 Python/2.5.2.final.0

api_version: '1'
application: sm***x
handlers:
- static_files: static/\1
  upload: static/(.*)
  url: /static/(.*)
- script:  sm***x.py
  url: /.*
runtime: python
version: '8'

2009-05-10 14:11:49,921 DEBUG appengine_rpc.py:349 Got http error,
this is try #2
2009-05-10 14:11:49,921 DEBUG appengine_rpc.py:343 Sending HTTP
request:
POST /api/appversion/create?version=8app_id=smsjinx HTTP/1.1
Host: appengine.google.com
X-appcfg-api-version: 1
Content-type: application/octet-stream
User-agent: appcfg_py/1.2.2 win32/5.1.2600.2 Python/2.5.2.final.0

api_version: '1'
application: sm***x
handlers:
- static_files: static/\1
  upload: static/(.*)
  url: /static/(.*)
- script: sm***x.py
  url: /.*
runtime: python
version: '8'

2009-05-10 14:11:50,641 DEBUG appengine_rpc.py:349 Got http error,
this is try #3
2009-05-10 14:11:50,641 DEBUG appengine_rpc.py:343 Sending HTTP
request:
POST /api/appversion/create?version=8app_id=smsjinx HTTP/1.1
Host: appengine.google.com
X-appcfg-api-version: 1
Content-type: application/octet-stream
User-agent: appcfg_py/1.2.2 win32/5.1.2600.2 Python/2.5.2.final.0

api_version: '1'
application: sm***x
handlers:
- static_files: static/\1
  upload: static/(.*)
  url: /static/(.*)
- script:  sm***x.py
  url: /.*
runtime: python
version: '8'

2009-05-10 14:11:51,359 DEBUG appengine_rpc.py:349 Got http error,
this is try #4
2009-05-10 14:11:51,359 ERROR appcfg.py:1241 An unexpected error
occurred. Aborting.
Traceback (most recent call last):
  File F:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.py, line 1219, in DoUpload
missing_files = self.Begin()
  File F:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.py, line 1014, in Begin
version=self.version, payload=self.config.ToYAML())
  File F:\Program Files\Google\google_appengine\google\appengine\tools
\appengine_rpc.py, line 344, in Send
f = self.opener.open(req)
  File F:\Python25\lib\urllib2.py, line 387, in open
response = meth(req, response)
  File F:\Python25\lib\urllib2.py, line 498, in http_response
'http', request, response, code, msg, hdrs)
  File F:\Python25\lib\urllib2.py, line 425, in error
return self._call_chain(*args)
  File F:\Python25\lib\urllib2.py, line 360, in _call_chain
result = func(*args)
  File F:\Python25\lib\urllib2.py, line 506, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 500: Internal Server Error
Error 500: --- begin server output ---

Server Error (500)
A server error has occurred.
--- end server output ---

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] Strange ClassCast Exceptions in Google App Engine with Spring 3.0.0.M3

2009-05-12 Thread geronimo

I get a strange ClassCast Exception when  running my app in GAE. The
app runs fine locally in the SDK. The error seems to indicate the
presence of conflicting spring classes in the classpath.

Grateful for any suggestions as I'm currently stuck (I'm using Portlet
MVC for JSR286 so I can't revert to spring 2.5.*)

org.springframework.expression.spel.ast.BooleanLiteral cannot be cast
to org.springframework.expression.spel.ast.SpelNodeImpl

I posted the stacktrace here:

http://forum.springsource.org/showthread.php?t=71645

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] java: writing xml to http stream?

2009-05-12 Thread larham

XMLOutputFactory is disalllowed, so sample code such as at
http://www.java2s.com/Code/Java/JDK-6/UsingXMLStreamWritertocreateXMLfile.htm
doesn't work.

what do you use to write xml in java, other than hand-coded output?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] Datastore design ideas

2009-05-12 Thread Hugh

I'm looking for some high level ideas on how to design a datastore for
a Facebook application.

In this app a user can collect widgets.
I'd like to be able to show a user lists of the widgets owned by their
friends - something like:

q = db.GqlQuery(SELECT * FROM Widget WHERE owner IN ( friendlist )
and other filter criteria )

The problem with this approach is that friendlist can only have 30
entries.

Since the Facebook TOS  don't allow you to store the friend list (for
more than 24 hours anyway), it seems like the options here are pretty
limited.

Some of the ideas I've been considering are:
1) divide into 30 friend chunks  make (potentially) lots of datastore
calls.
2) Combine #1 with some cron jobs that do the datastore calls 
populate memcahed with the results.
3) Use a clever design that allows you to formulate the query in such
a way that you don't hit 30 entry limit on in clauses

Any thoughts?

Thanks -
Hugh

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] Using JavaMail

2009-05-12 Thread jhkuo

Following the example on the JavaMail page on developer's guide

http://code.google.com/appengine/docs/java/mail/usingjavamail.html

I am getting the following error when trying to send an email using
the exact sample code from the link above,

2009-05-11 11:14:55,112 [Runtime Network Thread] ERROR
errors.GrailsExceptionResolver  - java.lang.NoClassDefFoundError:
java.net.InetAddress is a restricted class. Please see the Google App
Engine developer's guide for more details.
org.codehaus.groovy.runtime.InvokerInvocationException:
java.lang.NoClassDefFoundError: java.net.InetAddress is a restricted
class. Please see the Google App Engine developer's guide for more
details.

Anyone got any ideas?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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 next Google Earth?

2009-05-12 Thread Andrius

can you tell more about your idea? :)

On May 9, 4:51 pm, Ihavenoname levi_lev...@hotmail.com wrote:
       I don't know if this is the right place to put this posting, but
 maybe somebody can help me out anyways. I was wondering how somebody
 would go about submitting an idea to Google. I sent them an e-mail,
 but they didn't respond.
       I am somewhat a beginner at software development, and would like
 to learn the ins and outs of coding. But this idea I have is quite the
 large scale project. Due to limited experience the only thing that I
 would really be able to do at this point is make a powerpoint
 presentation to show them what I would like to do, then maybe from
 there, if they like it, they might want to start developing it.
       Who knows they may say that its a stupid idea, but it could also
 be the next Google Earth any responces welcome... 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: Too many indexed properties for entity

2009-05-12 Thread Ben

Ok, thank you for the response.  I was just worried i was missing
something obvious.  My method of keeping only the title property as
searchable model, and the rest of the fields as normal DB models does
work fine, just didn't seem the most efficient way to do it.  but it
looks like that is the way to go.  thank you for the response!

On May 12, 3:35 am, baytiger troels...@gmail.com wrote:
 TextProperty and BlobProperty are ALREADY not indexed. So it doesn't
 make any difference.

 The problem with the searchable model is that it makes a few extra
 rows in your database that contains among other things a list of all
 the words that appear in your TextProperty. This means that it runs
 out of indexes and explodes and gives you the too many indexes error.

 There is no way around this. Its, unfortunately, a pitfall of the
 system. I think we can assume that Google is working on it. But nobody
 knows when it will be ready. It is likely that their database
 structure was not built for such large indexes.

 On May 12, 1:57 am, Ben bhym...@gmail.com wrote:

  I thought maybe the 1.2.2 update with the addition of indexed=false
  would solve this problem for me, but it doesn't seem to have any
  effect.  I can move the title into a separate property is i mentioned
  above and that works ok, but i feel like i must be missing some other
  obvious solution here.  my property is set like so:

  -
  class Item(search.SearchableModel):
title = db.StringProperty(required=True)
category = db.IntegerProperty()
product =  db.IntegerProperty()
priority = db.IntegerProperty()
description = db.TextProperty(indexed=False)
contributors = db.StringProperty()
  -

  any ideas?

  On May 9, 12:20 am, 风笑雪 kea...@gmail.com wrote:

   SDK 1.2.2 can use indexed=False parameter on property constructor now.

   2009/5/9 Ben bhym...@gmail.com

I didn't figure out what was causing the problem, but i solved it by
moving my Title  string prop to a separate searchable class with a
reference property, and leaving the description in a standard db
model.  might not work for everyone but solved my problem. thanks for
the help.

On May 8, 10:11 am, Devel63 danstic...@gmail.com wrote:
 You should be able to have a searchable TextProperty and a
 StringProperty.  I do.  If the advice below doesn't help, try posting
 your class definition here.

 On May 7, 10:27 am, ryan 
 ryanb+appeng...@google.comryanb%2bappeng...@google.com
wrote:

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



[google-appengine] Re: What's the difference among key, id, and key name?

2009-05-12 Thread Wooble



On May 12, 11:58 am, Oliver Zheng goo...@oliverzheng.com wrote:
 I have been looking at the stored data of some apps, and noticed those
 3 columns. Key appears to be a hash/string of some sort. ID is usually
 empty. Key name looks like an actual readable identifier, but it's
 usually just key_ + username or something that already exists.

 What is the use for any of this, from the perspective of a (python)
 app? Why are they created and what can or should I do with them?

http://code.google.com/appengine/docs/python/datastore/keysandentitygroups.html#Kinds_Names_and_IDs
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: Application update errored

2009-05-12 Thread Wooble

Have you tried removing the index it's telling you to remove from
index.yaml?

On May 11, 8:01 am, hongde.liu exceedr...@gmail.com wrote:
 Hi everyone

     when I run the command appcfg.py update ../cpedialog in new
 project
     I always get the same information:
 Scanning files on local disk.
 Initiating update.
 Could not guess mimetype for img/favicon.ico.  Using application/octet-
 stream.
 Cloning 83 static files.
 Cloning 165 application files.
 Cloned 100 files.
 Deploying new version.
 Checking if new version is ready to serve.
 Will check again in 1 seconds.
 Checking if new version is ready to serve.
 Closing update: new version is ready to start serving.
 Uploading index definitions.
 Error 400: --- begin server output ---
 Creating a composite index failed: This index:
 entity_type: Archive
 ancestor: false
 Property {
   name: date
   direction: 2

 }

 is not necessary, since single-property indices are built in. Please
 remove it f
 rom your index file and upgrade to the latest version of the SDK, if
 you haven't
  already.
 --- end server output ---
 Your app was updated, but there was an error updating your indexes.
 Please retry
  later with appcfg.py update_indexes.

 and I also run the command appcfg.py --force vacuum_indexes ../
 cpedialog

 it shows
 Fetching index definitions diff.

 
 I do not know what to do next

 can any one help me?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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 filter using google api

2009-05-12 Thread niklasr



On May 11, 6:13 am, Nikhar nikhar...@gmail.com wrote:
 Hi 

 I wanna create a filter and add it to my application using an google
 api can some help me with it 
 i have reached up to some extent bt can't make it display ..
easiest way is fork an existing project, then either filter according
to inequality or equality by your choice, implementation preferred is
either python or java though the most trivial app should be possible,
if it'd be up2me, with nothing but yaml, for minimalism. i learnt many
things from srv.appspot.com whose sources are public gae-services-
examples.googlecode.com
best wishes
NiklasR
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: Too many indexed properties for entity

2009-05-12 Thread Devel63

What you are doing SHOULD work.  I use SearchableModel with many lines
in a TextProperty, plus StringProperties, ListProperties, and others.
I have 20+ indexes explicitly defined for this core class, and it all
works quite well.

I don't see anything wrong in your class declaration below (other
than, perhaps, the setting indexed=false on the TextProperty ... I
haven't tried that).

Two possible ways to explore:

- Pardon for asking, but are you positive the error message is about
the Item class you defined?
- What indexes do you have defined in index.yaml for Item?


On May 12, 9:58 am, Ben bhym...@gmail.com wrote:
 Ok, thank you for the response.  I was just worried i was missing
 something obvious.  My method of keeping only the title property as
 searchable model, and the rest of the fields as normal DB models does
 work fine, just didn't seem the most efficient way to do it.  but it
 looks like that is the way to go.  thank you for the response!

 On May 12, 3:35 am, baytiger troels...@gmail.com wrote:

  TextProperty and BlobProperty are ALREADY not indexed. So it doesn't
  make any difference.

  The problem with the searchable model is that it makes a few extra
  rows in your database that contains among other things a list of all
  the words that appear in your TextProperty. This means that it runs
  out of indexes and explodes and gives you the too many indexes error.

  There is no way around this. Its, unfortunately, a pitfall of the
  system. I think we can assume that Google is working on it. But nobody
  knows when it will be ready. It is likely that their database
  structure was not built for such large indexes.

  On May 12, 1:57 am, Ben bhym...@gmail.com wrote:

   I thought maybe the 1.2.2 update with the addition of indexed=false
   would solve this problem for me, but it doesn't seem to have any
   effect.  I can move the title into a separate property is i mentioned
   above and that works ok, but i feel like i must be missing some other
   obvious solution here.  my property is set like so:

   -
   class Item(search.SearchableModel):
 title = db.StringProperty(required=True)
 category = db.IntegerProperty()
 product =  db.IntegerProperty()
 priority = db.IntegerProperty()
 description = db.TextProperty(indexed=False)
 contributors = db.StringProperty()
   -

   any ideas?

   On May 9, 12:20 am, 风笑雪 kea...@gmail.com wrote:

SDK 1.2.2 can use indexed=False parameter on property constructor now.

2009/5/9 Ben bhym...@gmail.com

 I didn't figure out what was causing the problem, but i solved it by
 moving my Title  string prop to a separate searchable class with a
 reference property, and leaving the description in a standard db
 model.  might not work for everyone but solved my problem. thanks for
 the help.

 On May 8, 10:11 am, Devel63 danstic...@gmail.com wrote:
  You should be able to have a searchable TextProperty and a
  StringProperty.  I do.  If the advice below doesn't help, try 
  posting
  your class definition here.

  On May 7, 10:27 am, ryan 
  ryanb+appeng...@google.comryanb%2bappeng...@google.com
 wrote:

  http://code.google.com/appengine/docs/python/datastore/queriesandinde.
 ..
   describes this error.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] Application Identifiers

2009-05-12 Thread Sri

Does GAE place any restrictions on app engine titles via some
automatic algorithms?  I mean it may just be squatters doing what they
do best, but does Google place any restrictions?  Like dictionary
words or plurals of existing games etc?

I am not looking for any rude or obscene words but when writing a game
a lot of legend related titles seem to be taken.  Surely there cant
be that many games out there on app engine right?

cheers
Sri
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: BadRequestError: User properties should not have obfuscated_gaiaid set.

2009-05-12 Thread Jason (Google)
Hi Kyle. What is your application's ID? Are you able to share a snippet of
code that reproduces this error consistently? Is that exception all you see
or is there a larger stack trace associated with it?

- Jason

On Mon, May 11, 2009 at 6:12 PM, Kyle Jensen kljen...@gmail.com wrote:



 I take that back -- still unresolved.
 


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



[google-appengine] Re: Error: Server Error after updating the application

2009-05-12 Thread Jason (Google)
The application loads on my end -- were you able to find and address the
cause of the error or do I need to hit a particular handler? If you see this
type of error in the future, you should first check the application's logs
(linked from your application's Dashboard) to see if there are any more
details that can help you pinpoint the cause.

- Jason

On Tue, May 12, 2009 at 1:46 AM, Racz rbmboo...@gmail.com wrote:


 hello there,

 i have the following problem the application runs perfectly on
 localhost, but i have successfully update it and try accessing it i
 receive this useless error log:

 Error: Server Error
 The server encountered an error and could not complete your request.

 If the problem persists, please report your problem and mention this
 error message and the query that caused it.

 i didnt found any answer yet even though i've searched through the
 issues and other group postings.

 my app.yaml looks like this:

 application: portalsmartmetering
 version: 1
 runtime: python
 api_version: 1

 handlers:
 - url: /static
  static_dir: static
 - url: /.*
  script: index.py

 my directory structure includes
 a static directory for css, javascript
 and other application directories like template, gdata and
 gchartwrapper

 portalsmartmetering.appspot.com

 any solution?

 thanks a lot
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: cgi.escape and HTML Rendering Inquiry

2009-05-12 Thread Jason (Google)
You might find this page helpful: http://wiki.python.org/moin/EscapingHtml

- Jason

On Tue, May 12, 2009 at 5:36 AM, Brandon bmacia...@gmail.com wrote:


 I'm curious as to what the 'standard' is for handling both single and
 double quotes when sanitizing data for HTML rendering.

 Obviously cgi.escape can handle one, but not both, if I'm not
 mistaken.  Is there a standardized approach for sanitizing in the
 manner that cgi.escape does, but also handles double and single quotes?
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: Mobile login broken?

2009-05-12 Thread Jason (Google)
Hi Andrew. I'm very sorry for the inconvenience. The issue was fixed
yesterday afternoon.

- Jason

On Fri, May 8, 2009 at 2:03 PM, areutter andrew.reut...@gmail.com wrote:


 Hi,

 If I am _not_ logged into my Google account, and I visit this URL from
 my browser:

http://iplay4e.appspot.com/characters/asPhoneSite

 I get redirected to Google login, then redirected back to the site
 just as I would hope.

 However, when I visit the same URL from my iPhone (or my users do!!!),
 the redirect back to my site's _ah/login script produces a 500 server
 error, and prints nothing whatsoever to my logs.

 This was working within the last 2 days, and I've changed no code
 whatsoever.

 TIA for the help,
 Andrew Reutter
 iplay4e.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] Second level app names

2009-05-12 Thread Sri

Is it possible to create secondary (or ternary really) levels in your
app?

Eg if you app is world.appspot.com, is it possible to have
hello.world.appspot.com and goodbye.world.appspot.com and have custom
configs for the two?

cheers
Sri
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: Download a doc file from HTML page

2009-05-12 Thread djidjadji

Template file must NOT be static, they must be uploaded like a normal py file

2009/5/12 风笑雪 kea...@gmail.com:
 Just make sure when you visit http://localhost:8080/sample.doc;, you can
 get a file download dialog.
 It seems you mistook template and static file, which are much difference
 from each other, in your main.py.
 I suggest you read all the document before your developing.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: GAE for math computing

2009-05-12 Thread Jason (Google)
Hi ros. App Engine applications receive HTTP requests, either directly or
via cron jobs that you create, and must respond to these requests within 30
seconds. The system was not designed to handle arbitrarily long,
computationally-intensive jobs.

For more information on App Engine, please see
http://code.google.com/appengine.

- Jason

On Sat, May 9, 2009 at 10:54 PM, ros climberlu...@gmail.com wrote:


 Is GAE ok for math computing like FFT or Wavelet?
 How much computing power is assigned to Web app using GAE?
 Any one want to talk about this?

 


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



[google-appengine] Re: repoze.bfg web framework runs on GAE

2009-05-12 Thread Jason (Google)
Thanks for the information, Carlos. We'll consider this for our next update,
which is several weeks out.

- Jason

On Tue, May 12, 2009 at 8:37 AM, cguardia carlos.delaguar...@gmail.comwrote:


 Hi,

 just read the blog entry about support for web2py and wanted to let
 you know that repoze.bfg is among the Python web frameworks that work
 well with GAE.

 http://bfg.repoze.org/

 BFG is a pay only for what you eat Python web framework. You can get
 started easily and learn new concepts as you go, and only if you need
 them. It's simple, well tested, well documented, and fast.

 Thanks,

 Carlos de la Guardia

 


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



[google-appengine] Re: What's the difference among key, id, and key name?

2009-05-12 Thread Jason (Google)
Hi Oliver. This page may help explain the difference between these fields:

http://code.google.com/appengine/docs/python/datastore/keysandentitygroups.html

When you create entities, you have the option of specifying a unique key
name that you can use to reference these entities directly (e.g. retrieving
entities without queries, thereby improving the performance of your
application). If you don't pass in a key name, a unique ID will be created
for you, which is contained in the ID field.

The key field is a Base64 encoding of the full key, including application ID
and path. This is what is stored when you use reference properties for
example.

- Jason

On Mon, May 11, 2009 at 4:52 PM, Oliver Zheng goo...@oliverzheng.comwrote:


 I have been looking at the stored data of some apps, and noticed those
 3 columns. Key appears to be a hash/string of some sort. ID is usually
 empty. Key name looks like an actual readable identifier, but it's
 usually just key_ + username or something that already exists.

 What is the use for any of this, from the perspective of a (python)
 app? Why are they created and what can or should I do with them?

 


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



[google-appengine] Re: Application update errored

2009-05-12 Thread Jason (Google)
From the sound of the error message, your application is being updated
properly aside from your index definitions. Are you seeing something
different? Did you remove the index definition in question from index.yaml
as instructed? Also, which version of the SDK are you using? Version 1.2.2
was released last Friday, and you should download the new SDK if you haven't
already.

http://code.google.com/p/googleappengine/downloads/list

Without the contents of your index.yaml file and more information, it's hard
to determine your problem. Can you reply with this and your application ID?
Also, any more details such as whether your application, indexes aside, is
being updated correctly will be helpful.

Thanks,
- Jason

On Mon, May 11, 2009 at 6:51 PM, hongde.liu exceedr...@gmail.com wrote:


 Hi everyone

   when I run the command appcfg.py update ../cpedialog in new
 project
   I always get the same information:
 Scanning files on local disk.
 Initiating update.
 Could not guess mimetype for img/favicon.ico.  Using application/
 octet-
 stream.
 Cloning 83 static files.
 Cloning 165 application files.
 Cloned 100 files.
 Deploying new version.
 Checking if new version is ready to serve.
 Will check again in 1 seconds.
 Checking if new version is ready to serve.
 Closing update: new version is ready to start serving.
 Uploading index definitions.
 Error 400: --- begin server output ---
 Creating a composite index failed: This index:
 entity_type: Archive
 ancestor: false
 Property {
  name: date
  direction: 2
 }

 is not necessary, since single-property indices are built in. Please
 remove it f
 rom your index file and upgrade to the latest version of the SDK, if
 you haven't
  already.
 --- end server output ---
 Your app was updated, but there was an error updating your indexes.
 Please retry
  later with appcfg.py update_indexes.

 and I also run the command appcfg.py --force vacuum_indexes ../
 cpedialog

 it shows
 Fetching index definitions diff.

 
 I do not know what to do next

 can any one help me?


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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 create label and filters using api ...can you provide me the code for it ...

2009-05-12 Thread Jason (Google)
I'm sorry, I don't follow. Are you trying to replicate labels and filters in
your App Engine application?

- Jason

On Thu, May 7, 2009 at 11:32 PM, Nikhar nikhar...@gmail.com wrote:


 HOW to create label and filters using api ...can you provide me the
 code for it ..

 i want to create my label and filters as provided by gmail can you
 provide the code for it 

 


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



[google-appengine] Re: upload error!help me...

2009-05-12 Thread Jason (Google)
Have you downloaded the newest SDK? If not, can you install it and let me
know if the issue goes away? If not, can you try deleting the index
definition that is referenced in the error message and see if that works?

You can download the newest SDK at
http://code.google.com/p/googleappengine/downloads/list.

- Jason

On Mon, May 11, 2009 at 10:05 PM, ajiao jiaojia...@gmail.com wrote:


 i want to upload micolog(blog application) to gae.

 but  show me

 Error 400 ---begin sever output---
 creating a composite index failed: This index:
 entity_type:Archive
 ancestor:false
 Property{
 name:date
 direction:2
 }
 is not necessary ,since single-property indices are built in.Please
 remove it from your index file 

 when i upload . who know why?help me please..


 


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



[google-appengine] Re: Server Error when update application with appcfg

2009-05-12 Thread Jason (Google)
If you're still seeing these errors when you attempt to change or update you
application's version, can you reply with your application ID so I can take
a closer look?

- Jason

On Sat, May 9, 2009 at 11:21 PM, Squall squ...@gmail.com wrote:


 Suddenly my application versions stop working. I could not set the
 default version at [Versions] page.

 Screenshoot:
 http://img.photobucket.com/albums/v124/squallz/MWSnap2009-05-1014_15_12.jpg

 I have deleted most of the versions but it still didn't work as of
 now.
 I cant change the default version (Server Error: A server error has
 occurred.)
 I cant delete the version 8 either. (Error: cannot delete default
 version)

 Below is what I get when try to update version 8

 appcfg --noisy update mydir/

 2009-05-10 14:11:49,203 DEBUG appengine_rpc.py:349 Got http error,
 this is try #1
 2009-05-10 14:11:49,203 DEBUG appengine_rpc.py:343 Sending HTTP
 request:
 POST /api/appversion/create?version=8app_id=smsjinx HTTP/1.1
 Host: appengine.google.com
 X-appcfg-api-version: 1
 Content-type: application/octet-stream
 User-agent: appcfg_py/1.2.2 win32/5.1.2600.2 Python/2.5.2.final.0

 api_version: '1'
 application: sm***x
 handlers:
 - static_files: static/\1
  upload: static/(.*)
  url: /static/(.*)
 - script:  sm***x.py
  url: /.*
 runtime: python
 version: '8'

 2009-05-10 14:11:49,921 DEBUG appengine_rpc.py:349 Got http error,
 this is try #2
 2009-05-10 14:11:49,921 DEBUG appengine_rpc.py:343 Sending HTTP
 request:
 POST /api/appversion/create?version=8app_id=smsjinx HTTP/1.1
 Host: appengine.google.com
 X-appcfg-api-version: 1
 Content-type: application/octet-stream
 User-agent: appcfg_py/1.2.2 win32/5.1.2600.2 Python/2.5.2.final.0

 api_version: '1'
 application: sm***x
 handlers:
 - static_files: static/\1
  upload: static/(.*)
  url: /static/(.*)
 - script: sm***x.py
  url: /.*
 runtime: python
 version: '8'

 2009-05-10 14:11:50,641 DEBUG appengine_rpc.py:349 Got http error,
 this is try #3
 2009-05-10 14:11:50,641 DEBUG appengine_rpc.py:343 Sending HTTP
 request:
 POST /api/appversion/create?version=8app_id=smsjinx HTTP/1.1
 Host: appengine.google.com
 X-appcfg-api-version: 1
 Content-type: application/octet-stream
 User-agent: appcfg_py/1.2.2 win32/5.1.2600.2 Python/2.5.2.final.0

 api_version: '1'
 application: sm***x
 handlers:
 - static_files: static/\1
  upload: static/(.*)
  url: /static/(.*)
 - script:  sm***x.py
  url: /.*
 runtime: python
 version: '8'

 2009-05-10 14:11:51,359 DEBUG appengine_rpc.py:349 Got http error,
 this is try #4
 2009-05-10 14:11:51,359 ERROR appcfg.py:1241 An unexpected error
 occurred. Aborting.
 Traceback (most recent call last):
  File F:\Program Files\Google\google_appengine\google\appengine\tools
 \appcfg.py, line 1219, in DoUpload
missing_files = self.Begin()
  File F:\Program Files\Google\google_appengine\google\appengine\tools
 \appcfg.py, line 1014, in Begin
version=self.version, payload=self.config.ToYAML())
  File F:\Program Files\Google\google_appengine\google\appengine\tools
 \appengine_rpc.py, line 344, in Send
f = self.opener.open(req)
  File F:\Python25\lib\urllib2.py, line 387, in open
response = meth(req, response)
  File F:\Python25\lib\urllib2.py, line 498, in http_response
'http', request, response, code, msg, hdrs)
  File F:\Python25\lib\urllib2.py, line 425, in error
return self._call_chain(*args)
  File F:\Python25\lib\urllib2.py, line 360, in _call_chain
result = func(*args)
  File F:\Python25\lib\urllib2.py, line 506, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
 HTTPError: HTTP Error 500: Internal Server Error
 Error 500: --- begin server output ---

 Server Error (500)
 A server error has occurred.
 --- end server output ---

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: Initialize datastore in dev server

2009-05-12 Thread Jason (Google)
This might be what you're looking for:

http://code.google.com/appengine/docs/python/tools/uploadingdata.html#Loading_Data_Into_the_Development_Server

- Jason

On Sun, May 10, 2009 at 11:08 AM, Ben Lau xben...@gmail.com wrote:


 Hi ,

  Is it possible to initialize the datastore in the Development Web
 Server by a CSV
 (or any other format)? I am developing an application that depends on
 a large set
 of data, and it is trouble to insert it one by one in the admin console.

  I know that it could use appcfg.py to upload CSV to App Engine
 ,however, I would
 prefer to test the application in local machine first.

  Thanks for any advise.

 


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



[google-appengine] Re: Can we add 3rd party Libraries to a Java App?

2009-05-12 Thread Jason (Google)
Yes, you can use third party libraries and frameworks with App Engine as
long as they don't use any classes not explicitly listed in the JRE class
white list:

http://code.google.com/appengine/docs/java/jrewhitelist.html

First, put your .jar files in war/WEB-INF/lib. Since you're using the Google
Plugin for Eclipse, you'll probably have to update your build path. One way
to do this is by refreshing your lib folder view (right-click on the lib
folder and then hit Refresh), then going to your project's properties
pane, clicking the Add JARs button, and selecting the .jar that you want
to use.

- Jason

On Sat, May 9, 2009 at 2:57 AM, West ram.w...@gmail.com wrote:


 Hi,

 I'm using the Google App Eclipse SDK. In my application i want to use
 some external libraries and jar functionalities. I'm able to add these
 Libraries to the Project but when the application is tested on G.
 Development Server i get a class not found error! Can someone please
 help??


 Regards
 West

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: Facing problem in downloading a file

2009-05-12 Thread Jason (Google)
You'll need to serve this Word document as a static file. Read the following
document and let me know if you have any more questions.

http://code.google.com/appengine/docs/python/config/appconfig.html#Static_File_Handlers

- Jason

On Tue, May 12, 2009 at 2:01 AM, s s sksk...@gmail.com wrote:


 Hi,
  I am very new to python.

 I am trying to get a word page download when I click on a the link.But I am
 unable to do so.

 Kindly help.What I need to do in YAML file and .py file.

 Thanks in Advance.


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: Data disappears.

2009-05-12 Thread Jason (Google)
Hi Dennis. No, if you exceed your storage quota, attempts to write new data
will fail but other data won't get overridden. Is it possible that you're
deleting these entities somehow? If your entities are persisted, they should
be persisted forever until you choose to remove it, either via the
PersistenceManager or your application's Admin Console.

Just so we're clear, are you referring to data stored in the local
development server or an application being served in production?

Also, how are you determining that the data is disappearing?

- Jason

On Tue, May 12, 2009 at 8:12 AM, Dennis123 dwhipst...@gmail.com wrote:


 Hi all,

 I'm doing a new app (Java) and I've noticed that after a while (12
 hours or so) data that I have stored disappears.  I'm using the
 PersistenceManagerFactory and the PersistenceManager and I've got all
 of my classes set up with the right annotations.

 I'm on a free account.   Could that be the problem?

 Thanks,
 Dennis

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: Java Permission error

2009-05-12 Thread Jason (Google)
Hi B. You should receive an invitation shortly.

- Jason

On Fri, May 8, 2009 at 1:43 PM, B bsam...@gmail.com wrote:


 So, I figured out that my error Invalid runtime Specified is due to
 Java permission.
 that being said, i keep seeing they are limiting the number of Java
 engine users to 1.
 I have not received an email to confirm permissions. Does anyone know
 if the 1 limit has been reached?


 Thanks!
 B

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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 all ListProperties implicitly indexed?

2009-05-12 Thread cocoaghost

Sorry, I cut  paste the wrong paragraph. Ben did the favor for me.
I am asking the maximal number of elements in one un-indexed list.

On May 11, 6:48 pm, Nick Johnson (Google) nick.john...@google.com
wrote:
 On Sat, May 9, 2009 at 2:24 AM, cocoaghost an0...@gmail.com wrote:

  With Python SDK 1.2.2, now it is possible:
  '''
  Datastore now supports Key-only queries, using either SELECT __key__
  or db.Query(Model, keys_only=True
  '''
  But what's the limit of list size?

 Can you clarify what you're asking, exactly? What list size?

 -Nick Johnson

  On Mar 23, 4:08 pm, an0 an0...@gmail.com wrote:
  If so, can I explicitly mark a ListProperty not to be indexed?

  I want the list's flexibility for some attributes, but don't want them
  to be indexed, (how) can I achieve this goal?

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



[google-appengine] Re: Datastore usage ~ 80 times more than expected (Add your vote to a datastore usage accounting feature)

2009-05-12 Thread WeatherPhilip

I just did a test on one of my apps. Nearly all my data is in a single
model.

I have 163189 instances, and the total size (calculated by reading
each instance and running to_xml() on it, and then adding up the
results) is 281,145,536 bytes. Most of my properties have
indexed=False. The dashboard reports using 890MB of data. I don't know
whether the dashboard calculation is wrong, whether I should be using
a different calculation to estimate my record size, or something else.
If my indexes really are consuming 600MB, then I would work on redoing
a chunk of the app to fix that problem.

However, the only course at the moment appears to be to delete old
data, and hope that the data consumption goes down. Not really very
satisfactory.

Philip

On May 12, 1:38 am, Andy Freeman ana...@earthlink.net wrote:
 Since index space can be significant, can we get some additional
 information?

 For example, does an indexed db.ListProperty(db.Key) with three
 elements take significantly more or less space than an indexed
 db.StringListProperty with three elements whose value is str() of the
 same keys?  (The pickle of keys seems to be significantly larger than
 the pickle of the equivalent strings.)

 On May 11, 5:04 pm, Jason (Google) apija...@google.com wrote:

  Hi Anthony. I'm very sorry for the late reply, and thank you for bearing
  with me. I've discussed this with thedatastoreteam and it's evident that
  the CSV file's size is not a great indicator of how much storage your
  entities will consume. On top of the size of the raw data, each entity has
  associated metadata, as you've already mentioned, but I'd bet that the
  indexes are consuming the greatest space. If you don't ever query on one or
  more of these 15 string properties, you may consider changing their property
  types to Text or declaring indexed=false in your model. If you can do this
  with one of your properties and re-build your indexes, I'd be interested in
  seeing how much your storageusagedecreases since you'll need one less
  index.

  (Note that single-property indexes are present but not listed in the Admin
  Console.)

  - Jason

  On Sat, May 9, 2009 at 4:34 PM, Kugutsumen kugutsu...@gmail.com wrote:

   Two weeks ago, I've sent my applications ID to both you and Nick and I
   haven't heard from you since then.

   Thanks- Hide quoted text -

  - Show quoted text -


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



[google-appengine] Re: Download a doc file from HTML page

2009-05-12 Thread Satyajit p
Thanks a lot its working now.

2009/5/13 djidjadji djidja...@gmail.com


 Template file must NOT be static, they must be uploaded like a normal py
 file

 2009/5/12 风笑雪 kea...@gmail.com:
  Just make sure when you visit http://localhost:8080/sample.doc;, you
 can
  get a file download dialog.
  It seems you mistook template and static file, which are much difference
  from each other, in your main.py.
  I suggest you read all the document before your developing.
 

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] Should I use app-engine-patch or App Engine Helper for Django

2009-05-12 Thread Khai

I've tried to read the articles on using django with appengine, but I
am confused.  Should I go with App Engine Helper for Django or
should I go with app-engine-patch?

Thank you so much!

Khai Doan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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
-~--~~~~--~~--~--~---