[dev] Re: [cvs] commit: horde setup.php

Michael Cochrane mike@graftonhall.co.nz
Thu, 25 Jul 2002 11:15:32 +0100


This message is in MIME format.

---------------------- multipart/mixed attachment
This is pretty cool... :-) I have a lot of use for similar code in other
modules... what i need is the ability to add mutliples of a config section... 
eg in the network monitoring module i'm playing with you have devices currently
define like this:
$conf['devices'] = array();

$conf['devices']['proxy1']['driver'] = 'squid';
$conf['devices']['proxy1']['params'] = array();
$conf['devices']['proxy1']['params']['name'] = 'Squid Proxy Server 1';
$conf['devices']['proxy1']['params']['hostspec'] = '10.0.0.1';
$conf['devices']['proxy1']['params']['port'] = '161';

$conf['devices']['proxy2']['driver'] = 'squid';
$conf['devices']['proxy2']['params'] = array();
$conf['devices']['proxy2']['params']['name'] = 'Squid Proxy Server 2';
$conf['devices']['proxy2']['params']['hostspec'] = '10.0.0.2';
$conf['devices']['proxy2']['params']['port'] = '161';

there could be any number of these, it would be nice to be able to handle this,
i know it's a pretty far out situation... and i'm looking at other options for
this allready....

the other thing is there is no <configboolean> which is quite useful. see two
attached files. conf.xml for Turba and HEAD diff for getting some of
<configboolean> working.

- Mike :-)

Quoting Chuck Hagenbuch <chuck@horde.org>:

> Quoting Chuck Hagenbuch <chuck@horde.org>:
> 
> >   Log:
> >   Finally, it rises from the ashes - setup.php, this time based on XML
> >   and FormSprocket, extensible, flexible, and pretty damn cool.
> 
> Yup, it's back. Poke at it, let me know what you think, write conf.xml's for
> other applications, let me know what the XML format is missing, etc.
> 
> -chuck
> 
> --
> Charles Hagenbuch, <chuck@horde.org>
> "After a few minutes the most aromatic and nice smelling Italian coffee 
>  will come out of the exhaustpipe." - Our stove-top espresso pot
> 
> -- 
> Horde developers mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe@lists.horde.org


-- 

But each day brings its petty dustOur soon-chok'd souls to fill,And we forget
because we must,And not because we will. - Matthew Arnold (1822-1888) --English poet
signature from Siglets.com

-------------------------------------------------------------------------
This mail sent from Mike's CVS HEAD install of IMP: http://horde.org/imp/
---------------------- multipart/mixed attachment
A non-text attachment was scrubbed...
Name: conf.xml
Type: text/xml
Size: 0 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/942c9f3b/conf.xml

---------------------- multipart/mixed attachment

---------------------- multipart/mixed attachment--