It occurs to me that were I able to write the following:
        models_list = (
                'project.app1.models.Claim',
                'project.app2.models.Vendor')
        fields_list = (
                'Claim.vendor',
                'Task.title',
                'Task.description',
                'Claim.claimed_cost',
                'Claim.outcome',
                'Claim.credit')
        __metaclass__ = MyMMF

I could have a class that would go through fields_list and snarf down  
form fields from the models, akin to the process used by  
forms_for_model and forms_for_fields.

The format I give above indicated the field ordering, which is quite  
handy; and tells the metaclass from which model classes to grab the  
fields.

What I lack is sufficient ju-ju to make it work.  My hope is that  
some Very Smart Person can implement this.  Or, at least, provide  
some pointers on how to do it.  I suspect it involves some  
introspection magic, which so far has completely evaded me.

Thanks in advance!
   david

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to