Thanks malthe for.
I read that documentation and am using the same, but my question was about 
where these statements should be put?  In the view, a separate class (eg. 
DAL pattern), or in the Model? 
Coming from a n-tier application developer, I am unable to figure out how 
to improve maintainability of the application and reduce duplication.  I 
was hoping that someone could point me to a guide of the way to do these 
things in pyramid or just share with me how they do things. :)

In the meanwhile, I was looking at the reddit source, and I think that they 
do it in the models.  In your opinion is it the right way? Any help would 
be greatly appreciated.

Thanks for your reply.  
tanshu

On Wednesday, June 6, 2012 3:21:11 PM UTC+5:30, malthe wrote:
>
> http://docs.sqlalchemy.org/en/latest/orm/tutorial.html 
>
> That's assuming you're using SQL. 
>
> \malthe 
>
> On 6 June 2012 09:50, tanshu <[email protected]> wrote: 
> > Hi, 
> > I am sorry if this has been asked before, but I couldn't find the answer 
> > anywhere.  I am relatively new to python / pyramid and have developed a 
> few 
> > test programs.  I come from a C# background and could not figure out 
> what 
> > the best pattern is to lay out database access. 
> > 
> > In C# etc, you create separate dal classes and go with n-tier 
> architecture, 
> > should I just the validation, save, update in the controller in pyramid 
> or 
> > create separate classes.  Any help will be gratefully appreciated. 
> > 
> > Thanks in advance. :) 
> > 
> > tanshu 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "pylons-discuss" group. 
> > To view this discussion on the web visit 
> > https://groups.google.com/d/msg/pylons-discuss/-/5-_3loZtH5wJ. 
> > To post to this group, send email to [email protected]. 
> > To unsubscribe from this group, send email to 
> > [email protected]. 
> > For more options, visit this group at 
> > http://groups.google.com/group/pylons-discuss?hl=en. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pylons-discuss/-/IhtaPUGgY-AJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to