Changeset 15822 in project


Ignore:
Timestamp:
09/10/09 22:41:08 (10 years ago)
Author:
sjamaan
Message:

Don't gratuitously convert IDs to numbers. It just causes confusion (and who is to say that ids are guaranteed to always be numeric?)

Location:
release/4/estraier-client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • release/4/estraier-client/estraier-client.scm

    r15821 r15822  
    167167
    168168(define (document-uri->id node uri)
    169   (exec (node-uri node "uri_to_id" query: `((uri . ,uri)))
    170         (lambda (in)
    171           (string->number (read-line in)))))
     169  (exec (node-uri node "uri_to_id" query: `((uri . ,uri))) read-line))
    172170
    173171;; Helper procedure for checking that id xor uri is supplied
  • release/4/estraier-client/tests/run.scm

    r15821 r15822  
    110110          (alist-ref '@uri (cdr (car results))))
    111111    (test "document-uri->id gives result that matches search result details"
    112           (string->number (alist-ref '@id (cdr (car results))))
     112          (alist-ref '@id (cdr (car results)))
    113113          (document-uri->id node-uri "/test1")))
    114114
Note: See TracChangeset for help on using the changeset viewer.