Re: twisted
will guaraldi <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 30 Mar 2005, Steven Armstrong wrote: > On 03/29/05 21:27, will guaraldi wrote: >> >> Well, what do you mean by "well known interfaces" between the different >> parts of the system? Can you give any examples? > > I found it difficult to write my nevow-renderer in a generically working > way cause the plugin system is so flexible that you can do just about > anything at any time from within a plugin. That ment that their could be > special cases depending on what plugins are loaded. The result is that I > can use the nevow-renderer but it's unlikely that anybody else, with > only a slitely different setup, could run it. > > For example the comments plugin directly accesses the renderer's > outputTemplate methods. It also changes the loaded templates on the fly. > As I wanted to use a nevow-template and renderer, which work totally > different than the standard engine, this made things difficult. There's > no way I could have implemented this without hacking the comments > plugin. > > It would have been much easier if plugins would not change or access the > internals in such a way, and instead tell the core system to do that for > them. > > If I have to hack plugins to work with changes made to the underlying > system that's IMHO a sign that "well known interfaces" are missing. On > the other hand, maybe I was just trying to do something that's totally > incompatible with Pyblosxoms design. > > I don't know if this is a good example or if I was able to explains my > thoughts well enough. Yeah--that explains it pretty well. I'm not sure what to say here other than I don't think PyBlosxom is really fleshed out enough to provide all the well-known interfaces we're probably going to need. We've always kind of figured things out as we went along. I'll speak to the comments issue in a separate email. /will ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click