Re: in defense of traversal

2011-10-13 Thread Parnell Springmeyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Iain Duncan writes: > I agree, and actually we are indeed actually using traversal for our restful > api admin interface too. We did this by making some proxy container objects, > we call ResourceContainers, that represent a class of resources. The >

Re: in defense of traversal

2011-10-13 Thread Iain Duncan
> I can't speak for the OP, but our API is built using traversal (I > thought about using a hybrid approach but decided not to do that) - I > think there are a number of general misconceptions many programmers have > about how to build a "RESTful" API; that's a conversation *not* for this > thread

Re: in defense of traversal

2011-10-13 Thread Parnell Springmeyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I can't speak for the OP, but our API is built using traversal (I thought about using a hybrid approach but decided not to do that) - I think there are a number of general misconceptions many programmers have about how to build a "RESTful" API; that's

Re: in defense of traversal

2011-10-13 Thread Luciano Ramalho
On Wed, Oct 12, 2011 at 2:10 PM, 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,

Re: in defense of traversal

2011-10-13 Thread cropr
I use a combination of routes and traversal in my own CMS-app. I've developed it with Pylons 0.9.6, before Pyramid joined Pylons. It basically means that only one part of my routes scheme triggers a controller responsible for the traversal and CMS. The routes config looks like map.connect('conte

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 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