Opened 14 years ago

Closed 14 years ago

#15958 closed New feature (duplicate)

settings.get('Name', default) functionality

Reported by: Matthew Lauber <supermkl321@…> Owned by: nobody
Component: Core (Other) Version: 1.3
Severity: Normal Keywords: settings
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no
Pull Requests:How to create a pull request

Description

It would be nice for projects that involve the same code base running on multiple deployments with different settings files to be able to conditionally request the value of a specific setting without having to define it in every settings file. Something like:

If settings.get('DO_WORK', False):

#Do Work

Change History (1)

comment:1 by Matthew Lauber <supermkl321@…>, 14 years ago

Resolution: duplicate
Status: newclosed

Discovered to be identical to #10098, recommend that if resolution to #10098 is accepted solution, it should be documented as part of settings, or at least elsewhere besides a comment on a ticket.

Note: See TracTickets for help on using tickets.
Back to Top