Paul, Here's the deal. What it sounds like you're wanting is to be able to write models in python that access the Google Gears LocalStorage (etc.) API. This would involve at least two things: 1) online access to the framework (which precludes the offline-ness of Gears) 2) Some sort of Python -> Javascript compiler. The guys at pyjamas are working on this, but I'm not holding my breath.
If the above is really what you're wanting, just learn Javascript. It's a lot easier that way than messing with one language compiled to another. If you know Python and C that's great! Put them in a blender and you have Javascript. Here's an excellent tutorial: http://eloquentjavascript.net/contents.html and an excellent reference: http://reference.sitepoint.com/ Have fun. -tim Paul Eden wrote: > Thanks Tim, > > This is probably just me daydreaming here, but it sure would be nice > to have some convenient API to handle offline usage of web apps in the > framework. > > It would be the only framework, to my knowledge, that provides such > (probably and justifiably because it is considered out of scope). > - But what a benefit to developers! > > I don't know if such a thing is technically feasible as I haven't > investigated the details of the plugins mentioned enough to know, > mostly because I haven't had the time. > - That may be the benefit of including it in the framework. > Developers are already very busy. If the framework made adding > offline functionality to their apps easy, that would attract > developers. I know it would me, but I already like web2py. :-) > > Paul > > On Mon, Feb 2, 2009 at 9:14 AM, Timothy Farrell <tfarr...@swgen.com > <mailto:tfarr...@swgen.com>> wrote: > > > I suppose you could include gears_init.js but unless web2py > specifically > took advantage of gears, I don't see a reason to include this any more > than Yahoo's Browserplus or Adobe Air. All of which seem out of the > scope of web2py for me. > > For those wondering, here's the code in question: > http://code.google.com/apis/gears/tools.html#gears_init > http://browserplus.yahoo.com/developer/web/code/introduction/ > http://www.adobe.com/products/air/tools/sdk/ > > -tim > > Paul Eden wrote: > > Wouldn't it be possible to include the javascript necessary to > use the > > plugin (if it is installed)? > > > > Paul > > > > On Mon, Feb 2, 2009 at 8:48 AM, Timothy Farrell > <tfarr...@swgen.com <mailto:tfarr...@swgen.com>> wrote: > > > >> Google gears is a browser plugin. Even if we wanted to, there > would be > >> no way to include it in web2py. > >> > >> Sebastian E. Ovide wrote: > >> > >>> Hi All, > >>> > >>> is there any plans to include google gears into web2py ? (or is > >>> already part of T2?) > >>> > >>> thanks > >>> > >>> > >> -- > >> Timothy Farrell <tfarr...@swgen.com <mailto:tfarr...@swgen.com>> > >> Computer Guy > >> Statewide General Insurance Agency (www.swgen.com > <http://www.swgen.com>) > >> > >> > >> > > > > > > > > > > -- > Timothy Farrell <tfarr...@swgen.com <mailto:tfarr...@swgen.com>> > Computer Guy > Statewide General Insurance Agency (www.swgen.com > <http://www.swgen.com>) > > > > > > > -- > Best Regards, > > Paul Eden > > "...and a little looking out for the other guy too." > - Mr. Smith > > > -- Timothy Farrell <tfarr...@swgen.com> Computer Guy Statewide General Insurance Agency (www.swgen.com) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---