[Padre-dev] An update on Config 2.0

Adam Kennedy adamkennedybackup at gmail.com
Sun Jan 18 06:53:17 PST 2009


Greetings friends.

I'm happy to say that I've now reached the point of cleanliness.

Everything in config.yml is now SUPPOSED to be in here (it's all
related to the human user) and everything that shouldn't have been in
there has been moved over to Padre::DB (plugin state, editor style,
bookmarks, etc).

I've also refactored all the config settings names into cleaner naming
clusters so they are less randomly named that the mish mash of naming
schemes we had before.

I've also taken all remaining settings and replicated them into the
new Config2.pm module, so that both sides have matching settings
lists.

This leaves two steps to go.

First step is to convert all Padre code to use config accessors
instead of direct hash access.

So I'm filling out Padre::Config with an accessor for each setting,
and changing all code in Padre to use them instead of hash access.

Initially this will just be the read accessors, the write stuff needs
change in a slightly different way.

The methods in Config.pm will match the look of Config2.pm.

The second step and final remaining step is to do the final cutover
from Config.pm to Config2.pm.

Once that is done, I should finally be "finished" my destructive
changes, and then we can do a new release and update all the plugins
to match. Hopefully the changes for the plugins won't be so bad.

Adam K


More information about the Padre-dev mailing list