[google-appengine] Is it possible to use GAE while disabling the appspot.com URL?

2010-04-07 Thread Eze
Greetings! I have the feeling this is an old question, but I can't
find a specific answer. Is it possible to host a Google App *only* in
your custom domain www.example.com? I could understand this being a
restriction on free accounts, but does it also apply to paying
customers?

Thanks!

Eze

-- 
You 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] I'm trying to build my first Google app, could someone point me in the right direction?

2010-04-07 Thread NewUser
I run a small club and maintain the member roster which contains
names, email, and phone numbers. This information is stored in a
Google Spreadsheet that I have full access to.

I'm trying to build a front end GUI I can use at our meetings. This
app needs to be accessible via web. It will have a sign in window
which takes your last name. It will search for your last name, display
your info, allow you to correct it, then mark you as present and
return to home. If it doesn't find your last name it will add you as a
new member and then return to home.

The spreadsheet is hosted via Google Apps. I don't own the web server
so I can't add the Google API libraries to it. I *might* be able to
install a local copy of PHP and use the Google Apps PHP API.

My question is: What's the easiest way to accomplish this?

Some brainstorming I've done:
1) Install a local copy of PHP on my web server. Use PHP and 
tags to build the GUI. Use the Google Spreadsheet PHP APi to modify
the spreadsheet.
2) Could I build a local Java version on my computer then somehow
transfer this to a Java applet and have Google Apps Engine host my app
for me? (I'm pretty unclear on how Java vs Java applet vs Google Apps
Engine works)

Notes:
I've never used Python but I could learn. Would I need to add Google
API libraries to the python install on my web server?
I looked at the built in scripting present in Google Spreadsheets but
it doesn't offer GUI design as far as I can tell.

I'm not a web developer but I am a hobby programmer and I'm new to
Google API so could someone point me in the right direction?

-- 
You 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] Disabling chunked transfer for blobstore requests

2010-04-07 Thread Adrian Holovaty
Hi there,

When Google App Engine serves media files from the Blobstore, it sends
a "Transfer-Encoding: chunked" header and doesn't include a "Content-
Length" header. This means a client downloading the file cannot do
useful things such as displaying a progress bar, because the client
doesn't know how large the file is until the whole thing is
downloaded.

My gut reaction upon seeing this was that Google was doing this for
performance reasons, so that it didn't ever have to calculate the size
of each blob... But, Google already *knows* the size -- it's
accessible via Blobinfo.size for any given blob.

In my particular case, I'd love App Engine to set Content-Length so I
can display a download progress bar. I tried manually setting the
Content-Length header (along with the magic X-AppEngine-BlobKey
header) when serving a blob, but Content-Length was silently removed
before it reached the client. So evidently App Engine is intentionally
disallowing this.

Is there any way to disable chunked transfer for blobs? Looks like
somebody asked this in September 2008 but nobody responded:
http://groups.google.com/group/google-appengine/browse_thread/thread/14c976299c032565/

If there isn't a way to accomplish this, I'd love to hear Google's
reasoning, if only because it'd be interesting to hear why App Engine
always uses Transfer-Encoding.

Thanks,
Adrian

-- 
You 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] Netbeans & GWT & GAE

2010-04-07 Thread Timofey Koolin
I like netbeans IDE and develop my test applications in it. But I have
problem with add GWT in my GAE project - application not start
listening 8080 or any other port.

-- 
You 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] Filter by Collection property issue

2010-04-07 Thread Petrov Aleksander
I have an entity with Collection property like this:

class MyEntity{
List myStrCollection = new ArrayList();
.other properties..
}

Instance of MyEntity can contain myStrCollection property with 200
values;
I have about 10 different indexes containing filter by
myStrCollection.

So the question is:
is it OK to do such queries?
I read that BigTable would create a lot of index rows for one entity
with collection property and now I feel that such a big collection
could affect efficiency (saving or searching).

-- 
You 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] cpu qoutas comsumed

2010-04-07 Thread alf
How can get data about quota comsumed accumulated.  Similar data
appear in dashboard.

Best regards

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-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] Re: Datastore Advice

2010-04-07 Thread Nick Johnson (Google)
On Tue, Apr 6, 2010 at 5:47 PM, timwhunt  wrote:

> Thanks Nick!!
>
> So to make sure I understand:
>
> In the last step of your process for getting a list of unread
> articles, I'd first get the 'UserArticle' entities marked as Unread,
> and I'm assuming each UserArticle entity would contain the key for the
> actual article entity.


Correct - or better, the key name of the UserArticle could be the same as
the key name of the article. If you use the mere existence of a UserArticle
to indicate an article is unread, you can even do a keys-only query, using
Brett's 'relation index' pattern.


>  So I'd get the Unread UserArticles and then
> loop through them in my code to retrieve the article content/text for
> display using the article entity's keys.


Correct, though you should do this using a batch get, to minimise
roundtrips.


>  The main point is the need
> for a two step process - First get the UserArticle entities marked
> unread, then get the actual article content by looping through the
> unread UserArticle entities.  I understand retrieving by key is fast,
> and  think I can also provide a list of keys in one operation to make
> it even faster, but I want to make sure I understand it's a two step
> process.
>

Correct.


>
> Also, the Unseen status is never marked as such in any entity, rather
> it's the category of articles I'm getting in step 2 of your process,
> for which I'll create UserArticle entities marked Unread. Right?
>

Right. 'unseen' is simply all posts newer than the last one you processed
for this user.

-Nick


>
> Thanks again!
> Tim
>
> --
> You 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.
>
>


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

-- 
You 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] users.get_current_user() returns None

2010-04-07 Thread Wesley C (Google)
i see several of these errors. if get_current_user() returns None, it
really does mean that whoever/whatever access that page isn't logged
in. perhaps it's a TaskQueue task or some robot hitting your page.

do you recognize the IP addresses in your log entries? for example,
one of them is 66.249.65.59. the one you posted above is 66.249.65.48.

can you visit that page yourself (both logged in as well as not) and
confirm that your page hit does or doesn't trigger one of those error
lines?

the reason why i ask you to check your app carefully is that usually
only users see this "error" when they're playing with the development
server... there haven't been any reports (that i've seen lately) of
this happening in production.

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

wesley.j.chun :: wesc+api-at-google-dot-com
developer relations :: google app engine
@app_engine :: googleappengine.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-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] Is it possible to use GAE while disabling the appspot.com URL?

2010-04-07 Thread Ulrich

Eze wrote:

Greetings! I have the feeling this is an old question, but I can't
find a specific answer. Is it possible to host a Google App *only* in
your custom domain www.example.com?
As far as I know, you can check the domain in your Python or Java 
application and redirect the user or a display a 404 error or something 
like that.


-Ulrich

I could understand this being a
restriction on free accounts, but does it also apply to paying
customers?

Thanks!

Eze

  


--
You 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] AppEngine Query from your browser

2010-04-07 Thread Nick Johnson (Google)
Hi Dhruv,

While this is an interesting project, providing direct access to the
datastore from client-side code has very serious security implications. Any
user can manipulate your data in any way, exposing private user data,
modifying data, or erasing it.

-Nick Johnson

On Wed, Apr 7, 2010 at 6:02 AM, dhruvbird  wrote:

> Hello all,
>  I was just trying out some stuff and managed to get data store query
> working from javascript on the browser. http://gaequery.appspot.com/
>  So, I made an appspot app. for demonstrating that. You can now write
> applications entirely in Javascript(with custom server side code for
> auth. and security), and write all your CRUD in Javascript on the
> browser itself.
>
> Regards,
> -Dhruv.
>
> --
> You 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.
>
>


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

-- 
You 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] Avoiding email duplication

2010-04-07 Thread Janne Savukoski
Hello,

We're having some problems with emails being sent multiple times. The
core issue is that emails are being sent even if send_mail raises an
error (DeadlineExceededError). (Same issue mentioned in
http://groups.google.com/group/google-appengine/browse_thread/thread/189eecd6021b1bb4/ed1025f01b47e101)

What is the best way to send emails just once as guaranteedly as
possible with AppEngine? Queue emailing tasks individually with a
sufficient delay in between and guard for duplicate task execution?

This doesn't solve the problem of emails being sent even when the
calls error, but if the delay helps to minimize the exception
occurrence.

-- 
You 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] A safer way to do dynamic property assignment?

2010-04-07 Thread J
I need to assign a value to a Model property but its name is not known
until runtime. For illustrative purposes, say

class Story(db.Model):
title = db.StringProperty()
body = db.TextProperty()

s = Story(title="The Three Little Pigs")

Since I wanted to decide on the property name at runtime, I wrote:
cmd = 's.%s = %s' % ('body', '"Once upon a time..."')
exec(cmd)

I shouldn't have to use exec. There has to be a better way of
assigning values to properties.

Any suggestions?

-- 
You 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: A safer way to do dynamic property assignment?

2010-04-07 Thread Tim Hoffman
Hi

Have a look at Expando as a base class for starters.
http://code.google.com/appengine/docs/python/datastore/expandoclass.html

And also you should avoid using exec/eval,

use setattr and getattr http://docs.python.org/library/functions.html#setattr

e.g.

setattr(myobj,'my_property_name',some_value)  - have a

Rgds

T



On Apr 7, 10:31 pm, J  wrote:
> I need to assign a value to a Model property but its name is not known
> until runtime. For illustrative purposes, say
>
> class Story(db.Model):
>     title = db.StringProperty()
>     body = db.TextProperty()
>
> s = Story(title="The Three Little Pigs")
>
> Since I wanted to decide on the property name at runtime, I wrote:
> cmd = 's.%s = %s' % ('body', '"Once upon a time..."')
> exec(cmd)
>
> I shouldn't have to use exec. There has to be a better way of
> assigning values to properties.
>
> Any suggestions?

-- 
You 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] A safer way to do dynamic property assignment?

2010-04-07 Thread Nick Johnson (Google)
Hi J,

You can use getattr and setattr for dynamic property access:

s = Story()
setattr(s, 'title', 'The three little pigs')
getattr(s, 'title') # Returns 'The three little pigs'

On Wed, Apr 7, 2010 at 3:31 PM, J  wrote:

> I need to assign a value to a Model property but its name is not known
> until runtime. For illustrative purposes, say
>
> class Story(db.Model):
>title = db.StringProperty()
>body = db.TextProperty()
>
> s = Story(title="The Three Little Pigs")
>
> Since I wanted to decide on the property name at runtime, I wrote:
> cmd = 's.%s = %s' % ('body', '"Once upon a time..."')
> exec(cmd)
>
> I shouldn't have to use exec. There has to be a better way of
> assigning values to properties.
>
> Any suggestions?
>
> --
> You 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.
>
>


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

-- 
You 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: I'm trying to build my first Google app, could someone point me in the right direction?

2010-04-07 Thread Jake
Hello,

There are quite a few questions in there that people will probably
answer.  One quick thing to clear up is that Google App Engine is a
hosting service for web-applications programmed in either Python or
Java.  Java can be used to make many things, including standard
programs, applets (small components that run inside a traditional
webpage) and servlets (that use Java logic to serve dynamic web pages
instead static HTML files).  Google App Engine also provides a
datastore back-end.  I know very little about accessing Google Docs
spreadsheets through an API, but in your case (depending on how much
you are eager to learn), I would store the data in the GAE datastore
and use Google App Engine for all that you describe.  I believe GAE is
the ideal situation to what you need.  It would require some learning,
but Google has some pretty good documentation.

Jake

On Apr 6, 3:33 pm, NewUser  wrote:
> I run a small club and maintain the member roster which contains
> names, email, and phone numbers. This information is stored in a
> Google Spreadsheet that I have full access to.
>
> I'm trying to build a front end GUI I can use at our meetings. This
> app needs to be accessible via web. It will have a sign in window
> which takes your last name. It will search for your last name, display
> your info, allow you to correct it, then mark you as present and
> return to home. If it doesn't find your last name it will add you as a
> new member and then return to home.
>
> The spreadsheet is hosted via Google Apps. I don't own the web server
> so I can't add the Google API libraries to it. I *might* be able to
> install a local copy of PHP and use the Google Apps PHP API.
>
> My question is: What's the easiest way to accomplish this?
>
> Some brainstorming I've done:
> 1) Install a local copy of PHP on my web server. Use PHP and 
> tags to build the GUI. Use the Google Spreadsheet PHP APi to modify
> the spreadsheet.
> 2) Could I build a local Java version on my computer then somehow
> transfer this to a Java applet and have Google Apps Engine host my app
> for me? (I'm pretty unclear on how Java vs Java applet vs Google Apps
> Engine works)
>
> Notes:
> I've never used Python but I could learn. Would I need to add Google
> API libraries to the python install on my web server?
> I looked at the built in scripting present in Google Spreadsheets but
> it doesn't offer GUI design as far as I can tell.
>
> I'm not a web developer but I am a hobby programmer and I'm new to
> Google API so could someone point me in the right direction?

-- 
You 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] sending ics attachment in meeting notification

2010-04-07 Thread Ron
when sending an ics attachment with meeting information

the header that comes through for the part is like this
Content-Type: text/calendar
MIME-Version: 1.0
Content-Disposition: attachment; filename="meeting.ics"

but it needs to be like this
Content-Type: text/calendar; charset=utf-8; method=REQUEST;
name=meeting.ics

so that the email client can pick it up as a meeting request

is it possible to do this?

Thanks
Ron

-- 
You 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] Beginner question

2010-04-07 Thread Vik_Sintus
sorry if I post this in the wrong place

just starting to learn GWT using 'Glassfish Bundle For Eclipse'
using step by step tutorials from GWT homepage and so far I manage to
deploy the first simple sample app at http://bahasa-java.appspot.com/
 during the last couple of days I manage to associate what seen on the
web page in  relation to it source code but so far I can't find the
word "Web Application Starter Project" in any source code of my first
app at http://bahasa-java.appspot.com/

Thank you for your help
Regards
Vik

-- 
You 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] About GAE for Python startup problems

2010-04-07 Thread Nenya
hi,  nice to meet you. I'm from china, and strived so much to go
through the FAMOUS "china great fire wall" which blocks many and many
sites , ex. google group and python/download.

that's my complaint, ^...@^

now, i want to describe my problem, it's very strange.

when i was in office,  my computer can run or new a project by Python,
but when i go back to home, my private computer can't do it.

i have installed python 2.5 and gae-1.32-for-python. when i new / add
a project, the Google App Engine Launcher seems to work slowly, after
a few second, the project is showed on the Google App Engine Launcher.
but when i push run button, the pj status is always yellow trangle.
and when i push edit button, the app.yaml file can't show.

i checked the file google_appengine_projects.ini and found that gae
only create [0] and now create path, port and name of project when i
create or add a pj.

i'm a beginner in python and want to transfer some interest from java
to python,
so who can tell me why?

thanks

p.s. my english is not very good

-- 
You 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.appengine.api.mail.InvalidEmailError and invalid_email_reason

2010-04-07 Thread Dave
Hi-

I was writing a request handler that sent an email address and was
very surprised when my unit tests failed due to is_email_valid
returning unexpected false positives.  Upon further investigation of
the sdk source[1], turns out that invalid_email_reason is doing a very
very basic string validation and not actually checking any valid email
address guidelines.

I created a list of very basic email address problems that I had
expected to get caught[2], and it looks like the live version of gae
is doing the same thing.

I have seen many email validation regexes was really hoping that this
function did what I had expected.  Should I file a bug w/a patch?  Or
are there other workarounds that anyone else has used?  Just sending
and catching an Error (not InvalidEmailError for the listed reasons
though)?

links:
[1] invalid_email_reason source in google code
http://code.google.com/p/googleappengine/source/browse/trunk/python/google/appengine/api/mail.py#115
[2] test handler and response source
http://gist.github.com/359138

-- 
You 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] error using zk framework

2010-04-07 Thread shrimpy
Hello everyone,

Does anyone know what are the locations of google app engine office???

Do all the app engine guys are in *Mountain *View California???


Thanks,
Shrimpy.

-- 
You 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: unable to delete versions of App

2010-04-07 Thread mandar khadilk
Thanks.

On Apr 6, 2:22 pm, "Ikai L (Google)"  wrote:
> I've filed a bug with the production team. They'll get around to it when
> they do a sweep of these "ghost" versions. You can have up to 100 versions,
> so these should not block you from continuing to develop.
>
>
>
>
>
> On Thu, Apr 1, 2010 at 8:04 AM, mandar khadilk  wrote:
> > apptadd
>
> > On Mar 31, 10:52 am, "Ikai L (Google)"  wrote:
> > > What's your application ID?
>
> > > On Tue, Mar 30, 2010 at 10:28 PM, mandar khadilk 
> > wrote:
> > > >http://11.latest.apptadd.appspot.com
> > > >http://18.latest.apptadd.appspot.com
>
> > > > I am not able to delete these versions of my Apps. Any idea how to fix
> > > > it?
> > > > Thanks
> > > > mandar
>
> > > > --
> > > > You 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 > > >  e...@googlegroups.com> > e...@googlegroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-appengine?hl=en.
>
> > > --
> > > Ikai Lan
> > > Developer Programs Engineer, Google App Enginehttp://
> > googleappengine.blogspot.com|http://twitter.com/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 > e...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App 
> Enginehttp://googleappengine.blogspot.com|http://twitter.com/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] users.get_current_user() returns None

2010-04-07 Thread Alan Xing
Wesley,

Sure there are robot clicks. The IP addresses you mentioned are indeed
bots.

However, there were quite many real human clicks that caused the problem.
For instance, in the app id 'sa-beta' error log, there is the following
entry:
03-15 03:07PM 52.148 /channel/ 500 949ms 330cpu_ms 9kb Mozilla/5.0 (Windows;
U; Windows NT 6.0; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/
4.0.249.89 Safari/532.5,gzip(gfe),gzip(gfe)
See 
details
 76.254.23.119
The IP address 76.254.23.119 is my home DSL. I'm very positive that the
error log showed up because I clicked.

That said, my team didn't notice this problem recently. Maybe it is still
happening, just not as frequently.

Alan

On Wed, Apr 7, 2010 at 2:06 AM, Wesley C (Google)

> wrote:

> i see several of these errors. if get_current_user() returns None, it
> really does mean that whoever/whatever access that page isn't logged
> in. perhaps it's a TaskQueue task or some robot hitting your page.
>
> do you recognize the IP addresses in your log entries? for example,
> one of them is 66.249.65.59. the one you posted above is 66.249.65.48.
>
> can you visit that page yourself (both logged in as well as not) and
> confirm that your page hit does or doesn't trigger one of those error
> lines?
>
> the reason why i ask you to check your app carefully is that usually
> only users see this "error" when they're playing with the development
> server... there haven't been any reports (that i've seen lately) of
> this happening in production.
>
> thanks,
> -- wesley
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "Core Python Programming", Prentice Hall, (c)2007,2001
> "Python Fundamentals", Prentice Hall, (c)2009
>http://corepython.com
>
> wesley.j.chun :: wesc+api-at-google-dot-com
> developer relations :: google app engine
> @app_engine :: googleappengine.blogspot.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-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.
>
>


-- 
http://twitter.com/alanxing
http://twitter.com/xinghailiang
http://facebook.com/alanxing
http://www.linkedin.com/in/alanxing
http://twitter.com/snsanalytics
http://facebook.com/snsanalytics
http://www.snsanalytics.com provides targeted social marketing solutions for
everyone!

-- 
You 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: Avoiding email duplication

2010-04-07 Thread Sharp-Developer.Net
Hi Janne,

I also was thinking about this issue. The only idea I've got so far is
to include on BCC a email address that will send the mail back to GAE
handler and mark a email task in datastore as executed. Of course
there should be some status change to "IS_SENDING" to wait for signal
back. The overhead can be quite significant though if you have lot's
of emails and negletable if just few.

Any other thoughts?
--
Alex
http://sharp-developer.net/

On Apr 7, 1:49 pm, Janne Savukoski  wrote:
> Hello,
>
> We're having some problems with emails being sent multiple times. The
> core issue is that emails are being sent even if send_mail raises an
> error (DeadlineExceededError). (Same issue mentioned 
> inhttp://groups.google.com/group/google-appengine/browse_thread/thread/...)
>
> What is the best way to send emails just once as guaranteedly as
> possible with AppEngine? Queue emailing tasks individually with a
> sufficient delay in between and guard for duplicate task execution?
>
> This doesn't solve the problem of emails being sent even when the
> calls error, but if the delay helps to minimize the exception
> occurrence.

-- 
You 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: I'm trying to build my first Google app, could someone point me in the right direction?

2010-04-07 Thread Jonathan
My personal experience:
For small applications I've gave up the server at all.
All you need is mydomain.com and a Google site. Registering at
name.com have an initial automated setup for google site.
>From this point on you already own a site (hosted by Google) with all
the services you might need to run a small community. One of those
services can be the Google App Engine application.
Now, you can develop  the application. I've learned python to the
level that fits my needs (certainly not a pro). The documentation is
quite reasonable.

Of course, the application can be attached to another domain provided
that you have domain administration authorization and the registrar is
supporting the functionality. (I never did it)
In brief: zero cost, no server, straightforward implementation and
lots of fun.


On Apr 6, 10:33 pm, NewUser  wrote:
> I run a small club and maintain the member roster which contains
> names, email, and phone numbers. This information is stored in a
> Google Spreadsheet that I have full access to.
>
> I'm trying to build a front end GUI I can use at our meetings. This
> app needs to be accessible via web. It will have a sign in window
> which takes your last name. It will search for your last name, display
> your info, allow you to correct it, then mark you as present and
> return to home. If it doesn't find your last name it will add you as a
> new member and then return to home.
>
> The spreadsheet is hosted via Google Apps. I don't own the web server
> so I can't add the Google API libraries to it. I *might* be able to
> install a local copy of PHP and use the Google Apps PHP API.
>
> My question is: What's the easiest way toaccomplish
>
> accomplish this?
>
> Some brainstorming I've done:
> 1) Install a local copy of PHP on my web server. Use PHP and 
> tags to build the GUI. Use the Google Spreadsheet PHP APi to modify
> the spreadsheet.
> 2) Could I build a local Java version on my computer then somehow
> transfer this to a Java applet and have Google Apps Engine host my app
> for me? (I'm pretty unclear on how Java vs Java applet vs Google Apps
> Engine works)
>
> Notes:
> I've never used Python but I could learn. Would I need to add Google
> API libraries to the python install on my web server?
> I looked at the built in scripting present in Google Spreadsheets but
> it doesn't offer GUI design as far as I can tell.
>
> I'm not a web developer but I am a hobby programmer and I'm new to
> Google API so could someone point me in the right direction?

-- 
You 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] Filter by Collection property issue

2010-04-07 Thread Ikai L (Google)
Yes, one index needs to be created per property. You can also set this field
to unindexed if you do not need to search on this data.

On Tue, Apr 6, 2010 at 9:50 AM, Petrov Aleksander wrote:

> I have an entity with Collection property like this:
>
> class MyEntity{
> List myStrCollection = new ArrayList();
> .other properties..
> }
>
> Instance of MyEntity can contain myStrCollection property with 200
> values;
> I have about 10 different indexes containing filter by
> myStrCollection.
>
> So the question is:
> is it OK to do such queries?
> I read that BigTable would create a lot of index rows for one entity
> with collection property and now I feel that such a big collection
> could affect efficiency (saving or searching).
>
> --
> You 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.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/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] Re: Is it possible to use GAE while disabling the appspot.com URL?

2010-04-07 Thread Brandon Thomson
Add something like this as WSGI middleware:

class TestDenyMiddleware(object):
  def __init__(self, app):
self.app = app

  def __call__(self, environ, start_response):
sn = environ.get('SERVER_NAME', "")

if  'appspot' in sn":
  start_response('403 Forbidden', [('Content-Type', 'text/html')])
  return [config.FORBIDDEN_MESSAGE]
else:
  return self.app(environ, start_response)

- Brandon Thomson

On Apr 6, 7:00 pm, Eze  wrote:
> Greetings! I have the feeling this is an old question, but I can't
> find a specific answer. Is it possible to host a Google App *only* in
> your custom domainwww.example.com?I could understand this being a
> restriction on free accounts, but does it also apply to paying
> customers?
>
> Thanks!
>
> Eze

-- 
You 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] Beginner question

2010-04-07 Thread Ikai L (Google)
Looks like you're working with GWT and not App Engine. You'll want to ask on
the Google Web Toolkit groups:

https://groups.google.com/group/Google-Web-Toolkit?pli=1

On Wed, Apr 7, 2010 at 1:57 AM, Vik_Sintus wrote:

> sorry if I post this in the wrong place
>
> just starting to learn GWT using 'Glassfish Bundle For Eclipse'
> using step by step tutorials from GWT homepage and so far I manage to
> deploy the first simple sample app at http://bahasa-java.appspot.com/
>  during the last couple of days I manage to associate what seen on the
> web page in  relation to it source code but so far I can't find the
> word "Web Application Starter Project" in any source code of my first
> app at http://bahasa-java.appspot.com/
>
> Thank you for your help
> Regards
> Vik
>
> --
> You 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.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/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] sending ics attachment in meeting notification

2010-04-07 Thread Ikai L (Google)
You should be able to set the content type header on a response. Can you
post your code if you're doing this and it isn't happening?

On Wed, Apr 7, 2010 at 3:10 AM, Ron  wrote:

> when sending an ics attachment with meeting information
>
> the header that comes through for the part is like this
> Content-Type: text/calendar
> MIME-Version: 1.0
> Content-Disposition: attachment; filename="meeting.ics"
>
> but it needs to be like this
> Content-Type: text/calendar; charset=utf-8; method=REQUEST;
> name=meeting.ics
>
> so that the email client can pick it up as a meeting request
>
> is it possible to do this?
>
> Thanks
> Ron
>
> --
> You 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.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/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] Re: Datastore Advice

2010-04-07 Thread timwhunt
Thanks again Nick!

That helps a lot and I really appreciate it!  I watched Brett's Google
IO video and what you suggest sounds very efficient.  I have to study
up on keys a little to make sure I understand how to achieve: "the key
name of the UserArticle could be the same as the key name of the
article"  Brett made his relation index entity the child of the entity
he wanted so he could get the key from key.parent.  But as you've
suggested I probably want my relation index to be the child of a user
entity.  I think having different user entity parents would make the
relation index keys unique even if there were multiple ones for the
same article, but I have to learn the details of keys for that.

Thanks for pointing me in the right direction.

Tim

-- 
You 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] Plead: help me download my app code

2010-04-07 Thread Ricardo Sánchez-Sáez
Hello,

I reckon this has been asked many times, and the general answer is
that we should use a code revision or backup tool.

I recently got my laptop stolen, and hadn't been careful enough with
my backups. Can somebody at Google help me recover my code?

I found a tricky way to do this, but I am afraid I did not have the
remote api handlers installed.
- 
http://stackoverflow.com/questions/2479087/can-i-restore-my-source-code-that-has-been-uploaded-into-google-appengine/
How does one install remote api handlers? Is there a way I can install
the remote api handler without overwriting my app code?

I tried to create a new empty version of my app and added

handlers:
- url: /remote_api
  script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
  login: admin

to app.yaml, as instructed in
- http://code.google.com/appengine/articles/remote_api.html
but I get 404 error when trying to use remote_api_shell.py

Thank you for your 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-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] Not authorized to deploy an app or create a new one

2010-04-07 Thread Raleigh Cross
I have created an application from the Applications Overview page but
when I try to deploy the Hello World app to it I get an error that I
don't have permission. The app name in app.yaml matches my application
name on the Applications Overview page.

Also, when I try to create a new app I get an error about not having
authorization to do it.

Anyone have an idea how I might fix this?

Thanks in advance.

BTW, I changed the primary email address for my account at some point
after I created the one app I have... Could that be part of the
problem?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-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: AppEngine Query from your browser

2010-04-07 Thread dhruvbird


On Apr 7, 5:18 pm, "Nick Johnson (Google)" 
wrote:
> Hi Dhruv,
>
> While this is an interesting project, providing direct access to the
> datastore from client-side code has very serious security implications. Any
> user can manipulate your data in any way, exposing private user data,
> modifying data, or erasing it.

Hello Nick,
  I agree with you. Any app. that uses this, would have to hook onto
every datastore URL request(put_entity/get_entity, etc..) and check
the credentials of the requester. That alone would not be sufficient
since anyone (authenticated user) could potentially query the
datastore and get any user's details out.
  So, I am guessing this isn't good to store user details, but for
implementing something that doesn't require authentication like an
etherpad (not quite since I guess the etherpad URL is known only to
the creator and people he/she shares it with), it could probably be
worked out.
  Either ways, I thought of doing this as an exercise in javascript
and a tool that provides a low entry barrier for anyone who wnats to
learn about the appengine datastore and try things out themselves
without going through the rigmarole (not quite the word I was looking
for since you guys have made it _really_ simple to deploy apps; +1 to
the appengine team!!) of creating a sample app.

Regards,
-Dhruv.


>
> -Nick Johnson
>
>
>
> On Wed, Apr 7, 2010 at 6:02 AM, dhruvbird  wrote:
> > Hello all,
> >  I was just trying out some stuff and managed to get data store query
> > working from javascript on the browser.http://gaequery.appspot.com/
> >  So, I made an appspot app. for demonstrating that. You can now write
> > applications entirely in Javascript(with custom server side code for
> > auth. and security), and write all your CRUD in Javascript on the
> > browser itself.
>
> > Regards,
> > -Dhruv.
>
> > --
> > You 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.
>
> --
> Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. ::
> Registered in Dublin, Ireland, Registration Number: 368047
> Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
> 368047

-- 
You 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] The global conservation law bug

2010-04-07 Thread Yasuo Higa
As Ikai says, Slim3 has a certain level of overhead for global transactions,
but it is not very expensive.

I prepared the demonstration.

Local Transaction test code:
long start = System.currentTimeMillis();
for (int i = 0; i < entityGroups; i++) {
Transaction tx = Datastore.beginTransaction();
Datastore.put(tx, new Entity("Hoge"));
tx.commit();
}
long time = System.currentTimeMillis() - start;

Global Transaction test code:
start = System.currentTimeMillis();
GlobalTransaction gtx = Datastore.beginGlobalTransaction();
for (int i = 0; i < entityGroups; i++) {
gtx.put(new Entity("Hoge"));
}
gtx.commit();
time = System.currentTimeMillis() - start;

The result:
Entity Groups   Local Transaction(millis)   Global Transaction(millis)
  179
77
  2  152
  615
  3  249
  626
  4  280
  764
  5  395
  797

You can try this demonstration:
http://slim3demo.appspot.com/gtx/

Thanks,

Yasuo Higa

> To add on to Nick's note: global, distributed transactions are very
> expensive to do for all your writes. Even in the case of Slim3, the overhead
> is a multiplier on a write - you'll want to be very careful where you use
> this. If you use it on an operation that's frequent, you'll be paying a huge
> cost, one that you can likely avoid.
>
> On Tue, Apr 6, 2010 at 4:38 AM, Yasuo Higa  wrote:
>>
>> Hi Dexter,
>>
>> > The global conservation law is a show stopper for many banking type
>> > application in Google Apps.
>> > Check http://code.google.com/p/googleappengine/issues/detail?id=313
>> > for details.
>> >
>> > It seems that google is not going to bring 2 row concurrency anytime
>> > soon. However if a large number of people are interested it might get
>> > a higher priority.
>> >
>> In Java world, Slim3, which is a framework, supports global transactions.
>>
>> http://sites.google.com/site/slim3appengine/slim3-datastore/transactions/global-transaction
>>
>> If python SDK supports explicit transactions, global transactions can
>> be implemented as Slim3.
>>
>> Explicit transactions means:
>> DatastoreService ds = DatastoreServiceFactory.getDatastoreService();
>> Entity entity = new Entity("Aaa");
>> Entity entity2 = new Entity("Bbb");
>> Tranaction tx = ds.beginTransaction();
>> ds.put(tx, entity);
>> //this operation will execute without transaction
>> ds.put(null, entity2);
>> tx.commit();
>>
>> Thanks,
>>
>> Yasuo Higa
>>
>> --
>> You 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.
>>
>
>
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> http://googleappengine.blogspot.com | http://twitter.com/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.
>

-- 
You 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.