Megatest

View Ticket
Login
Ticket Hash: 0bdc2f3f8f32f0c548ea512a621b2ebf770f0b04
Title: refdb: set does not create sxml files if refdb dir is new
Status: Open Type: Code_Defect
Severity: Critical Priority: Immediate
Subsystem: Resolution: Open
Last Modified: 2016-08-30 09:34:09
Version Found In: 1.61
Description:
creating a new refdb with "refdb set" does not create the required sxml files to be able to open the new refdb via "refdb edit"
User Comments:
tyardeni added on 2016-08-29 23:42:24: (text/html)
The required files are (with minimum required contents:

sheet-names.cfg

sxml/_workbook.sxml
<verbatim>
(*TOP* (*PI* xml "version=\"1.0\" encoding=\"UTF-8\""))

</verbatim>

sxml/_sheets.sxml
<verbatim>
(http://www.gnumeric.org/v10.dtd:Sheet )

</verbatim>

tyardeni added on 2016-08-30 15:34:09: (text/html)
On refdb set command if sheet-names.cfg is missing:

<verbatim>

$ refdb set db sheet col row data

Error: (open-output-file) cannot open file - No such file or directory: "db/sheet-names.cfg"

        Call history:

        refdb.scm:149: main
        refdb.scm:136: argv
        refdb.scm:64: string->symbol
        refdb-module.scm:702: ##sys#get-keyword
        refdb-module.scm:703: conc
        refdb-module.scm:706: refdb#conf-get-record
        refdb-module.scm:775: conc
        refdb-module.scm:775: file-exists?
        refdb-module.scm:778: dat-lookup
        refdb-module.scm:472: filter
        refdb-module.scm:707: file-exists?
        refdb-module.scm:711: add-sheet
        refdb-module.scm:608: refdb#list-sheets
        refdb-module.scm:603: file-exists?
        refdb-module.scm:609: conc
        refdb-module.scm:609: with-output-to-file               <--
</verbatim>