gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <nicola...@apache.org>
Subject Re: [PATCH][gump.py] Refactoring and fixes
Date Wed, 23 Apr 2003 11:27:39 GMT

Sam Ruby wrote, On 23/04/2003 13.11:
> Nicola Ken Barozzi wrote:
> 
>>
>> Some fixes (like the encoding on workspace dumps that was failing), 
>> enhancements like use of a property file, and refactoring of files:
>>
>>  (put them in the 'python dir')
>>
>>   gumpcore.py  - the core, with the object model and resolving
>>   gumputil.py  - utility code, like property load and file caching
>>   gump.cfg     - gump conf
> 
> 
> Instead of a cfg file, this can simply be pure python.  Making it python 
> would make it more powerful in terms of what expressions are allowed in 
> the file.  And easier to access from the code (no getGumpConfig calls).
> 
> Look at my config file for my weblogging software:
> 
> http://www.intertwingly.net/code/mombo/config.py

Ok. It's also much nicer, will do.

>>   gen.py       - create a merge.xml workspace in the cache dir
>>   build.py     - resolve a project build dependencies - later also build
>>   gumpview.py  - graphical view of the object model
>>
>> I would like to serialize the workspace with pickle to cahce between 
>> invocations but it fails (@see gen.py). Why?
> 
> I'm not a fan of pickle as it doesn't handle the case where the class 
> changes between invocations.  I invested the time to create support for 
> dumping any or all of the workspace in xml format.  Why can't we use that?

Thought that maybe pickle was faster, so I tried to see how it compared. 
Now that you tell me this, I'll use XML.

>> I'll now add a ruper function in gumputil and see if I can build :-)
>>
>> Sam, can you now commit this somewhere?
> 
> Why, don't you have karma any more?

Hey, it's your code I changed, and it was not on an Apache server, so 
technically it's illegal for me to do it ;-)

Ok, will do :-)

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


Mime
View raw message