Proposal for Abstraction Layer for Modifications in Bug.pm

Max Kanat-Alexander mkanat at kerio.com
Wed Jul 7 23:12:59 UTC 2004


> Why not just fill in the default values when the bug is created in
> Bugzilla::Bug::new_bug() or whatever? This way new values would just be set
> over the default ones. Isn't that the Object-Oriented way?

	I think that sounds very sensible.

	Of course, I think that one of the things that we're running into is
that new_bug can be called from an arbitrary state, and some of the
defaults are product/component dependent. However, many defaults are
global and could (and should) be set in new_bug(). :-)

	-Max





More information about the developers mailing list