[Zope] Single form, multiple classes

Bogdan M.Maryniuck bogdan@iuveno-net.de
Fri, 11 Jan 2002 20:56:11 -0800


On Thursday 10 January 2002 02:03 pm, Michael wrote:
> Is this something that can done in DTML 
Brrr... Don't use DTML for this stuff at all.

> or will I have write a python script?
> The example I'm playing with is as follows:
> CompanyInfo class
> AccountInfo class
> ContractInfo class
> BillingInfo class

Actually, I always do External Method for this things.
There is an way You can use:

class FormCreator:
   def ShowMyCoolForm(self, **parameters):
        pass

class CompanyInfo(FormCreator):
   def CompInit(self):
        self.ShowMyCoolForm(params)
        pass

class AccountInfo(FormCreator):
   def AccInit(self):
        self.ShowMyCoolForm(other_params)
        pass

-- 
Bogdan M.Maryniuck