Ticket #1585 (assigned enhancement)

Opened 6 years ago

Last modified 9 months ago

Configuration File mapping

Reported by: rungss Assigned to: demian (accepted)
Priority: high Milestone: 1.1
Component: SGL - Config Severity: patch approved
Keywords: Config, Path, Flexibility, Custom, sitename, ip address Cc:

Description

I had noticed a file confmap.php and some enhancements in the SGL_Config Classes Constructor using a mechanism to check the mapping of Configuration files in a Branch of code which I don't remember..

I applied that but that halts execution at the SGL_Task_SetupPaths::run Which is the very first Process getting executed in the Taskrunner for intializing the App.

We can apply the same mechanism to get the actual Configuration File's path by creating a method named something like SGL_Task_SetupPaths::getConfigFile() and call that to get the valid Config File instead of SGL_Task_SetupPaths::hostnameToFilename()

I have worked it out and will submit the patch for it in a while.

Feedbacks welcome..

Attachments

sgl_task_setup_path_get_config_file.diff (2.5 kB) - added by rungss on 02/20/08 02:49:05.
sgl_task_setup_path_get_config_file
sgl_config_get_config_file.diff (0.7 kB) - added by rungss on 02/20/08 02:50:16.
sgl_config_get_config_file

Change History

02/20/08 02:49:05 changed by rungss

  • attachment sgl_task_setup_path_get_config_file.diff added.

sgl_task_setup_path_get_config_file

02/20/08 02:50:16 changed by rungss

  • attachment sgl_config_get_config_file.diff added.

sgl_config_get_config_file

02/20/08 02:51:04 changed by rungss

  • status changed from new to closed.
  • resolution set to fixed.

Patch File Uploaded

02/20/08 02:51:50 changed by rungss

  • status changed from closed to reopened.
  • resolution deleted.

Assigning to demian for commiting the changes

02/20/08 02:52:27 changed by rungss

  • owner changed from rungss to demian.
  • status changed from reopened to new.

Assigning to demian for commiting the changes

02/27/08 05:16:13 changed by demian

  • status changed from new to assigned.
  • milestone set to 0.9.0 - polishing.

Hi bijay

thanks for this patch, i will apply it in the 0.9 branch which I'm working on now

02/26/13 13:33:59 changed by demian

  • cc deleted.
  • priority changed from normal to high.
  • severity changed from need feedback to patch approved.