Misc Cleanups.
authordrewc <drewc@tech.coop>
Wed, 7 Jan 2009 23:39:59 +0000 (15:39 -0800)
committerdrewc <drewc@tech.coop>
Wed, 7 Jan 2009 23:39:59 +0000 (15:39 -0800)
darcs-hash:20090107233959-39164-02f05bb3ddc119235fe94ecb7c51f1b6b868d403.gz

lisp-on-lines.asd
src/attribute.lisp
src/packages.lisp
src/standard-descriptions/edit.lisp
src/ucw/html-description.lisp

index 1d74b1d..04a4d55 100644 (file)
@@ -69,7 +69,7 @@ OTHER DEALINGS IN THE SOFTWARE."
                                     
                                     :serial t))
   :serial t
                                     
                                     :serial t))
   :serial t
-  :depends-on (:contextl :arnesi :alexandria :parse-number
+  :depends-on (:contextl :arnesi :alexandria :parse-number :yaclml :trivial-garbage
  ))
 
 
  ))
 
 
index 7273260..a229aa3 100644 (file)
 (defmacro with-attributes (names description &body body)
   `(let ,(loop for name in names collect 
              (list name `(find-attribute ,description ',name)))
 (defmacro with-attributes (names description &body body)
   `(let ,(loop for name in names collect 
              (list name `(find-attribute ,description ',name)))
-     ,@body))q
+     ,@body))
 
 
 
 
 
 
index 54a34af..e456cf0 100644 (file)
 
    
 ;; Descriptions
 
    
 ;; Descriptions
-   #:find-description
+   #:*description*
+   #:find-description   
    #:description-of
    #:define-description
    #:described-object
    #:description-of
    #:define-description
    #:described-object
+   #:with-described-object
    #:described-class
    #:described-standard-class
    #:with-active-descriptions
    #:described-class
    #:described-standard-class
    #:with-active-descriptions
@@ -24,6 +26,7 @@
    #:define-display
    #:display
    #:display-using-description
    #:define-display
    #:display
    #:display-using-description
+   #:display-attribute-label
    #:*display*
    #:*object*
    
    #:*display*
    #:*object*
    
@@ -33,6 +36,8 @@
    #:attributes
    #:attribute-object
    #:attribute-label
    #:attributes
    #:attribute-object
    #:attribute-label
+   #:attribute-delimiter
+   #:attribute-slot-name
    #:label
    #:attribute-function
    #:attribute-value
    #:label
    #:attribute-function
    #:attribute-value
index f7e0411..f1ec4cf 100644 (file)
     (or class (when 
                  (and type (symbolp type)) 
                (let ((name (format nil "~A-~A" type 'attribute-editor)))
     (or class (when 
                  (and type (symbolp type)) 
                (let ((name (format nil "~A-~A" type 'attribute-editor)))
-                 (or (find-class (intern name (symbol-package type)) nil)
+                 (or (unless (eq (find-package :cl)
+                                 (symbol-package type)) 
+                       (find-class (intern name (symbol-package type)) nil))
                      (find-class (intern name) nil)
                      (find-class (intern name) nil)
+                     (find-class (intern name :lol) nil)
                      'string-attribute-editor))))))
 
 (defclass attribute-editor ()
                      'string-attribute-editor))))))
 
 (defclass attribute-editor ()
index 4ec32cc..1bc264b 100644 (file)
              :writer (make-attribute-value-writer attribute)))
 
 
              :writer (make-attribute-value-writer attribute)))
 
 
+
+
 (define-layered-method display-attribute-editor 
    :in-layer #.(defining-description 'html-description) (attribute)
    (display-html-attribute-editor attribute (attribute-editor attribute)))
 (define-layered-method display-attribute-editor 
    :in-layer #.(defining-description 'html-description) (attribute)
    (display-html-attribute-editor attribute (attribute-editor attribute)))
@@ -206,15 +208,8 @@ clear: left;
 
 (define-layered-method display-html-attribute-value 
   (object (attribute list-attribute))
 
 (define-layered-method display-html-attribute-value 
   (object (attribute list-attribute))
-   (<:ul
-     (arnesi:dolist* (item (attribute-value attribute))
-       (<:li (apply #'display *display* item (slot-value attribute 'item-args))))))
-
-
-
-
-     
-      
-  
-               
-  
+  (let ((val (attribute-value attribute)))
+    (when (listp  val) 
+      (<:ul
+       (arnesi:dolist* (item (attribute-value attribute))
+        (<:li (apply #'display *display* item (slot-value attribute 'item-args))))))))
\ No newline at end of file