[appengine-java] Re: setting a lower deadline

2010-01-02 Thread phraktle

Filed as http://code.google.com/p/googleappengine/issues/detail?id=2586

I don't see a way to support such a deadline feature outside
AppEngine, as this would require VM-level support - which is
presumably implemented in the production AppEngine, but doesn't happen
in the local server either.

Regards,
  Viktor

On Dec 30 2009, 8:27 pm, Ikai L (Google) ika...@google.com wrote:
 Sounds like a pretty useful feature, actually. As far as I know, there's no
 way of doing this. Did you have any ideas how this would be implemented
 outside App Engine? Maybe we can cook something up.

 I'd go ahead and file this as a feature 
 request:http://code.google.com/p/googleappengine/issues/list





 On Thu, Dec 24, 2009 at 2:49 AM, phraktle phrak...@gmail.com wrote:
  Hi,

  Is there a way to actually lower the timeout for a given request? In
  some cases I would like to guarantee a quicker response time (eg.
  subsecond) and bail out if it's not happening (eg. due to a temporary
  slowness in the datastore). Of course, one could just check
  currentTimeMillis from all over the place, but that's a sub-par
  solution compared to just getting a DeadlineExceededException from any
  call...

  It would be nice to have such capability on the QuotaService, eg. get/
  setDeadline (naturally, it would only allow setting to a lower value
  than previously).

  btw. a related question... let's say I have a simple infinite loop in
  the code... will GAE throw a DeadlineExceededException in this case?
  or only from Google API calls? do we only get a
  HardDeadlineExceededError instead?

  Regards,
   Viktor

  --

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

 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine

--

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




[appengine-java] Re: jdoql contains method

2010-01-02 Thread zackmac
I followed the instructions presented by Google on the contains filter
(:p.contains(lastName) but couldn't get it to work.  I just decided to
return the full record set and then use Java's contains method
(ironically) to test each particular record contained the string in
question.  There's more than one way to skin a cat...

On Dec 29 2009, 10:47 am, Chau Huynh cmhu...@gmail.com wrote:
 http://code.google.com/appengine/docs/java/datastore/queriesandindexe...
 In Query Filters section, it mentions that A filter specifies a field
 name, an operator, and a value. The value must be provided by the app; it
 cannot refer to another field, or be calculated in terms of other fields.
 so it seems to me desc.contains(ing) filter might cause the issue.

 On Sun, Dec 27, 2009 at 4:19 AM, zackmac zack.macom...@gmail.com wrote:
  I'm trying to use the contains method in a query and having some
  trouble.  The query is formatted like this:

  select from Transactions where userName == 'auser'  account ==
  'anAccount'  desc.contains(ing) order by transDate desc,
  categoryName

  desc is a column in my Transactions table.  Don't think I'm quite
  understanding how the contains method works and how to implement in a
  query.

  I get this error returned on my jsp when I try to run that query:
  org.datanucleus.store.appengine.query.DatastoreQuery
  $UnsupportedDatastoreFeatureException: Problem with query

  --

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



--

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




[appengine-java] Re: getting wrong presence status for XMPP users

2010-01-02 Thread Sahil Mahajan
Hi

I am facing same problem.
Did you find any solution to this problem?
getPresence is always returning false.

On Dec 30 2009, 2:27 pm, Ankur stiitan...@gmail.com wrote:
 Hi,

 I have a very simple application where i sent a chat message to my
 application and check if user is available.But i am always getting as
 false.

 here is my code.

         XMPPServicexmpp= XMPPServiceFactory.getXMPPService();
         Message message =xmpp.parseMessage(req);

         JID fromJid = message.getFromJid();

         Presence p=xmpp.getPresence(fromJid);
         String status =p.isAvailable().toString();

 I am getting status as false always.

 I even tried with fromJid.getId() to get user status but i get the
 same result.

 i tried with gmail chat and gtalk both.I can see my bot in my contact
 lists with available sign.

 is there any way to get the correct status or am i missing anything
 here.

--

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




[appengine-java] Re: XMPP getPresence response not valid?

2010-01-02 Thread Sahil Mahajan
Hi

I am facing same problem.
Did you find any solution to this problem?
getPresence is always returning false.


On Nov 18 2009, 10:47 am, m seleron seler...@gmail.com wrote:
 Hi.

 Though it is likely already to have tried.

 If the state is [is not available]
 please invite it from GMailchat or GTalk toXMPPAddresses
 ([app...@appspot.com] or [anyth...@app-id.appspotchat.com],etc.)

 Please confirm Gtalk display thatXMPPAddresses
 ([app...@appspot.com] or [anyth...@app-id.appspotchat.com],etc.)
 is online and confirm presence status on the GppEngine side.

 Please refer to the following links for details 
 ofXMPPAddresses.http://code.google.com/intl/us/appengine/docs/java/xmpp/overview.html

 Thanks.

 On 11月18日, 午前1:52, timzon jerome.bre...@gmail.com wrote:

  Is anybody having problem with  xmpp.getPresencenot providing valid
  presence information for GTalk clients?

  Using very simple function to check the availability of a GTalk
  client:

  XMPPServicexmpp= XMPPServiceFactory.getXMPPService();
  if (xmpp.getPresence(agentJid).isAvailable()) {
          log.info(agentJid.toString() +  is available (added to
  list));} else {

          log.info(agentJid.toString() +  is not available);

  }

 getPresencealways returns the same presence status for a user
  regardless of the user real status.

  I've tried this with GTalk clients on both GMail and Apps domains. The
  result is exactly the same.

  This is extremely blocking for our application as we need to validate
  the presence of a group of GTalk clients to determine what to do with
  a request.

  Thanks in advance for your help,
   Jerome.

--

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




Re: [appengine-java] Re: New Data Field NullPointer

2010-01-02 Thread Rusty Wright
As a workaround, avoid primitives; use, for example, Integer instead.  Then in 
your getter, return its value as a primitive, and also check to see if it's 
null, and if so, set it to whatever default you prefer.

public final class Zzz {
Integer number;

public int getNumber() {
if (this.number == null)
this.number = Integer.valueOf(0);

return (this.number.intValue());
}




datanucleus wrote:
 Once more time, DataNucleus (as per http://www.datanucleus.org) treats
 fields correctly. The problem is not in DataNucleus. It's in Google's
 plugin, where *they* define the handling of their data.
 
 When handling the equivalent situation in RDBMS (adding a new field,
 and hence a new column in a table), the field has to be defined with a
 default value, and this is then applied to the RDBMS table column, so
 any existing data has a default value. So the logical handling would
 be for them to require definition of the default value in metadata
 (annotations/XML) of the default value, and then if they retrieve a
 record without that field defined, it gains the default value.
 
 --
 
 You received this message because you are subscribed to the Google Groups 
 Google App Engine for Java group.
 To post to this group, send email to google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine-java?hl=en.
 
 

--

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




[appengine-java] Spring application context initialization on every request

2010-01-02 Thread Naim
Hi,

I have deployed a small application on appengine using Spring
framework.
But I have noticed, if my app does not get any request for a after
period of time (10 mins perhaps), all the initialization done by
Spring vanishes. To serve the next request, it initializes the Spring
application context and all the servlet contexts.
At the moment, I am preventing this by running a cron that makes a
request to my app every minute.

Is there any other way? Am I missing something?
__
Naim
mdnh...@gmail.com

--

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




[appengine-java] request was aborted... and slow DB operations

2010-01-02 Thread fredrik
Hi.

I have a cron job that runs once a day. In about 10% of the runs, the
app engine log says Request was aborted after waiting too long to
attempt to service your request... In the other runs, I can see that
the part of the (fairly simple and short) code [1] fetching data from
the database takes most (i.e. 99,99...%) of the time. The query in [1]
always returns 0 Subscribers, which is correct.

Questions:
1. Is there anything I can do to cut down the database access time?
2. Why is database access taking so much time even though no
Subscribers are returned?
3. Is the local db store similar enough to the live datastore so that
profiling the app locally will yield an realistic indication on live
performance?

Thanks for any help!

-Fredrik

[1]:
...
PersistenceManager pm = PMF.getPM();
Query q = pm.newQuery(select from +Subscriber.class.getName()+
where active == true);
ListSubscriber l = (ListSubscriber)q.execute();
...

The PMF class:

public class PMF {
static PersistenceManagerFactory pmf =
JDOHelper.getPersistenceManagerFactory(transactions-optional);
public static PersistenceManager getPM(){
return pmf.getPersistenceManager();
}
}

--

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




[appengine-java] newbie : question on GAE JPA

2010-01-02 Thread kamhon
I have a question on JPA. Please have a look on following code :~



EntityManager em = EMF.get().createEntityManager();
try {
em.getTransaction().begin();
Query query = em.createQuery(SELECT comp FROM  +
Company.class.getName() +  comp);
ListCompany list = (ListCompany) 
query.getResultList();
log.debug(before - list.size() =  + list.size());

for (int i = 0; i  1; i++) {
Company company = new Company();
company.setCompanyName(testing);
company.setLastUpdateDate(new Date());

em.persist(company);
}
em.flush();

list = (ListCompany) query.getResultList();
log.debug(after - list.size() =  + list.size());

em.getTransaction().commit();
} catch (Exception ex) {
em.getTransaction().rollback();
ex.printStackTrace();
}

em.close();


The log print out is
before - list.size() = 0
after - list.size() = 1

when i do query.getResultList() after em.persist and em.flush, my
result size still remain the same.
My questions are :
1. Is it nature of JPA?
2. or nature of GAE/JPA?

i experienced on hibernate annotation, the result size will increase
after session.save() and session.flush().

--

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




Re: [appengine-java] unable to delete cron job

2010-01-02 Thread seleronm
Hi,

Please refer to the following links
http://code.google.com/intl/us/appengine/docs/java/config/cron.html
[Uploading Cron Jobs] section 

Please try.
Thanks.

I created a sample cron job with an excution frequency of 2 minutes
just to experiment with the working of cron on GAE. After a few
invocations, I decided to remove the job. I deleted cron.xml and
deployed my app on GAE. However, the cron continues to execute. How do
I remove the job?

--

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

--

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




[appengine-java] Re: XMPP getPresence response not valid?

2010-01-02 Thread timzon
Yes, sorry for not providing an update earlier.

My problem was that I was not passing the From Jabber Id initially
used to send the invite t0 .isAvailable.
Doing the following fixed my problem:

if (xmpp.getPresence(recipientJid, fromJid).isAvailable()) {
...

On Jan 2, 11:55 am, Sahil Mahajan sahilm2...@gmail.com wrote:
 Hi

 I am facing same problem.
 Did you find any solution to this problem?
 getPresence is always returning false.

 On Nov 18 2009, 10:47 am, m seleron seler...@gmail.com wrote:



  Hi.

  Though it is likely already to have tried.

  If the state is [is not available]
  please invite it from GMailchat or GTalk toXMPPAddresses
  ([app...@appspot.com] or [anyth...@app-id.appspotchat.com],etc.)

  Please confirm Gtalk display thatXMPPAddresses
  ([app...@appspot.com] or [anyth...@app-id.appspotchat.com],etc.)
  is online and confirm presence status on the GppEngine side.

  Please refer to the following links for details 
  ofXMPPAddresses.http://code.google.com/intl/us/appengine/docs/java/xmpp/overview.html

  Thanks.

  On 11月18日, 午前1:52, timzon jerome.bre...@gmail.com wrote:

   Is anybody having problem with  xmpp.getPresencenot providing valid
   presence information for GTalk clients?

   Using very simple function to check the availability of a GTalk
   client:

   XMPPServicexmpp= XMPPServiceFactory.getXMPPService();
   if (xmpp.getPresence(agentJid).isAvailable()) {
           log.info(agentJid.toString() +  is available (added to
   list));} else {

           log.info(agentJid.toString() +  is not available);

   }

  getPresencealways returns the same presence status for a user
   regardless of the user real status.

   I've tried this with GTalk clients on both GMail and Apps domains. The
   result is exactly the same.

   This is extremely blocking for our application as we need to validate
   the presence of a group of GTalk clients to determine what to do with
   a request.

   Thanks in advance for your help,
    Jerome.

--

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




Re: [appengine-java] unable to delete cron job

2010-01-02 Thread Jeff Schnitzer
It's not really intuitive behavior.  It's basically summed up in this bug:

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

Jeff

On Sat, Jan 2, 2010 at 6:20 PM, seleronm seler...@gmail.com wrote:
 Hi,

 Please refer to the following links
 http://code.google.com/intl/us/appengine/docs/java/config/cron.html
 [Uploading Cron Jobs] section

 Please try.
 Thanks.

I created a sample cron job with an excution frequency of 2 minutes
just to experiment with the working of cron on GAE. After a few
invocations, I decided to remove the job. I deleted cron.xml and
deployed my app on GAE. However, the cron continues to execute. How do
I remove the job?

--

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

 --

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




--

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




[appengine-java] Sending email with HTML inline images

2010-01-02 Thread Jeff Schnitzer
It looks like this issue has been forgotten about:
http://groups.google.com/group/google-appengine/browse_thread/thread/ba2f36a160049e4d/c52daefd59156399

After some experimentation, I've concluded that it's impossible to
send HTML email with inline images using GAE.  This is a really,
*really* serious limitation that effectively renders HTML email
useless.  Requiring users to click show images as a separate step
when they view mail is a really crappy user experience, and most HTML
mail looks rather broken without images.

Can we get the priority of this increased?  Having to set up another
cloud server just to send non-broken email is lame.

Users:  If you send email (or want to send non-broken email in the
future), please star this bug!

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

It was logged just over a year now.

Thanks,
Jeff

--

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




Re: [google-appengine] by default property are not required

2010-01-02 Thread Niklas Rosencrantz
2010/1/2 james_027 cai.hai...@gmail.com:
 I wonder why by default the model's property required option is False,
 which contrast to the others. And if I am going to use the djangoforms
 I have to put required=False on most of my fields. Is there something
 I need to know or understand? Or is it the datastore is totally a
 different thing.

 thanks,
For readability and consistency tradeoff there might be ahead matching
a property to something like display where a failover is false.
Otherwise double negative default=true and property undisplay

--

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




[google-appengine] NeedIndexError: no matching index found - while index.yaml has the necessary data!

2010-01-02 Thread dhruvg
i am getting a NeedIndexError while my index.yaml file is showing data
as expected... what else could be causing this?

NeedIndexError: no matching index found.
This query needs this index:
- kind: Dataset
  properties:
  - name: is_hidden
  - name: owner

my index.yaml file right before the update looks like this:
indexes:

# AUTOGENERATED

# This index.yaml is automatically updated whenever the dev_appserver
# detects that a new type of query is run.  If you want to manage the
# index.yaml file manually, remove the above marker line (the line
# saying # AUTOGENERATED).  If you want to manage some indexes
# manually, move them above the marker line.  The index.yaml file is
# automatically uploaded to the admin console when you next deploy
# your application using appcfg.py.

# Used 12 times in query history.
- kind: Dataset
  properties:
  - name: is_hidden
  - name: owner

# Unused in query history -- copied from input.
- kind: Input
  properties:
  - name: is_hidden
  - name: owner

thanks in advance.

--

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




Re: [google-appengine] NeedIndexError: no matching index found - while index.yaml has the necessary data!

2010-01-02 Thread Andrew Chilton
2010/1/2 dhruvg dhruv.g...@gmail.com:
 i am getting a NeedIndexError while my index.yaml file is showing data
 as expected... what else could be causing this?

Your index might still be being built. Check your admin area (the
Datastore Indexes on the left hand side). If it still says
'Building' then it will seem like it's not there until built and
you'll get that error, even though it's defined in your indexes.yaml.

If your index has been building for a number of hours, then ping the
staff on here with your app id and they can help it along. Or you can
create a new 'Production' issue in the issue tracker.

http://code.google.com/p/googleappengine/issues/entry?template=Production%20issue

Cheers,
Andy

-- 
contact: Andrew Chilton
website: http://www.chilts.org/

--

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




[google-appengine] Re: NeedIndexError: no matching index found - while index.yaml has the necessary data!

2010-01-02 Thread dhruvg
works hanks

On Jan 2, 2:38 am, Andrew Chilton andychil...@gmail.com wrote:
 2010/1/2 dhruvg dhruv.g...@gmail.com:

  i am getting a NeedIndexError while my index.yaml file is showing data
  as expected... what else could be causing this?

 Your index might still be being built. Check your admin area (the
 Datastore Indexes on the left hand side). If it still says
 'Building' then it will seem like it's not there until built and
 you'll get that error, even though it's defined in your indexes.yaml.

 If your index has been building for a number of hours, then ping the
 staff on here with your app id and they can help it along. Or you can
 create a new 'Production' issue in the issue tracker.

 http://code.google.com/p/googleappengine/issues/entry?template=Produc...

 Cheers,
 Andy

 --
 contact: Andrew Chilton
 website:http://www.chilts.org/

--

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




[google-appengine] use_library('django', '1.1') conflict with template extend tag

2010-01-02 Thread james_027
hi all,

before I put use_library('django', '1.1') in my main.py may template
is working fine. I have a handler that calls a template with
app_root_directory/templates/admin/index.html which has a extends tags
look like this {% extends ../base.html %} which is in the
app_root_directory/templates/base.html. But after the put the
use_library('django', '1.1') an error occur saying ../base.html
doesn't exist.

Is there something I should be aware when using use_library('django',
'1.1')?

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




[google-appengine] Re: how to use less time for many urlfetches?

2010-01-02 Thread saintthor
thank you.

On Jan 2, 2:19 am, dburns drrnb...@gmail.com wrote:
 Have you seen 
 this?http://code.google.com/appengine/docs/python/urlfetch/asynchronousreq...

 On Jan 1, 10:25 am, saintthor saintt...@gmail.com wrote:

  for each urlfetch, i have to wait till it returns. if i run many
  urlfetches, how can i save the waiting time?

  i have tried thread, the urlfetches in threads still runs one after
  another.

--

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




[google-appengine] to document team

2010-01-02 Thread saintthor
now, the simple chinese document has not all articles as in english
version. such as xmpp, task queues. if i read chinese version only, i
would never know them.

if you can not translate all articles on time, i think you can add the
title to the list of chinese document and link it to the english
version.

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




[google-appengine] Re: What is the point of the PostalAddressProperty?

2010-01-02 Thread Kelly A
Wesley,

Thank you for the response, this is exactly how I have come to think
of the PostalAddressProperty, I would like to suggest that the
documentation be more clear on the purpose of the object, it is not
clear from first blush that this object is not a more rich interface
to the more Geo aware google functions.

I would also like to propose a higher level address object that takes
an address string and automatically separates it into fields and geo
codes the address, much like entering an address into
maps.google.com.  This object could throw and error on ambiguous
results which the developer can handle to resolve the ambiguity.

On Dec 29 2009, 12:10 pm, Wesley Chun wesc+...@google.com wrote:
 greetings!

 as far as i know, and please correct me if i'm wrong here, you can
 indeed just use a StringProperty if you wish. however, you can think
 of PostalAddressProperty as more of a classification as far as what
 *type* of string it is (sort of like metadata).

 it is also useful for interfacing with other Google Data Protocol
 objects, and, as you mentioned, outputting to the gd: XML namespace,
 meaning that it is supported across other Google APIs and tools, i.e.,
 Google Calenar, Contacts, Open Social, etc.), which *may* perform some
 validation or search criteria.

 and your suggestion for making individual fields, thus orderable and
 sortable, then creating a full object on the fly for gd: output sounds
 like a reasonable workaround. for more information on postal addresses
 via Google Data, 
 see:http://code.google.com/apis/gdata/docs/1.0/elements.html#gdPostalAddress

 best regards,
 -wesley





 On Mon, Dec 28, 2009 at 4:49 PM, Kelly A kelly.j.ander...@gmail.com wrote:
  If you cannot query on or sort on the individual fields of the address
  it is rather useless.  I could just store the field as text.  I assume
  that the major advantage is that you can export the item in the gd:
  XML namespace with out doing any extra work.  That being said, I would
  think exporting the address in a way that google contacts can read the
  address is far less important that being able to sort by zip code,
  state, city, etc...

  For those searching for an answer to the question of querying on a zip
  filed in a PostalAddressProperty or sorting on a field in a
  PostalAddressProperty, the overwhelming answer I have come across is
  you cannot.  It would seem that the best solution is to store the
  address fields in individual variables and when a request for a gd:
  address or full address is made, construct the PostalAddressProperty
  on the fly.

  Perhaps the PostalAddressProperty is not documented in a way that
  allows me to see the value, or all of the sample applications simply
  make no use of addresses and I am just missing the point. If others
  have any examples of the value of this object please do respond.

 --
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Core Python Programming, Prentice Hall, (c)2007,2001
 Python Fundamentals, Prentice Hall, (c)2009
    http://corepython.com

 wesley.j.chun :: wesc+...@google.com
 developer relations :: google app engine

--

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




[google-appengine] templates, Django is just different syntax code in HTML

2010-01-02 Thread Kelly A
I have this problem with most templating systems, they talk about
separating code from HTML but then they define all these programming
constructs like if, while, for, etc..  For instance given the example
from the getting started guide:

html
  body
{% for greeting in greetings %}
  {% if greeting.author %}
b{{ greeting.author.nickname }}/b wrote:
  {% else %}
   An anonymous person wrote:
  {% endif %}
  blockquote{{ greeting.content|escape }}/blockquote
{% endfor %}


In the above HTML there are five lines of code, this is not
separation of code from HTML in my book.  There is no ifs, ands or
buts about it, that is code, if a designer looked at that they would
say that is code.  If this were HTML separated from code it would look
more like this:

html
  body
gae:list of=greetings
  gae:listItem 
   div class=namegae:field name=author.nickname //
div
   blockquotegae:field name=content //blockquote
   /gae:listitem
/gae:list


The developer/programmer would handle the case statement and the
iteration back in the code where it belongs.  All the designer needs
to know is that this will display a list and the list item allows the
designer to layout and style each element in the list.

--

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




[google-appengine] Measures taken to speed index building

2010-01-02 Thread Sudhir
Does anyone know what efforts are being taken to speed up index
building and what their status is?

I'm finding it very difficult to be a champion for GAE in my company -
one of the (implicitly) advertised features of GAE is the whole click
to deploy and start running feature. Things don't bode very well if
I'm doing a demo for the clients / bosses and we all need sit and wait
12 to 24 hours for GAE to index two strings that say Hello World and
test.

Its especially frustrating when I need to deploy and test during
development (stuff like custom search doesn't work on localhost).

I've been hitting refresh the last six hours.

The production issues pilot is a great step in the right direction,
and I filed an issue and all, but is the GAE team actually thinking of
responding to 100,000 (and counting) developers?

Just wondering, how on earth do you guys do demos at I/O? I don't
think any of the presenters hit deploy and said okay, let's all come
back tomorrow, or maybe the day after, and we'll see if this
works :-/

Sudhir

--

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




[google-appengine] Wierd datastore DateTimeProperty filtering

2010-01-02 Thread Cluster
I have some(8 exactly) entries in db, and want to get all of them,
filtered by creation time = some constant FROM_TIME
so, every single entry has .insert_order (creation time attr in fact)
property, that is greater then FROM_TIME

so, when i dont filter by time, i got all 8, and their insert_order
property is = FROM_TYME constant ( type 'datetime.datetime' too)

but when i enable filter, i got only 7 entries, whose creation time
was in last 2009 year
last entry, what i have created in this year, does not displays when
filtered

run is local

i dont understand why, please help me or explain. Thanks!


model class is simple, like this:

class Submissions(db.Model):
ip_addr = db.StringProperty()
insert_order = db.DateTimeProperty(auto_now_add=True)

= first listing, filter by
date is commented

#from app.pager import SearchablePagerQuery, PagerQuery
from datetime import datetime,timedelta
FOR_N_DAYS = 30   # we show only
last-N-days ads
FROM_TIME  = datetime.today() - timedelta(days=FOR_N_DAYS) # last N
days
query = Submissions.all() #.filter(insert_order =,FROM_TIME)
print query.count()
items = query.fetch(10)
print
for i in items:
  print i
  print i.insert_order
  print (i.insert_order = FROM_TIME )
==
and output is:

8

2009-12-29 06:55:56.443000
True
2009-12-30 07:49:37.123000
True
2009-12-30 07:49:58.918000
True
2009-12-30 07:50:41.538000
True
2009-12-30 07:54:18.276000
True
2009-12-30 07:55:14.09
True
2009-12-30 07:55:31.374000
True
2010-01-02 19:32:15.046000
True


But when i uncomment (.filter(insert_order =,FROM_TIME)) - the
output is different:
7


2009-12-29 06:55:56.443000
True
2009-12-30 07:49:37.123000
True
2009-12-30 07:49:58.918000
True
2009-12-30 07:50:41.538000
True
2009-12-30 07:54:18.276000
True
2009-12-30 07:55:14.09
True
2009-12-30 07:55:31.374000
True

--

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




Re: [google-appengine] templates, Django is just different syntax code in HTML

2010-01-02 Thread Robert Kluin
You could have your designer write little templates for each thing
you would like to display.  If they are named in some standard way
your developers will know how to call the templates as needed.  That
sounds pretty close to what you are asking for.  Not sure it sounds
like a good idea though.

Also, you do not have to use the django template engine -- I do not.
I personally use mako templates for all of my App Engine apps.  You
can run any pure python template engine.

Just out of curiosity do you define XSLT as code, design, or both?

Robert








On Sat, Jan 2, 2010 at 12:40 PM, Kelly A kelly.j.ander...@gmail.com wrote:
 I have this problem with most templating systems, they talk about
 separating code from HTML but then they define all these programming
 constructs like if, while, for, etc..  For instance given the example
 from the getting started guide:

 html
  body
    {% for greeting in greetings %}
      {% if greeting.author %}
        b{{ greeting.author.nickname }}/b wrote:
      {% else %}
       An anonymous person wrote:
      {% endif %}
      blockquote{{ greeting.content|escape }}/blockquote
    {% endfor %}


 In the above HTML there are five lines of code, this is not
 separation of code from HTML in my book.  There is no ifs, ands or
 buts about it, that is code, if a designer looked at that they would
 say that is code.  If this were HTML separated from code it would look
 more like this:

 html
  body
    gae:list of=greetings
          gae:listItem 
               div class=namegae:field name=author.nickname //
 div
               blockquotegae:field name=content //blockquote
           /gae:listitem
    /gae:list


 The developer/programmer would handle the case statement and the
 iteration back in the code where it belongs.  All the designer needs
 to know is that this will display a list and the list item allows the
 designer to layout and style each element in the list.

 --

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




--

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




[google-appengine] Total Stored Data vs Datastore Statistics

2010-01-02 Thread chemo...@gmail.com
Please help.
In Quota Details I have :
Total Stored Data91% 0.91 of 1.00 GBytes
in Datastore Statistics
Last updatedTotal number of entitiesSize of all entities
1:51:30 ago 187,428 89 MBytes
I don't have any indexes now(just dlete all).
So, if in statistics I use 89MB with metadata, who use other 810MB?

--

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




[google-appengine] indexes not building

2010-01-02 Thread Karter
folks,
 I've created another app, vaccumed indexes, checked for exploding
indexes, still seems to take forever and no progress..please help.

app_id=commentsrversion_id=2.338876237604743106

TIA!!

--

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




[google-appengine] indexing stuck..

2010-01-02 Thread Karter
Hi Folks,
 one of my app's indexing seems to take forever - looks like its
stuck..can someone help ?

app_id=mytelebot
version_id=2.338875592561682780

Thanks,
K

--

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




[google-appengine] Getting a useful stack trace from log messages. (java.lang.ClassCastException: java.lang.IndexOutOfBoundsException cannot be cast to javax.servlet.ServletException)

2010-01-02 Thread Chris Phillips (cminion)
I have a working appengine app in my development environment.  I have
deployed it and I am getting the following exception. I think it is
because some of my db data has not been uploaded. However I don't know
where to start. Is there a way to link the stack trace so it shows
which line in my code is causing the problem

W 01-01 08:18PM 29.565
/int/interFace.jsp
java.lang.ClassCastException: java.lang.IndexOutOfBoundsException
cannot be cast to javax.servlet.ServletException
at org.apache.jasper.runtime.PageContextImpl.handlePageException
(PageContextImpl.java:754)
at org.apache.jsp.int_.interFace_jsp._jspService(interFace_jsp.java:
81)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter
(ParseBlobUploadFilter.java:97)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter
(SaveSessionFilter.java:35)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle
(AppVersionHandlerMap.java:238)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
506)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
(HttpConnection.java:830)
at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable
(RpcRequestParser.java:76)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest
(JettyServletEngineAdapter.java:135)
at com.google.apphosting.runtime.JavaRuntime.handleRequest
(JavaRuntime.java:235)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:5235)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:5233)
at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest
(BlockingApplicationHandler.java:24)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
363)
at com.google.net.rpc.impl.Server$2.run(Server.java:838)
at com.google.tracing.LocalTraceSpanRunnable.run
(LocalTraceSpanRunnable.java:56)
at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan
(LocalTraceSpanBuilder.java:536)
at com.google.net.rpc.impl.Server.startRpc(Server.java:793)
at com.google.net.rpc.impl.Server.processRequest(Server.java:368)
at com.google.net.rpc.impl.ServerConnection.messageReceived
(ServerConnection.java:448)
at com.google.net.rpc.impl.RpcConnection.parseMessages
(RpcConnection.java:319)
at com.google.net.rpc.impl.RpcConnection.dataReceived
(RpcConnection.java:290)
at com.google.net.async.Connection.handleReadEvent(Connection.java:
466)
at com.google.net.async.EventDispatcher.processNetworkEvents
(EventDispatcher.java:759)
at com.google.net.async.EventDispatcher.internalLoop
(EventDispatcher.java:205)
at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
101)
at com.google.net.rpc.RpcService.runUntilServerShutdown
(RpcService.java:251)
at com.google.apphosting.runtime.JavaRuntime$RpcRunnable.run
(JavaRuntime.java:394)
at java.lang.Thread.run(Unknown Source)
C 01-01 08:18PM 29.583
Uncaught exception from servlet
java.lang.ClassCastException: java.lang.IndexOutOfBoundsException
cannot be cast to javax.servlet.ServletException
at org.apache.jasper.runtime.PageContextImpl.handlePageException
(PageContextImpl.java:754)
at org.apache.jsp.int_.interFace_jsp._jspService(interFace_jsp.java:
81)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at 

[google-appengine] java.io.FilePermission exception encountered when uploading file

2010-01-02 Thread Thomas
Hi all:

My web app run well without problem until the eclipse app engine
plugin automatically update this morning.

When I uploaded a file to a struts action, the following exception
occurred.

java.security.AccessControlException: access denied
(java.io.FilePermission C:\DOCUME~1\mylee\LOCALS~1\Temp
\Jetty_127_0_0_1__war-g0qk00\upload_.tmp delete)
at java.security.AccessControlContext.checkPermission
(AccessControlContext.java:264)
at java.security.AccessController.checkPermission
(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:
532)
at com.google.appengine.tools.development.DevAppServerFactory
$CustomSecurityManager.checkPermission(DevAppServerFactory.java:151)
at java.lang.SecurityManager.checkDelete(SecurityManager.java:990)
at java.io.File.deleteOnExit(File.java:901)
at org.apache.commons.fileupload.DefaultFileItem.getTempFile
(DefaultFileItem.java:620)
at org.apache.commons.fileupload.DefaultFileItem.getOutputStream
(DefaultFileItem.java:557)
at org.apache.commons.fileupload.FileUploadBase.parseRequest
(FileUploadBase.java:406)
at
org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest
(CommonsMultipartRequestHandler.java:193)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:
443)
at org.apache.struts.action.RequestProcessor.processPopulate
(RequestProcessor.java:805)
at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:203)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:
1194)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:
432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
at idv.mylee.web.SetCharacterEncodingFilter.doFilter
(SetCharacterEncodingFilter.java:73)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter
(ServeBlobFilter.java:51)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at com.google.appengine.tools.development.StaticFileFilter.doFilter
(StaticFileFilter.java:121)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
(DevAppEngineWebAppContext.java:70)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:352)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
506)
at org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:442)


Environment:
XP Pro Version 2002 SP3, 1GB RAM
Eclipse 3.4 + Google App Engine plugin (automatically updated?)
Struts 1.2.7 + Spring 2.0.8

  Does anybody know how to fix this problem?

Thomas

--

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




[google-appengine] JDO error with Tomcat

2010-01-02 Thread GMap
Hello ,

 I have my GWT application deployed in apache tomcat , but
when I tried to save a JDO object , it gives me an error. Does anyone
aware of this error ?


java.lang.NullPointerException: No API environment is registered for
this thread.
at
com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppId
(DatastoreApiHelper.java:63)
at
com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppIdNamespace
(DatastoreApiHelper.java:73)
at com.google.appengine.api.datastore.Key.init(Key.java:100)
at com.google.appengine.api.datastore.Key.init(Key.java:85)
at com.google.appengine.api.datastore.Key.init(Key.java:81)
at com.google.appengine.api.datastore.Entity.init
(Entity.java:103)
at com.google.appengine.api.datastore.Entity.init
(Entity.java:84)
at org.datanucleus.store.appengine.DatastoreFieldManager.init
(DatastoreFieldManager.java:167)
at
org.datanucleus.store.appengine.DatastorePersistenceHandler.insertPreProcess
(DatastorePersistenceHandler.java:316)
at
org.datanucleus.store.appengine.DatastorePersistenceHandler.insertObjects
(DatastorePersistenceHandler.java:236)
at
org.datanucleus.store.appengine.DatastorePersistenceHandler.insertObject
(DatastorePersistenceHandler.java:225)
at
org.datanucleus.state.JDOStateManagerImpl.internalMakePersistent
(JDOStateManagerImpl.java:3185)
at org.datanucleus.state.JDOStateManagerImpl.makePersistent
(JDOStateManagerImpl.java:3161)
at org.datanucleus.ObjectManagerImpl.persistObjectInternal
(ObjectManagerImpl.java:1298)
at org.datanucleus.ObjectManagerImpl.persistObject
(ObjectManagerImpl.java:1175)
at org.datanucleus.jdo.JDOPersistenceManager.jdoMakePersistent
(JDOPersistenceManager.java:669)
at org.datanucleus.jdo.JDOPersistenceManager.makePersistent
(JDOPersistenceManager.java:694)
at it.codegen.hpms.server.dbUtil.JDOCity.insert(JDOCity.java:
70)
at it.codegen.hpms.client.service.HPMSSavable.save
(HPMSSavable.java:30)
at it.codegen.hpms.server.service.HPMSServiceImpl.save
(HPMSServiceImpl.java:212)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
(RPC.java:527)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
(RemoteServiceServlet.java:166)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
729)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:873)
at org.apache.coyote.http11.Http11BaseProtocol
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:
665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)



Thanks in advance
Buminda


--

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




[google-appengine] howto restrict application to serve requests by domain?

2010-01-02 Thread Andy
I want to develop a GAE application that only services requests from
mydomain.com.  Is there a configuration setting for this, or a simple
idiom I can use in my request handlers?

This is for a python application on GAE to only be used as a service
for another GAE application.

Thanks,
Andy

--

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




[google-appengine] How to test my application with local database

2010-01-02 Thread mobject
Hello,

I would like to test my app with local db before deploying to
APPEngine but I could not config my jdo to connect to my local Mysql
database.

Could anyone help me on this ?

Thank you in advance,

mobject

--

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




[google-appengine] Media Delivery application with Google App Engine

2010-01-02 Thread Puli
I am in the process of building a website that hosts videos.
The delivery of videos is progressive download.
I will be using a flash player to serve these videos.

Wanted to get thoughts on building this website with GAE.
1. Does GAE support websites with videos (Lot of long videos)
2. Can i store videos on google infrastructure
3. light httpd was my choice to deliver videos as progressive
download, can GAE server videos progressively?

Sorry, some of my question might be naive but i've looking for sample
application that server video via GAE and could'nt find any.

I welcome you thoughts and ideas.
thanks
Puli.

--

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




[google-appengine] Upgrading from Standard Edition

2010-01-02 Thread Travis
I am in a situation and would really like to talk to someone from
Google. I have a Non-profit called The iSchool Initiative. Our goal is
to bring technology solutions to schools. We also provide
collaboration tools (Through Google Apps standard edition) to our
members. I am in contact with many different schools whom will be
interested in using Google Apps for their own schools as well. As a
non-profit I qualify for the premium edition if I display my tax
exemption status. Here is where my problem lies. If there is anyway I
can get in touch with, it would be greatly appreciated.

My website: https://www.ischoolinitiative.com/Home_Page.html



--

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




[google-appengine] Upload data from local SQL Server instance?

2010-01-02 Thread Dalla
I have some local data that I would like to upload to the app engine.
I´ve read about the bulk uploader, but since I don´t know python I´d
like to know if there is any way of importing data using Java?
Or do I have to learn python? :-)

--

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




[google-appengine] Google App Engine

2010-01-02 Thread rosey
Discussion group for developers of Google App Engine
For more info;

  www.123maza.com/construction/

--

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




[google-appengine] Get up to $500 bonus on Forex Trading!(1780)

2010-01-02 Thread tashi223
Deposit above $300, get Bonus up to $500
Special Features Set Stop  Limit at Rate,
Amount, Distance (PIPS), 200:1 Leverage
Guaranteed Stop Loss, Trailing Stop  Lock Profit
3 Trading Modes, Negative Balance Protection
Fractional PIP Pricing, Very low spreads (2 pips)
http://4x.redstar.com.np

--

You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email 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: BlobProperty size

2010-01-02 Thread Andy Lo-A-Foe
Emperical data suggests 100 bytes :)

Regards,
Andy

On Jan 1, 4:40 pm, kls kalys.osmo...@gmail.com wrote:
 When I try to save entity with BlobProperty containing 1048000 bytes
 which is less than 1Mb I've got Exception with string property text
 is too long. It cannot exceed 100 characters. message.
 Does BlobProperty contain 1Mb or 100 bytes?

--

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




[google-appengine] Google App Engine

2010-01-02 Thread Vadivel
Google App Engine lets you run your web applications on Google's
infrastructure. App Engine applications are easy to build, easy to
maintain, and easy to scale as your traffic and data storage needs
grow. This is the general discussion group for Google App Engine.
Please join and participate. Click the link below..


=
 page:http://www.123maza.com/website-designing/businesz
=

--

You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email 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: templates, Django is just different syntax code in HTML

2010-01-02 Thread johnwlockwood
the idea is to separate the business logic from presentation logic,
(here is a nice article 
http://www.paragoncorporation.com/ArticleDetail.aspx?ArticleID=21)
not necessarily make everything in a template be xml, which can
sometimes make things more complicated.
You have to introduce namespaces(designer says name what?).
Putting an xml tag as an attribute of an html tag can make things
nasty, such as:
div class=gae:if=field.required /gae:string
name=required_class //gae:if/div
vs.
div class={% if field.required %}{{ required_class }}{% endif %}/
div
the first is, I believe, ironically, invalid xml, and the second is
valid xml.

django's template language has relatively simple logic. Just present
the data that is passed to the template.

In presentation logic, there are many times you have to decide what
html to display depending on the data passed to you.
If each time that was encountered by the designer, they would have to
think about the logic anyway and then ask a programmer to write a
function to return one piece of html if a certain piece of data was
true and another if false, and then pass that to the template. Then
they would have to learn the new xml tag to insert to get that piece
of html. very complicated.



On Jan 2, 11:40 am, Kelly A kelly.j.ander...@gmail.com wrote:
 I have this problem with most templating systems, they talk about
 separating code from HTML but then they define all these programming
 constructs like if, while, for, etc..  For instance given the example
 from the getting started guide:

 html
   body
     {% for greeting in greetings %}
       {% if greeting.author %}
         b{{ greeting.author.nickname }}/b wrote:
       {% else %}
        An anonymous person wrote:
       {% endif %}
       blockquote{{ greeting.content|escape }}/blockquote
     {% endfor %}

 In the above HTML there are five lines of code, this is not
 separation of code from HTML in my book.  There is no ifs, ands or
 buts about it, that is code, if a designer looked at that they would
 say that is code.  If this were HTML separated from code it would look
 more like this:

 html
   body
     gae:list of=greetings
           gae:listItem 
                div class=namegae:field name=author.nickname //
 div
                blockquotegae:field name=content //blockquote
            /gae:listitem
     /gae:list

 The developer/programmer would handle the case statement and the
 iteration back in the code where it belongs.  All the designer needs
 to know is that this will display a list and the list item allows the
 designer to layout and style each element in the list.

--

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




[google-appengine] Re: What is the point of the PostalAddressProperty?

2010-01-02 Thread Wesley Chun (Google)
can you go search the list of issues here?

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

if something similar isn't already there, please file a feature
request.

thanks,
-wesley


On Jan 2, 9:21 am, Kelly A kelly.j.ander...@gmail.com wrote:
 Wesley,

 Thank you for the response, this is exactly how I have come to think
 of the PostalAddressProperty, I would like to suggest that the
 documentation be more clear on the purpose of the object, it is not
 clear from first blush that this object is not a more rich interface
 to the more Geo aware google functions.

 I would also like to propose a higher level address object that takes
 an address string and automatically separates it into fields and geo
 codes the address, much like entering an address into
 maps.google.com.  This object could throw and error on ambiguous
 results which the developer can handle to resolve the ambiguity.

 On Dec 29 2009, 12:10 pm, Wesley Chun wesc+...@google.com wrote:



  greetings!

  as far as i know, and please correct me if i'm wrong here, you can
  indeed just use a StringProperty if you wish. however, you can think
  of PostalAddressProperty as more of a classification as far as what
  *type* of string it is (sort of like metadata).

  it is also useful for interfacing with other Google Data Protocol
  objects, and, as you mentioned, outputting to the gd: XML namespace,
  meaning that it is supported across other Google APIs and tools, i.e.,
  Google Calenar, Contacts, Open Social, etc.), which *may* perform some
  validation or search criteria.

  and your suggestion for making individual fields, thus orderable and
  sortable, then creating a full object on the fly for gd: output sounds
  like a reasonable workaround. for more information on postal addresses
  via Google Data, 
  see:http://code.google.com/apis/gdata/docs/1.0/elements.html#gdPostalAddress

  best regards,
  -wesley

  On Mon, Dec 28, 2009 at 4:49 PM, Kelly A kelly.j.ander...@gmail.com wrote:
   If you cannot query on or sort on the individual fields of the address
   it is rather useless.  I could just store the field as text.  I assume
   that the major advantage is that you can export the item in the gd:
   XML namespace with out doing any extra work.  That being said, I would
   think exporting the address in a way that google contacts can read the
   address is far less important that being able to sort by zip code,
   state, city, etc...

   For those searching for an answer to the question of querying on a zip
   filed in a PostalAddressProperty or sorting on a field in a
   PostalAddressProperty, the overwhelming answer I have come across is
   you cannot.  It would seem that the best solution is to store the
   address fields in individual variables and when a request for a gd:
   address or full address is made, construct the PostalAddressProperty
   on the fly.

   Perhaps the PostalAddressProperty is not documented in a way that
   allows me to see the value, or all of the sample applications simply
   make no use of addresses and I am just missing the point. If others
   have any examples of the value of this object please do respond.


--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Core Python Programming, Prentice Hall, (c)2007,2001
Python Fundamentals, Prentice Hall, (c)2009
   http://corepython.com

wesley.j.chun :: wesc+...@google.com
developer relations :: google app engine

--

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




Re: [google-appengine] Measures taken to speed index building

2010-01-02 Thread Barry Hunter
A index built against a empty datastore (or at least a Model without
any Entities) should always be available immediately. Or at least that
is my experience. This makes sense because such an index doesnt
actully need to go though the 'bulk build' pipeline (which can be a
cause of delay if the pineline is busy - the index builder is a
background process)

of course adding Entities to this empty index will happen in realtime,
so just add the data after deploying the index.

2010/1/2 Sudhir sudhi...@gmail.com:
 Does anyone know what efforts are being taken to speed up index
 building and what their status is?

 I'm finding it very difficult to be a champion for GAE in my company -
 one of the (implicitly) advertised features of GAE is the whole click
 to deploy and start running feature. Things don't bode very well if
 I'm doing a demo for the clients / bosses and we all need sit and wait
 12 to 24 hours for GAE to index two strings that say Hello World and
 test.

 Its especially frustrating when I need to deploy and test during
 development (stuff like custom search doesn't work on localhost).

 I've been hitting refresh the last six hours.

 The production issues pilot is a great step in the right direction,
 and I filed an issue and all, but is the GAE team actually thinking of
 responding to 100,000 (and counting) developers?

 Just wondering, how on earth do you guys do demos at I/O? I don't
 think any of the presenters hit deploy and said okay, let's all come
 back tomorrow, or maybe the day after, and we'll see if this
 works :-/

 Sudhir

 --

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



--

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




[google-appengine] Possible to remove white background from image?

2010-01-02 Thread trung
Is it possible to remove the white background from a PNG image in
order to make it look transparent?

Has anyone been able to accomplish that?

My guess is we would have to use the composite() function. Start out
with a blank canvas and add the overlay image, then somehow tell it to
ignore the white color.

--

You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email 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: Image API get dimension.

2010-01-02 Thread trung
Wonderful :)

On Dec 30 2009, 4:34 pm, Barry Hunter barrybhun...@googlemail.com
wrote:
 http://code.google.com/appengine/docs/python/images/imageclass.html

 2009/12/30 trung tr...@phamcom.com:



  Is there a way to retrieve the dimension of the uploadimage?
  likeimage.get_width() orimage.get_height()?

  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-appeng...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-appengine+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-appengine?hl=en.

--

You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email 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: Cannot redirect

2010-01-02 Thread Pancho
Hi,

Actually it works when directely invoked from the browser address bar,
but it doesn't work when invoked from javascript in an asynchronous
mode.

Still investigating ...

-Yassine

On Dec 31 2009, 12:21 am, Pancho yfa...@gmail.com wrote:
 That's it. I just added a 'return' statement, and still the same
 behavior.
 Cheers.

 On Dec 30, 10:52 pm, Andy Freeman ana...@earthlink.net wrote:

  Is that the whole post method?

  I ask because calling self.redirect does not cause the post method to
  terminate.  If there's code afterwards, it can undo the redirect.

  On Dec 29, 3:02 pm,Panchoyfa...@gmail.com wrote:

   Hi Wesley,

   Indeed the extra ) is a typo in the message but the code does
   compile.
   I am calling it using POST and the le log info Redirecting to
   google.com is actually displayed but the redirection doesn't happen.

   Any idea?

   Thanks,

  Pancho

   On Dec 29, 2:04 am, Wesley Chun wesc+...@google.com wrote:

greetings!

how are you calling into your code? based on the code you posted
below, it does not look like it will even compile. (there is an extra
) at the end of your class definition.)

also, you have created a post() method. did you invoke your
application using POST (or GET)? if the latter, then you need to put
your code into a get() method.

hope this helps!
-wesley

On Wed, Dec 23, 2009 at 3:07 PM,Panchoyfa...@gmail.com wrote:
 Hi Everybody!

 You may have come across this issue that I have with redirecting from
 within a post:

 class Handler(webapp.RequestHandler):)

  def post(self):
    logging.info('Redirecting to google.com')
    self.redirect('http://www.google.com')

 For a strange reason this doesn't work. The message is correctly
 logged but there no redirection.

 Please help!

 Cheers.

--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Core Python Programming, Prentice Hall, (c)2007,2001
Python Fundamentals, Prentice Hall, (c)2009
   http://corepython.com

wesley.j.chun :: wesc+...@google.com
developer relations :: google app engine- 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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.




[google-appengine] Re: What is the point of the PostalAddressProperty?

2010-01-02 Thread Kelly A
I searched for the issue and found no similar request.  I have created
a new feature request for this here: 
http://code.google.com/p/googleappengine/issues/detail?id=2592

On Jan 2, 3:21 pm, Wesley Chun (Google) wesc+...@google.com wrote:
 can you go search the list of issues here?

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

 if something similar isn't already there, please file a feature
 request.

 thanks,
 -wesley

 On Jan 2, 9:21 am, Kelly A kelly.j.ander...@gmail.com wrote:





  Wesley,

  Thank you for the response, this is exactly how I have come to think
  of the PostalAddressProperty, I would like to suggest that the
  documentation be more clear on the purpose of the object, it is not
  clear from first blush that this object is not a more rich interface
  to the more Geo aware google functions.

  I would also like to propose a higher level address object that takes
  an address string and automatically separates it into fields and geo
  codes the address, much like entering an address into
  maps.google.com.  This object could throw and error on ambiguous
  results which the developer can handle to resolve the ambiguity.

  On Dec 29 2009, 12:10 pm, Wesley Chun wesc+...@google.com wrote:

   greetings!

   as far as i know, and please correct me if i'm wrong here, you can
   indeed just use a StringProperty if you wish. however, you can think
   of PostalAddressProperty as more of a classification as far as what
   *type* of string it is (sort of like metadata).

   it is also useful for interfacing with other Google Data Protocol
   objects, and, as you mentioned, outputting to the gd: XML namespace,
   meaning that it is supported across other Google APIs and tools, i.e.,
   Google Calenar, Contacts, Open Social, etc.), which *may* perform some
   validation or search criteria.

   and your suggestion for making individual fields, thus orderable and
   sortable, then creating a full object on the fly for gd: output sounds
   like a reasonable workaround. for more information on postal addresses
   via Google Data, 
   see:http://code.google.com/apis/gdata/docs/1.0/elements.html#gdPostalAddress

   best regards,
   -wesley

   On Mon, Dec 28, 2009 at 4:49 PM, Kelly A kelly.j.ander...@gmail.com 
   wrote:
If you cannot query on or sort on the individual fields of the address
it is rather useless.  I could just store the field as text.  I assume
that the major advantage is that you can export the item in the gd:
XML namespace with out doing any extra work.  That being said, I would
think exporting the address in a way that google contacts can read the
address is far less important that being able to sort by zip code,
state, city, etc...

For those searching for an answer to the question of querying on a zip
filed in a PostalAddressProperty or sorting on a field in a
PostalAddressProperty, the overwhelming answer I have come across is
you cannot.  It would seem that the best solution is to store the
address fields in individual variables and when a request for a gd:
address or full address is made, construct the PostalAddressProperty
on the fly.

Perhaps the PostalAddressProperty is not documented in a way that
allows me to see the value, or all of the sample applications simply
make no use of addresses and I am just missing the point. If others
have any examples of the value of this object please do respond.

 --
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Core Python Programming, Prentice Hall, (c)2007,2001
 Python Fundamentals, Prentice Hall, (c)2009
    http://corepython.com

 wesley.j.chun :: wesc+...@google.com
 developer relations :: google app engine

--

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




[google-appengine] Anyone operate a heavy-traffic large-scale web service on app engine?

2010-01-02 Thread dhruvg
I am just curious. If anyone does, could you please provide some
statistics (number of users, daily uniques, etc...) and the related
cost you incur from using app engine? I am trying to assess whether is
a smart (from a technical and business standpoint) idea for me to
invest resources early in app engine for a web service that I am
building.

Thanks in advance.

--

You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email 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: Google App Engine

2010-01-02 Thread Andy Freeman
Why would developers be better off discussing there than here?

On Dec 31 2009, 7:09 pm, Vadivel saravanan1...@gmail.com wrote:
 Google App Engine lets you run your web applications on Google's
 infrastructure. App Engine applications are easy to build, easy to
 maintain, and easy to scale as your traffic and data storage needs
 grow. This is the general discussion group for Google App Engine.
 Please join and participate. Click the link below..

 =
  page:http://www.123maza.com/website-designing/businesz
 =

--

You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email 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: Measures taken to speed index building

2010-01-02 Thread Sudhir
Absolutely... which is the problem. Indexes on *empty* datastores took
7 hours last night. I understand fully that 7 hours might be expected
for millions of objects and gigabytes of data, but not for a 76kb
datastore with three objects, 80% of which is the datastore statistics
and metadata. My app is still in development and there's nothing in
there expect test1, test2 and test3.

I've seen on the docs that index building might take 12h to 24h just
waiting on the queue, irrespective of how much data actually needs to
be indexed. While I appreciate the fact that the GAE team is being
very open and honest about this, this will be a deal breaker for lots
of people.

I love the GAE idea, and I'm basing all my hopes of writing the next
killer app and making a billion dollars on this platform, but stuff
like this is a big turn off for anybody, I think. It completely takes
the 'instant' and 'quick' out of the process, and I think it needs to
be fixed before it gives GAE a bad rep.

Sudhir

On Jan 3, 4:53 am, Barry Hunter barrybhun...@googlemail.com wrote:
 A index built against a empty datastore (or at least a Model without
 any Entities) should always be available immediately. Or at least that
 is my experience. This makes sense because such an index doesnt
 actully need to go though the 'bulk build' pipeline (which can be a
 cause of delay if the pineline is busy - the index builder is a
 background process)

 of course adding Entities to this empty index will happen in realtime,
 so just add the data after deploying the index.

 2010/1/2 Sudhir sudhi...@gmail.com:



  Does anyone know what efforts are being taken to speed up index
  building and what their status is?

  I'm finding it very difficult to be a champion for GAE in my company -
  one of the (implicitly) advertised features of GAE is the whole click
  to deploy and start running feature. Things don't bode very well if
  I'm doing a demo for the clients / bosses and we all need sit and wait
  12 to 24 hours for GAE to index two strings that say Hello World and
  test.

  Its especially frustrating when I need to deploy and test during
  development (stuff like custom search doesn't work on localhost).

  I've been hitting refresh the last six hours.

  The production issues pilot is a great step in the right direction,
  and I filed an issue and all, but is the GAE team actually thinking of
  responding to 100,000 (and counting) developers?

  Just wondering, how on earth do you guys do demos at I/O? I don't
  think any of the presenters hit deploy and said okay, let's all come
  back tomorrow, or maybe the day after, and we'll see if this
  works :-/

  Sudhir

  --

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

--

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