gump.plugins.ModelDumper component for persisting the model on disk -------------------------------------------------------------------
Key: GUMP-100 URL: http://issues.apache.org/jira/browse/GUMP-100 Project: Gump Type: New Feature Components: Python-based Gump Versions: Gump3-alpha Reporter: Leo Simons Fix For: Gump3-beta A plugin should be written that runs after all others that modify the model at all. This plugin would visit_workspace and create a huge pickle dump (probably) of the entire processed model and write that out to disk. So far, we've found it very difficult to store exactly what we need in a database. By keeping pickle dump files around, we are "sure" to be able to write tools later to retroactively perform intelligent work on the data gump has generated. Might be as simple as (code sketch): def visit_workspace(w): import pickle date = w.startdate filename = "pickledump_%s" % date file = open(filename, 'w') pickle.pickle(w,file) but I have no idea what the API for all this stuff is. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]