On 10/1/06, aspineux <[EMAIL PROTECTED]> wrote: > Widgets cannot be designed/customised by editing the kid template, > because they are defined in the code! And then the web designer has no > control on it !
That's not necessarily true. The most basic widgets in TurboGears do incorporate the Kid template in the code, but they do not have to. A widget developer can either embed the template (the way the form widgets do) or use an external template (the way the DataGrid widget does). > Read this imaginary scenario. > > Suppose you just finished your TG application (that include a lot of > widgets and kid templates), you start your application in "designer" > mode (something TG don't support yet, this will start your application > for real and a kind of TG toolbox on another port that give access to > the kid templates and widgets definition by ftp or webdav). Then you > give your application URL, a login and a password to your web designer. I'm curious--in your experience, is it usual to have the application developer and the web designer so rigidly separated? I've never run across it in any web-based development project I've worked on. > But the main idea of this post is that TG cannot solve alone the widget > dilemma. It seems to me that the problem widgets solve is very different from what you're trying to accomplish. It almost seems as if you're asking for a whole different system, which is driven from the visual design side of the world rather than an overall application design. Is that the case? > I finally a small Hint : widget must be used to simplify live, not to > do crazy thing. For crazy thing just use python and kid template, and > work together with your designer if your model require that your > designe must be done in your controller. I agree... that's what the existing widgets try to do: simplify the most common cases by eliminating the HTML coding and automatically hooking up display and validation. What's your definition of a "crazy thing"? -- Tim Lesher <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~----------~----~----~----~------~----~------~--~---

