Re: [dev] Code to Upload a Configuration File

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Carlos,
Does anyone knows Is there any way to access the config upload functions via code in a Package installation? For example to write the config file, please it some ware in the filesystem and upload it to the main configuration, or to upload the config options itself via code in a package
Do you want to change existing values or simply add new configuration
values?
However, for new configuration values you should use xml-files as

Thank you Torsten I've been exploring this alternatives you mention in your email before I read it.I'm very happy to know that this ways to solve the problem are the same I've found, so I think I'm not wrong at all :) Another way is to make a .pm with many "z"s at the beginign of the name (as the XML) Have you notice this? if you use the config object to intert a config value via ConfigItemUpdate, the configuration value will be inseted in zzauto.pm no matter if the value is already in the file (so it will be duplicated) and after, if you enter to the sysconfig and modify any other value the "zzauto.pm" will be cleaned leaving the lastest values of the configuration options. (in this case the lastets value is the one you've insert) Saludos, Carlos Fernando Rodríguez Hdz. -----Original Message----- From: dev-bounces@otrs.org [mailto:dev-bounces@otrs.org] On Behalf Of Torsten Thau Sent: Friday, May 22, 2009 4:09 AM To: Development community of OTRS.org Subject: Re: [dev] Code to Upload a Configuration File -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Carlos,
Does anyone knows Is there any way to access the config upload functions via code in a Package installation? For example to write the config file, please it some ware in the filesystem and upload it to the main configuration, or to upload the config options itself via code in a package
Do you want to change existing values or simply add new configuration
values?
However, for new configuration values you should use xml-files as
participants (2)
-
Carlos Fernando Rodríguez Hdz
-
Torsten Thau