[google-appengine] Re: Error creating a google app engine application for a google app domain

2009-05-21 Thread Anjali Jain
Yes i still see the error. Do I need to do something extra if i am using a
domain from outside and not via google. Pretty bad, I dont find any
documentation on net for this.

My domain name is : i-pathshala.8k.com taken from freeservers.com
Used this for getting premium edition trial version
Verified ownership by uploading an html file on i-pathshala.8k.com
Enabled two legged outh

Anything else required to be done?

When I am creating an an application on GAE for i-pathshala.8k.com, I am
restricting this application to this domain and I specify
i-pathshala.8k.com in the domain name textbox.

Is this correct ?

 On this link
http://www.google.com/support/a/bin/answer.py?hl=enanswer=91077

They have mentioned :

At this point, you may need to follow the presented instructions to make
changes with your domain registrar if you did not purchase your domain name
through Google.

But what instructions? Its not clear.
thanks
anjali

On Thu, May 21, 2009 at 12:16 AM, Jeff S (Google) j...@google.com wrote:


 Hi anjali,

 I was not able to reproduce this issue, are you still seeing the error
 when trying to create an app?

 Thank you,

 Jeff

 On May 20, 1:09 am, anjali jnanj...@gmail.com wrote:
  1. Get a google app premium edition trial version using an exisitng
  domain :
 
  I have an existing domain mydomain.com that I have taken from
  freeservers.com.
 
  I have used this domain to get a premium edition trail version of
  google apps. Got my google apps domain created.
 
  I have verified ownership of the domain by uploading an html file on
  the free domain
 
  I enabled Two legged Outh for the domain.
 
  Advanced tools - Authentication - Manage OAuth Access
  Two-legged OAuthEnable Two-legged OAuth ( Checked this)
 
  Now all my services are shown active in admin dashboard on google apps
  domain. This means verification is complete and successful.
 
  2. Add google app engine application for this domain
 
  Logged in onhttp://appengine.google.com/a/mydomain.com
  
  and clicked on Create application to create a google app engine
  application. I restricted the application to my domain by specifying
  mydomain.com in the google apps domain field
 
  When I click on Save button on create application UI, it gives me
  error :
 
  There were errors : Auth Domain with hperlink on Auth Domain and when
  i click on Auth Domain link
 
  it says 404 Not Found:
  Error: Not Found
  The requested URL /createapp was not found on this server.
 
  Not sure what is the problem. I have another google apps domain and I
  am able to create applications successfully over there. This domain is
  taken from google apps itself at the time of registration.
 
  Is there anything that I am missing out?  In case you get a google
  apps edition using an existing domain, do you need to do anything
  extra ?  Why I am not able to create an application??
 
  Please help me out in case anybody has any idea/links. Its bit urgent!!
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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 define unique constraint for properties?

2009-05-21 Thread David Symonds

2009/5/21 keakon kea...@gmail.com:

 Anyone knows how to define unique constraint in datastore?

You can't. As you alluded to, key_name is the usual substitute. It's
not scalable to enforce any kind of uniqueness constraint in a
distributed system unless your sharding function involves the aspect
you require to be unique, which is why key_name works.


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 
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 define unique constraint for properties?

2009-05-21 Thread keakon

Thank you, Dave.

So the only way is to define models instead of standard properties.

On May 21, 3:41 pm, David Symonds dsymo...@gmail.com wrote:
 2009/5/21 keakon kea...@gmail.com:

  Anyone knows how to define unique constraint in datastore?

 You can't. As you alluded to, key_name is the usual substitute. It's
 not scalable to enforce any kind of uniqueness constraint in a
 distributed system unless your sharding function involves the aspect
 you require to be unique, which is why key_name works.

 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Matching date/time GQL query - 500 severe error

2009-05-21 Thread Nick Johnson (Google)

No, TaskLogs is (in the code snippet you pasted above), a GqlQuery
object. To get the list of results, you need to call .fetch(limit), or
.count(limit) if you just want a result count.

-Nick Johnson

On Thu, May 21, 2009 at 2:57 AM, Neal nwalt...@sprynet.com wrote:

 Actually, on further testing, my count is still not working, always
 seems to return 0.
 TaskLogs is a list of TaskLog objects, right?


 Neal

 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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 define unique constraint for properties?

2009-05-21 Thread Chris Tan

You could add a property to your BlogName model which would link to
the canonical BlogName.  However, you'd also have to take this into
account when editing blog names, since there is always a trade off
between features and complexity.

Chris

On May 20, 8:59 pm, keakon kea...@gmail.com wrote:
 Anyone knows how to define unique constraint in datastore?

 See I have a Blog model, and it has these properties:
 name, content, title, keywords, description and so on.

 I need provide a URL to get this blog like this:
 http://domain/blog/name.html

 So user cannot have two blogs that share the same name, otherwise one
 of them cannot be gotten via URL.

 I also need provide a way to change blogs' names.

 It seems I need to define a BlogName model to store Blog's name as
 keyname, and start a transaction to store the 2 entities:

 Creating:
 1. Get BlogName entity by keyname, if not exsit, create one, else exit
 as failed.
 2. Create a Blog entity which parent and name is this BlogName entity.

 Editing:
 1. Get BlogName entity by keyname, if not exsit, create one, else exit
 as failed.
 2. Get the old Blog entity and old BlogName entity by keyname.
 3. Create a Blog entity which parent and name is this BlogName entity,
 and rest the same to the old one.
 4. Delete the old 2 ones.

 Well, it seems can work, but how terrible it is!

 And if I want a blog can have multiple names, so the two URLs can get
 the same blog:
 http://domain/blog/hello.html
 http://domain/blog/你好.html

 I don't think I can get them by keyname since they are in a list
 property now, so it can't be done in a transaction.
 And if I keep them in two Blog entities, I need change both of them
 when I edit one of its properties.
 So it seems I need define BlogContent model, BlogTitle model,
 BlogKeywords model, BlogDescription model for referece from Blog
 model.

 Any better idea for 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: Inifite redirect loop on login

2009-05-21 Thread Nick Johnson (Google)

Hi jannick,

Are you using a Google Apps account? If so, this is a known bug, which
you can resolve by logging in at
http://appengine.google.com/a/yourdomain (where 'yourdomain' is the
domain name part of your login email address).

-Nick Johnson

On Wed, May 20, 2009 at 8:32 PM, jannick jann...@ovja.dk wrote:

 Hi

 When I try to log-in to the GAE dashboard/management app I end up in
 an infinite loop of redirects. I've seen this behavior since last
 weekend, and from multiple computers, locations and browsers. Anyone
 else experiencing this issue, or is it possible that my account has
 somehow been setup wrong? (I havnt used the GAE account yet, aside
 from exploring the interface).

 

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

2009-05-21 Thread George Moschovitis

An Invoice (with VAT/co registration details) is *required* by Tax
Authorities in Europe so that the AppEngine cost can be registered as
an expense.

-g.





On May 15, 11:00 am, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi George,

 App Engine does not use the 'invoice' functionality, though - it bills
 you directly, so there's no need to send an invoice.

 -Nick Johnson

 On Fri, May 15, 2009 at 8:38 AM, George  Moschovitis

 george.moschovi...@gmail.com wrote:

  If you need further help, the people in the Google Checkout Merchants
  Forum are probably better placed to help 
  you:http://groups.google.com/group/google-checkout-merchants-forum?pli=1

  But Google Checkout provides the billing infrastructure.
  Google App Engine is the Merchant, that should send me the invoice...

  -g.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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 can I get entities which have empty listproperty by gql?

2009-05-21 Thread Nick Johnson (Google)

Hi mind4u,

It's not possible to filter for entities that don't have values for a
particular property. If you need to retrieve this entity, you will
need to find some other criteria, or iterate through all candidate
entities looking for it.

-Nick Johnson

On Wed, May 20, 2009 at 9:40 AM, mind4u min...@gmail.com wrote:

 Static listproperty is not stored in datastore if it does'nt have any
 value.
 So, I don't know how to get entities which have empty listproperty .

 How can I get t1 by gql from follow example?
 ---

 class TestList(db.Model):
acl = db.ListProperty(int)

 t = TestList(acl=[1,2,3])
 t.put()

 t1 = TestList(acl=[])
 t1.put()

 t2 = TestList(acl=[4,5])
 t2.put()



 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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 posting to URL: http://appengine.google.com/api/appversion/create?app_id: Invalid runtime specified.

2009-05-21 Thread Nick Johnson (Google)

Hi Amit,

You should get an invitation email shortly.

-Nick Johnson

On Tue, May 19, 2009 at 7:36 AM, amitverma6523 amitverma6...@gmail.com wrote:

 hello Jason,

 i had not yet received email indicating google app engine for java
 activation...
 will you please help me out on how to get it.
 as it is more than 2-3 days that i had signed up.

 On Apr 9, 11:39 pm, Jason apija...@google.com wrote:
 Have you received an email indicating your Google App Engine for Java
 account has been activated? In order to deploy your applications to
 production, your account must be activated first:

 http://code.google.com/appengine/kb/java.html#runtime

 - Jason

 On Apr 8, 1:22 pm, njaffer njaf...@gmail.com wrote:

  Getting following error when attempting to upload using eclipse plugin
  on a mac, using eclipse 3.3.x.

  Unable to upload:
  java.io.IOException: Error posting to 
  URL:http://appengine.google.com/api/appversion/create?app_id=xxxversion=1;
  400 Bad Request
  Invalid runtime specified.

  at com.google.appengine.tools.admin.ServerConnection.send
  (ServerConnection.java:114)
  at com.google.appengine.tools.admin.ServerConnection.post
  (ServerConnection.java:66)
  at com.google.appengine.tools.admin.AppVersionUpload.send
  (AppVersionUpload.java:345)
  at 
  com.google.appengine.tools.admin.AppVersionUpload.beginTransaction
  (AppVersionUpload.java:159)
  at com.google.appengine.tools.admin.AppVersionUpload.doUpload
  (AppVersionUpload.java:68)
  at com.google.appengine.tools.admin.AppAdminImpl.update
  (AppAdminImpl.java:41)
  at 
  com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy
  (AppEngineBridgeImpl.java:203)
  at
  com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace
  (DeployProjectJob.java:97)
  at org.eclipse.core.internal.resources.InternalWorkspaceJob.run
  (InternalWorkspaceJob.java:38)
  at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
  java.io.IOException: Error posting to 
  URL:http://appengine.google.com/api/appversion/create?app_id=version=1;
  400 Bad Request
  Invalid runtime specified.

 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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 define unique constraint for properties?

2009-05-21 Thread 风笑雪
Thank you Chris, I think it's good for creating, but not for editing.
For now, I'll try to use memcache.

Before my operation, I'll create a memcache to store current time and
editing entity's key, and timeout is about 1 minute.
If this key already existing in memcache, simply cancel this operation.
After the db operation, I'll check its value. If time has been changed, I'll
raise a rollback exception.

So I can only use one model to store all of a blog's data now.

Only hope I won't get two requests which set the same memcache in the same
time.
If incr() can be called for non-existing data, that would be more helpful.

2009/5/21 Chris Tan csy...@gmail.com


 You could add a property to your BlogName model which would link to
 the canonical BlogName.  However, you'd also have to take this into
 account when editing blog names, since there is always a trade off
 between features and complexity.

 Chris

 On May 20, 8:59 pm, keakon kea...@gmail.com wrote:
  Anyone knows how to define unique constraint in datastore?
 
  See I have a Blog model, and it has these properties:
  name, content, title, keywords, description and so on.
 
  I need provide a URL to get this blog like this:
  http://domain/blog/name.html
 
  So user cannot have two blogs that share the same name, otherwise one
  of them cannot be gotten via URL.
 
  I also need provide a way to change blogs' names.
 
  It seems I need to define a BlogName model to store Blog's name as
  keyname, and start a transaction to store the 2 entities:
 
  Creating:
  1. Get BlogName entity by keyname, if not exsit, create one, else exit
  as failed.
  2. Create a Blog entity which parent and name is this BlogName entity.
 
  Editing:
  1. Get BlogName entity by keyname, if not exsit, create one, else exit
  as failed.
  2. Get the old Blog entity and old BlogName entity by keyname.
  3. Create a Blog entity which parent and name is this BlogName entity,
  and rest the same to the old one.
  4. Delete the old 2 ones.
 
  Well, it seems can work, but how terrible it is!
 
  And if I want a blog can have multiple names, so the two URLs can get
  the same blog:
  http://domain/blog/hello.html
  http://domain/blog/你好.html
 
  I don't think I can get them by keyname since they are in a list
  property now, so it can't be done in a transaction.
  And if I keep them in two Blog entities, I need change both of them
  when I edit one of its properties.
  So it seems I need define BlogContent model, BlogTitle model,
  BlogKeywords model, BlogDescription model for referece from Blog
  model.
 
  Any better idea for 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: Can I use more than one application with Google Apps?

2009-05-21 Thread Florian

Thank you! The secret is that you have to add every single app to
your domain.

Then you can map subdomains and so on.

I didn't repeat this step because I thought I could add my App Engine
account only once.

On 20 Mai, 00:16, 狼外婆 heavyzh...@gmail.com wrote:
 I succeeded running 2 webapps on my two subdomains. All you need is to

 1) add a domain to your GAE-based app (on appengine's dashboard)
 2) add a CNAME record pointing to ghs.google.com

 You can add a domain to your webapp via:
 appengine dashboard / administration / versions / domain setup

 Hope that helps.
 Regards.

 ZHENG Zhonghttp://buggarden.zhengzhong.net/

 On 5月20日, 上午12时04分, Florian flor...@scheel.eu wrote:

  They do - it was just a try.

  Any idea to get more than 1 of 10 apps working on a Google Apps domain
  simultaneously?

  If you can use only one application another problem is that you are
  not able to specify one.

  The first one is chosen automatically.

  On May 19, 8:24 pm, Wooble geoffsp...@gmail.com wrote:

   Your CNAME records should be pointing to ghs.google.com.

   On May 19, 6:55 am, Florian flor...@scheel.eu wrote:

I use Google App Engine with my own domain (Google Apps) and I would
like to use different applications on different subdomains.

However I am able to set up the subdomains on my control panel but I
am not able to map them to different applications.

As required I created cname records pointing at ghs.google.com for all
subdomains but at the end all of them deliver the first application I
have deployed.

If I create cname records pointing at my subdomains at appspot.com no
application is delivered at all. I get the Google homepage 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 
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 can I get entities which have empty listproperty by gql?

2009-05-21 Thread 风笑雪
You can add a property like isEmpty.
If None is not a valid value in your list, you can store it as [None], and
after get it from db, you can check and delete this value.

2009/5/21 Nick Johnson (Google) nick.john...@google.com


 Hi mind4u,

 It's not possible to filter for entities that don't have values for a
 particular property. If you need to retrieve this entity, you will
 need to find some other criteria, or iterate through all candidate
 entities looking for it.

 -Nick Johnson

 On Wed, May 20, 2009 at 9:40 AM, mind4u min...@gmail.com wrote:
 
  Static listproperty is not stored in datastore if it does'nt have any
  value.
  So, I don't know how to get entities which have empty listproperty .
 
  How can I get t1 by gql from follow example?
 
 ---
 
  class TestList(db.Model):
 acl = db.ListProperty(int)
 
  t = TestList(acl=[1,2,3])
  t.put()
 
  t1 = TestList(acl=[])
  t1.put()
 
  t2 = TestList(acl=[4,5])
  t2.put()
 
 
 
 

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: Announcing BDBDatastore, a replacement datastore for App Engine

2009-05-21 Thread Rodrigo Moraes

I'm late on the topic, sorry. :-)

Just tried BDBDatastore yesterday. A good reason to use it is to have
a local/development datastore with better performance. The default one
provided with the SDK performs very poorly with large datasets.
BDBDatastore can do it much better, and so is very welcome. Neat
project!

-- rodrigo

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



[google-appengine] Bulk Upload/Download for List and Unicode properties

2009-05-21 Thread Alex Popescu

I've looked through the official documentation of bulk uploader/
exporter and I couldn't find any reference on how to use it when you
have list or unicode properties.

For unicode I assume that I'll have to encode each such value to utf8
before exporting and decode it back to unicode upon import.

For lists, things sound even more complex. I must confess that I
haven't tried it yet, but (I don't know why exactly) I believe that
specifying 'list' as a conversion type will not be enough.

Has anyone tried any of these scenarios and have any hints for me?

Many thanks in advance,

./alex
--
DailyCloud: http://the.dailycloud.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: Bulk Upload/Download for List and Unicode properties

2009-05-21 Thread Rodrigo Moraes

On Thu, May 21, 2009 at 9:11 AM, Alex Popescu wrote:
 For lists, things sound even more complex. I must confess that I
 haven't tried it yet, but (I don't know why exactly) I believe that
 specifying 'list' as a conversion type will not be enough.

 Has anyone tried any of these scenarios and have any hints for me?

You can create your own conversion function. You'd have to format the
list as a string, and the conversion function takes that string and
convert it to a list.

-- rodrigo

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



[google-appengine] Re: Bulk Upload/Download for List and Unicode properties

2009-05-21 Thread 风笑雪
I find a blog gives a solution:
http://www.cnblogs.com/step1/archive/2009/03/12/1409899.html

Search these code in
\google_appengine\google\appengine\tools\bulkloader.py:

for (name, converter), val in zip(self.__properties, values):

  if converter is bool and val.lower() in ('0', 'false', 'no'):

val = False

  properties[name] = converter(val)


Change it to:

  for (name, converter), val in zip(self.__properties, values):

  if converter is bool and val.lower() in ('0', 'false', 'no'):

  val = False

  if isinstance(val,str) and not isinstance(val, unicode):

  val=unicode(val,'utf-8')

  properties[name] = converter(val)


And the list properties should be wrapped by quote:

field1, field2, list value1, list value2, list value3


2009/5/21 Alex Popescu the.mindstorm.mailingl...@gmail.com


 I've looked through the official documentation of bulk uploader/
 exporter and I couldn't find any reference on how to use it when you
 have list or unicode properties.

 For unicode I assume that I'll have to encode each such value to utf8
 before exporting and decode it back to unicode upon import.

 For lists, things sound even more complex. I must confess that I
 haven't tried it yet, but (I don't know why exactly) I believe that
 specifying 'list' as a conversion type will not be enough.

 Has anyone tried any of these scenarios and have any hints for me?

 Many thanks in advance,

 ./alex
 --
 DailyCloud: http://the.dailycloud.net
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: Bulk Upload/Download for List and Unicode properties

2009-05-21 Thread Rodrigo Moraes

On Thu, May 21, 2009 at 9:29 AM, 风笑雪 kea...@gmail.com wrote:
 Change it to:

  for (name, converter), val in zip(self.__properties, values):

   if converter is bool and val.lower() in ('0', 'false', 'no'):

   val = False

   if isinstance(val,str) and not isinstance(val, unicode):

   val=unicode(val,'utf-8')

This change is not needed. Instead of specifying str as converter,
define a conversion function and use that instead:

def convert_str(val):
return unicode(val, 'utf-8')

-- rodrigo

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



[google-appengine] Re: Matching date/time GQL query - 500 severe error

2009-05-21 Thread Neal

I did do a fetch into TaskLogs: TaskLogs = query.fetch
(LIMIT,offset=0);
My GQL query object is called query, right?
In the template I do this: {%for TaskLog in TaskLogs%}.
So that implies to me that TaskLogs is a list, and if I can iterate
through it, I should be able to use the native Python Count method.
Can you not count the things which can be enumerated?

Thanks,
Neal

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: Matching date/time GQL query - 500 severe error

2009-05-21 Thread Nick Johnson (Google)

Sorry, I was looking at the wrong snippet. 'count' is not a valid
method on a Python list object. Instead, use len(TaskLogs), or
better just if TaskLogs, which evaluates to true if TaskLogs is
non-empty.

-Nick Johnson

On Thu, May 21, 2009 at 2:28 PM, Neal nwalt...@sprynet.com wrote:

 I did do a fetch into TaskLogs: TaskLogs = query.fetch
 (LIMIT,offset=0);
 My GQL query object is called query, right?
 In the template I do this: {%for TaskLog in TaskLogs%}.
 So that implies to me that TaskLogs is a list, and if I can iterate
 through it, I should be able to use the native Python Count method.
 Can you not count the things which can be enumerated?

 Thanks,
 Neal

 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: TypeError: has_key() takes exactly 1 argument (2 given)

2009-05-21 Thread Tim Hoffman

Mostly

Classes CamelCase, modules lowercase, functions, methods and lowercase
- is pretty much the norm
but not always ;-)

T

On May 21, 9:47 am, Neal nwalt...@sprynet.com wrote:
 Thank to all for explaining this mysterious message and showing me the
 correction.
 It now works great!  Another post gave me the clue on how to get the
 count working.

   def get(self):
      query = TaskLog.gql(WHERE resultFlag  0);  # get all rows
      LIMIT = 1000
      TaskLogs = query.fetch(LIMIT,offset=0);

      if TaskLogs.count(TaskLog)  0:
        self.renderPage('templates/list.html', {TaskLogs: TaskLogs})
      else:
         self.response.out.write(
             h3Error - no TaskLogs returned from query/h3
             )

 Do Python developers usually make classes upper case and objects lower
 case?

 Neal Walters
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] My app engine hosted site is down this morning

2009-05-21 Thread Jillian

anybody else seeing problems?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: TypeError: has_key() takes exactly 1 argument (2 given)

2009-05-21 Thread Tim Hoffman

HI

If you are interested here is the python style guide
http://www.python.org/dev/peps/pep-0008/

T

On May 21, 9:47 am, Neal nwalt...@sprynet.com wrote:
 Thank to all for explaining this mysterious message and showing me the
 correction.
 It now works great!  Another post gave me the clue on how to get the
 count working.

   def get(self):
      query = TaskLog.gql(WHERE resultFlag  0);  # get all rows
      LIMIT = 1000
      TaskLogs = query.fetch(LIMIT,offset=0);

      if TaskLogs.count(TaskLog)  0:
        self.renderPage('templates/list.html', {TaskLogs: TaskLogs})
      else:
         self.response.out.write(
             h3Error - no TaskLogs returned from query/h3
             )

 Do Python developers usually make classes upper case and objects lower
 case?

 Neal Walters
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: GoogleAppEngineLauncher - status icon yellow, should be green

2009-05-21 Thread Phil Rand

I have the same problem, with the helloworld app from the getting
started tutorial.

I noticed that the app works if I run dev_appserver helloworld from
the command line, though with warnings about not being able to read
the datastore file.  I saw somewhere else that the datastore warning
goes away as soon as you store something, but of course the helloworld
app doesn't store anything.

On May 19, 10:43 am, theillustratedlife toonscr...@nvbell.net wrote:
 I'm having problems with version 1.2.2 of the launcher for Mac.  When
 I hit run, the status icon is the yellow clock, and the Run/Stop/
 Browse/SDK Console buttons are greyed out.  My app is running and
 there's nothing interesting in the log.

 I have to quit the launcher to stop my app, and reopen it to start it
 again.

 Current log:
 *** Running dev_appserver with the following flags:
     --admin_console_server= --port=8080 --allow_skipped_files
 Python command: /usr/bin/python2.5

 Earlier, I was getting this message upon the first page load:
 Can't open zipfile /Library/Python/2.5/site-packages/setuptools-0.6c9-
 py2.5.egg

 I deleted that file and the message went away.  I still can't get the
 yellow clock to go away.

 iMac 2.8Ghz w Mac OS X 10.5.7, 2GB RAM

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] Is it possible to create a file on App Engine server ?

2009-05-21 Thread Dog Eata

Hi,

One of my servlet is suppose to build flat files (csv) so the user can
download it on his computer.
Each time I try to write in a file (i.e. try to open a PrintWriter) my
access is denied.
It doesn't even work on the development server.
Here is the exception :

java.security.AccessControlException: access denied
(java.io.FilePermission .\webapp\export\players.csv write)

So is it possible to create a file on App Engine server ?

I noticed that FileHandler for logging are not supported by GAE java
runtime environment.

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] + operator in GQL

2009-05-21 Thread james

Hi there,

I am porting django_authopenid right now and met an issue. There's no
arithmetic operator in GQL. Here's an example.

expired = Association.gql(WHERE issued + lifetime  %d % now)

Any suggestion for simple implementation.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] Access to deploy Java app?

2009-05-21 Thread J Keller

What's the status on getting access to deploy Java apps?

I've created one, but I get the 400 Bad Request - Invalid runtime
specified error, which I think means I don't have access yet.  I'm
using Eclipse to deploy.

Thanks!

-J

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: + operator in GQL

2009-05-21 Thread ryan

how about:

expired = Association.gql(WHERE issued   %d % (now - lifetime))

?

On May 21, 12:00 am, james james.sa.2...@gmail.com wrote:
 Hi there,

 I am porting django_authopenid right now and met an issue. There's no
 arithmetic operator in GQL. Here's an example.

 expired = Association.gql(WHERE issued + lifetime  %d % now)

 Any suggestion for simple implementation.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: GoogleAppEngineLauncher - status icon yellow, should be green

2009-05-21 Thread Brenton

The server seems to be working fine, but the Launcher UI isn't
properly communicating with it.  It doesn't realize that dev_appserver
has started.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: GoogleAppEngineLauncher - status icon yellow, should be green

2009-05-21 Thread Jeff S (Google)

Hi Brenton and Phil,

This sounds a bit like the following issue:

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

Could I see the contents of the launcher log? Also, what do you see if
you just try the command line dev_appserver?

Thank you,

Jeff

On May 21, 10:40 am, Brenton toonscr...@nvbell.net wrote:
 The server seems to be working fine, but the Launcher UI isn't
 properly communicating with it.  It doesn't realize that dev_appserver
 has started.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Is it possible to create a file on App Engine server ?

2009-05-21 Thread Bill

You can't write files to disk.  You *can* write files to the datastore
with the 1 MB constraint in mind.  (If your file  1 MB, you'd need to
chop it up.)  A service for storing and serving large files is on
the roadmap:

http://code.google.com/appengine/docs/roadmap.html

On May 20, 4:41 pm, Dog Eata romain.war...@gmail.com wrote:
 Hi,

 One of my servlet is suppose to build flat files (csv) so the user can
 download it on his computer.
 Each time I try to write in a file (i.e. try to open a PrintWriter) my
 access is denied.
 It doesn't even work on the development server.
 Here is the exception :

 java.security.AccessControlException: access denied
 (java.io.FilePermission .\webapp\export\players.csv write)

 So is it possible to create a file on App Engine server ?

 I noticed that FileHandler for logging are not supported by GAE java
 runtime environment.

 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: How to define unique constraint for properties?

2009-05-21 Thread Marte Soliza
2009/5/21 风笑雪 kea...@gmail.com

 Before my operation, I'll create a memcache to store current time and
 editing entity's key, and timeout is about 1 minute.
 If this key already existing in memcache, simply cancel this operation.
 After the db operation, I'll check its value. If time has been changed,
 I'll raise a rollback exception.


Note that you can not use memcache to reliably store transient information.
A cache will expire *within* the given timeout, so it will expire not later
than the timeout, but it can expire less than the timeout, depending on the
availability of the memory.

I think what you can do is to have Blog and BlogName models. The BlogName's
key name is the name of the blog itself, and it has a property that
references a Blog instance. Then, editing the names can now be done by
simply deleting, adding, and retaining BlogName instances. You can create a
single entity group (e.g. same parent) for all the BlogName instances so
adding and deleting BlogNames can be done within a transaction.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: GoogleAppEngineLauncher - status icon yellow, should be green

2009-05-21 Thread Brenton

Thanks Jeff.  I'm not sure that's my issue.  Everything works fine for
me, but the Launcher UI never updates to green (hence, many Launcher
buttons are disabled or broken).

I just posted a screenshot to that bug.

I also tried dev_appserver from the command line.  The Launcher stays
grey (not even yellow).

On May 21, 10:55 am, Jeff S (Google) j...@google.com wrote:
 Hi Brenton and Phil,

 This sounds a bit like the following issue:

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

 Could I see the contents of the launcher log? Also, what do you see if
 you just try the command line dev_appserver?

 Thank you,

 Jeff
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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-21 Thread Sylvain

Very strange. Now it works. I've changed nothing.
And I can set my group permissions to Public or Team and it still
works.

Good news.

Regards


On 16 mai, 09:08, Sylvain sylvain.viv...@gmail.com wrote:
 Hi Jason, thank you for your help

 Yes, currently my app can send a mail to a simple user.
 It's a cron and each day I receive a mail, so it works fine.

 Now if I swap the user by a group (set to Public, Any email adress) :
 it fails.

 You can check the permissions here, this screenshot here 
 :http://img206.imageshack.us/my.php?image=gappgroup.jpg
 or herehttp://code.google.com/p/googleappengine/issues/detail?id=1530
 (many screenshots)

 In this issue (1530), I have add many details.

 I hope it can help.

 Regards.

 On 16 mai, 01:07, Jason (Google) apija...@google.com wrote:

  I have a personalGoogleAppsdomain; I created a new group, set it to
  Public and made sure to check the Any email address box in the Who can
  send email to this group section. I verified that I my App Engine app could
  send mail both to individuals and this particular group in my domain.

  This leads me to believe that there is a different issue. Can you confirm
  whether you are able to send mail to an individual using the same code as
  you have set up for the group (just swapping out the 'to' address)? Can you
  also confirm whether the Any email address box is selected in yourGoogle
 Appsdashboard?

  Thanks,
  - Jason

  On Tue, May 12, 2009 at 2:16 AM, Sylvain sylvain.viv...@gmail.com wrote:

   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 theGoogleAppsteam ?

   Regards.

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

I've posted a question on theGoogleAppshelp 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 orGoogleApps, 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: using django with google app engine.

2009-05-21 Thread Waldemar Kornewald

Hi Aaron,

On May 20, 6:51 pm, Aaron shyhockey...@gmail.com wrote:
 Hi, i uploaded a app that uses django.

 here is where it is  dev.mobileconsultinginc.com/admin

 this admin area is django.

 I already asked on djangos group and also the IRC rooms.

 I was told that django admin won't work properly because that it uses
 djangos models not datastore database models.

 so they told me to ask here. They said someone here should have a work
 around this problem.

 I can't create a superuser meaning an admin account for the django
 admin area.

 Does anyone know a work around this?  or what I should do?

Take a look at app-engine-patch:
http://code.google.com/p/app-engine-patch/

It comes with support for the Django admin interface, but you have to
use Google's Model class instead of Django's Model.

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 
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 engine hosted site is down this morning

2009-05-21 Thread Brenton

i was getting 500s briefly yesterday

On May 21, 7:01 am, Jillian luying@gmail.com wrote:
 anybody else seeing problems?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: Activating GAE (Java) account issues

2009-05-21 Thread Jason (Google)
You should get your activation email soon.

- Jason

On Mon, May 18, 2009 at 11:26 AM, Bradley Barrows bradleyb1...@gmail.comwrote:


 Hi Jason,
 I was wondering how long it takes to be approved for the Java runtime
 on average. I have been waiting for about a week.
 Thanks,
 Brad

 On May 15, 11:37 am, Jason (Google) apija...@google.com wrote:
  You should receive an email shortly.
 
  - Jason
 
  On Thu, May 14, 2009 at 1:47 PM, David Levy
  david.l...@restonrobotics.orgwrote:
 
 
 
   Jason,
   I am waiting for the email response as well.  Has the quota limit been
   surpassed?
 
   thanks
   David

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
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-21 Thread Jason (Google)
Great to hear!

- Jason

On Thu, May 21, 2009 at 2:06 PM, Sylvain sylvain.viv...@gmail.com wrote:


 Very strange. Now it works. I've changed nothing.
 And I can set my group permissions to Public or Team and it still
 works.

 Good news.

 Regards


 On 16 mai, 09:08, Sylvain sylvain.viv...@gmail.com wrote:
  Hi Jason, thank you for your help
 
  Yes, currently my app can send a mail to a simple user.
  It's a cron and each day I receive a mail, so it works fine.
 
  Now if I swap the user by a group (set to Public, Any email adress) :
  it fails.
 
  You can check the permissions here, this screenshot here :
 http://img206.imageshack.us/my.php?image=gappgroup.jpg
  or herehttp://code.google.com/p/googleappengine/issues/detail?id=1530
  (many screenshots)
 
  In this issue (1530), I have add many details.
 
  I hope it can help.
 
  Regards.
 
  On 16 mai, 01:07, Jason (Google) apija...@google.com wrote:
 
   I have a personalGoogleAppsdomain; I created a new group, set it to
   Public and made sure to check the Any email address box in the Who
 can
   send email to this group section. I verified that I my App Engine app
 could
   send mail both to individuals and this particular group in my domain.
 
   This leads me to believe that there is a different issue. Can you
 confirm
   whether you are able to send mail to an individual using the same code
 as
   you have set up for the group (just swapping out the 'to' address)? Can
 you
   also confirm whether the Any email address box is selected in
 yourGoogle
  Appsdashboard?
 
   Thanks,
   - Jason
 
   On Tue, May 12, 2009 at 2:16 AM, Sylvain sylvain.viv...@gmail.com
 wrote:
 
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 theGoogleAppsteam ?
 
Regards.
 
On 7 mai, 16:11, Sylvain sylvain.viv...@gmail.com wrote:
 No,
 
 I've posted a question on theGoogleAppshelp 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 orGoogleApps, 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] Filter using OR ?

2009-05-21 Thread astrid.thuec...@googlemail.com

Hi,

I want to use the filtering like that:


# The Query interface prepares a query using instance methods.
q = Person.all()
q.filter(last_name =, Smith)
q.filter(last_name =, Doe)


Obviously I and an OR filter - Smith OR Doe. Is this possible without
using the SQL like syntax?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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 posting to URL: http://appengine.google.com/api/appversion/create?app_id: Invalid runtime specified.

2009-05-21 Thread myappcl...@gmail.com

Hi Nick,

Can you please help activate my account as well? I am seeing the same
error.

Thanks,
Raj

On May 21, 3:06 am, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi Amit,

 You should get an invitation email shortly.

 -Nick Johnson



 On Tue, May 19, 2009 at 7:36 AM, amitverma6523 amitverma6...@gmail.com 
 wrote:

  hello Jason,

  i had not yet received email indicating google app engine for java
  activation...
  will you please help me out on how to get it.
  as it is more than 2-3 days that i had signed up.

  On Apr 9, 11:39 pm, Jason apija...@google.com wrote:
  Have you received an email indicating your Google App Engine for Java
  account has been activated? In order to deploy your applications to
  production, your account must be activated first:

 http://code.google.com/appengine/kb/java.html#runtime

  - Jason

  On Apr 8, 1:22 pm, njaffer njaf...@gmail.com wrote:

   Getting following error when attempting to upload using eclipse plugin
   on a mac, using eclipse 3.3.x.

   Unable to upload:
   java.io.IOException: Error posting to 
   URL:http://appengine.google.com/api/appversion/create?app_id=xxxversion=1;
   400 Bad Request
   Invalid runtime specified.

           at com.google.appengine.tools.admin.ServerConnection.send
   (ServerConnection.java:114)
           at com.google.appengine.tools.admin.ServerConnection.post
   (ServerConnection.java:66)
           at com.google.appengine.tools.admin.AppVersionUpload.send
   (AppVersionUpload.java:345)
           at 
   com.google.appengine.tools.admin.AppVersionUpload.beginTransaction
   (AppVersionUpload.java:159)
           at com.google.appengine.tools.admin.AppVersionUpload.doUpload
   (AppVersionUpload.java:68)
           at com.google.appengine.tools.admin.AppAdminImpl.update
   (AppAdminImpl.java:41)
           at 
   com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy
   (AppEngineBridgeImpl.java:203)
           at
   com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace
   (DeployProjectJob.java:97)
           at org.eclipse.core.internal.resources.InternalWorkspaceJob.run
   (InternalWorkspaceJob.java:38)
           at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
   java.io.IOException: Error posting to 
   URL:http://appengine.google.com/api/appversion/create?app_id=version=1;
   400 Bad Request
   Invalid runtime specified.- 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: Defining HTTP 404 response with web.xml

2009-05-21 Thread Tim Wickstrom

Hi Jeff,

Thanks very much for your input. I was able to build a servlet that
redirects any request resulting in a 404 to a specific file.

Tim

On May 19, 5:24 pm, Jeff S (Google) j...@google.com wrote:
 Hi Tim,

 I haven't tried using an error-page in web.xml, but you could add a
 servlet mapping which matches all requests which fall through the
 above mappings (place it at the end of the web-app) and use it to
 write out your custom error page. I'm looking into the error-page
 element as well.

 Happy coding,

 Jeff

 On May 17, 8:57 am, Tim Wickstrom timwickst...@gmail.com wrote:

  I am using Java to run my google app, and I would like to override the
  default 404 error that is thrown.

  I am attempting to do this by defining the error page with web.xml

  web-app xmlns=http://java.sun.com/xml/ns/javaee; version=2.5
    ... stuff ...
    error-page
      error-code404/error-code
      location/test404.html/location
    /error-page
  /web-app

  The application doesn't seem to be reacting to the change I've made to
  the web.xml file. Has anyone else run into a similar issue? Is there
  another method I should be using to define the 404 response in java?

  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: Unable to upload app: Connection refused: connect

2009-05-21 Thread Jeff S (Google)

Most of the time that I've seen this error, there is an issue with the
proxy configuration. Are you able to ping appengine.google.com?

Thank you,

Jeff

On May 20, 4:22 am, marwat...@yahoo.com marwat...@yahoo.com wrote:
 im trying to deploy my application from eclipse and getting this error

 Unable to upload app: Connection refused: connect

 See the deployment console for more details
 Unable to upload app: Connection refused: connect

 before that i was getting Revieved IOException parsing error so i have
 tried to remove !doctype from the web.xml and now not getting any
 parsing error. but just have problem with above error.

 Is it due to the my internet connection as im using wireless USB
 broadband??

 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: java.io.IOException: Unknown trying to fetch URL via SDC

2009-05-21 Thread Jeff S (Google)

Hi Thorsten,

From the SDC tutorial, it looks like there are some debug settings
which you can enable which might help track down the issue. It sounds
like you might also want to try the health check gadget since it
sounds like requests are not making it through:

http://code.google.com/securedataconnector/docs/tutorials/appengine.html
http://code.google.com/securedataconnector/docs/debug.html#DebugQuery
http://code.google.com/securedataconnector/docs/debug.html#HealthCheckGadget

Please let me know how it goes, the secure data connector is pretty
new to me as well.

Cheers,

Jeff

On May 20, 3:39 am, Thor thors...@detroubulator.org wrote:
 Hi,

 I am trying to set up a proof-of-concept on using the Secure Data
 Connector to fetch data from behind a firewall. I have the SDC itself
 installed and configured correctly and it successfully connects to the
 Google App Engine.

 However, when I try to fetch a URL from my application using the
 following code snippet, it always throws an IOException with just the
 message Unknown - not very helpful :(

 -
 URLFetchService fetcher = URLFetchServiceFactory.getURLFetchService();

 URL dataURL = new URL(http://a_url_behind.the.firewall/...;);
 req.setHeader(new HTTPHeader(use_intranet,yes));

 HTTPResponse resp = fetcher.fetch(req);
 -

 Judging from the SDC log, the request is not getting through (I assume
 the log would show if it did).

 Has anyone else tried this? Any idea what to look for?

 Regards,
 Thorsten
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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 creating a google app engine application for a google app domain

2009-05-21 Thread Jeff S (Google)

Hello anjali,

It sounds like maybe you need to set up Google Apps for your domain.
The Google Apps cpanel is used to map your subdomain to your App
Engine app.

http://www.google.com/a/cpanel/domain/new
http://www.google.com/support/a/bin/static.py?page=setup_guide.html

Does this seem like it is the missing piece?

Thank you,

Jeff

On May 20, 11:32 pm, Anjali Jain jnanj...@gmail.com wrote:
 Yes i still see the error. Do I need to do something extra if i am using a
 domain from outside and not via google. Pretty bad, I dont find any
 documentation on net for this.

 My domain name is : i-pathshala.8k.com taken from freeservers.com
 Used this for getting premium edition trial version
 Verified ownership by uploading an html file on i-pathshala.8k.com
 Enabled two legged outh

 Anything else required to be done?

 When I am creating an an application on GAE for i-pathshala.8k.com, I am
 restricting this application to this domain and I specify
 i-pathshala.8k.com in the domain name textbox.

 Is this correct ?

  On this linkhttp://www.google.com/support/a/bin/answer.py?hl=enanswer=91077

 They have mentioned :

 At this point, you may need to follow the presented instructions to make
 changes with your domain registrar if you did not purchase your domain name
 through Google.

 But what instructions? Its not clear.
 thanks
 anjali

 On Thu, May 21, 2009 at 12:16 AM, Jeff S (Google) j...@google.com wrote:



  Hi anjali,

  I was not able to reproduce this issue, are you still seeing the error
  when trying to create an app?

  Thank you,

  Jeff

  On May 20, 1:09 am, anjali jnanj...@gmail.com wrote:
   1. Get a google app premium edition trial version using an exisitng
   domain :

   I have an existing domain mydomain.com that I have taken from
   freeservers.com.

   I have used this domain to get a premium edition trail version of
   google apps. Got my google apps domain created.

   I have verified ownership of the domain by uploading an html file on
   the free domain

   I enabled Two legged Outh for the domain.

   Advanced tools - Authentication - Manage OAuth Access
   Two-legged OAuth        Enable Two-legged OAuth ( Checked this)

   Now all my services are shown active in admin dashboard on google apps
   domain. This means verification is complete and successful.

   2. Add google app engine application for this domain

   Logged in onhttp://appengine.google.com/a/mydomain.com

   and clicked on Create application to create a google app engine
   application. I restricted the application to my domain by specifying
   mydomain.com in the google apps domain field

   When I click on Save button on create application UI, it gives me
   error :

   There were errors : Auth Domain with hperlink on Auth Domain and when
   i click on Auth Domain link

   it says 404 Not Found:
   Error: Not Found
   The requested URL /createapp was not found on this server.

   Not sure what is the problem. I have another google apps domain and I
   am able to create applications successfully over there. This domain is
   taken from google apps itself at the time of registration.

   Is there anything that I am missing out?  In case you get a google
   apps edition using an existing domain, do you need to do anything
   extra ?  Why I am not able to create an application??

   Please help me out in case anybody has any idea/links. Its bit urgent!!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: Contacting Google offline related to app engine

2009-05-21 Thread Jeff S (Google)

Hi Marcel,

If there is a gmail account with the same name as the app ID which
you'd like to reserve, then you need to use that gmail account to
reserve the app ID. App Engine shares its namespace with gmail and
attempts to prevent the app ID and gmail address from belonging to two
different and unrelated parties.

Thank you,

Jeff

On May 21, 2:02 pm, Marcel Overdijk marceloverd...@gmail.com wrote:
 Hi Jeff,

 I recently bought a domain name using Google and wanted the hook ip
 against the same *.appspot identifier name.
 But the identifier was already taken. When I browsed to the url I
 didn't get any result back.

 Now before trying to register the app I also created a gmail account
 with the same name. Maybe this was the problem. I already dumped the
 gmail account but I get the same error that the identifier is not
 available.

 The identifier I like to use is footdex
 Maybe Google can tell if the identifier name is taken by somebody
 else?

 Cheers,
 Marcel

 On May 20, 12:55 am, Jeff S (Google) j...@google.com wrote:

  Hi Marcel,

  Is this a question you would feel comfortable asking in the discussion
  group? In most cases the discussion groups are more helpful as others
  can benefit from your question and chime in with their own experience
  and expertise.

  Thank you,

  Jeff

  On May 18, 10:05 am, Marcel Overdijk marceloverd...@gmail.com wrote:

   Is there a way contacting Google offline about app engine.
   My question is related to application identifiers.- 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] Issues filtering a query on a date (in order to paginate)

2009-05-21 Thread Frank

Hi,

I have this simple code below to paginate on a list of items that
include a datetime property named 'dCreated' ( dCreated =
db.DateTimeProperty(auto_now_add=True)  )


offset = self.request.get('offset')
offsetNext = None

query = Subscription.all().order(-dCreated)

if offset != :
   query.filter(dCreated =, offset)

aItems = query.fetch(limit=21)

if len(aItems) == 21:
   offsetNext  = aItems[-1].dCreated
   aItems   = aItems[:20]


...then I put offsetNext and aItems in the template and render it.
the next page is called with offsetNext as offset in the url (...?
offset={{offsetNext}} )

the listing works and the items are sorted properly, but it never
change page, the filter on dCreated clearly doesn't have any effect.

any idea what I'm doing wrong?

many thanks for the help
Frank



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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 define unique constraint for properties?

2009-05-21 Thread keakon

Thank you, Marte. You gave me a nice way to do it, I never thought to
have such a big entity group.

But I think it's no matter I lose the memcache data.
If it's no longer existing in memcache or has been changed, I can
rollback this transaction.

I'll consider more, do some testing and decide a better way.

On May 22, 3:24 am, Marte Soliza myrtac...@gmail.com wrote:
 2009/5/21 风笑雪 kea...@gmail.com

  Before my operation, I'll create a memcache to store current time and
  editing entity's key, and timeout is about 1 minute.
  If this key already existing in memcache, simply cancel this operation.
  After the db operation, I'll check its value. If time has been changed,
  I'll raise a rollback exception.

 Note that you can not use memcache to reliably store transient information.
 A cache will expire *within* the given timeout, so it will expire not later
 than the timeout, but it can expire less than the timeout, depending on the
 availability of the memory.

 I think what you can do is to have Blog and BlogName models. The BlogName's
 key name is the name of the blog itself, and it has a property that
 references a Blog instance. Then, editing the names can now be done by
 simply deleting, adding, and retaining BlogName instances. You can create a
 single entity group (e.g. same parent) for all the BlogName instances so
 adding and deleting BlogNames can be done within a transaction.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] Need more index quota

2009-05-21 Thread Tom Wu
Hi,

Currently the index quota is 100.

Could app engine give me more index quota ?



Best Regards
Tom Wu

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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 timeout: operation took too long.

2009-05-21 Thread Amir Michail

Hello,

Anyone else getting this exception?

Amir
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: Filter using OR ?

2009-05-21 Thread Marte Soliza
On Fri, May 22, 2009 at 7:01 AM, astrid.thuec...@googlemail.com 
astrid.thuec...@googlemail.com wrote:


 Hi,

 I want to use the filtering like that:


 # The Query interface prepares a query using instance methods.
 q = Person.all()
 q.filter(last_name =, Smith)
 q.filter(last_name =, Doe)


 Obviously I and an OR filter - Smith OR Doe. Is this possible without
 using the SQL like syntax?


You can use the IN
filterhttp://code.google.com/appengine/docs/python/datastore/queryclass.html#Query_filterfor
this. Note that this, like '!=', is not natively supported by
datastore,
it's just improvised in the client lib.

A generic OR does not exist in datastore, but usually you can model your
classes in such a way that you don't need it.

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



[google-appengine] Re: Error creating a google app engine application for a google app domain

2009-05-21 Thread Anjali Jain
I have already resgistered and got a premium edition trail version and
created an admin account on it. I can log in into google apps adminstration
console.

when i try to do it again
This domain has already been registered with Google Apps. Please contact
your domain administrator for instructions on using Google Apps with this
domain

On Fri, May 22, 2009 at 5:57 AM, Jeff S (Google) j...@google.com wrote:


 Hello anjali,

 It sounds like maybe you need to set up Google Apps for your domain.
 The Google Apps cpanel is used to map your subdomain to your App
 Engine app.

 http://www.google.com/a/cpanel/domain/new
 http://www.google.com/support/a/bin/static.py?page=setup_guide.html

 Does this seem like it is the missing piece?

 Thank you,

 Jeff

 On May 20, 11:32 pm, Anjali Jain jnanj...@gmail.com wrote:
  Yes i still see the error. Do I need to do something extra if i am using
 a
  domain from outside and not via google. Pretty bad, I dont find any
  documentation on net for this.
 
  My domain name is : i-pathshala.8k.com taken from freeservers.com
  Used this for getting premium edition trial version
  Verified ownership by uploading an html file on i-pathshala.8k.com
  Enabled two legged outh
 
  Anything else required to be done?
 
  When I am creating an an application on GAE for i-pathshala.8k.com, I am
  restricting this application to this domain and I specify
  i-pathshala.8k.com in the domain name textbox.
 
  Is this correct ?
 
   On this linkhttp://
 www.google.com/support/a/bin/answer.py?hl=enanswer=91077
 
  They have mentioned :
 
  At this point, you may need to follow the presented instructions to make
  changes with your domain registrar if you did not purchase your domain
 name
  through Google.
 
  But what instructions? Its not clear.
  thanks
  anjali
 
   On Thu, May 21, 2009 at 12:16 AM, Jeff S (Google) j...@google.com
 wrote:
 
 
 
   Hi anjali,
 
   I was not able to reproduce this issue, are you still seeing the error
   when trying to create an app?
 
   Thank you,
 
   Jeff
 
   On May 20, 1:09 am, anjali jnanj...@gmail.com wrote:
1. Get a google app premium edition trial version using an exisitng
domain :
 
I have an existing domain mydomain.com that I have taken from
freeservers.com.
 
I have used this domain to get a premium edition trail version of
google apps. Got my google apps domain created.
 
I have verified ownership of the domain by uploading an html file on
the free domain
 
I enabled Two legged Outh for the domain.
 
Advanced tools - Authentication - Manage OAuth Access
Two-legged OAuthEnable Two-legged OAuth ( Checked this)
 
Now all my services are shown active in admin dashboard on google
 apps
domain. This means verification is complete and successful.
 
2. Add google app engine application for this domain
 
Logged in onhttp://appengine.google.com/a/mydomain.com
 
and clicked on Create application to create a google app engine
application. I restricted the application to my domain by specifying
mydomain.com in the google apps domain field
 
When I click on Save button on create application UI, it gives me
error :
 
There were errors : Auth Domain with hperlink on Auth Domain and when
i click on Auth Domain link
 
it says 404 Not Found:
Error: Not Found
The requested URL /createapp was not found on this server.
 
Not sure what is the problem. I have another google apps domain and I
am able to create applications successfully over there. This domain
 is
taken from google apps itself at the time of registration.
 
Is there anything that I am missing out?  In case you get a google
apps edition using an existing domain, do you need to do anything
extra ?  Why I am not able to create an application??
 
Please help me out in case anybody has any idea/links. Its bit
 urgent!!
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: Issues filtering a query on a date (in order to paginate)

2009-05-21 Thread Frank

ok I found the problem, the offset simply needs to be converted to a
datetime first.
makes sense of course, but it would be great if the article talking
about this (http://code.google.com/appengine/articles/paging.html) was
updated to reflect that requirement. thanks.

On May 21, 6:13 pm, Frank fran...@gmail.com wrote:
 Hi,

 I have this simple code below to paginate on a list of items that
 include a datetime property named 'dCreated' ( dCreated =
 db.DateTimeProperty(auto_now_add=True)  )

 offset = self.request.get('offset')
 offsetNext = None

 query = Subscription.all().order(-dCreated)

 if offset != :
    query.filter(dCreated =, offset)

 aItems = query.fetch(limit=21)

 if len(aItems) == 21:
    offsetNext  = aItems[-1].dCreated
    aItems       = aItems[:20]

 ...then I put offsetNext and aItems in the template and render it.
 the next page is called with offsetNext as offset in the url (...?
 offset={{offsetNext}} )

 the listing works and the items are sorted properly, but it never
 change page, the filter on dCreated clearly doesn't have any effect.

 any idea what I'm doing wrong?

 many thanks for the help
 Frank
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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 or View latest deployed source of your own Google App Engine app?

2009-05-21 Thread GregF

For what seems like the millionth time... I'm sorry for your loss, but
you've just learned a really important lesson - real programmers use
version control and backups.

Or put another way, if you don't value your code enough to look after
it, then don't expect anyone else to care either.

I'm sorry to be harsh, but I DO value my code - so much so that I
would view Google's offering a way to download code as a big backwards
step. It would offer the possibility that someone else could download
it too, via a bug, social engineering or whatever. So please Google,
don't weaken and provide source downloading.

Cheers!
Greg.


On May 21, 4:54 am, droidrunner droidrun...@gmail.com wrote:
 After a day of prototyping a utility Google App Engine webservice and
 deploying to appspot I had the unfortunate experience of a hard drive
 failure on my local machine, with no other local backup of my app. The
 source does exist on the production server, but I found no information
 on downloading your own app from prod to a new local machine

 I may have to just start over, but would love to find out that there
 is a way to download the current latest version of your own app.

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