On Mon, Oct 10, 2011 at 7:21 PM, Chris McDonough <[email protected]> wrote:
> My replies refer to Pyramid (a newer framework that is part of the > Pylons Project) as opposed to Pylons (an older web framework, also part > of the Pylons Project). > > On Mon, 2011-10-10 at 18:38 -0700, jpburbank wrote: > > Long time developer of Zope 1, 2, and 3 and completely done with it. > > I'm looking at other frameworks and Pylons seems a good candidate. It > > did until I started to come across references to use of ZCML in > > Pylons. Is this so. Is ZCML used in Pylons proper? > > > https://docs.pylonsproject.org/projects/pyramid/1.2/designdefense.html#pyramid-encourages-use-of-zcml > > In other words, no. > > > Does it also use > > the component architecture of Zope 3. > > > https://docs.pylonsproject.org/projects/pyramid/1.2/designdefense.html#pyramid-uses-a-zope-component-architecture-zca-registry > > In other words, yes, but it's not exposed to app developers. > But it can be if you want it. And I, for one, really don't understand why anyone would not want to dig there if you're serious about your application. The ZCA is awesome. ZCA based views-as-adapters kicks ass on any of the other ways I've used for structuring web apps ( django, turbogears, pylons, and drupal go in that list ) Also, contrary to a popular misconception, using the zope component architecture does not require you to use zcml, nor does it require you to use the zodb, nor is it attached necessarily to the concept of traversal. ( Though honestly I think traversal is awesome too. And I use zcml because zcml overrides are a very clean way to structure extendable apps, separating configuration from code. The fact that it *looks* like xml is irrelevant, or should be if you know how to use your text editor. ). Hey Chris, do you we have a link to the online ZCA book on the pyramid docs anywhere? http://www.muthukadan.net/docs/zca.html That may go some ways to clearing up some misunderstandings of exactly what the ZCA does and is great for. I realize that part of your intent is to make sure people don't need to use interfaces and registry lookup if they don't want to, but maybe having a further reading link would help others understand why it's there. The downside of hiding it so we well is that we constantly face questions from people who don't understand what the justification was for using it in the first place, all because of the stigma of Zope 2's over-complexity. Perhaps a comparisons with QT's signals and slots would be useful too? signals and slots has a very good rep and there are some real similarities there. thanks iain > > - C > > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" 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/pylons-discuss?hl=en. > > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en.
