public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: Looking for configuration file format
Date: Mon, 21 Mar 2022 19:29:24 +0000	[thread overview]
Message-ID: <B7FDB6B7-2F3C-46A2-B047-5C5827A4642C@ipfire.org> (raw)
In-Reply-To: <9efcb360-3ca2-383d-ef4e-c3a66ed7fd70@leo-andres.de>

[-- Attachment #1: Type: text/plain, Size: 789 bytes --]

Hey Leo,

Did you try &General::readhasharray()?

Then this file would just be a CSV file.

I believe that readhasharray might want a numeric key, but maybe it accepts the first value as key whatever it is.

-Michael

> On 21 Mar 2022, at 19:27, Leo Hofmann <hofmann(a)leo-andres.de> wrote:
> 
> Hi all,
> 
> To fix an issue with the manualpages feature, I had planned to use this key/value file format:
> 
> logs.cgi/config.dat=configuration/logs/logsettings
> 
> But unfortunately this is not possible with the existing General::readhash() function, because it removes non-alphanumeric keys.
> 
> Before I write yet another readsomething() function: Is there a file format available somewhere in the IPFire CGIs that supports this?
> 
> Best regards,
> Leo
> 


  reply	other threads:[~2022-03-21 19:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-21 19:27 Leo Hofmann
2022-03-21 19:29 ` Michael Tremer [this message]
2022-03-21 20:12   ` Leo Hofmann
2022-03-22 12:01     ` Michael Tremer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B7FDB6B7-2F3C-46A2-B047-5C5827A4642C@ipfire.org \
    --to=michael.tremer@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox