Re: in defense of traversal

2011-10-12 Thread Malthe Borch
On 12 October 2011 21:33, Michael Merickel wrote: > It's harder than it sounds to actually utilize that. Each step of traversal > expects a new context object, and there isn't an obvious spot in the > traversal process to say "ok we're done, now perform the query". Also AFAIK > SQLAlchemy doesn't

Re: in defense of traversal

2011-10-12 Thread AD.
On Oct 13, 6:10 am, Iain Duncan wrote: > I challenge anyone who has dismissed it, to sit a client down in front of a > traversal based CMS and watch them. Wow, you don't need to tell them > anything, they get it right away because it looks and acts *just like their > file system*. We, the *develop

Re: in defense of architecture

2011-10-12 Thread Graham Higgins
There's this, from a couple of years ago, back when the nascent Pyramid was going by the pseudonym "Marco". I encountered the PCA (as the ZCA should have been called) and went hunting around for some other approaches to providing a component architecture: http://bel-epa.com/notes/Marco/notes.xm

Re: in defense of traversal

2011-10-12 Thread Rob Miller
On 10/12/11 2:18 PM, Thomas G. Willis wrote: On Wednesday, October 12, 2011 2:53:09 PM UTC-4, Rob Miller wrote: On 10/12/11 11:00 AM, Parnell Springmeyer wrote: > One quick thing to add: I am building/maintaining a *big* production > application that is 100% on top of Pyramid and

Re: in defense of traversal

2011-10-12 Thread Thomas G. Willis
On Wednesday, October 12, 2011 2:53:09 PM UTC-4, Rob Miller wrote: > > On 10/12/11 11:00 AM, Parnell Springmeyer wrote: > > One quick thing to add: I am building/maintaining a *big* production > > application that is 100% on top of Pyramid and strictly uses Traversal > > and SQLAlchemy. > > One thi

Re: in defense of traversal

2011-10-12 Thread Iain Duncan
I'm curious whether any one has tried caching the traversal compound path? For example, could all content items have a cached full path and have lookup first check if there is an item with that full path before beginning traversal? I would think those full paths would only need to be re-done when c

Re: in defense of traversal

2011-10-12 Thread Parnell Springmeyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rob Miller writes: > One thing worth noting when using traversal w/ SQL is that you often > pay a lookup penalty, since every part of the requested URL path > usually results in an additional database query (e.g. "GET > /foo/bar/baz" would be at leas

Re: in defense of traversal

2011-10-12 Thread Mariano Mara
On 12.10.11 14:33, Michael Merickel wrote: >On Wed, Oct 12, 2011 at 2:00 PM, Mariano Mara ><[1]mariano.m...@gmail.com> wrote: > > The "with recursive" sql idiom (such as the one you would find in > pgsql and > oracle) could be of help on this situation. > >It's harder t

Re: in defense of traversal

2011-10-12 Thread Michael Merickel
On Wed, Oct 12, 2011 at 2:00 PM, Mariano Mara wrote: > > The "with recursive" sql idiom (such as the one you would find in pgsql and > oracle) could be of help on this situation. It's harder than it sounds to actually utilize that. Each step of traversal expects a new context object, and there is

Re: in defense of traversal

2011-10-12 Thread Mariano Mara
On 12.10.11 11:53, Rob Miller wrote: > On 10/12/11 11:00 AM, Parnell Springmeyer wrote: > >One quick thing to add: I am building/maintaining a *big* production > >application that is 100% on top of Pyramid and strictly uses Traversal > >and SQLAlchemy. > > One thing worth noting when using travers

Re: in defense of traversal

2011-10-12 Thread Rob Miller
On 10/12/11 11:00 AM, Parnell Springmeyer wrote: One quick thing to add: I am building/maintaining a *big* production application that is 100% on top of Pyramid and strictly uses Traversal and SQLAlchemy. One thing worth noting when using traversal w/ SQL is that you often pay a lookup penalty

Re: in defense of traversal

2011-10-12 Thread Parnell Springmeyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 One quick thing to add: I am building/maintaining a *big* production application that is 100% on top of Pyramid and strictly uses Traversal and SQLAlchemy. I should probably do a sample app that uses traversal and SQLAlchemy. - -- Parnell "ixmatus"

Re: in defense of traversal

2011-10-12 Thread Parnell Springmeyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I will chime in and say that I took the time to figure out Traversal (took me about two weeks on my own with a little help on IRC) and I unequivocally *LOVE IT*. It's definitely a paradigm shift, a major one, from route matching and I think it's intim

Re: in defense of traversal

2011-10-12 Thread Thomas G. Willis
+100 on traversal. we're using it with appengine and it has served us very well. Thomas G. Willis On Wed, Oct 12, 2011 at 1:37 PM, Stefano Fontanelli wrote: > Il 12/10/11 19.10, Iain Duncan ha scritto: > > (was going to be one post, split in two). I'm wondering about making this >> into

Re: in defense of traversal

2011-10-12 Thread Rob Miller
On 10/12/11 10:10 AM, Iain Duncan wrote: (was going to be one post, split in two). I'm wondering about making this into a larger article that could be posted on the docs. This is insightful, thanks for sharing your experiences here. If you're serious about contributing to the docs, you might

Re: in defense of traversal

2011-10-12 Thread Eric Rasmussen
Hi Iain, I'd definitely like to see a detailed example or some sample code too. It's difficult to choose from competing libraries and methodologies, and once you make a choice the tendency is to stick with it. A lot of my choices were shaped by the Pylons Book because it gave me a solid footing in

Re: in defense of traversal

2011-10-12 Thread Stefano Fontanelli
Il 12/10/11 19.10, Iain Duncan ha scritto: (was going to be one post, split in two). I'm wondering about making this into a larger article that could be posted on the docs. A lot of people don't get what the heck good traversal is. Part of the issue is that it's a bit harder to make it really

Re: in defense of traversal

2011-10-12 Thread Iain Duncan
Also, in my experience with other CMS and frameworks, users hate administering menus and permissions. It's a constant source of confusion and error. The fact that a traversal based cms automatically generates the menus and site map, and that mapping permissions is simple on the site map is a huge p

Re: in defense of traversal

2011-10-12 Thread Mariano Mara
On 12.10.11 10:10, Iain Duncan wrote: > >Now aside from ranting, would it perhaps be useful for me to post >sometime a more detailed example of how we accomplished traversal based >permissions and editing using an SQLAlchemy back end? ( It will be a >while, but I need to write lots

in defense of traversal

2011-10-12 Thread Iain Duncan
(was going to be one post, split in two). I'm wondering about making this into a larger article that could be posted on the docs. A lot of people don't get what the heck good traversal is. Part of the issue is that it's a bit harder to make it really shine without using the zodb, but it's certainl

in defense of architecture

2011-10-12 Thread Iain Duncan
Lately ( as a side effect of growth I expect ), I've noticed another wave of emails on the lists bemoaning the inclusion of the ZCA, zcml, zodb and traversal in pyramid. I suppose it's natural that people don't read defense-of-architecture docs when first coming to an framework, but it's also natur

Re: Pylons ZCML

2011-10-12 Thread Iain Duncan
On Mon, Oct 10, 2011 at 7:21 PM, Chris McDonough 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 de