W liście John Brennan z dnia środa, 28 stycznia 2009: > @Pawel: thanks for the code on paste bin. unforunate that seems like > i'm really bending the framework more than it wants.. basically id > have to create a model "wrapper" for every model. I have about 15 > models, so thats another 15 wrappers. Best solution thus far.. gotta > think about it though.
You could put all those functions i have in service classes as classmethods in your model classes. I did separate them only to be able to stub out dependencies more easily (so if I want to eg test a controller, I can put dummy implementations of services in the registry, so controller will get those stubs when calling dependency()). I could have achieved the same with using some mock library. -- Paweł Stradomski --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
