On Dec 6, 2005, at 1:38 PM, kmh wrote:
MODULE_CONSTANTS is ugly. Perhaps I should get over this, but I find it so ugly that I often end up explicitly importing things inside each method of my magic module. And that's pretty ugly too.
Note that this change would fix the MODULE_CONSTANTS hack.
Another thing that hasn't come up: the existing system means you can't use properties. I often want to take advantage of Python's attribute-like "properties" on my models, calculated from actual model attributes. Properties neatly mask the implementation of calculated attributes. Having to remember whether a "property" of a model is an attribute or a method when you access it is a PITA. To use Rails-speak, properties are beautiful.
I'm pretty sure this is off-topic for *this* particular discussion, but properties kick ass so could you file a ticket about this so we don't forget?
Jacob