converting object into raw
John Lenton <[email protected]> Thu, 12 Feb 2004 12:36:24 -0300
| Newsgroups | gmane.comp.python.modeling |
|---|---|
| Message-ID | <[email protected]> |
Maybe this is in the user manual somewhere, but I can't find it, and neither can google :( How do I convert an object back into its "raw" form? I need this because, in a MVC framework we are working on («Cimarrón», spanish for maverick---and other things), I have a "search" widget. This widget knows nothing about Modeling, but the controller can arrange it such that it feeds off of modeling's "raw" objects, or rows, and thus is much much faster than otherwise. The widget knows it has an internal representation of the objet it is showing and it has a series of parsers/printers (provided by the controller--something like special-purpose delegates) to convert it to/from the external representation the controller wants; in the parser, it's simply a question of calling faultForRawRow(). How do I get the printer? -- John Lenton ([email protected]) -- Random fortune: ¡Qué amable cosa es el hombre cuando es verdaderamente hombre! -- Menandro. (343-290 A.C.) Filósofo griego. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click