Re: [pylons-discuss] Re: Traversal over a filesystem

2016-09-30 Thread Mike Orr
On Thu, Sep 29, 2016 at 11:29 PM, Tres Seaver wrote: > http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/traversal.htm > l#the-traversal-algorithm > > BTW, your application sounds startlingly similar to 'repoze.virginia', > and early proof-of-concept for the publishing logic which beca

[pylons-discuss] Re: Traversal over a filesystem

2016-09-29 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/30/2016 01:38 AM, Mike Orr wrote: > 1) Right now I'm doing the 'context["index.html"]' lookup in the view > because I don't know how to do it during traversal. The problem is > that when I'm in a traversal level that's a directory, there are t

Re: [pylons-discuss] Re: Traversal over a filesystem

2016-09-29 Thread Mike Orr
In my slowly-renovating personal site I've got traversal over a directory of HTML files working. My code so far is attached. It traverses to an HTML file and serves it as a Mako template. It supports an implicit "index.html" in directories, and appends ".html" to the filename if missing. Longer te

[pylons-discuss] Re: Traversal over a filesystem

2016-03-01 Thread Jens W. Klein
On 2015-08-23 16:24, Mike Orr wrote: > Has anyone used traversal over a filesystem for non-static content? One extension in our "node-family" - node.ext.directory[1] - can be used for filesystem traversal in Pyramid - and we're doing so in a Pyramid based framework written by us called Cone[2]. He

Re: [pylons-discuss] Re: Traversal over a filesystem

2016-02-29 Thread Michael Merickel
One of the original Pyramid demo projects is traversal over a filesystem. https://github.com/Pylons/virginia On Tue, Mar 1, 2016 at 12:08 AM, Mike Orr wrote: > On Sun, Aug 23, 2015 at 7:24 AM, Mike Orr wrote: > > Has anyone used traversal over a filesystem for non-static content? > > I'm think

[pylons-discuss] Re: Traversal over a filesystem

2016-02-29 Thread Mike Orr
On Sun, Aug 23, 2015 at 7:24 AM, Mike Orr wrote: > Has anyone used traversal over a filesystem for non-static content? > I'm thinking of putting my HTML content in files to get Git versioning > and text-editor friendliness, so that each file would represent a URL > but not be served as-is (you'd s