Re: old data

Joel Palmius <[email protected]>
Newsgroups gmane.comp.apache.mod-survey.general
Message-ID <[email protected]>
Without having checked, I think there is no difference between the old 
AutoData format and the current ASCIIFILE format. Thus, if you copy the 
autodata file somewhere ("/tmp/olddata"), you could explicitly set 
ASCIIFILE in the SURVEY tag,

<SURVEY ... ASCIIFILE="/tmp/olddata" ..>

Should work I think. Otherwise, you could revert to using the old autodata 
format globally, by changing the setting of _SURVEY_USENEWAUTO in your 
survey.conf file. (I would not recommend this).

If you want to give manual conversion a try, the scheme would be:

;  ->  \x01
\n ->  \x02

(ie, replace semi-colon with byte-value 01 and newline with byte-value 
02). Should be possible to do relatively simple with sed.

If you expect to continue collecting answers on the same data file, I'd 
recommend conversion.

   // Joel


On Wed, 27 Oct 2004, Todd Slater wrote:

> I upgraded Mod_survey without first exporting my old survey data, but I
> did back up the mod_survey/data/ directory. Is there any way to convert
> that so it can be read in the new system? I only have 30 or so
> responses, so if I have to do some manual work it won't be too terribly
> bad.
>
> Todd
> Skickat av Todd Slater <[email protected]>
> till survey-discussion
>
Skickat av Joel Palmius <[email protected]>
till survey-discussion
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.