Refdb

Changes On Branch v1.02
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Changes In Branch v1.02 Excluding Merge-Ins

This is equivalent to a diff from 41cbaf5b3e to f63b040a68

2015-01-08
16:23
Added little bit of help on settings. Bumped version to 1.02 Leaf check-in: f63b040a68 user: mrwellan tags: v1.02
2014-08-12
20:24
Made wrapping of sxml much flatter Leaf check-in: 41cbaf5b3e user: mrwellan tags: v1.01
20:07
Changed default format to General in metadat.scm template. check-in: 1dcb860e90 user: mrwellan tags: v1.01

Changes to refdb-module.scm.

58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
(use srfi-69)
(use regex-case)
(use posix)
(use json)
(use csv)
(use srfi-18)

(define refdb-version 1.01)

;; Read a non-compressed gnumeric file
(define (refdb:read-gnumeric-xml fname)
  (with-input-from-file fname
    (lambda ()
      (ssax:xml->sxml (current-input-port) '()))))








|







58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
(use srfi-69)
(use regex-case)
(use posix)
(use json)
(use csv)
(use srfi-18)

(define refdb-version 1.02)

;; Read a non-compressed gnumeric file
(define (refdb:read-gnumeric-xml fname)
  (with-input-from-file fname
    (lambda ()
      (ssax:xml->sxml (current-input-port) '()))))

453
454
455
456
457
458
459





460
461
462
463
464
465
466

467
468
469
470
471
472
473
474
  export refdbdir filename.gnumeric   : Export a refdb to a gnumeric file
  edit   refdbdir                     : Edit a refdbdir using gnumeric.
  ls refdbdir                         : List the keys for specified level 
  lookup refdbdir sheetname row col   : Look up a value in the text db   
  getrownames refdb sheetname         : Get a list of row titles
  getcolnames refdb sheetname         : Get a list of column titles






To export to other formats; first export to gnumeric then use ssconvert.

e.g. 

refdb export mydata mydata.gnumeric
ssconvert -T Gnumeric_html:html40 mydata.gnumeric mydata.html 
  

Part of the Megatest tool suite. Learn more at http://www.kiatoa.com/fossils/megatest

Version: " refdb-version))

(define (list-sheets path)
  ;; (cond
  ;;  ((and path (not sheet)(not row)(not col))
  (if (file-exists? path)







>
>
>
>
>






|
>
|







453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
  export refdbdir filename.gnumeric   : Export a refdb to a gnumeric file
  edit   refdbdir                     : Edit a refdbdir using gnumeric.
  ls refdbdir                         : List the keys for specified level 
  lookup refdbdir sheetname row col   : Look up a value in the text db   
  getrownames refdb sheetname         : Get a list of row titles
  getcolnames refdb sheetname         : Get a list of column titles

Settings
  refdbdir/settings.cfg
  [setup]
  record [row|col]                    : records are switched to row or col in gnumeric

To export to other formats; first export to gnumeric then use ssconvert.

e.g. 

refdb export mydata mydata.gnumeric
ssconvert -T Gnumeric_html:html40 mydata.gnumeric mydata.html 

Documentation is at https://www.kiatoa.com/fossils/refdb
  (part of the Megatest tool suite https://www.kiatoa.com/fossils/megatest)

Version: " refdb-version))

(define (list-sheets path)
  ;; (cond
  ;;  ((and path (not sheet)(not row)(not col))
  (if (file-exists? path)

Changes to refdb.release-info.

1
2

3
(repo fossil "http://www.kiatoa.com/fossils/{egg-name}")
(uri zip "http://www.kiatoa.com/fossils/{egg-name}/zip/{egg-name}.zip?uuid=v{egg-release}")

(release "1.01")


>

1
2
3
4
(repo fossil "http://www.kiatoa.com/fossils/{egg-name}")
(uri zip "http://www.kiatoa.com/fossils/{egg-name}/zip/{egg-name}.zip?uuid=v{egg-release}")
(release "1.02")
(release "1.01")