Mike Orr wrote:
> (...)
>
> ToscaWidgets has too many dependencies; it almost doubles the size of
Pylons.  Plus I understand the TW team wants to get rid of a couple of
those dependencies, which Pylons has already jettisoned.  lxml is
required for TW's Javascript features.

Correct. TW wants to get rid of all it's C dependencies, currently the
only "hard" ones are RuleDispatch and PyProtocols.

You *don't need* lxml to inject javascript and css. The "lxml method" is
an experimental approach which I will probably deprecate and remove from
the codebase someday because it's more trouble than it's worth (a C
dependency plus doctype mangling). I though I made this clear in the
tutorial... [1].

The "official" approach is to use a base template that will iterate the
values in a dict at c.resources and render them + the use of
toscawidgets.pylonshf.render() instead of Pylons render so resources get
picked up from widgets sent to the template. This technique has been
borrowed from TG widgets where they are tightly integrated into the
framework, hence the"boilerplateness" perceived my some Pylons users. Also
note that none of this is needed (and perhaps not even desired) if you
don't want TW to inject javascript or css in the
document and do that yourself.

I should cover this in more detail on the docs (which I'm slowly, but
steadily, working on them in the little free time I rarely have... stay
tuned at beta.toscawidgets.org). Meanwhile [2] describes to a certain
degree.

Alberto

[1]
http://wiki.pylonshq.com/display/toscawidgets/Using+twForms+with+Pylons.+Part+1#a-little-theory
[2]
http://wiki.pylonshq.com/display/pylonscookbook/Getting+Started+With+ToscaWidgets+and+Pylons









--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to