Hi all, I need a hint on design.
Problem: To build an Invoice information to do so is gathered from several forms, i.e. the pieces are put together until they are all there and an Invoice can be built. An Invoice is a MiddleKit class, which gets saved into the MySQL db, when it is built and printed. Until I can do so, I need to save the Invoice into the session, becuase it is built step-by-step. But I cannot pickle Invoice, no MiddleKit object can be pickled. So I thought of a non-MK-class helping me gathering the Invoice's data. Non-MK-objects can be pickled. But this class would be very similar to Invoice. The only difference between the two is, that Invoice is derived from GenInvoice. How would you do? Would you clone ("reinvent") the Invoice class as - let's say NonMkInvoice - for data acquisition and copy the data from it to Invoice when it comes to save the Invoice to the db? Or is there a better alternative? Thanks in advance and best regards Franz -------------------------------------------------------- DATEC Datentechnik GmbH Software Development Retrieval Computing A-6890 LUSTENAU, Schmiedgasse 7 Tel +43 5577 630 04-0 Fax +43 5577 630 04-40 Mobile +43 664 214 57 43 E-Mail [EMAIL PROTECTED] WWW www.datec.at (in Partnerschaft mit Amazon.de) _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss