Reference class in class creation

Kay Schluehr kay.schluehr at
Tue Nov 21 15:22:35 CET 2006

Is there a reason why don't you drop the metaclass and perform the
validation step after the class has been created using a generic

class Tour(MotourController):

Tour.sqlobjectclass = model.Tour
Tour.widget_edit = TourEdit(controller=Tour, name = "tourheader", ...)

Tour = validate(Tour)

More information about the Python-list mailing list