[google-appengine] Re: static files not found after upload

2010-03-23 Thread Thomas Johansson
Are you trying to access the file from python? The static files are
not served from the same servers, and as such are not accessible on
the file system.

On Mar 23, 2:05 am, Glenn Blackler  wrote:
> Hello --
>
> My very simple app works fine on the dev server, but once uploaded it
> can't access a file in one of my static directories. I have a static
> directory "HTML" with two files in it. The first comes up fine (I
> redirect to it from .py script) but the other HTML file always brings
> an error when I try to link to it. The error in my log is -- Static
> file referenced by handler not found: html/new_task.html.
>
> I searched for others having this same problem, but the only ones I
> could find had to do with manage.py and django, which I don't think is
> the problem here.
>
> Again, everything works fine on the dev server which is why this is so
> frustrating. I appreciate any help.
>
> Here's my app.yaml if it helps :
>
> application: test_app
> version: 1
> runtime: python
> api_version: 1
>
> handlers:
> - url: /stylesheets
>   static_dir: stylesheets
>
> - url: /html
>   static_dir: html
>
> - url: /js
>   static_dir: js
>
> - url: /tasks
>   script: test2.py
>
> - url: /addnew
>   script: test2.py
>
> - url: /.*
>   script: home.py

-- 
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] Random total stored data

2010-03-23 Thread Kenneth
I know there have been few threads around about the size inflation on
the datastore.  This one is a bit different.

Last week I was around 0.52gb of total stored data.  It was climbing
on a steady basis as my usage increased.  Then over the weekend it
jump to 0.96.  There was no large amount of data uploaded, I've check
my blobs and datastore stats. There are no new indexes (I've checked
my index.yaml in svn).  It seems to have settled around 0.67 today.

What's going on?  The lack of transparency in the datastore usage is
becoming a real 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: Late Cron Execution

2010-03-23 Thread stumpy
Good suggestion but my observations are from a version that has been
deployed for several days.


On Mar 21, 10:03 am, djidjadji  wrote:
> Are you aware that after an update of the code the cron jobs get a
> reset of the timer.
>
> Maybe the time before cron gets back after an update is 10 minutes.
> My cron jobs run hours apart.
>
> 2010/3/19 stumpy :
>
> > To provide a little more information:
>
> > I have a cron that is set up to run every one minute to initialise a
> > cache refresh. However over the past few nights during the time of
> > 4pm-11pm GMT the logs show there to be gaps of 10 minutes or greater
> > between some invocations.
>
> > On Mar 18, 11:15 pm, stumpy  wrote:
> >> Anyone from google care to comment?
>
> >> I noticed this again tonight and I rely on cron to start my cache
> >> refresh task. When cron fails to run my data becomes stale and this is
> >> unacceptable. My understanding was that cron is a reliable service
> >> with maybe +/- 2 minutes error rate. What level of service should I
> >> expect from cron? and is it reasonable to kickstart critial processes
> >> via cron? or is this not recommended?
>
> >> On Mar 17, 11:39 pm, stumpy  wrote:
>
> >> > Has anyone else noticed recently that the cron service has became
> >> > unreliable, often executing 10 minutes late and sometimes skipped
> >> > entirely for periods of several hours?
>
> >> > Prehaps an entry should be added to the status page for cron, task
> >> > queue and other similar services.
>
> > --
> > 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] Best way of storing and retrieving environment-specific settings?

2010-03-23 Thread Blixt
I want to store and retrieve key/value pairs that may vary between
environments (development server, GAE application #1, GAE application
#2, ...). What's the best way to do this?

I feel that a small GAE configuration library that allows these
settings to be administrated in the dashboard would be great, but
since we don't have that, what's the next best thing? Right now I'm
leaning towards an expando model using the key_name for the setting
key and a value property for the value.

(The reason I'm not putting these configuration values in my code is
because I want to be able to redeploy my application to multiple
environments without any fuss, and I don't want any of the
environments to have to know about the other environments.)

-- 
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] static files not found after upload

2010-03-23 Thread Nick Johnson (Google)
Hi Glenn,

Are you developing in Windows? If so, check the capitalization of your
filenames: Windows is case-insensitive, but all other platforms, including
production App Engine, are case sensitive.

-Nick Johnson

On Tue, Mar 23, 2010 at 1:05 AM, Glenn Blackler wrote:

> Hello --
>
> My very simple app works fine on the dev server, but once uploaded it
> can't access a file in one of my static directories. I have a static
> directory "HTML" with two files in it. The first comes up fine (I
> redirect to it from .py script) but the other HTML file always brings
> an error when I try to link to it. The error in my log is -- Static
> file referenced by handler not found: html/new_task.html.
>
> I searched for others having this same problem, but the only ones I
> could find had to do with manage.py and django, which I don't think is
> the problem here.
>
> Again, everything works fine on the dev server which is why this is so
> frustrating. I appreciate any help.
>
> Here's my app.yaml if it helps :
>
> application: test_app
> version: 1
> runtime: python
> api_version: 1
>
> handlers:
> - url: /stylesheets
>  static_dir: stylesheets
>
> - url: /html
>  static_dir: html
>
> - url: /js
>  static_dir: js
>
> - url: /tasks
>  script: test2.py
>
> - url: /addnew
>  script: test2.py
>
> - url: /.*
>  script: home.py
>
> --
> 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

-- 
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: Best way of storing and retrieving environment-specific settings?

2010-03-23 Thread Blixt
I'd like to add to my expando solution that I would cache the settings
either (or both) in memcache and the global variables of the
application. It would still be pretty inefficient, but I think it
would be usable.

On Mar 23, 10:55 am, Blixt  wrote:
> I want to store and retrieve key/value pairs that may vary between
> environments (development server, GAE application #1, GAE application
> #2, ...). What's the best way to do this?
>
> I feel that a small GAE configuration library that allows these
> settings to be administrated in the dashboard would be great, but
> since we don't have that, what's the next best thing? Right now I'm
> leaning towards an expando model using the key_name for the setting
> key and a value property for the value.
>
> (The reason I'm not putting these configuration values in my code is
> because I want to be able to redeploy my application to multiple
> environments without any fuss, and I don't want any of the
> environments to have to know about the other environments.)

-- 
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: ~7 GB of ghost data???

2010-03-23 Thread homunq


On Mar 22, 3:48 pm, "Nick Johnson (Google)" 
wrote
> On Mon, Mar 22, 2010 at 8:45 PM, homunq  wrote:
> > OK, after hashing it out on IRC, I see that I have to erase my data
> > and start again.
>
> Why is that? Wouldn't updating the data be a better option?

Because everything about it is wrong for saving space - the key names,
the field names, the indexes, and even in one case the fact of
breaking a string out into a list. (something I did for better
searching in several cases, one of which is not worth it now I realize
that 10X is easy to hit.)

And because the data import runs smoothly, and I have code for that
already.



Watching my deletion process start to get trapped in molasses, as Eli
Jones mentions above, I have to ask two things again:

1. Is there ANY ANY way to delete all indexes on a given property
name? Without worrying about keeping indexes in order when I'm just
paring them down to 0, I'd just be running through key names and
deleting them. It seems that would be much faster. (If it's any help,
I strongly suspect that most of my key names are globally unique
across all of Google).

2. What is the reason for the slowdown? If I understand his suggestion
to delete every 10th record, Eli Jones seems to suspect that it's
because there's some kind of resource conflict on specific sections of
storage, thus the solution is to attempt to spread your load across
machines. I don't see why that would cause a gradual slowdown. My best
theory is that write-then-delete leaves the index somehow a little
messier (for instance, maybe the index doesn't fully recover the
unused space because it expects you to fill it again) and that when
you do it on a massive scale you get massively messy and slow indexes.
Thus, again, I suspect this question reduces to question 1, although I
guess that if my theory is right a compress/garbage-collect/degunking
call for the indexes would be (for me) second best after a way to nuke
them.

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

2010-03-23 Thread pca
Could someone explain me how the authorisation cookie behaves ?

I've seen the following parameter in the GAE administration tool /
Application settings:
Cookie Expiration: 1 day / 1 week / 2 weeks
App Engine uses a cookie to keep users logged in to your
application.
You can control how long each login cookie remains valid before
being re-issued by using this parameter.

I don't understand the comment.  Do users have to login every 2 weeks,
even if they access the application every day ?  Or they must login
only if they have not accessed the application in the last 2 weeks ?
In other words, does users.get_current_user() restart the 2 weeks
validity period ?  If not, is there any way for the application to
restart the validity programmatically ?

I could not find any info in the documentation, and discovering it by
trying it would be too time-consuming for me...

Thanks in advance,
PC

-- 
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: ~7 GB of ghost data???

2010-03-23 Thread Nick Johnson (Google)
Hi,

On Tue, Mar 23, 2010 at 10:25 AM, homunq  wrote:

>
>
> On Mar 22, 3:48 pm, "Nick Johnson (Google)" 
> wrote
> > On Mon, Mar 22, 2010 at 8:45 PM, homunq  wrote:
> > > OK, after hashing it out on IRC, I see that I have to erase my data
> > > and start again.
> >
> > Why is that? Wouldn't updating the data be a better option?
>
> Because everything about it is wrong for saving space - the key names,
> the field names, the indexes, and even in one case the fact of
> breaking a string out into a list. (something I did for better
> searching in several cases, one of which is not worth it now I realize
> that 10X is easy to hit.)
>
> And because the data import runs smoothly, and I have code for that
> already.
>
> 
>
> Watching my deletion process start to get trapped in molasses, as Eli
> Jones mentions above, I have to ask two things again:
>
> 1. Is there ANY ANY way to delete all indexes on a given property
> name? Without worrying about keeping indexes in order when I'm just
> paring them down to 0, I'd just be running through key names and
> deleting them. It seems that would be much faster. (If it's any help,
> I strongly suspect that most of my key names are globally unique
> across all of Google).
>

No - that would violate the constant that indexes are always kept in sync
with the data they refer to.


>
> 2. What is the reason for the slowdown? If I understand his suggestion
> to delete every 10th record, Eli Jones seems to suspect that it's
> because there's some kind of resource conflict on specific sections of
> storage, thus the solution is to attempt to spread your load across
> machines. I don't see why that would cause a gradual slowdown. My best
> theory is that write-then-delete leaves the index somehow a little
> messier (for instance, maybe the index doesn't fully recover the
> unused space because it expects you to fill it again) and that when
> you do it on a massive scale you get massively messy and slow indexes.
> Thus, again, I suspect this question reduces to question 1, although I
> guess that if my theory is right a compress/garbage-collect/degunking
> call for the indexes would be (for me) second best after a way to nuke
> them.
>

Deletes using the naive approach slow down because when a record is deleted
in Bigtable, it simply inserts a 'tombstone' record indicating the original
record is deleted - the record isn't actually removed entirely from the
datastore until the tablet it's on does its next compaction cycle. Until
then, every subsequent query has to skip over the tombstone records to find
the live records.

This is easy to avoid: Use cursors to delete records sequentially. That way,
your queries won't be skipping the same tombstoned records over and over
again - O(n) instead of O(n^2)!

-Nick Johnson


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

-- 
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 if I set "required=False" for a StringListProperty

2010-03-23 Thread Nick Johnson (Google)
Hi,

The only valid value for 'required' is 'True'. If you don't want it to be
required, simply omit the argument altogether.

-Nick Johnson

On Tue, Mar 23, 2010 at 3:09 AM, dhruvbird  wrote:

> Hello,
>  I have a model with a single attribute that is a StringListProperty.
> I get an error if I define it as such:
>
> class Test(db.Expando):
>people = db.StringListProperty(required=False, indexed=True)
>
> However, on changing it to:
> class Test(db.Expando):
>people = db.StringListProperty(required=True, indexed=True,
> default=[])
>
> It starts working. Any ideas why this is happening??
>
> 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

-- 
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: memcache not getting updated

2010-03-23 Thread Adhi
Hi Nick,
Thanks, thats the problem. I'm trying to put around 60 objects in
memcache using set_multi
and its failing for all the objects so in case of failure I'm deleting
the objects in memcache
then splitting the dict and updating, and its working.

I don't know, after posting the problem I couldn't see the post for
the past few days, anyway now I got it
thanks:)

Adhi

On Mar 9, 9:27 pm, "Nick Johnson (Google)" 
wrote:
> Hi,
>
> Have you checked the return code of the memcache call? Unlike most of the
> APIs, memcache indicates errors in its return code, rather than throwing an
> exception.
>
> -Nick Johnson
>
> On Tue, Mar 9, 2010 at 6:43 AM, Adhi wrote:
>
>
>
>
>
> > Hi,
> > Is there any chance that updating memcache fails? In a same
> > transaction I'm updating a particular record both in memcache and db,
> > but still the memcache having old data where as db has updated record.
> > And I have checked the url in stats, the memcache.set is getting
> > called followed by the db.put().
>
> > But for the same application it is not happening in different appspot
> > (staging). Any suggestions or clue? the problem happening in
> > production.
>
> > Thanks
> > Adhi
>
> > --
> > 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.
>
> --
> Nick Johnson, Developer Programs Engineer, App Engine 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: BlobProperty limit

2010-03-23 Thread Adhi
Hi Brian,
Are you using single db.put() for all the entities?

Thanks
Adhi

On Mar 10, 5:36 pm, bFlood  wrote:
> hello
>
> maybe you should try 11 parts so each would be below the max 1MB api
> limit. You definitely need separate entities for each part
>

-- 
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: permutations vs Cartesian product in exploding indexes documentation

2010-03-23 Thread Nick Johnson (Google)
Hi Karl,

You're correct that it is indeed the cartesian product in this case - it
produces one index entry for every unique tuple of values from the indexed
columns.

This gets slightly more complicated in the situation where the same column
is being indexed multiple times. In that situation, the naive cartesian
product is not used - instead, the additional constraints that the values
are sorted in non-descending order and that no value occurs more than once
in a tuple are added, so as to eliminate unnecessary duplicates. Eg, an
index on (foo, foo), with a value of [1,2,3] for foo will result in the
following entries:

(1,2),(1,3),(2,3)

Notably omitting the redundant entries:

(2,1),(3,1),(3,2)

And the invalid entries:

(1,1),(2,2),(3,3)

-Nick Johnson

On Tue, Mar 23, 2010 at 2:22 AM, kostmo  wrote:

> OK, I just watched Brett Slatkin's I/O talk [1] and he mentions "cross
> product" a couple of times, so it seems that the use of the word
> "permutation" in the docs is incorrect; the number of index entries is
> indeed proportional to the Cartesian product, rather than
> "permutations" which would lead to a factorial (n!) number of index
> entries.
>
> I've filed a doco issue here [2].
>
> Karl
>
> [1]
> http://code.google.com/events/io/2009/sessions/BuildingScalableComplexApps.html
> [2] http://code.google.com/p/googleappengine/issues/detail?id=3003
>
> On Mar 22, 11:50 am, kostmo  wrote:
> > It is still unclear to me exactly how many index entries will be
> > produced by including multiple ListProperty's in an entity. In one
> > post [1], between the inquiring user and the Google rep, the
> > possibilities for the number of index entries included the power set,
> > Cartesian product, or the "number of unique combinations" (this was
> > the rep's answer, without mention of "permutations").
> >
> > I'd like to verify that the correct combinatorics terminology is being
> > used in the documentation on exploding indexes [2].
> >
> > Quote:
> > "the index table must include a row for every permutation of the
> > values of every property for the index"
> > This is followed by the example:
> > e2 = MyModel()
> > e2.x = ['red', 'blue']
> > e2.y = [1, 2]
> > "the index must store 12 property values: 2 each for the built-in
> > indexes on x and y, and 2 for each of the 4 permutations of x and y in
> > the custom index".
> >
> > The example does not make me completely confident about what type of
> > combinatoric expression is truly being used, since the sum of the
> > number of permutations for each property happens to equal the
> > cardinality of the Cartesian product of the two properties. The
> > enumeration given in this post [3] seems to suggest that it is
> > actually the Cartesian product at work.
> >
> > To clarify this issue, we could use Python 2.6 to illustrate an
> > example:>>> from itertools import product, permutations
> > >>> x = ['red', 'blue', 'green']
> > >>> y = [1, 2, 3]
> > >>> list(permutations(x)) + list(permutations(y))
> >
> > [('red', 'blue', 'green'), ('red', 'green', 'blue'), ('blue', 'red',
> > 'green'), ('blue', 'green', 'red'), ('green', 'red', 'blue'),
> > ('green', 'blue', 'red'), (1, 2, 3), (1, 3, 2), (2, 1, 3), (2, 3, 1),
> > (3, 1, 2), (3, 2, 1)]>>> list(product(x, y))
> >
> > [('red', 1), ('red', 2), ('red', 3), ('blue', 1), ('blue', 2),
> > ('blue', 3), ('green', 1), ('green', 2), ('green', 3)]
> >
> > Is the number of custom index entries that will be generated by an
> > entity with the two 3-valued properties given above proportional to
> > the sum of permutations (there are 12) or the Cartesian product (there
> > are 9)?
> >
> > Thanks,
> > Karl
> >
> > [1] "Efficient way to structure my data model"
> http://groups.google.com/group/google-appengine/browse_thread/thread/...
> > [2]
> http://code.google.com/appengine/docs/python/datastore/queriesandinde...
> > [3] "Size of index in case of exploding index"
> http://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> --
> 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

-- 
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: Reading a file in GAE Java

2010-03-23 Thread Iain Flynn
Thanks for that, but it's still getting null. I've tried changing the
URI and the file's location around (and triple-checking that I've
spelled it correctly), but still nothing. I've included these lines in
the appengine-web.xml file, as the tutorial says. Can you please say
if you see anything wrong with them?








Thank you again,

- Iain.

On Mar 23, 2:06 am, Patrick Twohig  wrote:
> I use
>
> Class.getResourceAsStream("/xml/myschema.xsd");
>
> Cheers!
>
> On Mon, Mar 22, 2010 at 10:57 AM, Iain Flynn wrote:
>
>
>
>
>
> > Hi there. I have an application that requires me to read in and
> > transform an XSLT stylesheet, which I keep in the directory /xml in /
> > war.
>
> > I've read the tutorials, and I've included it as a resource file (more
> > specifically, set that all xsl files are included as resource files),
> > but when I try to read it in my Java servlet (using the URI /xml/
> > file.xsl), I get the FilePermission error. I presume I'm getting this
> > error because it can't find the file (I know that writing files is not
> > allowed, but I'm opening it in read-mode).
>
> > I've looked through all the tutorials and I can't see where I'm going
> > wrong here. I can use files with my HTML, but getting Java on them
> > seems to elude me.
>
> > I get the feeling I've made a very elementary mistake, but can't for
> > the life of me figure it out.
>
> > Thanks for your time, and sorry if this is the wrong place for this.
>
> > - Iain
>
> > --
> > 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.
>
> --
> Patrick H. Twohig.
>
> Namazu Studios
> P.O. Box 34161
> San Diego, CA 92163-4161

-- 
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-equal filter

2010-03-23 Thread alf
I will try to explain my problem

explaple we have entities recorded with a timespan in the moment it
have been put.  Now I would lik retrieve entities with <= 2 hours  or
> 2hour <4 hours acording moment you perform the request, using not-
equal filter is easy but  my questions is:

how can get entities related to time-different using only equal
filters?

thanks
alberto

-- 
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: Cookie expiration

2010-03-23 Thread Wooble


On Mar 23, 6:32 am, pca  wrote:
> Could someone explain me how the authorisation cookie behaves ?
>
> I've seen the following parameter in the GAE administration tool /
> Application settings:
>     Cookie Expiration: 1 day / 1 week / 2 weeks
>     App Engine uses a cookie to keep users logged in to your
> application.
>     You can control how long each login cookie remains valid before
> being re-issued by using this parameter.
>
> I don't understand the comment.  Do users have to login every 2 weeks,
> even if they access the application every day ?  Or they must login
> only if they have not accessed the application in the last 2 weeks ?
> In other words, does users.get_current_user() restart the 2 weeks
> validity period ?  If not, is there any way for the application to
> restart the validity programmatically ?
>
> I could not find any info in the documentation, and discovering it by
> trying it would be too time-consuming for me...

I believe the cookie is set to expire 2 weeks after login, and then
isn't written again after that.

The only workaround I can think of would be to use you own auth
sessions (which could still use Google logins through openID) and re-
write the session cookie with a new, extended expiration date every
time the user uses your application.

This is a fairly common type of security precaution; someone gaining
access to a user's machine could only exploit the existing cookies for
a limited amount of time, although of course the amount of damage they
could do within that 2 week window is still probably fairly high.  You
might think users would be turned off by needing to login again every
2 weeks, but Facebook requires it and it hasn't hurt their popularity
much; at this point you can probably assume your users are used to
periodic logins.

-- 
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: Error if I set "required=False" for a StringListProperty

2010-03-23 Thread Wooble


On Mar 22, 11:09 pm, dhruvbird  wrote:
> Hello,
>   I have a model with a single attribute that is a StringListProperty.
> I get an error if I define it as such:
>
> class Test(db.Expando):
>     people = db.StringListProperty(required=False, indexed=True)
>
> However, on changing it to:
> class Test(db.Expando):
>     people = db.StringListProperty(required=True, indexed=True,
> default=[])
>
> It starts working. Any ideas why this is happening??

ListPropertys are always required; you can't set their value to None.
If a particular entity has no values for the ListProperty, you need to
set it to the empty list.  (Note that you can still set a default
value of 'None', which magically uses an empty list, not None, as the
default value.)

-- 
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: Can I change the login option of my app if I delete it?

2010-03-23 Thread Mariano Benitez
Yes, I've read this paragraph: "Even after your application is
deleted, its appid is reserved."

But for me it was not clear if the appid can be claimed by myself
again, if it is that way, no problem. :)

Thanks

On Mar 22, 9:32 pm, Eli Jones  wrote:
> Here is the specific documentation on app deletion:
>
> http://code.google.com/appengine/kb/adminconsole.html#delete_app
>
> You cannot
> use the appid again, unfortunately.
>
>
>
> On Mon, Mar 22, 2010 at 8:25 PM, djidjadji  wrote:
> > To my knowledge the appid can only be once allocated.
> > If you delete the app the appid is no more available.
>
> > 2010/3/23 Mariano Benitez :
> > > I understand I cannot change the option while the application is
> > > enabled. Also that the application Id is reserved if I delete the
> > > application. But... can I re-create the application with a different
> > > login option, or the app id is reserved to never be used again?
>
> > > 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 > e...@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 > e...@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] Re: ~7 GB of ghost data???

2010-03-23 Thread homunq

>
> > Watching my deletion process start to get trapped in molasses, as Eli
> > Jones mentions above, I have to ask two things again:
>
> > 1. Is there ANY ANY way to delete all indexes on a given property
> > name? Without worrying about keeping indexes in order when I'm just
> > paring them down to 0, I'd just be running through key names and
> > deleting them. It seems that would be much faster. (If it's any help,
> > I strongly suspect that most of my key names are globally unique
> > across all of Google).
>
> No - that would violate the constant that indexes are always kept in sync
> with the data they refer to.
>

It seems to me that having no index at all is the same situation as if
the property was indexed=False from the beginning. If that's so, it
can't be violating a hard constraint.

>
> > 2. What is the reason for the slowdown? If I understand his suggestion
> > to delete every 10th record, Eli Jones seems to suspect that it's
> > because there's some kind of resource conflict on specific sections of
> > storage, thus the solution is to attempt to spread your load across
> > machines. I don't see why that would cause a gradual slowdown. My best
> > theory is that write-then-delete leaves the index somehow a little
> > messier (for instance, maybe the index doesn't fully recover the
> > unused space because it expects you to fill it again) and that when
> > you do it on a massive scale you get massively messy and slow indexes.
> > Thus, again, I suspect this question reduces to question 1, although I
> > guess that if my theory is right a compress/garbage-collect/degunking
> > call for the indexes would be (for me) second best after a way to nuke
> > them.
>
> Deletes using the naive approach slow down because when a record is deleted
> in Bigtable, it simply inserts a 'tombstone' record indicating the original
> record is deleted - the record isn't actually removed entirely from the
> datastore until the tablet it's on does its next compaction cycle. Until
> then, every subsequent query has to skip over the tombstone records to find
> the live records.
>
> This is easy to avoid: Use cursors to delete records sequentially. That way,
> your queries won't be skipping the same tombstoned records over and over
> again - O(n) instead of O(n^2)!
>

Thanks for explaining. Can you say anything about how often the
compaction cycles are? Just an order of magnitude - hours, days, or
weeks?

Thanks,
Jameson

-- 
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: ~7 GB of ghost data???

2010-03-23 Thread Nick Johnson (Google)
On Tue, Mar 23, 2010 at 1:57 PM, homunq  wrote:

>
> >
> > > Watching my deletion process start to get trapped in molasses, as Eli
> > > Jones mentions above, I have to ask two things again:
> >
> > > 1. Is there ANY ANY way to delete all indexes on a given property
> > > name? Without worrying about keeping indexes in order when I'm just
> > > paring them down to 0, I'd just be running through key names and
> > > deleting them. It seems that would be much faster. (If it's any help,
> > > I strongly suspect that most of my key names are globally unique
> > > across all of Google).
> >
> > No - that would violate the constant that indexes are always kept in sync
> > with the data they refer to.
> >
>
> It seems to me that having no index at all is the same situation as if
> the property was indexed=False from the beginning. If that's so, it
> can't be violating a hard constraint.
>

Internally, indexed fields are stored in the 'properties' list in the Entity
Protocol Buffer, while unindexed fields are stored in the
'unindexed_properties' list in the Entity PB. The only way to change the
indexing properties is to fetch them and store them.


>
> >
> > > 2. What is the reason for the slowdown? If I understand his suggestion
> > > to delete every 10th record, Eli Jones seems to suspect that it's
> > > because there's some kind of resource conflict on specific sections of
> > > storage, thus the solution is to attempt to spread your load across
> > > machines. I don't see why that would cause a gradual slowdown. My best
> > > theory is that write-then-delete leaves the index somehow a little
> > > messier (for instance, maybe the index doesn't fully recover the
> > > unused space because it expects you to fill it again) and that when
> > > you do it on a massive scale you get massively messy and slow indexes.
> > > Thus, again, I suspect this question reduces to question 1, although I
> > > guess that if my theory is right a compress/garbage-collect/degunking
> > > call for the indexes would be (for me) second best after a way to nuke
> > > them.
> >
> > Deletes using the naive approach slow down because when a record is
> deleted
> > in Bigtable, it simply inserts a 'tombstone' record indicating the
> original
> > record is deleted - the record isn't actually removed entirely from the
> > datastore until the tablet it's on does its next compaction cycle. Until
> > then, every subsequent query has to skip over the tombstone records to
> find
> > the live records.
> >
> > This is easy to avoid: Use cursors to delete records sequentially. That
> way,
> > your queries won't be skipping the same tombstoned records over and over
> > again - O(n) instead of O(n^2)!
> >
>
> Thanks for explaining. Can you say anything about how often the
> compaction cycles are? Just an order of magnitude - hours, days, or
> weeks?
>

They're based on the quantity of modifications to data in a given tablet.
Doing many inserts, updates or deletes will, sooner or later, cause a
compaction.

-Nick Johnson


>
> Thanks,
> Jameson
>
> --
> 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

-- 
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] ListProperty and Scale?

2010-03-23 Thread jpuopolo
All,

I am building an application where I need to model a 1-many
relationship. The "many" side of the relationship needs to scale to
about 1 million items at maximum. In his talk, Building Scalable and
Complex Apps, Brett Slatkin suggests using ListProperty to model this
type of relationship; however, ListProperty imposes a limit of 5000
indexed properties --- a far cry from the million I need (and,
unfortunately, these items must be indexed so that I can find "one"
side of the relationship by querying the "many" side).

So, I have a few questions:

1. If I could make it so that the many side of the relationship did
not need indexing, can a ListProperty deal with 1 million (non-
indexed) items?

2. If I require indexing on the many side, is there another approach
that will work? My only other design alternative, I think, is to use a
link entity (a -> link entity -> b). This allows me to use
ReferenceProperty and it associated collection set.

Thoughts? Am I missing something?

Thanks,
John

-- 
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: permutations vs Cartesian product in exploding indexes documentation

2010-03-23 Thread kostmo
Thanks for the clarification, Nick.

Karl

On Mar 23, 5:58 am, "Nick Johnson (Google)" 
wrote:
> Hi Karl,
>
> You're correct that it is indeed the cartesian product in this case - it
> produces one index entry for every unique tuple of values from the indexed
> columns.
>
> This gets slightly more complicated in the situation where the same column
> is being indexed multiple times. In that situation, the naive cartesian
> product is not used - instead, the additional constraints that the values
> are sorted in non-descending order and that no value occurs more than once
> in a tuple are added, so as to eliminate unnecessary duplicates. Eg, an
> index on (foo, foo), with a value of [1,2,3] for foo will result in the
> following entries:
>
> (1,2),(1,3),(2,3)
>
> Notably omitting the redundant entries:
>
> (2,1),(3,1),(3,2)
>
> And the invalid entries:
>
> (1,1),(2,2),(3,3)
>
> -Nick Johnson
>
>
>
> On Tue, Mar 23, 2010 at 2:22 AM, kostmo  wrote:
> > OK, I just watched Brett Slatkin's I/O talk [1] and he mentions "cross
> > product" a couple of times, so it seems that the use of the word
> > "permutation" in the docs is incorrect; the number of index entries is
> > indeed proportional to the Cartesian product, rather than
> > "permutations" which would lead to a factorial (n!) number of index
> > entries.
>
> > I've filed a doco issue here [2].
>
> > Karl
>
> > [1]
> >http://code.google.com/events/io/2009/sessions/BuildingScalableComple...
> > [2]http://code.google.com/p/googleappengine/issues/detail?id=3003
>
> > On Mar 22, 11:50 am, kostmo  wrote:
> > > It is still unclear to me exactly how many index entries will be
> > > produced by including multiple ListProperty's in an entity. In one
> > > post [1], between the inquiring user and the Google rep, the
> > > possibilities for the number of index entries included the power set,
> > > Cartesian product, or the "number of unique combinations" (this was
> > > the rep's answer, without mention of "permutations").
>
> > > I'd like to verify that the correct combinatorics terminology is being
> > > used in the documentation on exploding indexes [2].
>
> > > Quote:
> > > "the index table must include a row for every permutation of the
> > > values of every property for the index"
> > > This is followed by the example:
> > > e2 = MyModel()
> > > e2.x = ['red', 'blue']
> > > e2.y = [1, 2]
> > > "the index must store 12 property values: 2 each for the built-in
> > > indexes on x and y, and 2 for each of the 4 permutations of x and y in
> > > the custom index".
>
> > > The example does not make me completely confident about what type of
> > > combinatoric expression is truly being used, since the sum of the
> > > number of permutations for each property happens to equal the
> > > cardinality of the Cartesian product of the two properties. The
> > > enumeration given in this post [3] seems to suggest that it is
> > > actually the Cartesian product at work.
>
> > > To clarify this issue, we could use Python 2.6 to illustrate an
> > > example:>>> from itertools import product, permutations
> > > >>> x = ['red', 'blue', 'green']
> > > >>> y = [1, 2, 3]
> > > >>> list(permutations(x)) + list(permutations(y))
>
> > > [('red', 'blue', 'green'), ('red', 'green', 'blue'), ('blue', 'red',
> > > 'green'), ('blue', 'green', 'red'), ('green', 'red', 'blue'),
> > > ('green', 'blue', 'red'), (1, 2, 3), (1, 3, 2), (2, 1, 3), (2, 3, 1),
> > > (3, 1, 2), (3, 2, 1)]>>> list(product(x, y))
>
> > > [('red', 1), ('red', 2), ('red', 3), ('blue', 1), ('blue', 2),
> > > ('blue', 3), ('green', 1), ('green', 2), ('green', 3)]
>
> > > Is the number of custom index entries that will be generated by an
> > > entity with the two 3-valued properties given above proportional to
> > > the sum of permutations (there are 12) or the Cartesian product (there
> > > are 9)?
>
> > > Thanks,
> > > Karl
>
> > > [1] "Efficient way to structure my data model"
> >http://groups.google.com/group/google-appengine/browse_thread/thread/...
> > > [2]
> >http://code.google.com/appengine/docs/python/datastore/queriesandinde...
> > > [3] "Size of index in case of exploding index"
> >http://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> > --
> > 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

-- 
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 
googl

Re: [google-appengine] Re: Reading a file in GAE Java

2010-03-23 Thread Patrick Twohig
Are they in war or on the classpath?

On Tue, Mar 23, 2010 at 4:49 AM, Iain Flynn  wrote:

> Thanks for that, but it's still getting null. I've tried changing the
> URI and the file's location around (and triple-checking that I've
> spelled it correctly), but still nothing. I've included these lines in
> the appengine-web.xml file, as the tutorial says. Can you please say
> if you see anything wrong with them?
>
> 
>
>
>
>
>
>
> Thank you again,
>
> - Iain.
>
> On Mar 23, 2:06 am, Patrick Twohig  wrote:
> > I use
> >
> > Class.getResourceAsStream("/xml/myschema.xsd");
> >
> > Cheers!
> >
> > On Mon, Mar 22, 2010 at 10:57 AM, Iain Flynn  >wrote:
> >
> >
> >
> >
> >
> > > Hi there. I have an application that requires me to read in and
> > > transform an XSLT stylesheet, which I keep in the directory /xml in /
> > > war.
> >
> > > I've read the tutorials, and I've included it as a resource file (more
> > > specifically, set that all xsl files are included as resource files),
> > > but when I try to read it in my Java servlet (using the URI /xml/
> > > file.xsl), I get the FilePermission error. I presume I'm getting this
> > > error because it can't find the file (I know that writing files is not
> > > allowed, but I'm opening it in read-mode).
> >
> > > I've looked through all the tutorials and I can't see where I'm going
> > > wrong here. I can use files with my HTML, but getting Java on them
> > > seems to elude me.
> >
> > > I get the feeling I've made a very elementary mistake, but can't for
> > > the life of me figure it out.
> >
> > > Thanks for your time, and sorry if this is the wrong place for this.
> >
> > > - Iain
> >
> > > --
> > > 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>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine?hl=en.
> >
> > --
> > Patrick H. Twohig.
> >
> > Namazu Studios
> > P.O. Box 34161
> > San Diego, CA 92163-4161
>
> --
> 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.
>
>


-- 
Patrick H. Twohig.

Namazu Studios
P.O. Box 34161
San Diego, CA 92163-4161

-- 
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: Will GAE ever be open source?

2010-03-23 Thread Josh Rehman
Thanks for your feedback. Any googlers want to weigh in on this?



On Mon, Mar 22, 2010 at 12:58 PM, Patrick Twohig
 wrote:
>
> On Mon, Mar 22, 2010 at 5:47 AM, Wooble  wrote:
>>
>>
>> On Mar 22, 12:36 am, Iap  wrote:
>> > My concern is that the open-source GAE would also expose the weakness of
>> > GAE.
>> > That makes the GAE more vulnerable under attacking.
>>
>> I hope you're not coding in a programming language that's open
>> source.  Just imagine the vulnerabilities. Of course, with python and
>> java eliminated, how are you using App Engine at all?
>>
>> --
>> 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.
>>
>
>
> 1995 called.  They want their rhetoric back.
>
>
>
> --
> Patrick H. Twohig.
>
> Namazu Studios
> P.O. Box 34161
> San Diego, CA 92163-4161
>
> --
> 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] Re: ListProperty and Scale?

2010-03-23 Thread Wooble


On Mar 23, 12:09 pm, jpuopolo  wrote:
> 1. If I could make it so that the many side of the relationship did
> not need indexing, can a ListProperty deal with 1 million (non-
> indexed) items?

No; the whole entity has to be smaller than 1MB, and you'll need
considerably more than a single byte to store each item.

I suspect that having the entities on the many side have references
back to the entity on the one side is going to be the only way to
model something like this.  This will, of course, rule out some of the
techniques that Brett Slatkin's talk employs.

-- 
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 can I trust my app engine application ?

2010-03-23 Thread Damien Picard
Hi,

I'm trying to deploy a GWT/GAE application with Google Authentication,
via UserService. My application allows to login and logout from my
Google accounts, and now, I want to login/logout with my Google Apps
domain accounts (and, at the end, deploy this app on Apps
MarketPlace).

To do this, i've deployed my app on GAE, created a vendor account on
MarketPlace, and created a listing for my application. I've added my
application to my domain, but when I want to connect with a domain's
account, it is not possible : the only way to connect is to use a
standard account.

Then, on my GAE apps, i've added the domain as :

UserService userService = UserServiceFactory.getUserService();
return userService.createLoginURL("http://
myapp.appspot.com","mydomain.com");

But this doesn't change anything. I've see on the doc that this
function is :
"For trusted apps only. If the calling app does not have permission to
use this feature..."

So my questions are :
Could I use UserService to authenticate on a domain ?
How can I trust my GAE apps in order to use these functions ?

Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-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 test XMPP Messages without deploying to google server

2010-03-23 Thread gaurav
Is there a way to test my application without uploading the
application to server.
I want to test reply to XMPP Messages

-- 
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] Building indexes takes forever

2010-03-23 Thread Ka-Ping Yee
Hi,

I've just uploaded the code for my app to a fresh new app instance.
The app includes some index definitions, but there is no data in the
datastore whatsoever -- it is completely empty.

Over 40 minutes later, I still cannot run or test anything because the
app is still building indexes.  Why does it take so long to build
indexes when there is nothing to index?  Is this expected behavior?

I'd be grateful for any advice or tips on how to avoid this long
delay.


-- Ping

-- 
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] Exposing Web Services on Google App Engine

2010-03-23 Thread Brian
Hi,
I've just started to play around with Google App Engine and have run
into an issue that you guys may be able to help me with. I want to
expose a Java web service for exchanging data with  clients and was
hoping to do this with a standard SOAP web service using something
like AXIS2. After a little reading I realised that due to GAE
restrictions JAX-RPC and JAX-WS are not currently supported (http://
groups.google.com/group/google-appengine-java/web/will-it-play-in-app-
engine)
My question is simple (although I fear the answer may not be ), if
I can't use a traditional SOAP web service on GAE what are the
alternatives? I assume many developers are in the same position,
needing to expose Java web services to clients so I'm hoping someone
can point me in the right direction. Are RESTful services an
alternative? I haven't worked with these at all (just traditional SOAP
services) so I'm unsure of their capabilities/restrictions. Any
general advice on how to expose Java web services via GAE would be
much appreciated.

Brian

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-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] Can i use the "lxml.html" this object in google app engine????

2010-03-23 Thread shin-chieh hung
Can i use the "lxml.html" this object in google app engine

tell me,pleasethx

-- 
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] updating to new release of eclipse plugin causing datanucleus errors (again)

2010-03-23 Thread Ikai L (Google)
Can you file a bug in our issue tracker and list which JARs you
removed to fix this?

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

Mark it as an Eclipse plugin issue.

On Mon, Mar 22, 2010 at 9:34 AM, haole  wrote:
> after updating to the newest release (20100319) of the eclipse plugin
> (on 3/22), datanucleus enhancer is throwing null pointer exceptions
> again. last time, it was due to classpath that was too long. removing
> some unneeded jars out of my WEB-INF/lib directory seemed to do the
> trick. this time, i cannot figure out what the problem is. i even
> tried renaming jars to shorter names to no avail. PLEASE either (1)
> fix this, or (2) give some kind of more detailed error message so we
> know what is causing this.
>
> furthermore, i cannot figure out how to rollback the google eclipse
> plugin to the previous version. is this possible? if so, how?
>
> java.lang.NullPointerException
>        at
> com.google.gdt.eclipse.core.ProcessUtilities.cleanupProcess(ProcessUtilities.java:
> 367)
>        at
> com.google.gdt.eclipse.core.ProcessUtilities.launchProcessAndActivateOnError(ProcessUtilities.java:
> 271)
>        at
> com.google.appengine.eclipse.core.orm.enhancement.EnhancerJob.runInWorkspace(EnhancerJob.java:
> 78)
>        at
> org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:
> 38)
>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
> eclipse.buildId=M20100211-1343
> java.version=1.6.0_18
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Command-line arguments:  -os win32 -ws win32 -arch x86
>
> --
> 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] Random total stored data

2010-03-23 Thread Ikai L (Google)
Are you using sessions?

On Tue, Mar 23, 2010 at 12:43 AM, Kenneth  wrote:
> I know there have been few threads around about the size inflation on
> the datastore.  This one is a bit different.
>
> Last week I was around 0.52gb of total stored data.  It was climbing
> on a steady basis as my usage increased.  Then over the weekend it
> jump to 0.96.  There was no large amount of data uploaded, I've check
> my blobs and datastore stats. There are no new indexes (I've checked
> my index.yaml in svn).  It seems to have settled around 0.67 today.
>
> What's going on?  The lack of transparency in the datastore usage is
> becoming a real 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.
>
>



-- 
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] Re: Will GAE ever be open source?

2010-03-23 Thread Ikai L (Google)
We don't have any plans to build this, but we're fully supportive of
the folks who work on TyphoonAE (Python) and AppScale (Java). The
AppScale folks gave a talk at a recent Silicon Valley App Engine
Meetup we held at the Googleplex, and we're trying to invite the
students and their professor to come have lunch with us (maybe we can
get some interns out of this!). Plans change, however. It's always a
matter of resource availability. (So ... there's a non-answer for you,
I guess.)

As far as open source goes, we love open source and think it's the
best. I've heard arguments that open sourcing software exposes
security flaws because it allows a deeper analysis of code, but I've
also heard arguments that open source software has more eyeballs
looking at it to find critical flaws. I'm personally not fully
convinced either way. I just know that we are where we are today
because of open source, and not just the big projects you always hear
about like Apache, MySQL, Linux, etc. Even small open source projects
like API clients or desktop applications are great learning tools or
great starting points to build applications on.

On Tue, Mar 23, 2010 at 10:51 AM, Josh Rehman  wrote:
> Thanks for your feedback. Any googlers want to weigh in on this?
>
>
>
> On Mon, Mar 22, 2010 at 12:58 PM, Patrick Twohig
>  wrote:
>>
>> On Mon, Mar 22, 2010 at 5:47 AM, Wooble  wrote:
>>>
>>>
>>> On Mar 22, 12:36 am, Iap  wrote:
>>> > My concern is that the open-source GAE would also expose the weakness of
>>> > GAE.
>>> > That makes the GAE more vulnerable under attacking.
>>>
>>> I hope you're not coding in a programming language that's open
>>> source.  Just imagine the vulnerabilities. Of course, with python and
>>> java eliminated, how are you using App Engine at all?
>>>
>>> --
>>> 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.
>>>
>>
>>
>> 1995 called.  They want their rhetoric back.
>>
>>
>>
>> --
>> Patrick H. Twohig.
>>
>> Namazu Studios
>> P.O. Box 34161
>> San Diego, CA 92163-4161
>>
>> --
>> 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.
>
>



-- 
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: Building indexes takes forever

2010-03-23 Thread Wooble


On Mar 23, 7:11 am, Ka-Ping Yee  wrote:
> Hi,
>
> I've just uploaded the code for my app to a fresh new app instance.
> The app includes some index definitions, but there is no data in the
> datastore whatsoever -- it is completely empty.
>
> Over 40 minutes later, I still cannot run or test anything because the
> app is still building indexes.  Why does it take so long to build
> indexes when there is nothing to index?  Is this expected behavior?
>
> I'd be grateful for any advice or tips on how to avoid this long
> delay.

Index building is queued, so you have to wait for other people's
indexes to build when new indexes are added.  Once yours start
building, it should obviously be very fast since there's nothing to
actually do.

-- 
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] Exposing Web Services on Google App Engine

2010-03-23 Thread Jeff Schnitzer
I use both Hessian and REST/JSON (using Resteasy).

Hessian is by far the easiest approach, and the most idiomatically
Java-friendly on both client and server.

REST/JSON is by far the most universally compatible approach.
Resteasy works on GAE without issues.

Jeff

On Tue, Mar 23, 2010 at 3:08 AM, Brian  wrote:
> Hi,
> I've just started to play around with Google App Engine and have run
> into an issue that you guys may be able to help me with. I want to
> expose a Java web service for exchanging data with  clients and was
> hoping to do this with a standard SOAP web service using something
> like AXIS2. After a little reading I realised that due to GAE
> restrictions JAX-RPC and JAX-WS are not currently supported (http://
> groups.google.com/group/google-appengine-java/web/will-it-play-in-app-
> engine)
> My question is simple (although I fear the answer may not be ), if
> I can't use a traditional SOAP web service on GAE what are the
> alternatives? I assume many developers are in the same position,
> needing to expose Java web services to clients so I'm hoping someone
> can point me in the right direction. Are RESTful services an
> alternative? I haven't worked with these at all (just traditional SOAP
> services) so I'm unsure of their capabilities/restrictions. Any
> general advice on how to expose Java web services via GAE would be
> much appreciated.
>
> Brian
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" group.
> To post to this group, send email to google-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.



Re: [google-appengine] Re: Building indexes takes forever

2010-03-23 Thread Shinichi Nakanishi
Did you try vacuum_indexes?  If you already did, sometimes the app
engine gets stuck in creating indexes.  In that case it never creates
your indexes.

If you wait for a few hours more and still no luck, you basically have
2 options, I think.

1. Ask Google to fix the problem
2. Create another application and move your program code there

I tried 1 but no reply from Google since March 17.  So I tried 2 then
it worked although my application ID changed.

Please correct me if I'm wrong.  I hope I'm wrong and there are better
options, though.

Shinichi

On Tue, Mar 23, 2010 at 12:25, Wooble  wrote:
>
>
> On Mar 23, 7:11 am, Ka-Ping Yee  wrote:
>> Hi,
>>
>> I've just uploaded the code for my app to a fresh new app instance.
>> The app includes some index definitions, but there is no data in the
>> datastore whatsoever -- it is completely empty.
>>
>> Over 40 minutes later, I still cannot run or test anything because the
>> app is still building indexes.  Why does it take so long to build
>> indexes when there is nothing to index?  Is this expected behavior?
>>
>> I'd be grateful for any advice or tips on how to avoid this long
>> delay.
>
> Index building is queued, so you have to wait for other people's
> indexes to build when new indexes are added.  Once yours start
> building, it should obviously be very fast since there's nothing to
> actually do.
>
> --
> 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.



Re: [google-appengine] Re: Will GAE ever be open source?

2010-03-23 Thread Jeff Schnitzer
Any chance we can get the Java api proxy opensourced like the Python one?

Jeff

On Tue, Mar 23, 2010 at 11:54 AM, Ikai L (Google)  wrote:
> We don't have any plans to build this, but we're fully supportive of
> the folks who work on TyphoonAE (Python) and AppScale (Java). The
> AppScale folks gave a talk at a recent Silicon Valley App Engine
> Meetup we held at the Googleplex, and we're trying to invite the
> students and their professor to come have lunch with us (maybe we can
> get some interns out of this!). Plans change, however. It's always a
> matter of resource availability. (So ... there's a non-answer for you,
> I guess.)
>
> As far as open source goes, we love open source and think it's the
> best. I've heard arguments that open sourcing software exposes
> security flaws because it allows a deeper analysis of code, but I've
> also heard arguments that open source software has more eyeballs
> looking at it to find critical flaws. I'm personally not fully
> convinced either way. I just know that we are where we are today
> because of open source, and not just the big projects you always hear
> about like Apache, MySQL, Linux, etc. Even small open source projects
> like API clients or desktop applications are great learning tools or
> great starting points to build applications on.
>
> On Tue, Mar 23, 2010 at 10:51 AM, Josh Rehman  wrote:
>> Thanks for your feedback. Any googlers want to weigh in on this?
>>
>>
>>
>> On Mon, Mar 22, 2010 at 12:58 PM, Patrick Twohig
>>  wrote:
>>>
>>> On Mon, Mar 22, 2010 at 5:47 AM, Wooble  wrote:


 On Mar 22, 12:36 am, Iap  wrote:
 > My concern is that the open-source GAE would also expose the weakness of
 > GAE.
 > That makes the GAE more vulnerable under attacking.

 I hope you're not coding in a programming language that's open
 source.  Just imagine the vulnerabilities. Of course, with python and
 java eliminated, how are you using App Engine at all?

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

>>>
>>>
>>> 1995 called.  They want their rhetoric back.
>>>
>>>
>>>
>>> --
>>> Patrick H. Twohig.
>>>
>>> Namazu Studios
>>> P.O. Box 34161
>>> San Diego, CA 92163-4161
>>>
>>> --
>>> 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.
>>
>>
>
>
>
> --
> 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.



Re: [google-appengine] ListProperty and Scale?

2010-03-23 Thread 'Αλκης Ευλογημένος
You can have multiple "indexes" on the many side. Decouple the ListProperty
in its own model and use a key only query to find the ancestor key. Then a
db.get will get you what you want.

Example:

class Dude(db.Model):
  name = db.StringProperty()

class DudeIndex(db.Model):
  relates_to = db.StringListProperty()

def relate_to(dude_entity, *relations):
  db.put(DudeIndex(parent=dude_entity, relates_to=relations))

def get_dude_that_relates_to(other_dude):
  index_key = DudeIndex.all(keys_only=True).filter('relates_to',
other_dude).get()
  if index_key:
return db.get(index_key.parent())

- alkis


On Tue, Mar 23, 2010 at 5:09 PM, jpuopolo  wrote:

> All,
>
> I am building an application where I need to model a 1-many
> relationship. The "many" side of the relationship needs to scale to
> about 1 million items at maximum. In his talk, Building Scalable and
> Complex Apps, Brett Slatkin suggests using ListProperty to model this
> type of relationship; however, ListProperty imposes a limit of 5000
> indexed properties --- a far cry from the million I need (and,
> unfortunately, these items must be indexed so that I can find "one"
> side of the relationship by querying the "many" side).
>
> So, I have a few questions:
>
> 1. If I could make it so that the many side of the relationship did
> not need indexing, can a ListProperty deal with 1 million (non-
> indexed) items?
>
> 2. If I require indexing on the many side, is there another approach
> that will work? My only other design alternative, I think, is to use a
> link entity (a -> link entity -> b). This allows me to use
> ReferenceProperty and it associated collection set.
>
> Thoughts? Am I missing something?
>
> Thanks,
> John
>
> --
> 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] Appengine application creation problem

2010-03-23 Thread heino
Hi there,

at the moment I have a Google Apps Standard Edition. Everything works
fine.

Now I want to add a new App Engine application to my account. I have
used the following link: https://appengine.google.com/start . After
creation of the application I constantly be redirected to the same url
instead of a overview of my applications. (https://
appengine.google.com/start)

I know my appengine applications are created because of the
Application Identifiers used for my applications are not available any
more.

The App Engine product is added to my panel (https://www.google.com/
accounts/ManageAccount) but I have no access to my App Engine
applications. (I can't see them either)

Please help me.
Heino

(Sorry for my bad english)

-- 
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] In a static dir, one file updates while the other one doesnt

2010-03-23 Thread im_a_computer
I have a simple app with a single static dir called statics.

In that static dir there are 2 files, a JS file and a CSS file. Ive
been making changes to both (and other files in other folders) and
updating - but my CSS file never changes. The only other file in the
statics folder is a javascript file, and that one actually updates
fine each time. Ive cleared my browser cache, and even rebooted since
this started happening but still cant get a new css file.

-- 
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: updating to new release of eclipse plugin causing datanucleus errors (again)

2010-03-23 Thread Keith (Google)
I've confirmed that this is a bug in the 1.3.1 version of the Google
Plugin for Eclipse.  It will be fixed in the next public release.  In
the meanwhile, unfortunately, it's not possible to determine the
actual cause of the error via the Eclipse error log, because the
actual exception is being masked by the NullPointerException you
reported.  However, we might be able to understand and/or resolve the
problem anyway.  A couple of questions:

- Are you using Windows, Mac, or Linux?
- Is it possible for you to use a 3rd party process tracing tool to
capture the command line arguments that are being sent to the enhancer
process?  If you can, it should be easy to invoke it manually and
determine the source of the problem.
- Can you exclude classes/packages via the ORM property page (project
properties > Google > App Engine > ORM) which don't actually require
enhancement?  If the root problem is that the process arguments are
too long, this is the easiest way to shorten them.

Keith

On Mar 22, 12:34 pm, haole  wrote:
> after updating to the newest release (20100319) of the eclipse plugin
> (on 3/22), datanucleus enhancer is throwing null pointer exceptions
> again. last time, it was due to classpath that was too long. removing
> some unneeded jars out of my WEB-INF/lib directory seemed to do the
> trick. this time, i cannot figure out what the problem is. i even
> tried renaming jars to shorter names to no avail. PLEASE either (1)
> fix this, or (2) give some kind of more detailed error message so we
> know what is causing this.
>
> furthermore, i cannot figure out how to rollback the google eclipse
> plugin to the previous version. is this possible? if so, how?
>
> java.lang.NullPointerException
>         at
> com.google.gdt.eclipse.core.ProcessUtilities.cleanupProcess(ProcessUtilitie 
> s.java:
> 367)
>         at
> com.google.gdt.eclipse.core.ProcessUtilities.launchProcessAndActivateOnErro 
> r(ProcessUtilities.java:
> 271)
>         at
> com.google.appengine.eclipse.core.orm.enhancement.EnhancerJob.runInWorkspac 
> e(EnhancerJob.java:
> 78)
>         at
> org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorksp 
> aceJob.java:
> 38)
>         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
> eclipse.buildId=M20100211-1343
> java.version=1.6.0_18
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Command-line arguments:  -os win32 -ws win32 -arch x86

-- 
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: Will GAE ever be open source?

2010-03-23 Thread Ikai L (Google)
Maybe, though I wonder if there's a good reason besides resources why
it is not. Can you fill out an issue?

http://code.google.com/p/googleappengine/issues/list?cursor=1867&q=apiproxy

On Tue, Mar 23, 2010 at 2:02 PM, Jeff Schnitzer  wrote:
> Any chance we can get the Java api proxy opensourced like the Python one?
>
> Jeff
>
> On Tue, Mar 23, 2010 at 11:54 AM, Ikai L (Google)  wrote:
>> We don't have any plans to build this, but we're fully supportive of
>> the folks who work on TyphoonAE (Python) and AppScale (Java). The
>> AppScale folks gave a talk at a recent Silicon Valley App Engine
>> Meetup we held at the Googleplex, and we're trying to invite the
>> students and their professor to come have lunch with us (maybe we can
>> get some interns out of this!). Plans change, however. It's always a
>> matter of resource availability. (So ... there's a non-answer for you,
>> I guess.)
>>
>> As far as open source goes, we love open source and think it's the
>> best. I've heard arguments that open sourcing software exposes
>> security flaws because it allows a deeper analysis of code, but I've
>> also heard arguments that open source software has more eyeballs
>> looking at it to find critical flaws. I'm personally not fully
>> convinced either way. I just know that we are where we are today
>> because of open source, and not just the big projects you always hear
>> about like Apache, MySQL, Linux, etc. Even small open source projects
>> like API clients or desktop applications are great learning tools or
>> great starting points to build applications on.
>>
>> On Tue, Mar 23, 2010 at 10:51 AM, Josh Rehman  wrote:
>>> Thanks for your feedback. Any googlers want to weigh in on this?
>>>
>>>
>>>
>>> On Mon, Mar 22, 2010 at 12:58 PM, Patrick Twohig
>>>  wrote:

 On Mon, Mar 22, 2010 at 5:47 AM, Wooble  wrote:
>
>
> On Mar 22, 12:36 am, Iap  wrote:
> > My concern is that the open-source GAE would also expose the weakness of
> > GAE.
> > That makes the GAE more vulnerable under attacking.
>
> I hope you're not coding in a programming language that's open
> source.  Just imagine the vulnerabilities. Of course, with python and
> java eliminated, how are you using App Engine at all?
>
> --
> 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.
>


 1995 called.  They want their rhetoric back.



 --
 Patrick H. Twohig.

 Namazu Studios
 P.O. Box 34161
 San Diego, CA 92163-4161

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



-- 
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+unsubsc

Re: [google-appengine] In a static dir, one file updates while the other one doesnt

2010-03-23 Thread Ikai L (Google)
Can you post the URL to the CSS file as well as what it should be?

On Tue, Mar 23, 2010 at 1:00 PM, im_a_computer
 wrote:
> I have a simple app with a single static dir called statics.
>
> In that static dir there are 2 files, a JS file and a CSS file. Ive
> been making changes to both (and other files in other folders) and
> updating - but my CSS file never changes. The only other file in the
> statics folder is a javascript file, and that one actually updates
> fine each time. Ive cleared my browser cache, and even rebooted since
> this started happening but still cant get a new css file.
>
> --
> 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] Re: Will GAE ever be open source?

2010-03-23 Thread Jeff Schnitzer
Done:

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

Jeff

On Tue, Mar 23, 2010 at 3:14 PM, Ikai L (Google)  wrote:
> Maybe, though I wonder if there's a good reason besides resources why
> it is not. Can you fill out an issue?
>
> http://code.google.com/p/googleappengine/issues/list?cursor=1867&q=apiproxy
>
> On Tue, Mar 23, 2010 at 2:02 PM, Jeff Schnitzer  wrote:
>> Any chance we can get the Java api proxy opensourced like the Python one?
>>
>> Jeff
>>
>> On Tue, Mar 23, 2010 at 11:54 AM, Ikai L (Google)  wrote:
>>> We don't have any plans to build this, but we're fully supportive of
>>> the folks who work on TyphoonAE (Python) and AppScale (Java). The
>>> AppScale folks gave a talk at a recent Silicon Valley App Engine
>>> Meetup we held at the Googleplex, and we're trying to invite the
>>> students and their professor to come have lunch with us (maybe we can
>>> get some interns out of this!). Plans change, however. It's always a
>>> matter of resource availability. (So ... there's a non-answer for you,
>>> I guess.)
>>>
>>> As far as open source goes, we love open source and think it's the
>>> best. I've heard arguments that open sourcing software exposes
>>> security flaws because it allows a deeper analysis of code, but I've
>>> also heard arguments that open source software has more eyeballs
>>> looking at it to find critical flaws. I'm personally not fully
>>> convinced either way. I just know that we are where we are today
>>> because of open source, and not just the big projects you always hear
>>> about like Apache, MySQL, Linux, etc. Even small open source projects
>>> like API clients or desktop applications are great learning tools or
>>> great starting points to build applications on.
>>>
>>> On Tue, Mar 23, 2010 at 10:51 AM, Josh Rehman  wrote:
 Thanks for your feedback. Any googlers want to weigh in on this?



 On Mon, Mar 22, 2010 at 12:58 PM, Patrick Twohig
  wrote:
>
> On Mon, Mar 22, 2010 at 5:47 AM, Wooble  wrote:
>>
>>
>> On Mar 22, 12:36 am, Iap  wrote:
>> > My concern is that the open-source GAE would also expose the weakness 
>> > of
>> > GAE.
>> > That makes the GAE more vulnerable under attacking.
>>
>> I hope you're not coding in a programming language that's open
>> source.  Just imagine the vulnerabilities. Of course, with python and
>> java eliminated, how are you using App Engine at all?
>>
>> --
>> 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.
>>
>
>
> 1995 called.  They want their rhetoric back.
>
>
>
> --
> Patrick H. Twohig.
>
> Namazu Studios
> P.O. Box 34161
> San Diego, CA 92163-4161
>
> --
> 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.


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

[google-appengine] Re: static files not found after upload

2010-03-23 Thread Glenn Blackler
Thanks - I should have thought of that. Really appreciate it.

On Mar 23, 2:56 am, "Nick Johnson (Google)" 
wrote:
> Hi Glenn,
>
> Are you developing in Windows? If so, check the capitalization of your
> filenames: Windows is case-insensitive, but all other platforms, including
> production App Engine, are case sensitive.
>
> -Nick Johnson
>
> On Tue, Mar 23, 2010 at 1:05 AM, Glenn Blackler 
> wrote:
>
> > Hello --
>
> > My very simple app works fine on the dev server, but once uploaded it
> > can't access a file in one of my static directories. I have a static
> > directory "HTML" with two files in it. The first comes up fine (I
> > redirect to it from .py script) but the other HTML file always brings
> > an error when I try to link to it. The error in my log is -- Static
> > file referenced by handler not found: html/new_task.html.
>
> > I searched for others having this same problem, but the only ones I
> > could find had to do with manage.py and django, which I don't think is
> > the problem here.
>
> > Again, everything works fine on the dev server which is why this is so
> > frustrating. I appreciate any help.
>
> > Here's my app.yaml if it helps :
>
> > application: test_app
> > version: 1
> > runtime: python
> > api_version: 1
>
> > handlers:
> > - url: /stylesheets
> >  static_dir: stylesheets
>
> > - url: /html
> >  static_dir: html
>
> > - url: /js
> >  static_dir: js
>
> > - url: /tasks
> >  script: test2.py
>
> > - url: /addnew
> >  script: test2.py
>
> > - url: /.*
> >  script: home.py
>
> > --
> > 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

-- 
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: Can i use the "lxml.html" this object in google app engine????

2010-03-23 Thread Tim Hoffman
No

lxml has c dependencies

You can only run pure python.

T

On Mar 23, 11:55 pm, shin-chieh hung  wrote:
> Can i use the "lxml.html" this object in google app engine
>
> tell me,pleasethx

-- 
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: Anyone noticing their requests taking more CPU usage today?

2010-03-23 Thread Blake
As expected, it was my own fault :).  Disregard!

On Mar 23, 12:09 am, Blake  wrote:
> My crontabs have been taking around 500-600 cpu seconds, but today
> have been up over 1000 cpu seconds.  I'm not asserting that there's an
> issue - it's possible it was a change I made, which is why I'm asking
> around.

-- 
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 in subfolders

2010-03-23 Thread Kenchu
yea, flash is a static directory. I tried using a nonstatic directory,
and that seems to work. So I suppose you're not allowed to have
templates in static directories then. :)

On Mar 17, 10:47 pm, Wooble  wrote:
> Have you defined flash as a static directory?
>
> On Mar 17, 3:12 pm, Kenchu  wrote:
>
> > For some reason my folder is not allowed to be named flash if I want
> > scripts in it. As soon as I rename it, scripts will run in it, but if
> > it is named "flash", then I will get that "file not accessible" error.
> > wtf.
>
> > On Mar 17, 8:01 pm, Kenchu  wrote:
>
> > > Hm, I noticed another error too. When trying to run a script residing
> > > in the folder, I get "file not accessible" error. I tried adding a new
> > > folder and running the script with template there instead, and that
> > > works.
>
> > > So something is wrong with the folder or something. But it has the
> > > same permissions as any other folder.
>
> > > This is probably related to my other issue (http://groups.google.com/
> > > group/google-appengine/browse_thread/thread/f377514b9261c6d4 )
>
> > > On Mar 17, 7:23 pm, Kenchu  wrote:
>
> > > > /Users/swekenchu/Dropbox/Development/GoogleAppEngine/google proj/flash/
> > > > index.htm
>
> > > > On Mar 16, 3:05 pm, djidjadji  wrote:
>
> > > > > What is the value of 'path' after the os.path.join()?
>
> > > > > 2010/3/15 Kenchu :
>
> > > > > > Displaying a template that resides in the main folder together with
> > > > > > the script works just fine, but as soon as I try to display one in a
> > > > > > subfolder, I get an error:
>
> > > > > > TemplateDoesNotExist: index.htm
>
> > > > > > It's weird that it doesn't display the full path.
>
> > > > > > This is the code I use:
>
> > > > > > path = os.path.join(os.path.dirname(__file__), 'flash/index.htm')
> > > > > > self.response.out.write(template.render(path,{}))
>
> > > > > > Are you not allowed to display templates in subfolders?
>
> > > > > > --
> > > > > > 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: questions on datastore (lowercase comparison / one character String )

2010-03-23 Thread Chau
It seems to be issue querying with Key param
Please check another article from Max and see if it help:
http://gae-java-persistence.blogspot.com/2010/01/querying-with-key-parameters.html

On Mar 23, 1:47 pm, vchalmel  wrote:
> Ok Thanks your advices solved my problem with lowercase Comparison.
>
> I still faces issues with these "one-character" Strings problem, do
> you know why, when i try to compare a String Attribute in Datastore to
> a "one-character" String, it throws this "java.lang.Character cannot
> be cast to com.google.appengine.api.datastore.Key" exception ?

-- 
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: Can i use the "lxml.html" this object in google app engine????

2010-03-23 Thread shin-chieh hung


ok~~

thank you   ^^

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-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 should I set-up jquery's form plugin

2010-03-23 Thread B
So I know that if I want to use jquery I write this in the header of
my html page:

http://ajax.googleapis.com/ajax/libs/jquery/1.3/
jquery.min.js" type="text/javascript">

But what do I do if I also want to use jquery's form plugin:
http://jquery.malsup.com/form/

I am guessing that I cant just use something like 


in my app.yaml I have these lines:

- url: /jquery
  static_dir: jquery

- url: /static
  static_dir: static
  expiration: 1d

Any suggestions on where I might be going wrong with using this static
file OR a better way to get access to the jquery-form-plugin?

-- 
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] Space efficiency with url as key

2010-03-23 Thread Peter Liu
Is using url as a string key for an entity really inefficient for
space?

Say if the url is long and it's 1k byte, each key is repeatedly stored
with each indexed property right? If you have a list property of 5000
items, will the keys of those 5000 index entries consume 5M?

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 should I set-up jquery's form plugin

2010-03-23 Thread Boris Dev
my post may have been a waste of space --- i figured it out, in any case,
for anyone who is curious here is the answer to my question:

all static files that the client's browser needs to read such as a
jquery.form.js file need to be inside of /static

so the header of the html page should appear as:




and for that to work these lines need to be in the app.yaml

- url: /jquery
  static_dir: static/jquery

- url: /static
  static_dir: static
  expiration: 1d



On Wed, Mar 24, 2010 at 2:19 PM, B  wrote:

> So I know that if I want to use jquery I write this in the header of
> my html page:
>
> http://ajax.googleapis.com/ajax/libs/jquery/1.3/
> jquery.min.js" type="text/javascript">
>
> But what do I do if I also want to use jquery's form plugin:
> http://jquery.malsup.com/form/
>
> I am guessing that I cant just use something like  the directories /jquery and /static and did not have success calling
> it from the .html page with either:
>
>