[google-appengine] Re: best way to query geographical regions?

2009-05-03 Thread adelevie

Will this box always have 4 points? Will it be a square with right
angles? if it's going to be that simple, just write the function
yourself.



On May 2, 1:28 pm, Barry Hunter  wrote:
> Because of the way a geohash is created, chopping off charactors off
> the end reduces the percision of the 'point'
>
> So a given geohash actually represents a box. The more charctors the
> smaller the box.
>
> And because you can do prefix searches on AppEngine, you can just
> store the location as a Geohash, and the query on that. limiting the
> length of the search string to define your box.
>
> It works, however the major issue is the boxes aren't symmetric or
> consistant, so defining a suitable prefix (or list of prefixes) is not
> trivial.
>
> http://docs.opengeo.org/geospiel/2009/01/22/b-tree-r-tree-we-all-tile...
>
> On 02/05/2009, Andrew Badera  wrote:
>
>
>
> > How does geohash help one query a bounded box? Geohash is a single point.
>
> > Thanks-
> > - Andy Badera
> > - and...@badera.us
> > - Google me:http://www.google.com/search?q=andrew+badera
>
> > On Sat, May 2, 2009 at 1:13 PM, Jim  wrote:
>
> > > Have you looked at the geohash approach?
>
> > >http://geohash.org/site/tips.html
>
> > >http://pypi.python.org/pypi/Geohash/1.0rc1
>
> > > On May 1, 7:40 pm, Matt  wrote:
> > > > Hello,
>
> > > > I'm building a simple mapping app that needs to be able to query for
> > > > all points inside a box of points.
>
> > > > I noticed the mutiny library which has a technique for achieving this,
> > > > but it occurred to me to ask if there is perhaps a way to do it more
> > > > simply using GeoPtProperty properties.  The mutiny approach is linked
> > > > below:
>
> >http://code.google.com/p/mutiny/source/browse/trunk/geobox.py
>
> > > > Any advice on this would be much appreciated.
>
> --
> Barry
>
> -www.nearby.org.uk-www.geograph.org.uk-
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Some design Issues in appengine datastore

2009-05-01 Thread adelevie

try reading http://bret.appspot.com/entry/how-friendfeed-uses-mysql

one pitfall to avoid is to rely on a recursive function to iterate
through a tree.

On May 1, 9:24 am, Ted  wrote:
> > 1#
>
> class Food(db.Model):
>     category = db.StringListProperty()
>     [other properties]
>
> apple = Food(category=['fruit','red','iron','apple'])
> greenfruit = Food(category=['fruit','green'])
> veg3 = Food(category=
> ['vegetable','category1','category2','category3'])
>
> If you query category='fruit', you'll get both apple and greenfruit.
>
> > 2#
>
> Try to use auto-completion provided by some Ajax libraries like YUI.
>
> > 3#
>
> Do you mean XMPP and Jaiku, 
> seehttp://morethanseven.net/2009/02/21/example-using-xmpp-app-engine-imi...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Dynamically generated templates

2009-04-14 Thread adelevie

Jason, thanks for the reply. I am quite familiar with the Data Viewer.
I wanted to build something a bit more flexible where I could build a
UI so a layperson (someone that doesn't know GQL) could sort through
all that data.

Jason and Gopal,
I found a solution to store the templates in the db. I created a
simple class which has some simple string construction methods to
build a meta template. I'm going to write a blog post about it
hopefully at some point, until then here's a bit of what I have so
far:

#add this method to any datastore classes you want included (note:
only works on the Model class):
from google.appengine.ext import db
class MyModel(db.Model):
 name = db.StringProperty()
 location = db.StringProperty()
  def get_name(self):
   return 'MyModel'

#run this code to construct the template and save it to the datastore:
class Meta_template():
def __init__(self,body):
self.body = body
self.write("")
def write(self,string):
self.body = str(self.body + str(string))
def tags(self,tag,content):
self.write("<%s>%s" % (tag,str(content),tag))

def plural(string):
return str(string + 's')

def make_template(model):
templates = Template_file.all()
model_name = model.all()[0].get_name()
templates.filter('name =', model_name)
tf = templates.get()
if tf:
tf.delete()
mt = Meta_template(body="")
mt.tags('h2', model_name)
mt.write("")
mt.write("")
for property in model.properties():
mt.tags('td', property)
mt.write("")
mt.write("{% for ")
mt.write(model_name + " in ")
mt.write(plural(model_name) + " %}")
mt.write("")
for property in model.properties():
mt.tags('td', '{{ %s.%s }}' % (model_name,property))
mt.write("")
mt.write("{% endfor %}")
mt.write("")
tf = Template_file(name=model_name, body=mt.body)
tf.put()

make_template(MyModel)

#run this code to render the template:
from django.template import Template, Context
class hello(webapp.RequestHandler):
def get(self):
disp = self.response.out.write
def render(template_name, template_values):
path = os.path.join(os.path.dirname(__file__), '%s' %
template_name)
disp(template.render(path, template_values))
model = MyModel
templates = Template_file.all()
templates.filter('name =', model.all()[0].get_name())
tf = templates.get()
t = Template(tf.body)
template_values = { str(model.all()[0].get_name() + 's') : 
model.all
() }
c = Context(template_values)
output = t.render(c) #important!
return disp(output)

Lemme know what you think.


On Apr 14, 9:02 pm, Gopal Vaswani  wrote:
> Looking at the implementation of Django admin module might help. I don't
> know exact details but for each data type (integer, String, list, date etc
> it has associated interface objects that it loads to depict the data in the
> correct controls.
> Vaswani
>
> On Mon, Apr 13, 2009 at 11:04 AM, adelevie  wrote:
>
> > Hi. I'm trying to build an a simple CRUD admin section of my
> > application. Basically, for a given Model, I want to have a template
> > loop through the model's attributes into a simple table (once I do
> > this, I can actually implement the CRUD part). A possible way to
> > accomplish this is to dynamically generate a template with all the
> > necessary template tags specific to that model.
>
> > Pseudocode:
> > def generate_tamplate(model):
> >     template.write("")
> >     template.write("")
> >     for attribute in model:
> >          template.write("%s" % attribute)
> >     template.write("")
> >     template.write("")
> >     for attribute in model:
> >          template.write("{{ %s.%s }}" % model.attribute)
> >     template.write("")
> >     template.write("")
>
> > Generating the proper text should not be difficult. I can follow my
> > pseudocode model and do it Python. Two things im wondering:
> > 1) Can I do this instead using Django's templating language? that is,
> > use a template to generate a template
> > 2) Once I generate the text, how can I wrote that to a file that
> > web

[google-appengine] Re: Integrating Google Application Engine with Google Maps

2009-04-13 Thread adelevie

I'm working on a bus tracking application for mobile phones that uses
Google's Static Maps api. Let me know if there's any functionality of
my site that you think I could help you replicate on yours.

On Apr 13, 2:51 pm, JDT  wrote:
> Kernja,
>
> Here's a possible option, but it uses ajax on the client side, rather
> than a direct interface to GAE:
>
> Use the Google Maps API with 
> ajax?http://code.google.com/apis/maps/documentation/services.html#Directions
>
> It looks like you can access the polyline data fairly easily.
>
> This would involve you doing three ajax transactions:
> Get the client to access the polyline data, pass it back to your app,
> return the points of interest?
>
> Just a thought, although I admit that it lacks elegance.
>
> David
>
> On Apr 12, 3:32 am, kernja  wrote:
>
> > Hello,
>
> > I just have a question on whether or not this is possible; I would
> > like to make an application with Google Application Engine that allows
> > a user to enter in a destination and ending point, have it generate a
> > map, and show landmarks within a certain vicinity of the route.
>
> > Now, I know how to go about finding areas within a certain route; I
> > have GPs data and can sort through it by region.  The only problem I
> > have is generating an actual route to go through!  I have no idea - if
> > it is even possible that is - to interface the Google Maps route
> > generation interface through Google Application Engine.
>
> > I found webservices online that can generate a route, but it gives
> > step-by-step directions.  I like how Google Maps - through the Geopoly
> > (line?)- gives you points instead of street-wise direction (e.g, go
> > left after 10 miles).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Dynamically generated templates

2009-04-13 Thread adelevie

Hi. I'm trying to build an a simple CRUD admin section of my
application. Basically, for a given Model, I want to have a template
loop through the model's attributes into a simple table (once I do
this, I can actually implement the CRUD part). A possible way to
accomplish this is to dynamically generate a template with all the
necessary template tags specific to that model.

Pseudocode:
def generate_tamplate(model):
 template.write("")
 template.write("")
 for attribute in model:
  template.write("%s" % attribute)
 template.write("")
 template.write("")
 for attribute in model:
  template.write("{{ %s.%s }}" % model.attribute)
 template.write("")
 template.write("")

Generating the proper text should not be difficult. I can follow my
pseudocode model and do it Python. Two things im wondering:
1) Can I do this instead using Django's templating language? that is,
use a template to generate a template
2) Once I generate the text, how can I wrote that to a file that
webapp's template loader can access?

I remember a while back seeing something about loading template from
the database. Is this possible with GAE?

THANKS!




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



[google-appengine] Re: New to google app engine stuff...

2009-03-30 Thread adelevie

Don't think of Google App Engine as a typical hosting service. There
is almost zero configuration and server administration. While this is
very convenient, you lose some flexibility. The web applications are
written only in Python (Java will soon be supported as well) which
limits you to Python-based frameworks. You can't run PHP on Google App
Engine.

I suggest checking out Django before you get your hands dirty with
GAE. Once you're comfortable with that, then start learning some GAE.

On Mar 28, 12:41 pm, Aaron  wrote:
> Hi, I just got hired in some job to basicly  update and make changes
> to their website. So I already coded the changes in html and css. I
> currently need to get a hold on the server sided scripts. I am used to
> using php.
>
> Now they told me they are using google to host the website. This was
> news to me. I never heard google offers website hosting services.
>
> So I got  here and the ceo of the company that I work for. He told me
> that the old guy used  google app engine.
>
> From what I learned in programming. Engines are usally to assist
> programmers to make applications  or to intergrad your software or web
> app with someone elses software.
>
> So I am thinking google apps engine is a engine that helps you make
> web applications to host on google.
>
> Now I am thinking web apps as in software type stuff for the website.
> So  I thought it's like for exmple.
>
> If I want people to be able to access their gmail account from my site
> I would need this google app engine to build a application that I can
> put it on my website.
>
> I don't understand how you can make a website with google apps engine?
>
> I am used to the regular way of website hosting  where you upload
> files and config the server or settings your hosting company allows
> you to change.
>
> So you can make one file the default file where the users would see
> when they type your domain name.
>
> So can someone explain how it's done with google apps?
>
> I also got admin rights well they call it developer rights.
>
> they use their own domain name.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: query to get a resultset matching multiple attributes

2009-03-14 Thread adelevie

Thank you!

On Mar 13, 6:23 pm, ryan  wrote:
> On Mar 13, 12:16 pm, adelevie  wrote:
>
> > routes = db.GqlQuery("SELECT * FROM Route WHERE code = 'BL' OR code =
> > 'WL'")
>
> > Apperently Gql doesn't like that OR.
>
> try SELECT * FROM Route WHERE code IN ('BL', 'WL').
>
> http://code.google.com/appengine/docs/python/datastore/gqlreference.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] query to get a resultset matching multiple attributes

2009-03-13 Thread adelevie

I have a model:
class Route(db.Model):
name = db.StringProperty()
code = db.StringProperty()
currently_running = db.IntegerProperty()

On my index page, I want to only display several of these routes, and
on another page, display all the routes. I can easily do the latter.
To display only certain routes, how can I make a query like this:

routes = db.GqlQuery("SELECT * FROM Route WHERE code = 'BL' OR code =
'WL'")

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



[google-appengine] Re: What does your new project template look like?

2009-03-13 Thread adelevie

Is werkzeug a framework you have running with GAE? How does it
organize your new projects?

On Mar 13, 7:14 am, Jarek Zgoda  wrote:
> I use another toolset (Werkzeug + Jinja2) so my projects are organized
> in different way, but I second your thoughts on default template
> usability.
>
> On 13 Mar, 08:16, adelevie  wrote:
>
> > I have found the included "new_project_template" to be woefully
> > inadequate for getting a real project started. It's good for learning
> > a hello world app, but when it comes to making apps ready for
> > production, it's nice to make your own template. I wrote about the
> > template that I use on my personal blog (http://www.alandelevie.com/
> > 2009/03/13/better-project-template-for-google-app-engine/ [there's a
> > download link if you want]). It includes BeautifulSoup, some django
> > templates, fixed tabs (why two spaces, Google, why?!), and some very
> > basic but useful functions.
>
> > I'd be interested to see what other people do about this.
>
> > -Alan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] What does your new project template look like?

2009-03-13 Thread adelevie

I have found the included "new_project_template" to be woefully
inadequate for getting a real project started. It's good for learning
a hello world app, but when it comes to making apps ready for
production, it's nice to make your own template. I wrote about the
template that I use on my personal blog (http://www.alandelevie.com/
2009/03/13/better-project-template-for-google-app-engine/ [there's a
download link if you want]). It includes BeautifulSoup, some django
templates, fixed tabs (why two spaces, Google, why?!), and some very
basic but useful functions.

I'd be interested to see what other people do about this.

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



[google-appengine] Re: How do I "select * from entity where 'foreignkey' = blah"

2009-02-09 Thread adelevie

Thanks for the suggestion of reworking the models, but I'd really like
the way to do it given my models. I changed the names of the entities
and properties so as not to give away what I'm trying to do.

On Feb 10, 12:45 am, Bill  wrote:
> I don't understand why you are modeling it that way.  Why have the
> ReferenceProperty in Location?
>
> Given your case of wanting all people with a given birthplace, it
> seems like this makes sense:
>
> class Person(db.Model):
>     name = db.StringProperty()
>     birthplace = db.ReferenceProperty(Location, default="unknown",
> collection_name='born_here')
>
> class Location(db.Model):
>     place = db.StringProperty()
>
> Since a person is likely only born in one place, you put the reference
> with the Person.
> Now you can do:
>   birthplace = my_person.birthplace    # gets Location
> and
>   some_location.born_here   # list of Person born here
>
> On Feb 9, 9:27 pm, adelevie  wrote:
>
> > I know the datastore is not relational but this should still be
> > simple.
>
> > I have two models:
>
> > class Person(db.Model):
> >      name = db.StringProperty()
>
> > class Location(db.Model):
> >      birthplace = db.StringProperty()
> >      name = db.ReferenceProperty()
>
> > So I want to be able to select all People given a birthplace. I tried
> > messing with keys, but to no avail.
>
> > thanks,
> > Alan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] How do I "select * from entity where 'foreignkey' = blah"

2009-02-09 Thread adelevie

I know the datastore is not relational but this should still be
simple.

I have two models:

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

class Location(db.Model):
 birthplace = db.StringProperty()
 name = db.ReferenceProperty()

So I want to be able to select all People given a birthplace. I tried
messing with keys, but to no avail.

thanks,
Alan

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



[google-appengine] Re: Basic Question concerning "def get(self) and def post(self)"

2009-01-28 Thread adelevie

Here's a quick shorthand:
If you want a "normal" web page, go with def get(self):.
If you want to access form data, go with def post(self):.

On Jan 27, 12:11 pm, Blixt  wrote:
> Just to clarify,
>
> > [...] The other, most common, request is POST, which means [...]
>
> By the above I did not mean to imply that POST is the most common
> request (that would be GET --- POST would be second; for most sites,
> anyways), I just meant that it's the other one of the most common
> requests.
>
> Regards,
> Andreas
>
> On Jan 27, 6:06 pm, Blixt  wrote:
>
> > Yes, def does define a function. Your functions must be called "get"
> > to handle GET requests and "post" to handle POST requests. Here's a
> > short explanation:
>
> > When a HTTP request is received and directed to your request handler
> > (MainPage in this case), the application will call the appropriate
> > function on your request handler.
>
> > The "appropriate function" is determined by the type of the HTTP
> > request. Most requests are GET requests, which means the client is
> > simply requesting the contents at a particular address. The other,
> > most common, request is POST, which means the client is requesting an
> > address, but it's got some data to deliver first (such as the contents
> > of a form.)
>
> > So if you type in an address in your browser that goes to the MainPage
> > request handler, the application will attempt to call its "get"
> > function. If you have a form on the page with the attribute
> > method="post", your browser will perform a POST request to the page
> > with the contents of the form. This will call the "post" function.
>
> > There are also other, less common HTTP requests such as HEAD and PUT,
> > but you barely ever have to worry about those.
>
> > Regards,
> > Andreas
>
> > On Jan 27, 2:56 pm, 0815pascal  wrote:
>
> > > Hello,
>
> > > I'm new to google app engine and also new to python. I don't
> > > understand why you have to code it like this:
>
> > > class MainPage(webapp.RequestHandler):
> > >   def get(self):
>
> > > I thought that def would define a function. But if I label it
> > > different then get or post it doesn't work. Can somebody give me a
> > > basic idea?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] A possible way to improve this Google Group

2009-01-27 Thread adelevie

I hope this is in compliance with posting rules etc etc and I know
that it is not usually a good sign to start off with such a sentence,
so I'll cut to the chase:

I have about 20 beta invites available for a service called Aardvark.
Aardvark is new application that facilitates user-to-user questions
and answers. Users can both ask and answer questions. Upon
registration, users list their areas of expertise. Questions relating
to those areas are routed to them. All of this can take place via IM,
GChat, and a UI on their web site. You can read more here:
http://venturebeat.com/2008/11/05/social-search-product-aardvark-think-yahoo-answers-meets-twitter-but-better/

I think it would be neat if a sizable portion of the Google App Engine
Google Group signed up for this service and listed Google App Engine
as an area of expertise.

I am willing to give away about 10 invites on this group, the only
condition is that you *promise* to use your beta invites to invite
others from this Google Group as well. In case you were wondering, the
other 10 invites will go to the Django Users Group ;)

Simply reply or private message me with your email address and I'll
get you set up.

Thanks, and I apologize if I broke any rules,

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



[google-appengine] Re: Cloud hosted IDE

2009-01-27 Thread adelevie

I do know of a company that may offer a similar service, but for Ruby:
http://devver.net/ . They are part of the TechStars incubator, I
believe.

On Jan 27, 5:58 pm, ryan  wrote:
> On Jan 27, 9:11 am, Peter Cooper 
> wrote:
>
> > I believe in diversity and to prove it I admit I once used pico and pine.
>
> wait, you admit? as in, there's something wrong with them now? :P
>
> http://snarfed.org/space/gmail+vs+pine
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Cloud hosted IDE

2009-01-27 Thread adelevie

Peter, that is what I had in mind. Although, I must say I am quite
impressed with this New Zoho product. I think there is room for both
such products.
One is meant for ultra-fast, noob-friendly deployment and the other
would be meant for coders who would like programming to be as
convenient as Gmail (the gateway drug to web 2.0 :) )

On Jan 27, 11:49 am, Peter Cooper 
wrote:
> I get the impression that what adelevie  was after was an app that lives on
> appspot.com with .py, .yaml, etc., in datastore, that would be accessible
> from the cloud with the proper authentication, but would be an IDE for GAE
> only. No more dev_appserver.py or appcfg.py or the accoutrements therewith,
> for them that want the GAE IDE on appspot.com. Does that comport with what
> you meant adelevie?
>
> On Tue, Jan 27, 2009 at 8:43 AM, kang  wrote:
> > Zoho Creator got an update today with a new feature that lets you deploy
> > your Zoho Creator applications to Google App Engine.
> >http://blogs.zoho.com/general/zoho-creator-deploys-to-google-app-engine/
>
> > On Tue, Jan 27, 2009 at 8:34 AM, adelevie  wrote:
>
> >> Does anyone else agree that a web-based IDE for GAE would be awesome?
> >> Thoughts?
> >> How can this be done?
> >> I'm thinking Google could whip out a pretty neat solution--maybe using
> >> a Google Docs-like text editor and an ajaxy file system.
>
> > --
> > Stay hungry,Stay foolish.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Cloud hosted IDE

2009-01-27 Thread adelevie

Does anyone else agree that a web-based IDE for GAE would be awesome?
Thoughts?
How can this be done?
I'm thinking Google could whip out a pretty neat solution--maybe using
a Google Docs-like text editor and an ajaxy file system.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Alternate Upload Tools...

2009-01-11 Thread adelevie

there is probably no alternative method. work on fixing the appcfg.py
method.

On Jan 10, 8:20 am, ramu  wrote:
> First of all, thanks for this great product. Now I feel myself *how
> much* time I wasted looking for a free reliable PHP host since last 2
> month. It was 2 days back when I entered "data api" in google.co.in
> and came across this solution from google. I have been reading and
> reading and reading than since on different help foram and discussion
> group... ( even found gminifb.py , the facebookAPI handler created for
> App Engine Python ) . I ran the SDK and followed each page of getting
> started. O yes, the 1st reading about Python on wiki. Finally the
> moment came I wanted to upload the test app of *getting started*
> section. Whooshhh IT FAILED. Again some googling on net and realised I
> need some python configuration to upload through the AUTHENTICATED
> proxy I use for internet connection.Tried to the limit with no
> success.
>
> Now all I want is ANY alternate tool to upload my files to Google App
> Engine. Their count is well below 100 so no problem uploading
> individually.
>
> IS THERE any alternate method ( I couldn't google about ) for doing
> so.???
>
> Ram Shanker
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Google App Engine Platform

2009-01-09 Thread adelevie

GAE forces you to use a framework, php doesn't. GAE lets you cheaply
host django, web.py and webapp frameworks.

On Jan 9, 1:54 pm, Eric Frost  wrote:
> If I develop an app using the Google App Engine Platform and decide to
> change my mind and host it ourselves later, is this possible?
>
> Are there some few features such as leveraging Google Accounts that
> would not be possible?
>
> How about the database?
>
> I have a lot of experience with PHP and MySQL on cheaping hosting
> accounts with WHM and CPANEL.
>
> What are the pros / cons of the PHP/MySQL platform vs. the Google App
> Engine?
>
> Thanks,
> Eric
>
> http://www.infomoving.comhttp://www.mapelves.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: "appcfg.py update" talking with server very slowly, http://appspot.google.com slowly resolves

2009-01-09 Thread adelevie

here it is:
C:\Program Files\Google\google_appengine>python appcfg.py --noisy
update courses
api
Loaded authentication cookies from C:\Documents and Settings
\1/.appcfg_cookies
2009-01-09 14:49:13,578 INFO appcfg.py:129 Server:
appengine.google.com
2009-01-09 14:49:13,592 INFO appcfg.py:572 Checking for updates to the
SDK.
2009-01-09 14:49:13,592 DEBUG appcfg.py:141 Creating request for:
'http://appeng
ine.google.com/api/updatecheck?
release=1.1.7×tamp=1227225249&api_versions=%
5B%271%27%5D' with payload:

2009-01-09 14:49:13,780 INFO appcfg.py:586 The SDK is up to date.
2009-01-09 14:49:13,780 INFO appcfg.py:1281 Reading app configuration.
Scanning files on local disk.
2009-01-09 14:49:13,780 INFO appcfg.py:1291 Ignoring file 'app.yaml':
File match
es ignore regex.
2009-01-09 14:49:13,780 INFO appcfg.py:1299 Processing file
'BeautifulSoup.py'
2009-01-09 14:49:13,796 INFO appcfg.py:1291 Ignoring file
'BeautifulSoup.pyc': F
ile matches ignore regex.
2009-01-09 14:49:13,796 INFO appcfg.py:1291 Ignoring file
'index.yaml': File mat
ches ignore regex.
2009-01-09 14:49:13,796 INFO appcfg.py:1299 Processing file 'main.py'
Initiating update.
2009-01-09 14:49:13,796 DEBUG appcfg.py:141 Creating request for:
'http://appeng
ine.google.com/api/appversion/create?version=1&app_id=coursesapi' with
payload:
api_version: '1'
application: coursesapi
handlers:
- script: main.py
  url: .*
runtime: python
version: '1'

Cloning 2 application files.
2009-01-09 14:49:14,217 DEBUG appcfg.py:141 Creating request for:
'http://appeng
ine.google.com/api/appversion/clonefiles?version=1&app_id=coursesapi'
with paylo
ad:
main.py|18408072_5bde8fd7_76184710_afa485bf_b801d906
BeautifulSoup.py|868ea04e_a490d6c2_a2da00f7_e39676ee_979079cb
2009-01-09 14:49:14,515 INFO appcfg.py:1211 Files to upload: {}
Closing update.
2009-01-09 14:49:14,515 DEBUG appcfg.py:141 Creating request for:
'http://appeng
ine.google.com/api/appversion/commit?version=1&app_id=coursesapi' with
payload:

2009-01-09 14:49:14,905 INFO appcfg.py:1340 Done!
Uploading index definitions.
2009-01-09 14:49:14,921 DEBUG appcfg.py:141 Creating request for:
'http://appeng
ine.google.com/api/datastore/index/add?version=1&app_id=coursesapi'
with payload
:
{}

I don't really know what all this means, but it looks like there are
no errors. If you'd like, I'll pm the code of my app if need be.

Thanks
On Jan 9, 2:22 pm, Marzia Niccolai  wrote:
> Hi,
>
> We haven't noticed anything, can you provide more information by running
> your appcfg.py update command with the --noisy flag?
>
> -Marzia
>
> On Fri, Jan 9, 2009 at 11:13 AM, adelevie  wrote:
>
> > my app wont load at all--at least there wasn't anything wrong with
> > my code ;)
>
> > On Jan 8, 10:05 pm, Andrew Yates  wrote:
> > > Is there something wrong with the server? It is taking the app engine
> > > ten minutes for the server to respond to a simple "hello world" file
> > > update.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: "appcfg.py update" talking with server very slowly, http://appspot.google.com slowly resolves

2009-01-09 Thread adelevie

my app wont load at all--at least there wasn't anything wrong with
my code ;)

On Jan 8, 10:05 pm, Andrew Yates  wrote:
> Is there something wrong with the server? It is taking the app engine
> ten minutes for the server to respond to a simple "hello world" file
> update.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] typo in docs

2009-01-09 Thread adelevie

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

towards the bottom it says "appcfy.py" where it should be "appcfg.py".
I didn't know where else to post this.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Admin interface that let's me enter dummy data

2009-01-09 Thread adelevie

I guess I'm stuck with that--it works nicely despite trouble getting
the stylesheets to load. This seems like such a simple feature for
google to implement, I  don't understand why they dont.

On Jan 9, 7:51 am, nickcharb  wrote:
> I found appengine_admin helpful to add dummy data.  It's a very nice
> interface, and all you have to do is define the models/properties you
> want exposed to the forms for view/edit/etc.
>
> http://code.google.com/p/appengine-admin/
>
> Nick
>
> On Jan 9, 4:38 am, Alexander Kojevnikov 
> wrote:
>
> > > Thanks for the response. I just dont see a reason why Google can't
> > > allow dummy data to be entered via the built in admin interface. If it
> > > can create forms when there is data, why cant it create forms without
> > > data?
>
> > I guess the main reason is that the datastore is schema-less, the
> > models can and will change at runtime. Also, the model classes can be
> > defined and re-defined in any module of the project, I guess it's a
> > non-trivial task to figure out what the final model definition would
> > be.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] 500 server error

2009-01-09 Thread adelevie

I have one app right now http://wepaste.appspot.com. I know how to
create and upload apps. However, today, I cannot even upload a hello
world even though the app works perfectly on dev_appserver. appcfg.py
runs fine but when I visit the URL, I get a 500 server error.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Admin interface that let's me enter dummy data

2009-01-08 Thread adelevie

Thanks for the response. I just dont see a reason why Google can't
allow dummy data to be entered via the built in admin interface. If it
can create forms when there is data, why cant it create forms without
data?

On Jan 9, 2:44 am, Alexander Kojevnikov 
wrote:
> You can include the 'shell' application from the official appengine
> samples with your app, and add/edit/delete the entities from Python
> shell.
>
> Source:http://code.google.com/p/google-app-engine-samples/downloads/list
> Demo:http://shell.appspot.com/
>
> Don't forget to restrict access to shell, e.g. only to the app admins.
>
> Cheers,
> Alex
> --www.muspy.com
>
> On Jan 9, 3:54 pm, adelevie  wrote:
>
> > I really like GAE's admin interface save for one thing: it doesnt let
> > me enter dummy data--it says I must do it programmatically. While I'm
> > sure there is some legitimate reason for this, I still would like an
> > automated set of forms generated from my existing models. Is anyone
> > else in the same boat as me? Right now I'm stuck manually creating a
> > form class and url for each models--quite messy. Are there any clever
> > workarounds?
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Admin interface that let's me enter dummy data

2009-01-08 Thread adelevie

I really like GAE's admin interface save for one thing: it doesnt let
me enter dummy data--it says I must do it programmatically. While I'm
sure there is some legitimate reason for this, I still would like an
automated set of forms generated from my existing models. Is anyone
else in the same boat as me? Right now I'm stuck manually creating a
form class and url for each models--quite messy. Are there any clever
workarounds?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Database wrapper for datastore

2008-12-30 Thread adelevie

I am wondering if there is any interest in some sort of wrapper for
the datastore with other object relational mappers. Such wrappers
would make it easier to transition between GAE and other databases--
just change some db settings. For example, while GAE is compatible
with Django (.96), you must change all of your database models and
queries. I understand that BigTable is not a relational databse,
however it can be used somewhat relationally via its ReferenceProperty
().
Does anyone else want this? Is it even technically possible/practical?


Thanks,
Alan

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