And this seems most like a .NET way of doing things. The "code behind" (or "beside" in .NET 2.0) is the controller, you talk to a business logic layer, and it talks to a data access layer.
The problem I've seen is that people get tier-happy, and all of a sudden you've got classes, tiers, and transport objects all over the place doing nothing more than passing data round. That's what I'm trying to avoid by moving to TG. On Nov 27, 11:18 am, "mario henrique" <[EMAIL PROTECTED]> wrote: > Hello people, > > I've found a good way is put another software layer, between controllers and > model, called BusinessRules. > So, my programs works in this way > Controller->BusinessRules->Model > > in fact, BusinessRules works like a facade to Model, and connects DAO (Data > Access Objects) > that uses SA (SQLAlchemy) > > mario h.c.t. > > On 11/27/06, Andrew Grover <[EMAIL PROTECTED]> wrote: > > > > > On 11/22/06, Matt Culbreth <[EMAIL PROTECTED]> wrote: > > > In the typical TurboGears architecture where do most people end up > > > putting business logic? > > > > 3. There is the following types of requirements: verify that a > > > respondent has answered all questions, show different questions > > > dependent on answers from previous ones, only allow some questions to > > > be seen by some respondents, etc. > > > > So where do people end up putting application logic as described in #3 > > > above? I can see three logical places: > > > 1. In the model classes (or the classes used by SA in the mapping) > > > 2. In the controller classes > > > 3. In some Business Logic classes that are a bridge between models > > > and controllers. > > > Controller. > > > -- Andy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. 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/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

