Re: Documentation Typo

2011-01-26 Thread Chris McDonough
On Jan 26, 9:24 am, Chris wrote: > Hello, > > In the section called "URL Dispatch" of the pyramid narrative > documentation there is a typo in section Route Configuration. > > In this section is a line reading: "This style is now deprecated in > favor or {} usage..." > > These should read: "This s

Re: Using SQLAlchemy with Traversal.

2011-01-26 Thread Wade Leftwich
Actually I hollered "D'oh!" immediately after posting that, just then noticing that I had proudly shown off one of the classic Python beginner errors. The easy correction: class Context(object): def __init__(self): self.__name__ = None self.__parent__ = None self.childr

Re: Using SQLAlchemy with Traversal.

2011-01-26 Thread Rob Miller
On 1/26/11 6:13 AM, Wade Leftwich wrote: I've been dealing with similar issues on my first-ever Pyramid project, also using sqlalchemy and traversal. This may be indirection overkill, but I separated Context objects from Data objects. Note this is a reporting application, so it's more into displ

Re: Using SQLAlchemy with Traversal.

2011-01-26 Thread Wade Leftwich
Kind of a similar approach. In both cases I think there is merit in keeping the site-structure code separate from the data-access code. In my app, the sqlalchemy classes are also used by another application, so I don't want to load them up with stuff that is specific to the website. And composition

Re: Using SQLAlchemy with Traversal.

2011-01-26 Thread Kyle Terry
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/26/2011 06:13 AM, Wade Leftwich wrote: > I've been dealing with similar issues on my first-ever Pyramid > project, also using sqlalchemy and traversal. > > This may be indirection overkill, but I separated Context objects > from Data objects. No

Re: Documentation Typo

2011-01-26 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/26/2011 09:24 AM, Chris wrote: > Hello, > > In the section called "URL Dispatch" of the pyramid narrative > documentation there is a typo in section Route Configuration. > > In this section is a line reading: "This style is now deprecated in >

Re: Using SQLAlchemy with Traversal.

2011-01-26 Thread Wade Leftwich
I've been dealing with similar issues on my first-ever Pyramid project, also using sqlalchemy and traversal. This may be indirection overkill, but I separated Context objects from Data objects. Note this is a reporting application, so it's more into displaying the results of queries than in intera

Documentation Typo

2011-01-26 Thread Chris
Hello, In the section called "URL Dispatch" of the pyramid narrative documentation there is a typo in section Route Configuration. In this section is a line reading: "This style is now deprecated in favor or {} usage..." These should read: "This style is now deprecated in favor of {} usage..."