How decoupled are the Python frameworks?

Lie Ryan lie.1296 at gmail.com
Tue Dec 8 06:09:37 EST 2009


On 12/8/2009 9:11 PM, Martin Sand Christensen wrote:
> If the user isn't currently signed in to our CAS, he'll be redirected to
> the sign-in page and, after signing in, is returned to the page he
> originally requested. The role decorator checks his privileges (based on
> his CAS credentials) and either allows or denies him access. This adds
> up to a LOT of framework-specific code that's been very easily factored
> out. The CAS and role modules behind the decorators are, in turn,
> generic frameworks that we've merely specialised for CherryPy. At some
> point we'll get around to releasing some code. :-)

In the end, it is the developer's responsibility not to write something 
too tightly coupled with their framework, isn't it?
(or at least to minimize the framework-specific code to a certain area)



More information about the Python-list mailing list