Single form, multiple classes
I am trying to dig a little deeper into Zope's capabilities and have created sample multiple classes to handle company, account, contract and billing information, for example. Since you could have multiple accounts for one company and multiple contracts per account and so on. How can I use one entry form to handle parsing the data to multile DB files? Is this something that can done in DTML 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 -- Michael Lewis "The early bird may get the worm--- but the second mouse gets the cheese"
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
participants (2)
-
Bogdan M.Maryniuck -
Michael