##// END OF EJS Templates
Properly check deftable options
someseven -
r4:f8b202e4 default
parent child Browse files
Show More
@@ -36,8 +36,8 b''
36 (defvar *ignore-transaction* nil "Bind to T to ignore transaction slot writer in a dynamic scope")
36 (defvar *ignore-transaction* nil "Bind to T to ignore transaction slot writer in a dynamic scope")
37
37
38 (defmacro deftable (name direct-superclasses direct-slots &rest options)
38 (defmacro deftable (name direct-superclasses direct-slots &rest options)
39 (unless (and (getf options :auto-pk)
39 (unless (and (cdr (or (assoc :auto-pk options) (cons t t)))
40 (getf options :record-timestamps))
40 (cdr (or (assoc :record-timestamps options) (cons t t))))
41 (error "Cached DAO require both :AUTO-PK and :RECORD-TIMESTAMPS"))
41 (error "Cached DAO require both :AUTO-PK and :RECORD-TIMESTAMPS"))
42 `(defclass ,name ,direct-superclasses
42 `(defclass ,name ,direct-superclasses
43 ,direct-slots
43 ,direct-slots
General Comments 0
You need to be logged in to leave comments. Login now