Google gears ?

2 views
Skip to first unread message

Sebastian E. Ovide

unread,
Feb 2, 2009, 10:44:46 AM2/2/09
to web...@googlegroups.com
Hi All,

is there any plans to include google gears into web2py ? (or is already part of T2?)

thanks

Timothy Farrell

unread,
Feb 2, 2009, 10:48:20 AM2/2/09
to web...@googlegroups.com
Google gears is a browser plugin. Even if we wanted to, there would be
no way to include it in web2py.
--
Timothy Farrell <tfar...@swgen.com>
Computer Guy
Statewide General Insurance Agency (www.swgen.com)

Paul Eden

unread,
Feb 2, 2009, 10:50:14 AM2/2/09
to web...@googlegroups.com
Wouldn't it be possible to include the javascript necessary to use the
plugin (if it is installed)?

Paul
--
Best Regards,

Paul Eden

"...and a little looking out for the other guy too."
- Mr. Smith

Timothy Farrell

unread,
Feb 2, 2009, 11:14:58 AM2/2/09
to web...@googlegroups.com
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

unread,
Feb 2, 2009, 11:22:22 AM2/2/09
to web...@googlegroups.com
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

mdipierro

unread,
Feb 2, 2009, 11:28:24 AM2/2/09
to web2py Web Framework
What do you mean by off-line? what specifically do you want to do?
> > > On Mon, Feb 2, 2009 at 8:48 AM, Timothy Farrell <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>
> > >> Computer Guy
> > >> Statewide General Insurance Agency (www.swgen.com)
>
> > --
> > Timothy Farrell <tfarr...@swgen.com>

BearXu

unread,
Feb 2, 2009, 11:30:58 AM2/2/09
to web...@googlegroups.com
Yahoo's Browserplus is really cool:)

2009/2/2 mdipierro <mdip...@cs.depaul.edu>

Timothy Farrell

unread,
Feb 2, 2009, 11:33:32 AM2/2/09
to web...@googlegroups.com
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
> >> Timothy Farrell <tfar...@swgen.com <mailto:tfar...@swgen.com>>
> >> Computer Guy
> >> Statewide General Insurance Agency (www.swgen.com
> <http://www.swgen.com>)
> >>
> >>
> >>
> >
> >
> >
> >
>
> --
> Timothy Farrell <tfar...@swgen.com <mailto:tfar...@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
>
> >

Fran

unread,
Feb 2, 2009, 11:33:49 AM2/2/09
to web2py Web Framework
On Feb 2, 4:22 pm, Paul Eden <benchl...@gmail.com> wrote:
> it sure would be nice to have
> some convenient API to handle offline usage of web apps in the framework.

+1

I see this as a nice widget to code up for T2/T3.
It doesn't belong in core Web2Py, but a reusable widget in a higher
level library would be great :)

F

BearXu

unread,
Feb 2, 2009, 11:49:07 AM2/2/09
to web...@googlegroups.com
I have an idea that :
Next time Mr. M can publish a Web2Py App Store integrated in the admin interface of Web2Py

SO It will be easy to upload applications of Web2Py or Javascript applications or beautiful icons and with a update notification function.

And Web2Py can also be updated through the Store.

The applications can be tagged and even use Google checkout to buy them(I like Free).

Then the developers can download what they want and use them in the Web2Py.

Give the right of choice to the developers.

Finally Web2py can include the applicatons most downloaded!

2009/2/2 Fran <franc...@googlemail.com>

BearXu

unread,
Feb 2, 2009, 11:53:43 AM2/2/09
to web...@googlegroups.com
Each application in the web2py admin will have three extra function:
Check Update, Rate them and give a Patch.

But the problem is that if some body has modified the appliction how to upgrade them.

The five star applications also can be included.


2009/2/2 BearXu <bear...@gmail.com>

Paul Eden

unread,
Feb 2, 2009, 11:54:35 AM2/2/09
to web...@googlegroups.com
On Mon, Feb 2, 2009 at 9:28 AM, mdipierro <mdip...@cs.depaul.edu> wrote:

What do you mean by off-line? what specifically do you want to do?


Preface: I don't know the internals of Gears or Browserplus, etc.  To my knowledge they are browser plugins with javascript interfaces that allow you seemlessly interact with an online application without having access to the network and then once you connect to the network again they allow seemless syncronization between the online and offline data.  Very Cool.  I use it all the time with my laptop with http://www.rememberthemilk.com and http://www.zoho.com has included it as well.  With that said:

I think having the javascript included in web2py that wraps the gears or browserplus functionality in some high level API for developers to use in their apps for the most common use cases (I just want my app to be available when the client is offline and then sync back up with it connects again).

We already include jquery and wrap it's functionality to provide flash messages and fading, etc.   This could be similar, but provides more functionality instead of viewing.

The idea would have to be fleshed out a lot more, but I think it has merit.

Paul


Fran

unread,
Feb 2, 2009, 1:36:46 PM2/2/09
to web2py Web Framework
On Feb 2, 4:49 pm, BearXu <bearx...@gmail.com> wrote:
> I have an idea that :
> Next time Mr. M can publish a Web2Py App Store integrated in the admin
> interface of Web2Py
> SO It will be easy to upload applications of Web2Py or Javascript
> applications or beautiful icons and with a update notification function.

This sounds like the Plugins idea discussed on this other thread:
http://groups.google.com/group/web2py/browse_thread/thread/0e68169aa732a5d6

I agree with the thought there & here that the Admin app makes sense
as the place to install plugins.

F

Fran

unread,
Feb 2, 2009, 1:41:17 PM2/2/09
to web2py Web Framework
On Feb 2, 6:36 pm, Fran <francisb...@googlemail.com> wrote:
> This sounds like the Plugins idea discussed on this other thread:

Actually that thread is about somethign different - 'Drivers' as
Massimo puts it.
The plugin concept of widgets (python module, javascript, images, etc)
is discussed here:
http://groups.google.com/group/web2py/browse_thread/thread/e624360e3678a19f

F

BearXu

unread,
Feb 2, 2009, 2:00:10 PM2/2/09
to web...@googlegroups.com
Yes, but the plugin is only the function to extend web2py.

Store is the place to dispatch the plugins so that web2py maybe will form a bigger develop community.

Then, web2py will introduce WEB2.0-style into programming just like the all-in-one and admin which already existed.

2009/2/2 Fran <franc...@googlemail.com>

Sebastian E. Ovide

unread,
Feb 2, 2009, 2:56:21 PM2/2/09
to web...@googlegroups.com

vihang

unread,
Feb 4, 2009, 7:01:03 AM2/4/09
to web2py Web Framework
I remember a similar discussion on this before here.

My understanding is that the offline support for web application still
has miles to go before it can mature like javascript libraries
(jquery, dojo, etc). There are various issues involved primarily
relating to data sync. It would have to be addressed on a case to case
basis. Besides, if one digs deeper into the current available options
(gears, browserplus, dojo with gears, AIR), they are good for a
particular type of application. They cannot meet the offline
requirements of all the different applications you may be working
with.

I would suggest to wait it out before these solutions are made more
robust.

On Feb 2, 11:56 pm, "Sebastian E. Ovide" <sebastianov...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages