The use case is that you design a template application that will be installed and edited by some businesses that use a work flow from development to testing to staging and finally to production. Most of the configuration values are shared in these different stages. These shared configuration values are moved together with the application in the work flow. In this way, when the business has to write or edit them, it needs to do that only once in the entire work flow. The few values that are specific to each stage in the workflow are not modified when the code moves in the work flow. In this, way the people at each stage do not have to worry that their specific configuration values are erased in the work flow. To support this I use two configuration files, one for the shared values one for values that are specific to each stage. However, the main aspect of the use case is that we do not want to rely on any standard location for the configuration file that is specific to each stage. We do not want to use a location relative to the application root, because it makes the move of the application more complicated. We do not want to use a fixed location outside the application root, because we do not want to assume anything regarding the environment where the application is installed. This means that the location of this configuration file has to be specified when the application is installed. We cannot specify this location in a configuration file, because this creates a cycle: how do we know the location of this other configuration file? We cannot also fix this location in the application, as we just explained. One solution that I used with PHP is simply request that the installer at each stage creates a wrapper application that sets the location of the configuration file. The wrapper application is not moved in the work flow. A request is mapped to the wrapper application in the usual way. The wrapper application sets the location of the configuration file and then include the application, the one that is moved in the work flow. How can I implement the equivalent with web2py?
-- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

