Changeset 452 for trunk/src/xml/xtm


Ignore:
Timestamp:
05/04/11 16:46:51 (14 years ago)
Author:
lgiessmann
Message:

datamodel: implemented the function "open-tm-store" which wrapps elephant:open-store and uses :register t to support mutliple isidorus instances on one database; implemented the wrapper function "close-tm-store" that calls elephant:close-store; => adapted all unit-tests to these changes

Location:
trunk/src/xml/xtm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/xml/xtm/importer.lisp

    r450 r452  
    4545           :from-topic-elem-to-stub
    4646           :from-type-elem
    47            :get-store-spec
    4847           :get-topicref-uri
    4948           :import-only-topics
     
    7776
    7877(in-package :xtm-importer)
    79 
    80 ;(declaim (optimize (debug 3)))
    81 
    82 (defun get-store-spec (pathname)
    83   "return the store spec for elephant and ensure that the path name is absolute"
    84   (list :BDB (truename pathname)))
    8578
    8679
  • TabularUnified trunk/src/xml/xtm/setup.lisp

    r450 r452  
    1414  (format nil "~a" (uuid:make-v4-uuid)))
    1515
     16
    1617(defun import-from-xtm (xtm-path repository-path &key
    1718                        (tm-id (error "you must provide a stable identifier (PSI-style) for this TM"))
     
    2728                   (truename xtm-path) (cxml-dom:make-dom-builder)))))
    2829    (unless elephant:*store-controller*
    29       (elephant:open-store 
    30        (get-store-spec repository-path)))
     30      (open-tm-store repository-path))
    3131         ;create the topic stubs so that we can refer to them later on
    3232    (setf d:*current-xtm* xtm-id)
     
    5050           (Keyword xtm-format))
    5151  (unless elephant:*store-controller*
    52     (elephant:open-store 
    53      (get-store-spec repository-path)))
     52    (open-tm-store repository-path))
    5453  (init-isidorus)
    5554  (import-from-xtm xtm-path repository-path :tm-id tm-id :xtm-id xtm-id
    5655                   :xtm-format xtm-format)
    5756  (when elephant:*store-controller*
    58     (elephant:close-store)))
     57    (close-tm-store)))
Note: See TracChangeset for help on using the changeset viewer.