Hi

it's great to see web2py is going to have plugin/component :-)

my two cents below.

- plugins and components enhance functionalities of web2py.
- to augment the web2py system, API and namespace are important issues
to be addressed.

- plugin is an application which happens to interact with other
applications instead of browsers.
- it intereacts with applications thru their controllers in accordance
with MVC model.
- it is self-contained without any side-effects in terms of interface
(API) and namespace.
- it can be implemented as a class (instead of a module in a
directory), so that it is portable at least within the realm of
web2py. (each plugin is a subclass of an abstract class Plugin.)
- its interface can be realized thru a direct call of functions by
sharing a namespace, or a remote call thru HTTP, Ajax, XMLRPC,
JSONRPC, or other protocols (using JSON as format).

- component is a module which augments functionalities to
applications.
- it has three kinds: model component, contoller component, and view
component.
- each component augments its corresponding model, controller, or view
of applications.
- components as a whole constitute a class hiearchy, interacting with
and depending on each other.
- components as a whole do not contaminate any namespace of other
applications.
- its API and dependancy/hiearchy are clearly declared and documented.
(An abstract class Component has three abstract subclasses: Model,
Controller, and View.)

please forgive me if the above includes any ignorance or incorrectness
due to lack of my understanding.

--
Teru

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to