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

2010-01-03 Thread Nickolas Daskalou
You can't use MySQL or any other traditional RDBMS with App Engine,
you'll need to use Google's Datastore:

http://code.google.com/appengine/docs/java/datastore/


On Jan 2, 7:04 pm, mobject  wrote:
> Hello,
>
> I would like to test my app with local db before deploying to
> APPEngine but I could not config my jdo to connect to my local Mysql
> database.
>
> Could anyone help me on this ?
>
> Thank you in advance,
>
> mobject

--

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




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

2010-01-03 Thread David Sowerby
You may also find this useful, it describes setting up a datastore
test environment

http://code.google.com/appengine/docs/java/howto/unittesting.html



On Jan 3, 9:01 am, Nickolas Daskalou  wrote:
> You can't use MySQL or any other traditional RDBMS with App Engine,
> you'll need to use Google's Datastore:
>
> http://code.google.com/appengine/docs/java/datastore/
>
> On Jan 2, 7:04 pm, mobject  wrote:
>
> > Hello,
>
> > I would like to test my app with local db before deploying to
> > APPEngine but I could not config my jdo to connect to my local Mysql
> > database.
>
> > Could anyone help me on this ?
>
> > Thank you in advance,
>
> > mobject
>
>

--

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




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

2010-01-03 Thread Sudhir
Might not work that way even if its possible... if the image has white
inside it (like someone's teeth) they go transparent too.

Sudhir

On Jan 3, 5:10 am, trung  wrote:
> Is it possible to remove the white background from a PNG image in
> order to make it look transparent?
>
> Has anyone been able to accomplish that?
>
> My guess is we would have to use the composite() function. Start out
> with a blank canvas and add the overlay image, then somehow tell it to
> ignore the white color.

--

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




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

2010-01-03 Thread jpmorganuk
Before you look at cost, investigate if the platform is suitable, for
example, will the limitations of GQL impact your design?

I say this because I selected app engine based on cost and later found
my costs increase because I had to implement work-arounds to
limitations in functionality.

--

You 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 operate a heavy-traffic large-scale web service on app engine?

2010-01-03 Thread Michael
I have around 4 million requests per day. The cost is $65 per week.
In my opinion, at present App Engine is too expensive for sites
with "free" business model.

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

--

You 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] Index building CPU time

2010-01-03 Thread jd
Hi,

I am in the process of importing data into my application and notice
about 10x clock time CPU usage - that is each 30 second task uses
about 300 seconds of CPU quota.  I assume that this is mainly used
indexing my entities - each has about 70 properties indexed (a
geospatial "map block" index).

Now I have modified my custom indexes and they are still building.
But I don't see the CPU time accounted for anywhere.  Is this _free_
CPU time?

If so, is it cheaper to remove all indexes before importing data by
setting properties as unindexed and removing custom indexes, import
the data and then add the indexes again?

If I modify an Entity to set a property from unindexed to indexed will
a new "implicit index" be created?  Will I have to re-put the entities
to include them in the index?

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: Index building CPU time

2010-01-03 Thread jd
Hadn't seen this thread which answers some of my questions

http://groups.google.com/group/google-appengine/msg/ad4d1d2a14361797

On Jan 3, 8:10 pm, jd  wrote:
> Hi,
>
> I am in the process of importing data into my application and notice
> about 10x clock time CPU usage - that is each 30 second task uses
> about 300 seconds of CPU quota.  I assume that this is mainly used
> indexing my entities - each has about 70 properties indexed (a
> geospatial "map block" index).
>
> Now I have modified my custom indexes and they are still building.
> But I don't see the CPU time accounted for anywhere.  Is this _free_
> CPU time?
>
> If so, is it cheaper to remove all indexes before importing data by
> setting properties as unindexed and removing custom indexes, import
> the data and then add the indexes again?
>
> If I modify an Entity to set a property from unindexed to indexed will
> a new "implicit index" be created?  Will I have to re-put the entities
> to include them in the index?
>
> 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] New index returns no results

2010-01-03 Thread jd
Hi,

I have a pre existing index

PropertyA[ASC], PropertyB[DSC]

 which works for my query

query.addFilter("PropertyA", FilterOperator.EQUAL, valueA);
query.addSort("PropertyB", SortDirection.DESCENDING);

this works fine.

Now I have added another equality clause

query.addFilter("PropertyA", FilterOperator.EQUAL, valueA);
query.addFilter("PropertyC", FilterOperator.EQUAL, valueC);
query.addSort("PropertyB", SortDirection.DESCENDING);

This works fine in development.  My auto generated index file created
the new index needed and after 6 hours or so it finished building.
The indexes page says it is "Serving" but it returns no results.

PropertyA[ASC], PropertyC[ASC], PropertyB[DSC]

Every entity has a value for the new PropertyC and it is indexed
(although this should not matter?)

My appid is "target-rooms"

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.




Re: [google-appengine] Index building CPU time

2010-01-03 Thread Barry Hunter
2010/1/3 jd :

>
> If I modify an Entity to set a property from unindexed to indexed will
> a new "implicit index" be created?  Will I have to re-put the entities
> to include them in the index?
>

Yes you will. Only when perform the put, will the the Entity be added
to that single property index.

Think of it you are only changing the entity definiton (model) - which
inlcudes index definiton - for new Entites, it doesnt change it ones
already in the datastore.

--

You 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: howto restrict application to serve requests by domain?

2010-01-03 Thread Claude Vedovini
Hi Andy,
I would say the best to do this is to use some sort of authentication.
Your calling application could authenticate its requests by passing
the hash of a token mixing a secret, a timestamp and the request
itself, the answering application need then to validate this token.
Of course this only works in a server to server case, if you use ajax
from the browser then you're stuck.
Regards

Claude Vedovini
---
Software Consulting & Development
+41 78 617 86 98
http://vedovini.net/
http://twitter.com/cvedovini
http://www.dita-op.org/



On Jan 1, 8:25 pm, Andy  wrote:
> I want to develop a GAE application that only services requests from
> mydomain.com.  Is there a configuration setting for this, or a simple
> idiom I can use in my request handlers?
>
> This is for a python application on GAE to only be used as a service
> for another GAE application.
>
> Thanks,
> Andy

--

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




[google-appengine] GAE / BigTable articles

2010-01-03 Thread Ice13ill
Hello, can anyone tell me where can I find some articles or
documentation (link, blog, etc) about the google BigTable or G. App
Engine Datastore, regarding the management/administration aspect... ?

--

You 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: GAE / BigTable articles

2010-01-03 Thread Jorge
Here is a set of articles: 
http://code.google.com/appengine/articles/datastore/overview.html

And here is a blog: http://gae-java-persistence.blogspot.com/

Hope that helps,

Jorge Gonzalez


On Jan 3, 12:35 pm, Ice13ill  wrote:
> Hello, can anyone tell me where can I find some articles or
> documentation (link, blog, etc) about the google BigTable or G. App
> Engine Datastore, regarding the management/administration aspect... ?

--

You 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 operate a heavy-traffic large-scale web service on app engine?

2010-01-03 Thread dhruvg
Thanks for the responses. Also, I have a question about reliability -
with 4 million requests/day did you ever face any issues with gae
being down/crashing or being insecure? Any precautions you took?

Thanks,

On Jan 3, 4:18 am, Michael  wrote:
> I have around 4 million requests per day. The cost is $65 per week.
> In my opinion, at present App Engine is too expensive for sites
> with "free" business model.
>
> On Jan 3, 8:59 am, dhruvg  wrote:
>
>
>
> > I am just curious. If anyone does, could you please provide some
> > statistics (number of users, daily uniques, etc...) and the related
> > cost you incur from using app engine? I am trying to assess whether is
> > a smart (from a technical and business standpoint) idea for me to
> > invest resources early in app engine for a web service that I am
> > building.

--

You 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 operate a heavy-traffic large-scale web service on app engine?

2010-01-03 Thread Lolman
There's been a bit of downtime, but it is mostly reliable.

On Jan 3, 3:48 pm, dhruvg  wrote:
> Thanks for the responses. Also, I have a question about reliability -
> with 4 million requests/day did you ever face any issues with gae
> being down/crashing or being insecure? Any precautions you took?
>
> Thanks,
>
> On Jan 3, 4:18 am, Michael  wrote:
>
> > I have around 4 million requests per day. The cost is $65 per week.
> > In my opinion, at present App Engine is too expensive for sites
> > with "free" business model.
>
> > On Jan 3, 8:59 am, dhruvg  wrote:
>
> > > I am just curious. If anyone does, could you please provide some
> > > statistics (number of users, daily uniques, etc...) and the related
> > > cost you incur from using app engine? I am trying to assess whether is
> > > a smart (from a technical and business standpoint) idea for me to
> > > invest resources early in app engine for a web service that I am
> > > building.

--

You 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] forum plugin for python google app engine

2010-01-03 Thread manuelaraoz
Hi!!

I want to make a forum hosted on google app engine.

Do you know about a forum plugin, addon or open source project for
doing a simple forum?

Thanks!
Manuel

--

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

2010-01-03 Thread Hazzadous
Having a little trouble using blobstore when file form fields are
empty.  I'm getting "Server Error" and nothing useful by the way of
debugging from this error or in the logs.  Handler as per
http://codepad.org/TKnI0WuQ and live version at
http://rafikirecords-sandbox.appspot.com/upload_form

Can anyone point to a possible resolution to this 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: Upload data from local SQL Server instance?

2010-01-03 Thread johnwlockwood
You can use the bulkloader.py without knowing any python. Just follow
the instructions at
http://code.google.com/appengine/docs/python/tools/uploadingdata.html#Downloading_and_Uploading_All_Data

It will behave like any other command line application, it just
happens to be written in python.


On Dec 31 2009, 9:34 am, Dalla  wrote:
> I have some local data that I would like to upload to the app engine.
> I´ve read about the bulk uploader, but since I don´t know python I´d
> like to know if there is any way of importing data using Java?
> Or do I have to learn python? :-)

--

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




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

2010-01-03 Thread james_027
hi everyone

does anyone here knows this issue?

thanks

On Jan 2, 10:45 pm, james_027  wrote:
> hi all,
>
> before I put use_library('django', '1.1') in my main.py may template
> is working fine. I have a handler that calls a template with
> app_root_directory/templates/admin/index.html which has a extends tags
> look like this {% extends "../base.html" %} which is in the
> app_root_directory/templates/base.html. But after the put the
> use_library('django', '1.1') an error occur saying "../base.html"
> doesn't exist.
>
> Is there something I should be aware when using use_library('django',
> '1.1')?
>
> thanks,

--

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




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

2010-01-03 Thread james_027
you got a nice web app there, may I know what is it?

On Jan 3, 8:18 pm, Michael  wrote:
> I have around 4 million requests per day. The cost is $65 per week.
> In my opinion, at present App Engine is too expensive for sites
> with "free" business model.
>
> On Jan 3, 8:59 am, dhruvg  wrote:
>
>
>
> > I am just curious. If anyone does, could you please provide some
> > statistics (number of users, daily uniques, etc...) and the related
> > cost you incur from using app engine? I am trying to assess whether is
> > a smart (from a technical and business standpoint) idea for me to
> > invest resources early in app engine for a web service that I am
> > building.

--

You 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: Measures taken to speed index building

2010-01-03 Thread Eric Ka Ka Ng
Totally agree what Sudhir is suggesting. I think there are at least 2
things the index building can be improved

1. currently the index building is still a little bit buggy, sometimes
I (and I believe some others) would have indexes being stuck in
"building" state, when I believe there were errors there but for some
unknown reasons they can't be transited to "Error" state. And we, as
programmer, can do nothing to prevent or fix this. What we can do is
to send an email to google and ask them help changing the indexes to
"Error" state so that we can vacuum it.

2. putting index building tasks into the global queue is totally
understandable, but could we have a little smart feature that if the
system knows that the indexes to be built are on 'empty' model (or the
required CPU is very minimal if there are only a few entries), this
could be executed immediately without putting on the queue for
waiting. (or there can be multiple queues for light-weight or
heavy-duty tasks)

- eric

2010/1/3 Sudhir :
> Absolutely... which is the problem. Indexes on *empty* datastores took
> 7 hours last night. I understand fully that 7 hours might be expected
> for millions of objects and gigabytes of data, but not for a 76kb
> datastore with three objects, 80% of which is the datastore statistics
> and metadata. My app is still in development and there's nothing in
> there expect "test1", "test2" and "test3".
>
> I've seen on the docs that index building might take 12h to 24h just
> waiting on the queue, irrespective of how much data actually needs to
> be indexed. While I appreciate the fact that the GAE team is being
> very open and honest about this, this will be a deal breaker for lots
> of people.
>
> I love the GAE idea, and I'm basing all my hopes of writing the next
> killer app and making a billion dollars on this platform, but stuff
> like this is a big turn off for anybody, I think. It completely takes
> the 'instant' and 'quick' out of the process, and I think it needs to
> be fixed before it gives GAE a bad rep.
>
> Sudhir
>
> On Jan 3, 4:53 am, Barry Hunter  wrote:
>> A index built against a empty datastore (or at least a Model without
>> any Entities) should always be available immediately. Or at least that
>> is my experience. This makes sense because such an index doesnt
>> actully need to go though the 'bulk build' pipeline (which can be a
>> cause of delay if the pineline is busy - the index builder is a
>> background process)
>>
>> of course adding Entities to this empty index will happen in realtime,
>> so just add the data after deploying the index.
>>
>> 2010/1/2 Sudhir :
>>
>>
>>
>> > Does anyone know what efforts are being taken to speed up index
>> > building and what their status is?
>>
>> > I'm finding it very difficult to be a champion for GAE in my company -
>> > one of the (implicitly) advertised features of GAE is the whole click
>> > to deploy and start running feature. Things don't bode very well if
>> > I'm doing a demo for the clients / bosses and we all need sit and wait
>> > 12 to 24 hours for GAE to index two strings that say "Hello World" and
>> > "test".
>>
>> > Its especially frustrating when I need to deploy and test during
>> > development (stuff like custom search doesn't work on localhost).
>>
>> > I've been hitting refresh the last six hours.
>>
>> > The production issues pilot is a great step in the right direction,
>> > and I filed an issue and all, but is the GAE team actually thinking of
>> > responding to 100,000 (and counting) developers?
>>
>> > Just wondering, how on earth do you guys do demos at I/O? I don't
>> > think any of the presenters hit deploy and said "okay, let's all come
>> > back tomorrow, or maybe the day after, and we'll see if this
>> > works" :-/
>>
>> > Sudhir
>>
>> > --
>>
>> > You received this message because you are subscribed to the Google Groups 
>> > "Google App Engine" group.
>> > To post to this group, send email to google-appeng...@googlegroups.com.
>> > To unsubscribe from this group, send email to 
>> > google-appengine+unsubscr...@googlegroups.com.
>> > For more options, visit this group 
>> > athttp://groups.google.com/group/google-appengine?hl=en.
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-appengine?hl=en.
>
>
>

--

You 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: Need Help with Datastore Query

2010-01-03 Thread Ms. Jen
Thanks everyone for your replies!  Happy New Year.

Hi Wesley -  You rock, your solution worked.  Now I want to know why
it worked.  ;o)

Here is the code that is rendering my edit band page per your
suggestion:

  def get(self):
band_edit = Band.gql('')
for band in band_edit:
  template_values = {
  'band_edit': band_edit,
   }
  path = os.path.join(os.path.dirname(__file__), 'editband.html')
  self.response.out.write(template.render(path, template_values))

How does the second line of Band.gql('') know to pull the band.key.id
from the URL and then use it to only grab the Band entity with the ID
of 2?
Or is it because I have my application = webapp.WSGIApplication mapped
to ('/editband/?$', EditBand) in my main.py?  Does python then look
for whatever is the ?$ and then uses that to run the Band.gql('')?

Inquiring minds wish to understand the zen of abstract Python.

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: Need Help with Datastore Query

2010-01-03 Thread Ms. Jen
Oh, never mind on my last message dated Jan 3 at 5:19pm.  On my
localhost, the query only ran for the only entity I had, but when I
deployed it, I got 6 bands and not just the band by the id I wanted.

Back to drawing/hacking board.

--

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




[google-appengine] How to determine if a response is over time?

2010-01-03 Thread Steven Lee
from my error log, I found some time "response.getOutputStream()"
return null, I am not sure if it is because of overtime, or other
reason.

java.lang.NullPointerException
at org.mortbay.io.ByteArrayBuffer.wrap(ByteArrayBuffer.java:151)
at org.mortbay.jetty.AbstractGenerator$Output.write
(AbstractGenerator.java:584)
at com.witwall.commons.Util.downloadPdf(Util.java:34)
at com.witwall.pdf.PdfDecryptSelvert.doPost(PdfDecryptSelvert.java:
298)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter
(ParseBlobUploadFilter.java:97)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter
(SaveSessionFilter.java:35)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle
(AppVersionHandlerMap.java:238)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
506)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
(HttpConnection.java:830)
at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable
(RpcRequestParser.java:76)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest
(JettyServletEngineAdapter.java:135)
at com.google.apphosting.runtime.JavaRuntime.handleRequest
(JavaRuntime.java:235)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:5235)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:5233)
at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest
(BlockingApplicationHandler.java:24)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
363)
at com.google.net.rpc.impl.Server$2.run(Server.java:838)
at com.google.tracing.LocalTraceSpanRunnable.run
(LocalTraceSpanRunnable.java:56)
at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan
(LocalTraceSpanBuilder.java:536)
at com.google.net.rpc.impl.Server.startRpc(Server.java:793)
at com.google.net.rpc.impl.Server.processRequest(Server.java:368)
at com.google.net.rpc.impl.ServerConnection.messageReceived
(ServerConnection.java:448)
at com.google.net.rpc.impl.RpcConnection.parseMessages
(RpcConnection.java:319)
at com.google.net.rpc.impl.RpcConnection.dataReceived
(RpcConnection.java:290)
at com.google.net.async.Connection.handleReadEvent(Connection.java:
466)
at com.google.net.async.EventDispatcher.processNetworkEvents
(EventDispatcher.java:759)
at com.google.net.async.EventDispatcher.internalLoop
(EventDispatcher.java:205)
at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
101)
at com.google.net.rpc.RpcService.runUntilServerShutdown
(RpcService.java:251)
at com.google.apphosting.runtime.JavaRuntime$RpcRunnable.run
(JavaRuntime.java:394)
at java.lang.Thread.run(Unknown Source)

--

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




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

2010-01-03 Thread Kelly A
Robert,

Generally the designers I work with find conditional statements,
variable management and loop statements confusing and they would
rather concentrate on the physical layout and style of the interface.
Most XSLT I have been exposed to does not expose the aforementioned
constructs to the designer so I would not consider that code.


On Jan 2, 2:21 pm, Robert Kluin  wrote:
> You could have your designer write little templates for each "thing"
> you would like to display.  If they are named in some "standard" way
> your developers will know how to call the templates as needed.  That
> sounds pretty close to what you are asking for.  Not sure it sounds
> like a good idea though.
>
> Also, you do not have to use the django template engine -- I do not.
> I personally use mako templates for all of my App Engine apps.  You
> can run any pure python template engine.
>
> Just out of curiosity do you define XSLT as code, design, or both?
>
> Robert
>
>
>
> On Sat, Jan 2, 2010 at 12:40 PM, Kelly A  wrote:
> > I have this problem with most templating systems, they talk about
> > separating code from HTML but then they define all these programming
> > constructs like if, while, for, etc..  For instance given the example
> > from the getting started guide:
>
> > 
> >  
> >    {% for greeting in greetings %}
> >      {% if greeting.author %}
> >        {{ greeting.author.nickname }} wrote:
> >      {% else %}
> >       An anonymous person wrote:
> >      {% endif %}
> >      {{ greeting.content|escape }}
> >    {% endfor %}
>
> > In the above "HTML" there are five lines of code, this is not
> > separation of code from HTML in my book.  There is no ifs, ands or
> > buts about it, that is code, if a designer looked at that they would
> > say that is code.  If this were HTML separated from code it would look
> > more like this:
>
> > 
> >  
> >    
> >          
> >                > div>
> >               
> >           
> >    
>
> > The developer/programmer would handle the case statement and the
> > iteration back in the code where it belongs.  All the designer needs
> > to know is that this will display a list and the list item allows the
> > designer to layout and style each element in the list.
>
> > --
>
> > You received this message because you are subscribed to the Google Groups 
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-appengine+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > 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: templates, Django is just different syntax code in HTML

2010-01-03 Thread Kelly A
John,

In my example   would never
happen, as that would not be a legal XML construct; also a decision
construct would never be exposed up in the HTML/XML of the layout. The
intent is to completely remove the logical operations from the
interface the designers use to layout what is displayed. I find that
when the designers I work with have to deal with managing variables,
conditionals and loops, "interface code" ends up copied all over the
system and when the interface behavior has to change we end up hunting
down tens or hundreds of occurrences of interface logic.

My example is not really very original, it is very much how ASP .Net
and JSP custom tags, work.  In these systems, there is the Layout, the
interface logic, and the business logic.  All as separate objects,
essentially the Model, View, Container pattern.

The templating frame work should read the XML of the page, see the
 element, and call the list handler, which
would retrieve a list of greeting objects, using the HTML found inside
the  tag as the template used to render each item in the
list.

As for deciding what HTML to display based on the data passed in, that
is exactly what the YAML and WebApp handlers are for.

On Jan 2, 3:14 pm, johnwlockwood  wrote:
> the idea is to separate the business logic from presentation logic,
> (here is a nice 
> articlehttp://www.paragoncorporation.com/ArticleDetail.aspx?ArticleID=21)
> not necessarily make everything in a template be xml, which can
> sometimes make things more complicated.
> You have to introduce namespaces(designer says "name what?").
> Putting an xml tag as an attribute of an html tag can make things
> nasty, such as:
>  name="required_class" />">
> vs.
>  div>
> the first is, I believe, ironically, invalid xml, and the second is
> valid xml.
>
> django's template language has relatively simple logic. Just present
> the data that is passed to the template.
>
> In presentation logic, there are many times you have to decide what
> html to display depending on the data passed to you.
> If each time that was encountered by the designer, they would have to
> think about the logic anyway and then ask a programmer to write a
> function to return one piece of html if a certain piece of data was
> true and another if false, and then pass that to the template. Then
> they would have to learn the new xml tag to insert to get that piece
> of html. very complicated.
>
> On Jan 2, 11:40 am, Kelly A  wrote:
>
>
>
> > I have this problem with most templating systems, they talk about
> > separating code from HTML but then they define all these programming
> > constructs like if, while, for, etc..  For instance given the example
> > from the getting started guide:
>
> > 
> >   
> >     {% for greeting in greetings %}
> >       {% if greeting.author %}
> >         {{ greeting.author.nickname }} wrote:
> >       {% else %}
> >        An anonymous person wrote:
> >       {% endif %}
> >       {{ greeting.content|escape }}
> >     {% endfor %}
>
> > In the above "HTML" there are five lines of code, this is not
> > separation of code from HTML in my book.  There is no ifs, ands or
> > buts about it, that is code, if a designer looked at that they would
> > say that is code.  If this were HTML separated from code it would look
> > more like this:
>
> > 
> >   
> >     
> >           
> >                 > div>
> >                
> >            
> >     
>
> > The developer/programmer would handle the case statement and the
> > iteration back in the code where it belongs.  All the designer needs
> > to know is that this will display a list and the list item allows the
> > designer to layout and style each element in the list.

--

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




[google-appengine] Anchor tags in server code

2010-01-03 Thread killer barney
Is there any way of accessing the anchor tags in the python code
behind?

For example: http://www.google.com/#q=search

It seems like no data is stored in the request object regarding what
anchors are in the url.  I'm using django on top of app engine, in
case that changes anything.

--

You 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] Anchor tags in server code

2010-01-03 Thread Matt McDonald
On Sun, Jan 3, 2010 at 11:51 PM, killer barney  wrote:

> Is there any way of accessing the anchor tags in the python code
> behind?
>
> For example: http://www.google.com/#q=search
>
> It seems like no data is stored in the request object regarding what
> anchors are in the url.  I'm using django on top of app engine, in
> case that changes anything.
>

The fragment identifier isn't actually sent server side in a HTTP request;
it's purely for client side enhancements, like jumping to an element in the
page, or reading/writing it in JavaScript to store state.

http://en.wikipedia.org/wiki/Fragment_identifier#Processing

-- 
Matt McDonald

--

You 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: Need Help with Datastore Query

2010-01-03 Thread Ms. Jen
Ok, the results of an evening spent reading docs, searching for
answers, and otherwise beating my head against the GAE wall, is the
following:

If I pass the band name (band.band_name) on the URL, I am able to
search for it in the datastore with:

band_edit = Band.gql("WHERE band_name = 'id'")

And the page is rendered with just the band in question and not a
whole list of them.  Well, that was easy. So, why don't I use it?
Because people can have several bands of the same name or misspell the
name or the like, and a unique ID as the entity ID would be much more
useful and accurate over time.

But if I try with the ID or Key, I have no luck.  If I pass the ID as
band_id and then put it to the database as another string or integer
entity named band_id, and then try and search the datastore as above:

band_edit = Band.gql("WHERE band_id = 'id'")

I have no luck.  None.  (Yes, None with a big N). Either I get a
blank page or I am told that it can't iterate Band or there is an
integer or string error.

According to: 
http://code.google.com/appengine/docs/python/datastore/queriesandindexes.html#Queries_on_Keys
there are limited queries on Keys and IDs allowed.

I know that folks can do it, as I have seen GAE python based apps that
call individual entities by a URL id.  Yes, the docs say you can, but
with no concrete examples.  Is there a cookbook recipe for how to get
by ID or Key?



--

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