#2240: Improve the config system of TG2
-------------------------+--------------------------------------------------
Reporter: chrisz | Owner:
Type: enhancement | Status: new
Priority: high | Milestone: 2.1
Component: TurboGears | Version: trunk
Severity: major | Resolution:
Keywords: config |
-------------------------+--------------------------------------------------
Comment (by chrisz):
Replying to [comment:3 Gustavo]:
> Unfortunately, I have no hope of that being changed in !PasteScript in
the medium-term. I mean, they're already aware of this issue and it's
heavily used program... I think that if they had intentions to fix it,
right now we weren't discussing this.
Anyway, I have just asked on the Paste ML. You never know, maybe they
wanted to change this all the time anyway? Well probably not, but then
maybe the Paste config object could at least grow some methods for getting
bools and ints, like they are provided by the standard !ConfigParser (as
far as I understand, the TG config is stacked on the Pylons config which
is stacked on the Paste config, so it should be added on the lowest
level).
What's making the whole stuff even more confusing is that some values are
in fact evaluated by Paste or other code and these values are stored back
in the config (by code such as server_running in paste.httpserver). So you
never know whether some part of the system has already evaluated a config
setting when it was accessing the value before you, or whether you are
still required to evaluate this thing yourself. This is a big mess.
--
Ticket URL: <http://trac.turbogears.org/ticket/2240#comment:6>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---