Sean Jamieson wrote: > While I was reading this topic, something just tickled my brain. I > remember that Kevin had mentioned somewhere (screencast probably) about > the posibility of widgets being defined as classes (ref. SQLObject), > rather than with an instantiated object, and a dictionary of fields. > > I've been reading about metaclasses recently, and I think it would be > quite possible to create a meta class, that processes a class > definition, and produces something that returns the exact same > structure as currently used in widgets. > > What do you think, insane or interesting? > Sean > This seems pretty similar to what FastData already does. Granted I have no idea if it uses metaclasses, but I know it creates an html form from a SQLObject somehow. That might be a good place to start looking, see if you could lift code from that.
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

