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