[google-appengine] Re: DownloadError: ApplicationError: 2 ?

2008-10-29 Thread Jean-Lou Dupont

@kang: Thanks.
I dropped a note on Freebase's help center... we'll see.

jld.

On Oct 28, 11:39 pm, kang [EMAIL PROTECTED] wrote:
 the remote server has blocked GAE



 On Wed, Oct 29, 2008 at 11:33 AM, Noah [EMAIL PROTECTED] wrote:

  no idea, unfortunately.  and now i have the same problem.  if anyone
  has any help, i'm all ears!!

  On Oct 9, 3:45 pm, Jean-Lou Dupont [EMAIL PROTECTED] wrote:
   What is the significance of DownloadError: ApplicationError: 2
   errors?

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

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

   jld.

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



[google-appengine] Re: Microsoft Azure

2008-10-29 Thread Andrew Badera
Yeah, somewhere between the beginning of that paragraph and end, I started
mistyping.

I do see where that IS the case, and that's kind of crazy ... but obviously
part of the MS push toward Vista/2008/7 ...




On Wed, Oct 29, 2008 at 12:57 AM, Andy Freeman [EMAIL PROTECTED] wrote:


 I didn't write XP only , I said lack of XP support.  The Azure SDK
 only supports Vista and Server 2008.  It does not support XP.

 On Oct 28, 8:06 am, Andrew Badera [EMAIL PROTECTED] wrote:
  What are you talking about, lack of XP support? The SDK is part of the
  Visual Studio/.NET platform, I've neither seen nor heard nor read
 anything
  about the SDKs being XP-only. That would make very little sense.
 
  Thanks-
  - Andy Badera
  - [EMAIL PROTECTED]
  - (518) 641-1280
 
 
 
  On Tue, Oct 28, 2008 at 10:57 AM, Andy Freeman [EMAIL PROTECTED]
 wrote:
 
   The lack of XP support for the SDK makes Azure a non-starter.  (I'm
   not going to set up/buy a vista system just to try it.)
 
   On Oct 27, 11:16 am, Andrew Badera [EMAIL PROTECTED] wrote:
So, what's the GAE take on the MS Azure announcement at PDC today?
 
Is it going to be competitive, or not even in the same ballpark?
 
Will it force the GAE team to spend extra effort on a .NET
 implementation
for GAE?
 
Thanks-
- Andy Badera
- [EMAIL PROTECTED]
- (518) 641-1280
 
-http://higherefficiency.net/
-http://changeroundup.com/
 
-http://flipbitsnotburgers.blogspot.com/
-http://andrew.badera.us/
 
- Google me:http://www.google.com/search?q=andrew+badera- Hide
 quoted text -
 
  - Show quoted text -
 


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



[google-appengine] Re: Microsoft Azure

2008-10-29 Thread Ross Ridge

Andrew Badera wrote:
 I do see where that IS the case, and that's kind of crazy ... but
 obviously part of the MS push toward Vista/2008/7 ...

I believe it stems from that fact SDK requires IIS 7.0, which is
included in Windows Vista (and Server 2008) and isn't supported in
Windows XP.  It makes sense as the Windows Azure servers will
presumably be using IIS 7.0.   Though, I suppose there's no reason why
IIS 7.0 couldn't have supported XP.

Ross Ridge

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



[google-appengine] Re: Microsoft Azure

2008-10-29 Thread Sylvain

I've seen .aspx on google server (don't know if it was a MS server or
just an extension)

Google Apps survey forms are made with .aspx

Sylvain



On 29 oct, 15:03, My3 [EMAIL PROTECTED] wrote:
 I think you never saw .aspx extension on some google product web
 pages.

 First google needs to change all of them, if ever it wishes that.

 On Oct 29, 9:12 am, max7 [EMAIL PROTECTED] wrote:

   Will it force the GAE team to spend extra effort on a .NET implementation
   for GAE?

  Google would not support MS .NET until MS is completely destroyed.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: DownloadError: ApplicationError: 2 ?

2008-10-29 Thread chenbaiping
Or the remote server is down.

 

 

  _  

发件人: google-appengine@googlegroups.com [mailto:[EMAIL PROTECTED] 代表 kang
发送时间: 2008年10月29日 12:40
收件人: google-appengine@googlegroups.com
主题: [google-appengine] Re: DownloadError: ApplicationError: 2 ?

 

the remote server has blocked GAE

On Wed, Oct 29, 2008 at 11:33 AM, Noah [EMAIL PROTECTED] wrote:


no idea, unfortunately.  and now i have the same problem.  if anyone
has any help, i'm all ears!!


On Oct 9, 3:45 pm, Jean-Lou Dupont [EMAIL PROTECTED] wrote:
 What is the significance of DownloadError: ApplicationError: 2
 errors?

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

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

 jld.




-- 
Stay hungry,Stay foolish.



 KILLÓʼþ°²È«Íø¹Ø ÒѾ­É¨ÃèÁËÕâ·âÓʼþ 



 KILL�ʼ���ȫ��� �Ѿ�ɨʼ� 


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



[google-appengine] localized log time

2008-10-29 Thread Brian Silberbauer

Hi

Is there any chance of getting localized time for the logs?

Brian

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



[google-appengine] Accessing members of objects in a template

2008-10-29 Thread Dooferlad

Hi,

I am a bit new to this python and app engine stuff, but the docs have
failed me. I am trying to do something quite simple - display a list
of items:

class PageInfo:
def __init__(self, url, hash, description):
self.url = url
self.hash = hash
self.desctiption = description

class NewUser(webapp.RequestHandler):
def get(self):
urls_list = ['http://news.bbc.co.uk/1/hi/also_in_the_news/
default.stm',
 'http://news.bbc.co.uk/1/hi/entertainment/
default.stm']

descriptions_list = ['Odd stories',
 'Entertainment']

# Pack up the data
data = []
for index in range( 0, len( urls_list ) ):
data.append( PageInfo( urls_list[index], hash,
descriptions_list[index] ) )

template_values = {'data': data}

path = os.path.join(os.path.dirname(__file__), 'foo.htm')
self.response.out.write(template.render(path,
template_values))


foo.htm:
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
html xmlns=http://www.w3.org/1999/xhtml;

body

{% for item in data %}
a href={{ data.url }}hello/a
{% endfor %}

/body
/html


I don't get any errors and I the template goes around the list twice
but data.url is not expanded to anything. If I replace the
template.render call with a loop through the data dictionary and just
spit out the URLs it works, but clearly that is not quite what I am
after!

Thanks for you help,

Dooferlad

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



[google-appengine] Re: Will there ever be a DictProperty in datastore?

2008-10-29 Thread Dr. Ernie

 I agree - in a couple of cases I have created dual lists in a model,
 rather than have the overhead of pickling. This has the bonus of
 allowing both key and value be searchable, but I'd love native
 dicts.

+1

I'm considering sticking JSON in a field to deal with this problem,
but native dicts would be much nicer. :-)

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



[google-appengine] A minor mistake in doc of Datastore API

2008-10-29 Thread an0

http://code.google.com/appengine/docs/datastore/transactions.html#Uses_For_Transactions

 Another common use for transactions is to update an entity with a named
 key, or create it if it doesn't yet exist:

 class SalesAccount(db.Model):
   address = db.PostalAddressProperty()
   phone_number = db.PhoneNumberProperty()

 def create_or_update(parent_obj, account_id, address, phone_number):
   obj = db.get(Key.from_path(SalesAccount, account_id, parent=parent_obj))
   if not obj:
 obj = SalesAccount(parent=parent_obj,
address=address,
phone_number=phone_number)
   else:
 obj.address = address
 obj.phone_number = phone_number

   obj.put()

 As before, a transaction is necessary to handle the case where another user
 is attempting to create or update an entity with the same account_id.
 Without a transaction, if the entity does not exist and two users attempt
 to create it, the second will fail. With a transaction, the second attempt
According to Paths and Key Uniqueness(http://code.google.com/appengine/
docs/datastore/keysandentitygroups.html#Paths_and_Key_Uniqueness),
just same kind and same parent do no mean same key, since the ids or
key names differ. Without the same key, obj2 should be put without
clash, even with same properties of obj1. Thus, the second should not
fail even without a transaction.
 will retry, notice that the entity now exists, and update the entity
 instead.



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



[google-appengine] Django + GAE

2008-10-29 Thread Daniel Larkin

Hi all,

I'd like to use Django on GAE for a small project. Ideally I'd like to
use version 1.0 of Django rather than 0.96, and I'm aware there are
various patches and helper scripts etc to make this possible. Yet,
these approaches seem less than straight-forward (perhaps I'm
incorrect there? I haven't actually tried them) and are such patches
going to break with newer versions of GAE. After initially deciding to
use Django 1.0, I'm now considering just using the built-in 0.96
version, would this be such a bad idea for someone moving from php-
land to an elegant python MVC design pattern based solution.

Any comments would be greatly appreciated!
thanks

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



[google-appengine] Google Apps Labs / Solutions Marketplace

2008-10-29 Thread Anthony

Hi I've just seen this:

http://googleenterprise.blogspot.com/2008/10/google-apps-goes-experimental-with.html

I'm building an app that can be installed on multiple domains, the
plan was to keep the App hosted in our account and manage data,
billing etc. internally by looking at the host the request came in on.

But with the solutions marketplace should we be doing it different, do
you have plans to allow billing  management?

-Will we need to do anything special to our apps to distribute them
with this and how will it work?

-Is the App actually installed in the clients account, or is it just
in our account running on their domain?

-Can they access the code?

-Is the data that's used with the service billed through our account,
and we have to manage billing of the clients?


Thanks,
Anthony


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



[google-appengine] Re: A minor mistake in doc of Datastore API

2008-10-29 Thread Dan Sanderson
Good catch!  You're right, the code sample does not match the description.
 The intent was for the new object to be created with a key name based on
account_id.  I'll fix it.
Thanks!
-- Dan

On Wed, Oct 29, 2008 at 2:17 AM, an0 [EMAIL PROTECTED] wrote:



 http://code.google.com/appengine/docs/datastore/transactions.html#Uses_For_Transactions

  Another common use for transactions is to update an entity with a named
  key, or create it if it doesn't yet exist:
 
  class SalesAccount(db.Model):
address = db.PostalAddressProperty()
phone_number = db.PhoneNumberProperty()
 
  def create_or_update(parent_obj, account_id, address, phone_number):
obj = db.get(Key.from_path(SalesAccount, account_id,
 parent=parent_obj))
if not obj:
  obj = SalesAccount(parent=parent_obj,
 address=address,
 phone_number=phone_number)
else:
  obj.address = address
  obj.phone_number = phone_number
 
obj.put()
 
  As before, a transaction is necessary to handle the case where another
 user
  is attempting to create or update an entity with the same account_id.
  Without a transaction, if the entity does not exist and two users
 attempt
  to create it, the second will fail. With a transaction, the second
 attempt
 According to Paths and Key Uniqueness(http://code.google.com/appengine/
 docs/datastore/keysandentitygroups.html#Paths_and_Key_Uniquenesshttp://code.google.com/appengine/docs/datastore/keysandentitygroups.html#Paths_and_Key_Uniqueness
 ),
 just same kind and same parent do no mean same key, since the ids or
 key names differ. Without the same key, obj2 should be put without
 clash, even with same properties of obj1. Thus, the second should not
 fail even without a transaction.
  will retry, notice that the entity now exists, and update the entity
  instead.



 


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



[google-appengine] Re: File download from datastore

2008-10-29 Thread Sergey Klevtsov

thanks, i realized my mistake, still I can't make it right. Now I'm
doing it like

self.response.headers['Content-Disposition'] = attachment;
filename*=utf-8 ' '  + fileinfo.filename.encode('utf-8')
(there are no spaces there, I just added them for better visibility of
single quotes)

trying to follow rfc2184, but obviously I'm missing something. Could
you please tell me what exactly are you putting into this header? If I
can make correct dowloads at least with firefox, that is great
already :)

On 28 окт, 05:24, yejun [EMAIL PROTECTED] wrote:
 Check section 4 of rfc 2184. It seems you need to specify the encoding
 type on the value it self, because Content-Disposition itself only
 support us ascii encoding.

 http://www.ietf.org/rfc/rfc2183http://www.ietf.org/rfc/rfc2184

 On Oct 27, 10:08 pm, Sergey Klevtsov [EMAIL PROTECTED] wrote:



  Well, I tested on 14 files of different types (doc txt zip gif jpg pdf
  xls). 7 of them, which contained only ascii-characters, were
  downloaded with Content-Disposition header. 7 other, which included
  non-ascii (cyrillic, specifically) letters - without the header. So
  this seems to be the problem (I encoded names with utf-8, have also
  tried utf-16, but things are even worse then). Well, it's not a very
  important issue, and it's not urgent for me either, but if this could
  be fixed easily, that would be great.

  p.s. files I tested on are stil there:http://s-klevzoff.appspot.com/files

  On 27 окт, 20:11, Marzia Niccolai [EMAIL PROTECTED] wrote:

   Hi,

   Can you give an example of the types of filenames with which this is
   occurring so I can try to replicate it?

   We should allow you to set the content-disposition header, so if it's not
   being included, it may be that we incorrectly think it's malformed in some
   way.

   -Marzia

   On Mon, Oct 27, 2008 at 8:50 AM, Sergey Klevtsov [EMAIL PROTECTED]wrote:

Ok, I sniffed the traffic between my browser and my app on gae, this
is what returned on file request:

HTTP/1.1 200 OK
Cache-Control: no-cache
Content-Type: application/octet-stream; charset=utf-8
Date: Mon, 27 Oct 2008 15:39:00 GMT
Server: Google Frontend
Content-Length: 2022

Google server deletes Content-Disposition header from response :( but
only for some files, for example .doc and .txt... GIF files are
dwonloaded correctly and the header is not deleted. Anyone knows what
can be done 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Google Apps Labs / Solutions Marketplace

2008-10-29 Thread Roberto Saccon

I am in a similar situation as Anthony and also would appreciate some
answers to those questions. Of course I understand that you cannot
give exact details, nor timeline and I know what is already in the
roadmap published.

regards
Roberto

On Oct 29, 2:38 pm, Anthony [EMAIL PROTECTED] wrote:
 Hi I've just seen this:

 http://googleenterprise.blogspot.com/2008/10/google-apps-goes-experim...

 I'm building an app that can be installed on multiple domains, the
 plan was to keep the App hosted in our account and manage data,
 billing etc. internally by looking at the host the request came in on.

 But with the solutions marketplace should we be doing it different, do
 you have plans to allow billing  management?

 -Will we need to do anything special to our apps to distribute them
 with this and how will it work?

 -Is the App actually installed in the clients account, or is it just
 in our account running on their domain?

 -Can they access the code?

 -Is the data that's used with the service billed through our account,
 and we have to manage billing of the clients?

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



[google-appengine] Re: Django + GAE

2008-10-29 Thread Dan Sanderson
I'd recommend Django 1.0 along with the Helper or something similar.  You
could use Django without the Helper if you accommodate some of the import
technicalities, the Helper just makes it easier.  This article discusses
using Django without the Helper (though I'm not sure if the article works
out of the box with Django 1.0):
http://code.google.com/appengine/articles/django.html

See also the article on using the Helper, and the article on using Django
1.0 via a feature called zipimport (which the Helper also supports):
  http://code.google.com/appengine/articles/appengine_helper_for_django.html
  http://code.google.com/appengine/articles/django10_zipimport.html

As far as compatibility goes, the runtime environment is versioned, with the
intent that changes to a given version of the runtime will remain backwards
compatible with apps that run with that version.  When a new version of the
runtime environment is released containing incompatible changes, your app
will continue to use the original version until you update your app.yaml
file.  I haven't tried appenginepatch, but a version of it that works with
v1 of the Python runtime ought to continue to do so even when there's a v2.

-- Dan

On Wed, Oct 29, 2008 at 9:24 AM, Daniel Larkin [EMAIL PROTECTED]wrote:


 Hi all,

 I'd like to use Django on GAE for a small project. Ideally I'd like to
 use version 1.0 of Django rather than 0.96, and I'm aware there are
 various patches and helper scripts etc to make this possible. Yet,
 these approaches seem less than straight-forward (perhaps I'm
 incorrect there? I haven't actually tried them) and are such patches
 going to break with newer versions of GAE. After initially deciding to
 use Django 1.0, I'm now considering just using the built-in 0.96
 version, would this be such a bad idea for someone moving from php-
 land to an elegant python MVC design pattern based solution.

 Any comments would be greatly appreciated!
 thanks

 


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



[google-appengine] Re: Data Viewer gives Server Error when I want to edit an object, after extending the Model Kind

2008-10-29 Thread Marzia Niccolai
Hi,

I don't think this is related to that issue.

It seems this may be related to schema caching in the admin console.  Is
this still an issue for you now?

If so, can you provide the app id and kind so that I can further
investigate?

-Marzia

On Wed, Oct 29, 2008 at 12:20 AM, djidjadji [EMAIL PROTECTED] wrote:


 I had to add an extra property to two of my Kinds, both got an extra
 db.IntegerProperty.
 I deleted all instances of the kinds with the Data Viewer.
 I uploaded the new source code, and started to create entities of the
 enhanced Kinds.

 Then later viewing the Kinds in the Datastore I found that for one
 Kind the extra property was not in the main table view for that Kind.
 Trying to edit these entities I got a server error for most of them,
 one was able to show the edit form with the extra IntegerProperty.
 I tried that: maybe if I create an entity of this Kind from within the
 Data Viewer it will reset its data model.
 After creation of the new entity I could open edit forms for all the
 instances of this Kind. And it showed the new IntegerProperty in the
 main table view.

 For the creation I had opened an other instance of the Data Viewer on
 a new tab, because I needed a few keys to copy.
 But then I noticed that both main table views where different, the
 objects had different key names. It looked as if the version giving
 the error showed the entities from before the delete all entities of
 this Kind. And there was only one entity that had the same Key, the
 one I could edit.

 The links on the left of the page, in the error version, of the Data
 Viewer contained the previous version number 1.43.
 After the create entity the links had the new version number 1.44.

 Is this related to issue 384?
 http://code.google.com/p/googleappengine/issues/detail?id=384

 


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



[google-appengine] Re: Microsoft Azure

2008-10-29 Thread Andrew Badera
Per Mike Amundsen:

Azure SDK has UI/virutal bits that require Server 2008 or Vista. however
APIs are all HTTP - no SDK required.

Thanks-
- Andy Badera
- [EMAIL PROTECTED]
- (518) 641-1280

- http://higherefficiency.net/
- http://changeroundup.com/

- http://flipbitsnotburgers.blogspot.com/
- http://andrew.badera.us/

- Google me: http://www.google.com/search?q=andrew+badera



On Wed, Oct 29, 2008 at 10:18 AM, Ross Ridge [EMAIL PROTECTED]wrote:


 Andrew Badera wrote:
  I do see where that IS the case, and that's kind of crazy ... but
  obviously part of the MS push toward Vista/2008/7 ...

 I believe it stems from that fact SDK requires IIS 7.0, which is
 included in Windows Vista (and Server 2008) and isn't supported in
 Windows XP.  It makes sense as the Windows Azure servers will
 presumably be using IIS 7.0.   Though, I suppose there's no reason why
 IIS 7.0 couldn't have supported XP.

Ross Ridge

 


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



[google-appengine] Re: Accessing members of objects in a template

2008-10-29 Thread sjudd

It needs to be item.url

On Oct 29, 12:02 pm, Dooferlad [EMAIL PROTECTED] wrote:
 Hi,

 I am a bit new to this python and app engine stuff, but the docs have
 failed me. I am trying to do something quite simple - display a list
 of items:

 class PageInfo:
     def __init__(self, url, hash, description):
         self.url = url
         self.hash = hash
         self.desctiption = description

 class NewUser(webapp.RequestHandler):
     def get(self):
         urls_list = ['http://news.bbc.co.uk/1/hi/also_in_the_news/
 default.stm',
                      'http://news.bbc.co.uk/1/hi/entertainment/
 default.stm']

         descriptions_list = ['Odd stories',
                              'Entertainment']

         # Pack up the data
         data = []
         for index in range( 0, len( urls_list ) ):
             data.append( PageInfo( urls_list[index], hash,
 descriptions_list[index] ) )

         template_values = {'data': data}

         path = os.path.join(os.path.dirname(__file__), 'foo.htm')
         self.response.out.write(template.render(path,
 template_values))

 foo.htm:
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html xmlns=http://www.w3.org/1999/xhtml;

 body

     {% for item in data %}
         a href={{ data.url }}hello/a
     {% endfor %}

 /body
 /html

 I don't get any errors and I the template goes around the list twice
 but data.url is not expanded to anything. If I replace the
 template.render call with a loop through the data dictionary and just
 spit out the URLs it works, but clearly that is not quite what I am
 after!

 Thanks for you help,

 Dooferlad

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



[google-appengine] Re: Django + GAE

2008-10-29 Thread Adam Fisk

I highly recommend app engine patch.  It's a much more active project
than app engine helper, and it works really well.

-Adam

On Oct 29, 10:04 am, Dan Sanderson [EMAIL PROTECTED] wrote:
 I'd recommend Django 1.0 along with the Helper or something similar.  You
 could use Django without the Helper if you accommodate some of the import
 technicalities, the Helper just makes it easier.  This article discusses
 using Django without the Helper (though I'm not sure if the article works
 out of the box with Django 
 1.0):http://code.google.com/appengine/articles/django.html

 See also the article on using the Helper, and the article on using Django
 1.0 via a feature called zipimport (which the Helper also supports):
  http://code.google.com/appengine/articles/appengine_helper_for_django...
  http://code.google.com/appengine/articles/django10_zipimport.html

 As far as compatibility goes, the runtime environment is versioned, with the
 intent that changes to a given version of the runtime will remain backwards
 compatible with apps that run with that version.  When a new version of the
 runtime environment is released containing incompatible changes, your app
 will continue to use the original version until you update your app.yaml
 file.  I haven't tried appenginepatch, but a version of it that works with
 v1 of the Python runtime ought to continue to do so even when there's a v2.

 -- Dan

 On Wed, Oct 29, 2008 at 9:24 AM, Daniel Larkin [EMAIL PROTECTED]wrote:



  Hi all,

  I'd like to use Django on GAE for a small project. Ideally I'd like to
  use version 1.0 of Django rather than 0.96, and I'm aware there are
  various patches and helper scripts etc to make this possible. Yet,
  these approaches seem less than straight-forward (perhaps I'm
  incorrect there? I haven't actually tried them) and are such patches
  going to break with newer versions of GAE. After initially deciding to
  use Django 1.0, I'm now considering just using the built-in 0.96
  version, would this be such a bad idea for someone moving from php-
  land to an elegant python MVC design pattern based solution.

  Any comments would be greatly appreciated!
  thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Tips on Optimizing Writes?

2008-10-29 Thread Jeff S

Hi Waldemar,

On Oct 28, 3:22 pm, Waldemar Kornewald [EMAIL PROTECTED] wrote:
 Hi Jeff,

 On 28 Okt., 21:11, Jeff S [EMAIL PROTECTED] wrote:



   Our queries and indices are rather simple. I should clarify:
   The particular problem I'm talking about is a view that currently has
   a response time of about 360ms and almost all of the time (280ms) is
   spent on datastore put()/fetch()/get(). IOW, runtime CPU usage is low.
   If you only read data then 360ms would probably consume less than
   1500mcycles, but since this view primarily writes to the datastore it
   consumes more than 10,000mcycles! That's really bothering me because I
   already get yellow warnings for views that consume more than
   1000mcycles and here I have red warnings. How am I supposed to
   implement a simple write operation if it eats mcycles so quickly? Can
   I just ignore the warning since only runtime cpu counts and we
   primarily consume datastore cpu in this case?

  From your description, it sounds like the datastore CPU usage need not
  concern you. If the CPU Usage listed on the admin console is at an
  acceptable level and the logs do not contain large amounts of high CPU
  request warnings, then your app should be okay.

 Well, that's the problem. The dashboard shows a warning sign (!)
 and very high Avg CPU usage for that URL, but the logs don't mention
 anything at all for that URL. So, which is more correct? The dashboard
 or the logs? :)

The two are currently measuring different things. The CPU warning in
the log is based on runtime CPU, while the displayed CPU warning in
the log is based on runtime and datastore CPU.

Thank you,

Jeff


 Normally, if I consume too much CPU I get an explicit warning
 *message* in the logs:

       10-25 06:48AM 43.525 / 200 802ms 2754mcycles ! 3kb
       [...snip...]
       This request used a high amount of CPU, and was roughly 2.6
 times over the average request CPU limit. High CPU requests have a
 small quota, and if you exceed this quota, your app will be
 temporarily disabled.

 As I said, that warning message doesn't appear. But if I print
 something to the logs I can see in the header of the log entry that
 the request consumes a huge amount of CPU (e.g., 15000mcycles !,
 please note the ! warning *sign*). Why do I *not* get a warning
 *message* although I can provoke a warning *sign* if (and only if) I
 print something to the logs?

 Also, why does the CPU quota usage go up and down so quickly? A few
 minutes ago I had 40gcycles used and after I visited that high-CPU URL
 four times it went up to 85gcycles and a few minutes later it went
 back to 0. I thought this was a *24h* moving window? Don't get me
 wrong. I don't mind quota usage going back to zero every few minutes
 (or seconds would be fine, too). :)

 Thanks!

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



[google-appengine] Re: Accessing members of objects in a template

2008-10-29 Thread Dooferlad

Thanks guys. My brain seemed to need a break... I am supposed to be on
holiday - now I know why!

On Oct 29, 4:58 pm, sjudd [EMAIL PROTECTED] wrote:
 It needs to be item.url

 On Oct 29, 12:02 pm, Dooferlad [EMAIL PROTECTED] wrote:

  Hi,

  I am a bit new to this python and app engine stuff, but the docs have
  failed me. I am trying to do something quite simple - display a list
  of items:

  class PageInfo:
      def __init__(self, url, hash, description):
          self.url = url
          self.hash = hash
          self.desctiption = description

  class NewUser(webapp.RequestHandler):
      def get(self):
          urls_list = ['http://news.bbc.co.uk/1/hi/also_in_the_news/
  default.stm',
                       'http://news.bbc.co.uk/1/hi/entertainment/
  default.stm']

          descriptions_list = ['Odd stories',
                               'Entertainment']

          # Pack up the data
          data = []
          for index in range( 0, len( urls_list ) ):
              data.append( PageInfo( urls_list[index], hash,
  descriptions_list[index] ) )

          template_values = {'data': data}

          path = os.path.join(os.path.dirname(__file__), 'foo.htm')
          self.response.out.write(template.render(path,
  template_values))

  foo.htm:
  !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
  http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
  html xmlns=http://www.w3.org/1999/xhtml;

  body

      {% for item in data %}
          a href={{ data.url }}hello/a
      {% endfor %}

  /body
  /html

  I don't get any errors and I the template goes around the list twice
  but data.url is not expanded to anything. If I replace the
  template.render call with a loop through the data dictionary and just
  spit out the URLs it works, but clearly that is not quite what I am
  after!

  Thanks for you help,

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



[google-appengine] Re: gdata calendar interface

2008-10-29 Thread Jeff S

Hi Mike,

I'm not sure what you mean by the two interfaces. Could you describe
these in more detail? As far as using the Google Calendar Data API
from within App Engine, I have some sample code if you are interested.

Happy coding,

Jeff

On Oct 28, 2:46 pm, Mike Metcalfe [EMAIL PROTECTED] wrote:
 Hi,

 I'm new to GAE and I've started building an accommodation booking app with
 gdata calendar. So far I have a BookingAgent, a Resource (a room) and a
 Booking. The Getting Started stuff commuicates with the calendar with simple
 methods but I would prefer to use interfaces. So I will make the Resource
 implement the calendar interface and the Booking that of the event. I was
 hoping someone has sample code with classes that implements one or both of
 these interfaces to help me on my way.

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



[google-appengine] Re: Django + GAE

2008-10-29 Thread Daniel Larkin

Yes I understand that, though that doesn't overly bother me. From the
opinion of others I think maybe its worth trying out the gae patch.

On Oct 29, 6:42 pm, Arash [EMAIL PROTECTED] wrote:
 Unfortunately you will not get Django's scaffolded admin interface in
 none of them

 On Oct 29, 1:52 pm, Adam Fisk [EMAIL PROTECTED] wrote:

  I highly recommend app engine patch.  It's a much more active project
  than app engine helper, and it works really well.

  -Adam

  On Oct 29, 10:04 am, Dan Sanderson [EMAIL PROTECTED] wrote:

   I'd recommend Django 1.0 along with the Helper or something similar.  You
   could use Django without the Helper if you accommodate some of the import
   technicalities, the Helper just makes it easier.  This article discusses
   using Django without the Helper (though I'm not sure if the article works
   out of the box with Django 
   1.0):http://code.google.com/appengine/articles/django.html

   See also the article on using the Helper, and the article on using Django
   1.0 via a feature called zipimport (which the Helper also supports):
    http://code.google.com/appengine/articles/appengine_helper_for_django...
    http://code.google.com/appengine/articles/django10_zipimport.html

   As far as compatibility goes, the runtime environment is versioned, with 
   the
   intent that changes to a given version of the runtime will remain 
   backwards
   compatible with apps that run with that version.  When a new version of 
   the
   runtime environment is released containing incompatible changes, your app
   will continue to use the original version until you update your app.yaml
   file.  I haven't tried appenginepatch, but a version of it that works with
   v1 of the Python runtime ought to continue to do so even when there's a 
   v2.

   -- Dan

   On Wed, Oct 29, 2008 at 9:24 AM, Daniel Larkin [EMAIL PROTECTED]wrote:

Hi all,

I'd like to use Django on GAE for a small project. Ideally I'd like to
use version 1.0 of Django rather than 0.96, and I'm aware there are
various patches and helper scripts etc to make this possible. Yet,
these approaches seem less than straight-forward (perhaps I'm
incorrect there? I haven't actually tried them) and are such patches
going to break with newer versions of GAE. After initially deciding to
use Django 1.0, I'm now considering just using the built-in 0.96
version, would this be such a bad idea for someone moving from php-
land to an elegant python MVC design pattern based solution.

Any comments would be greatly appreciated!
thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Django + GAE

2008-10-29 Thread yejun

All of them are monkey patchs, which means it may break when you do an
upgrade.
For simple project I think the buildin webapp frameworks should works
as well.

On Oct 29, 12:24 pm, Daniel Larkin [EMAIL PROTECTED] wrote:
 Hi all,

 I'd like to use Django on GAE for a small project. Ideally I'd like to
 use version 1.0 of Django rather than 0.96, and I'm aware there are
 various patches and helper scripts etc to make this possible. Yet,
 these approaches seem less than straight-forward (perhaps I'm
 incorrect there? I haven't actually tried them) and are such patches
 going to break with newer versions of GAE. After initially deciding to
 use Django 1.0, I'm now considering just using the built-in 0.96
 version, would this be such a bad idea for someone moving from php-
 land to an elegant python MVC design pattern based solution.

 Any comments would be greatly appreciated!
 thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: gdata calendar interface

2008-10-29 Thread Mike Metcalfe
Hi Jeff,

2008/10/29 Jeff S [EMAIL PROTECTED]

 I'm not sure what you mean by the two interfaces. Could you describe
 these in more detail?

The only python development I've done before is using Zope and Plone which
allow interface classes and the base classes have an 'implements'  method.
This allows you to have one class implement another class's behaviour
without subclassing it - allowing inheritance from more than one super
class. I was hoping to have my Resource class implement the Calendar's
behaviour. I suppose it should just use normal subclassing.

As far as using the Google Calendar Data API
 from within App Engine, I have some sample code if you are interested.

I'm interested!

Mike

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



[google-appengine] email templates

2008-10-29 Thread faemino

Hi to all.

I have read API and searching in this group about how to send emails
using a template without any solution or idea.
Are there some way to do that? maybe there aren't this feature in GAE
and I need do it with django way, it's possible?

Thanks for advance.
faemino

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



[google-appengine] Re: Having trouble using my own domain name with app engine

2008-10-29 Thread Chris McAvoy

I'm having this problem as well.  I have a CNAME record pointing at
the www subdomain of my domain, but can't add it as a subdomain for my
appengine app.

On Sep 13, 5:48 pm, dennisM [EMAIL PROTECTED] wrote:
 I finally went to mydomainregistrar, GoDaddy.com, and deleted 
 thewww.mydomain.com. cname record that was automaticaly created  for me.
 Then I added my App Engine app by adding it as a service on Google
 Apps with thedomainname aswww.mydomain.com.

 Perhaps the process doesn't support changing where thedomainname
 points. Would be nice if there were an error message saying as much.

 On Sep 10, 3:05 am, [EMAIL PROTECTED]

 [EMAIL PROTECTED] wrote:
  Jan and I have discussed this already, but for the record and anyone
  else who struggled with this (like me).

  It seems you cannot have two duplicate prefixes, even if the complete
  URLs are different.  Look on the Dashboard of your GoogleDomainfor
  an App in your that uses www as a prefix (like Google Web Pages) and
  rename it to something else.

  On Sep 3, 4:36 pm, Jan de Wild [EMAIL PROTECTED] wrote:

   thanks for your reaction.

   my problem is that i can t add the www subdomain too point to my app
   if i enter www in google apps it is not added to the list of
   subdomains , no warning noting.

   sorry for my bad english

   On 29 aug, 19:10, Tony Smith [EMAIL PROTECTED] wrote:

you don't need to remove yourdomainfrom google apps. Instead add the
appengine application to yourdomainvia the dashboad in GAE.
It will ask you to login with you admin for yourdomain. Then add the
url that you want to use for the application (app.yourdomain.com).

See this article for more 
info:http://www.google.com/support/a/bin/answer.py?hl=enanswer=91080
It worked perfectly for me.

On Aug 27, 4:55 pm, Polyakov,Oleg V [EMAIL PROTECTED] wrote:

 I followed getting started instructions for creating an application
 with app engine, and it works.  (http://spobby.appspot.com/)

 Now, I am trying to map this to thedomainname that I bought from
 Yahoo.

 I tried following instructions on the Google Apps for 
 Administratorshttp://www.google.com/support/a/bin/answer.py?answer=91077useful=0s...

 However, this doesn't work for me.

 1) I already registered with Google Apps for spobby.com account.

 2) When I go 
 tohttp://appengine.google.com/deployment/newdomain?app_id=spobby,
 and enter spobby.com, then click on Adddomain button, it will try
 to register me for

http://spobby.spobby.cominsteadofhttp://spobby.com

 Two possible resolutions that I have in mind:

 1) Remove myself from google apps for spobby.com account, not sure how
 to do it, and try repeating steps again.

 2) Somehow add CNAME and Name Servers in my yahoo control panel for
 google account.  I don't know values for cname and name servers.

 Please advice me what I am missing.

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



[google-appengine] HTTP header length limit

2008-10-29 Thread Will Norris

I recently downloaded the source code for the example openid-consumer
application[0].  In trying to get it working, I noticed that the
Location header was often not being sent in the response when
running the app on AppEngine, although it was fine running on
localhost.

Further investigation revealed that all headers are being removed from
the HTTP response if the total length of the header (name, colon,
space, and value) exceeds 498 characters.  Like I said, this is only
happening on the production AppEngine, not when running from
localhost.  Any thoughts on why this is and how to get around it?
Google proxy servers dropping headers or something?  This is probably
not a problem for most applications, but certainly can be when you
have long redirect URLs like in OpenID.

[0]: http://openid-consumer.appspot.com/

Thanks,
Will

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



[google-appengine] Re: Filter by first letter? LIKE Statements?

2008-10-29 Thread David Symonds

On Wed, Oct 29, 2008 at 3:38 PM, Kenchu [EMAIL PROTECTED] wrote:

 How do you filter things by for example their first letter? Take this
 model for example:

 class Song(db.Model):
  title = db.StringProperty()

 How would I get all the songs beginning with the letter A?

You can't (yet).

Add a property to your model called 'first_letter', and search on that.


Dave.

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



[google-appengine] Why Megabytes Stored did not decrease after I cleared my datastore?

2008-10-29 Thread heavyz

Hi, there,

I created a webapp on GAE, and for testing purpose, i inserted quite a
lot of data in the datastore.
Then after my test, i cleared my datastore and planned to create a
more serious webapp.
But, in the GAE admin console, i noticed that the Megabytes Stored
did not decrease.
I thought GAE might require some time to sync its data, but after 2
days...
It still did not decrease although i could see nothing in the Data
Viewer...
Would somebody tell me why?
Did i really delete my data? Will the Megabytes Stored keep
increasing until it reaches its quota?

Thanks  regards.

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



[google-appengine] Re: email templates

2008-10-29 Thread David Symonds

On Wed, Oct 29, 2008 at 1:46 PM, faemino [EMAIL PROTECTED] wrote:

 I have read API and searching in this group about how to send emails
 using a template without any solution or idea.
 Are there some way to do that? maybe there aren't this feature in GAE
 and I need do it with django way, it's possible?

You can render email templates exactly the same way as HTML templates.
You'll just be passing the result on to the email API instead of
self.response.out.write().


Dave.

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



[google-appengine] Re: HTTP header length limit

2008-10-29 Thread Ross Ridge

Will Norris wrote:
 Further investigation revealed that all headers are being removed from
 the HTTP response if the total length of the header (name, colon,
 space, and value) exceeds 498 characters.  Like I said, this is only
 happening on the production AppEngine, not when running from
 localhost.  Any thoughts on why this is and how to get around it?
 Google proxy servers dropping headers or something?

Yup.  Star the following issue and hope that it indeed gets fixed
soon:

http://code.google.com/p/googleappengine/issues/detail?id=407

Ross Ridge

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



[google-appengine] Re: Filter by first letter? LIKE Statements?

2008-10-29 Thread yejun

http://code.google.com/appengine/docs/datastore/queriesandindexes.html

Read the first tip section.

On Oct 29, 6:38 pm, Kenchu [EMAIL PROTECTED] wrote:
 How do you filter things by for example their first letter? Take this
 model for example:

 class Song(db.Model):
   title = db.StringProperty()

 How would I get all the songs beginning with the letter A?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] How to update script if I don't have code base

2008-10-29 Thread A.TNG

Hi,

Usually, we can use appcfg.py upload app to upload script files
and static files. But I meet following situation and I don't know how
to deal with it. I develop an app at home on my own laptop. Then, I go
to office. I find out something wrong with my script and I want to fix
it. But I don't have my code base at office PC.I only have AppEngine
local SDK.

Can I use appcfg.py to browse server script files, modify and update
in this situation?

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



[google-appengine] redirecting to myapp.appspot.com

2008-10-29 Thread manuelaraoz

Hi there!

I have this question, which I don't know if it's appropriate to ask
here.

suppose I have my google app engine application: myapp, which is
served in myapp.appspot.com
I also own a domain name, for example, www.manuelaraoz.com

I own the name, and only the name ( I don't have a hosted page in
there, or anythyng)

I want to obtain this:

when people enter www.manuelaraoz.com
they see the contents of myapp.appspot.com

but the address bar(form, I don't know the name) (the one which tells
you the page you are browsing)
remains www.manuelaraoz.com

Can I do this??

If hosting of some sort is needed, I'd appreciate help also...
If I didn't make myself clear, please tell me!

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



[google-appengine] Re: Why Megabytes Stored did not decrease after I cleared my datastore?

2008-10-29 Thread Alexander Kojevnikov

Star this issue:
http://code.google.com/p/googleappengine/issues/detail?id=452

On Oct 30, 11:48 am, heavyz [EMAIL PROTECTED] wrote:
 Hi, there,

 I created a webapp on GAE, and for testing purpose, i inserted quite a
 lot of data in the datastore.
 Then after my test, i cleared my datastore and planned to create a
 more serious webapp.
 But, in the GAE admin console, i noticed that the Megabytes Stored
 did not decrease.
 I thought GAE might require some time to sync its data, but after 2
 days...
 It still did not decrease although i could see nothing in the Data
 Viewer...
 Would somebody tell me why?
 Did i really delete my data? Will the Megabytes Stored keep
 increasing until it reaches its quota?

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



[google-appengine] Re: redirecting to myapp.appspot.com

2008-10-29 Thread Chenqun Hang
You can try to bind your domain name (www.XXX.com) to yyy.appspot.com by
using the Google Apps.

2008/10/30 manuelaraoz [EMAIL PROTECTED]


 Hi there!

 I have this question, which I don't know if it's appropriate to ask
 here.

 suppose I have my google app engine application: myapp, which is
 served in myapp.appspot.com
 I also own a domain name, for example, www.manuelaraoz.com

 I own the name, and only the name ( I don't have a hosted page in
 there, or anythyng)

 I want to obtain this:

 when people enter www.manuelaraoz.com
 they see the contents of myapp.appspot.com

 but the address bar(form, I don't know the name) (the one which tells
 you the page you are browsing)
 remains www.manuelaraoz.com

 Can I do this??

 If hosting of some sort is needed, I'd appreciate help also...
 If I didn't make myself clear, please tell me!

 Manuel
 


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



[google-appengine] Re: redirecting to myapp.appspot.com

2008-10-29 Thread Alexander Kojevnikov

You need to use Google Apps:

http://code.google.com/appengine/articles/domains.html
http://www.google.com/support/a/bin/answer.py?hl=en-inanswer=61057


On Oct 30, 2:16 pm, manuelaraoz [EMAIL PROTECTED] wrote:
 Hi there!

 I have this question, which I don't know if it's appropriate to ask
 here.

 suppose I have my google app engine application: myapp, which is
 served in myapp.appspot.com
 I also own a domain name, for example,www.manuelaraoz.com

 I own the name, and only the name ( I don't have a hosted page in
 there, or anythyng)

 I want to obtain this:

 when people enterwww.manuelaraoz.com
 they see the contents of myapp.appspot.com

 but the address bar(form, I don't know the name) (the one which tells
 you the page you are browsing)
 remainswww.manuelaraoz.com

 Can I do this??

 If hosting of some sort is needed, I'd appreciate help also...
 If I didn't make myself clear, please tell me!

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



[google-appengine] Re: Tips on Optimizing Writes?

2008-10-29 Thread Josh Heitzman

Jeff you said:

The CPU warning in the log is based on runtime CPU, while the
displayed CPU warning in the log is based on runtime and datastore
CPU.

but you wrote in the log is based on both times.  I'd assume one of
those is type, so could you clarify which if the mcycle consumption
value shown in the per request logs the runtime mcycles or the runtime
and datastore mcycles?

If the mcycle value shown in the per request logs is only the runtime
mcycles then issue 786 is not a duplicate of 814 as the values listed
in 786 were taken from the per request logs.

Thanks,

Josh Heitzman

On Oct 29, 11:27 am, Jeff S [EMAIL PROTECTED] wrote:
 Hi Waldemar,

 On Oct 28, 3:22 pm, Waldemar Kornewald [EMAIL PROTECTED] wrote:



  Hi Jeff,

  On 28 Okt., 21:11, Jeff S [EMAIL PROTECTED] wrote:

Our queries and indices are rather simple. I should clarify:
The particular problem I'm talking about is a view that currently has
a response time of about 360ms and almost all of the time (280ms) is
spent on datastore put()/fetch()/get(). IOW, runtime CPU usage is low.
If you only read data then 360ms would probably consume less than
1500mcycles, but since this view primarily writes to the datastore it
consumes more than 10,000mcycles! That's really bothering me because I
already get yellow warnings for views that consume more than
1000mcycles and here I have red warnings. How am I supposed to
implement a simple write operation if it eats mcycles so quickly? Can
I just ignore the warning since only runtime cpu counts and we
primarily consume datastore cpu in this case?

   From your description, it sounds like the datastore CPU usage need not
   concern you. If the CPU Usage listed on the admin console is at an
   acceptable level and the logs do not contain large amounts of high CPU
   request warnings, then your app should be okay.

  Well, that's the problem. The dashboard shows a warning sign (!)
  and very high Avg CPU usage for that URL, but the logs don't mention
  anything at all for that URL. So, which is more correct? The dashboard
  or the logs? :)

 The two are currently measuring different things. The CPU warning in
 the log is based on runtime CPU, while the displayed CPU warning in
 the log is based on runtime and datastore CPU.

 Thank you,

 Jeff



  Normally, if I consume too much CPU I get an explicit warning
  *message* in the logs:

10-25 06:48AM 43.525 / 200 802ms 2754mcycles ! 3kb
[...snip...]
This request used a high amount of CPU, and was roughly 2.6
  times over the average request CPU limit. High CPU requests have a
  small quota, and if you exceed this quota, your app will be
  temporarily disabled.

  As I said, that warning message doesn't appear. But if I print
  something to the logs I can see in the header of the log entry that
  the request consumes a huge amount of CPU (e.g., 15000mcycles !,
  please note the ! warning *sign*). Why do I *not* get a warning
  *message* although I can provoke a warning *sign* if (and only if) I
  print something to the logs?

  Also, why does the CPU quota usage go up and down so quickly? A few
  minutes ago I had 40gcycles used and after I visited that high-CPU URL
  four times it went up to 85gcycles and a few minutes later it went
  back to 0. I thought this was a *24h* moving window? Don't get me
  wrong. I don't mind quota usage going back to zero every few minutes
  (or seconds would be fine, too). :)

  Thanks!

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



[google-appengine] Help with first app engine project.

2008-10-29 Thread Grout58

import cgi

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

class Serial(db.Model):
game = db.StringProperty(required=True)
serial = db.StringProperty(required=True)

class MainPage(webapp.RequestHandler):
  def get(self):
self.response.out.write(
  html
body
  form action=/sign method=post
Game:
input type=text name=txtGame
br
Serial:
input type=text name=txtSerial
br
input type=submit name=btnSubmit value=Submit
  /form
/body
  /html)


class Insert(webapp.RequestHandler):
  def post(self):
serial = Serial()

serial.game = self.request.get('txtGame')
serial.serial = self.request.get('txtSerial')
serial.put()

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

def main():
  run_wsgi_app(application)

if __name__ == __main__:
  main()



When I run it i get this as output after i hit the submit button

Traceback (most recent call last):
  File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/webapp/__init__.py, line 501, in __call__
handler.post(*groups)
  File /Users/grout/Documents/projects/serials/main.py, line 32, in
post
serial = Serial()
  File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/db/__init__.py, line 555, in __init__
prop.__set__(self, value)
  File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/db/__init__.py, line 372, in __set__
value = self.validate(value)
  File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/db/__init__.py, line 1648, in validate
value = super(StringProperty, self).validate(value)
  File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/db/__init__.py, line 399, in validate
raise BadValueError('Property %s is required' % self.name)
BadValueError: Property game is required


Really not sure what else it wants for property for game.

Any help would be great, im really stumped.

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



[google-appengine] Policy on Adult Content

2008-10-29 Thread Pete

Hi,

I've looked through the TC, and I'm pretty sure the application I'd
like to run is allowable, but I was wondering if anyone could back
this up...

I'm writing a search engine that indexes adult content - specifically
pornographic images and videos. The site would link to other sites,
rather than host any adult content itself, although the site is, by
its nature, adult, and would contain (moderated) non-pornographic
previews.

As far as I can tell, this should be fine. Can anyone offer any more
clarity on this?

Thanks

P

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



[google-appengine] Re: How to update script if I don't have code base

2008-10-29 Thread David Symonds

On Wed, Oct 29, 2008 at 7:03 PM, A.TNG [EMAIL PROTECTED] wrote:

 Usually, we can use appcfg.py upload app to upload script files
 and static files. But I meet following situation and I don't know how
 to deal with it. I develop an app at home on my own laptop. Then, I go
 to office. I find out something wrong with my script and I want to fix
 it. But I don't have my code base at office PC.I only have AppEngine
 local SDK.

You should be using a source control system, especially if you are
going to work on code from more than one location. Try
code.google.com/hosting or similar.


Dave.

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



[google-appengine] Re: Help with first app engine project.

2008-10-29 Thread David Symonds

On Wed, Oct 29, 2008 at 4:59 PM, Grout58 [EMAIL PROTECTED] wrote:

 class Insert(webapp.RequestHandler):
  def post(self):
serial = Serial()

You've just attempted to create an invalid Serial entity. The
'required=...' validation happens at creation time, not put time. You
should do something like this:

serial = Serial(game=self.request.get('txtGame'),
serial=self.request.get('txtSerial'))
serial.put()


Dave.

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