aboutsummaryrefslogtreecommitdiff
path: root/module/entry-points
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-06-30 01:58:19 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-07-07 13:10:38 +0200
commit715e36ab81389ebf53ea158027d0a83f144eee0e (patch)
tree1e9522ba3bf4aef212d0b1d179e9bf1db2e6f60b /module/entry-points
parentRename attributes => properties, properties => parameters. (diff)
downloadcalp-715e36ab81389ebf53ea158027d0a83f144eee0e.tar.gz
calp-715e36ab81389ebf53ea158027d0a83f144eee0e.tar.xz
Finished renamining attribute to property.
Diffstat (limited to 'module/entry-points')
-rw-r--r--module/entry-points/import.scm4
-rw-r--r--module/entry-points/server.scm4
2 files changed, 4 insertions, 4 deletions
diff --git a/module/entry-points/import.scm b/module/entry-points/import.scm
index 3d372f8a..cc67b448 100644
--- a/module/entry-points/import.scm
+++ b/module/entry-points/import.scm
@@ -30,7 +30,7 @@
(let* ((calendars (getf 'calendars))
(calendar
(and cal-name
- (find (lambda (c) (string=? cal-name (attr c 'NAME)))
+ (find (lambda (c) (string=? cal-name (prop c 'NAME)))
(getf 'calendars)))))
(unless calendar
@@ -41,7 +41,7 @@
(format #t "About to the following ~a events into ~a~%~{~a~^~%~}~%"
(length (children new-events))
- (attr calendar 'NAME)
+ (prop calendar 'NAME)
(map (extract 'SUMMARY) (children new-events)))
(format #t "Continue? [Y/n] ")
diff --git a/module/entry-points/server.scm b/module/entry-points/server.scm
index f6d273ba..4810dc0c 100644
--- a/module/entry-points/server.scm
+++ b/module/entry-points/server.scm
@@ -118,7 +118,7 @@
;; but you can only query for existance.
;; also, the default output gives everything.
(let ((calendar
- (find (lambda (c) (string=? cal (attr c 'NAME)))
+ (find (lambda (c) (string=? cal (prop c 'NAME)))
(getf 'calendars))))
(unless calendar
@@ -147,7 +147,7 @@
(format #f "~?~%" fmt args)))))
(format (current-error-port)
- "Event inserted ~a~%" (attr event 'UID))
+ "Event inserted ~a~%" (prop event 'UID))
(return '((content-type text/plain))
"Event inserted\r\n"))))