Changeset 3662

Show
Ignore:
Timestamp:
07/28/08 16:37:24 (4 months ago)
Author:
ksprotte
Message:

corrected method definition order in poi.lisp

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/projects/bos/m2/poi.lisp

    r3658 r3662  
    7474   (url :update :initform nil))) 
    7575 
    76 (defmethod poi-movies :before ((poi poi)) 
    77   "Lazily update the db schema. Method can be removed later." 
    78   (macrolet ((movie (tail) `(car ,tail))) 
    79     (mapl (lambda (tail) 
    80             (when (stringp (movie tail)) 
    81               (setf (movie tail) 
    82                     (make-object 'poi-movie :poi poi :url (movie tail))))) 
    83           (slot-value poi 'movies)))) 
    84  
    8576;;; poi 
    8677(define-persistent-class poi () 
     
    9889   (movies :update :initform nil) 
    9990   (published :update :initform nil))) 
     91 
     92(defmethod poi-movies :before ((poi poi)) 
     93  "Lazily update the db schema. Method can be removed later." 
     94  (macrolet ((movie (tail) `(car ,tail))) 
     95    (mapl (lambda (tail) 
     96            (when (stringp (movie tail)) 
     97              (setf (movie tail) 
     98                    (make-object 'poi-movie :poi poi :url (movie tail))))) 
     99          (slot-value poi 'movies)))) 
    100100 
    101101(deftransaction make-poi (language name &key title description area)