On Jan 9, 2007, at 2:49 PM, Christopher Arndt wrote:
> > jose schrieb: >> can we expect an integration with CatWalk and SO in the version 2? > > From recently looking at the source code of CatWalk it seems that > it is very > closely coupled to SO if not in principle but in practice. One > example is the > JavaScript that generates form fields from data objects, that > examines the SO > column types. Another is that there is no clean separation between > controller > code and data layer access. > > Conclusion: SA CatWalk would need an almost complete re- > implementation but the > design principles could be kept. But it would probably be better to > design an > admin tool so that support for different ORMs can be easily added > by some kind > of plug-in. That's the idea for FastData. As you've said, CatWalk is so tightly coupled with SO that a *extensible* replacement is needed. > > I guess, if we wanted an admin tool that works with several ORMs > we'd have to > define yet another data access layer/api that defines a subset of > the features > (i.e column types, query methods, getters/setters) in all supported > ORMs. I've been playing with a skeleton of this using generic functions, both to create widgets for complete objects or it's attributes (mapped columns, joins, etc). The idea is that the if the widget creating generic function doesn't know how to handle a given object, it will try to automatically create a widget based on it's attributes. This should allow for easy extensibility of the "admin" interface. If you're interested email me off-list and i can give you a svn url. > > On top of that, one could put a generic CRUD controller, which > would detect the > attributes of a given data object and dynamically build data grids, > form > widgets and validators for it (possibly allowing customization by > overriding > some class variables). > > I have actually considered starting such a thing (inspired by the > django admin) > and experimented a bit, but have not gotten very far yet. That's very cool! :) Maybe you'd like to contribute or be a father to FastData v2? If so then the trunk ML is probably the best place to discuss it. Alberto --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

