Kiyoshi Mizumaru | 21 Apr 15:35
Picon

fiveam patch

Hi,

Would you please have a look at the following diffs?
In Allegro CL's modern case mode, fiveam cannot be load due to some
symbol case mismatches.

Thanks in advance,
Kiyoshi

https://github.com/kmizumar/fiveam/commit/83ea8b5c4ac22cec6befd2b95dafe5cf6ee0a49d

diff -rN old-fiveam/t/suite.lisp new-fiveam/t/suite.lisp
3c3
< (in-package :it.bese.fiveam)
---
> (in-package :it.bese.FiveAM)
9c9
< (def-suite :it.bese.fiveam :in :it.bese)
---
> (def-suite :it.bese.FiveAM :in :it.bese)
Kiyoshi Mizumaru | 21 Apr 15:18
Picon

arnesi_dev patches

Hi,

Would you please have a look at the following diffs?
One is for Allegro CL's modern case mode, and the other is for
Lispworks conditional compile.

I'm not familiar with darcs, so please forgive me for not sending this
in darcs send.

Thanks in advance,
Kiyoshi

https://github.com/kmizumar/arnesi_dev/commit/aeb41d4b5284559ac07c458cdc315e4aebd42cb9

diff -rN old-arnesi_dev/src/hash.lisp new-arnesi_dev/src/hash.lisp
16,18c16,18
<                (reader (make-lookup-name name "GET-" name))
<                (writer (make-lookup-name name "GET-" name))
<                (rem-er (make-lookup-name name "REM-" name))
---
>                (reader (make-lookup-name name (symbol-name :get-) name))
>                (writer (make-lookup-name name (symbol-name :get-) name))
>                (rem-er (make-lookup-name name (symbol-name :rem-) name))

https://github.com/kmizumar/arnesi_dev/commit/c8aad5de20bb0b14f0b7db8cd47f2c1884dd4dd6

diff -rN old-arnesi_dev/src/lexenv.lisp new-arnesi_dev/src/lexenv.lisp
260c260
< #+(and lispworks macosx)
---
(Continue reading)

Marco Baringer | 18 Apr 20:37
Picon

further development of FiveAM

hi,

   I've haven't worked on FiveAM in a long time (it's been at least 3
   years...), and apparently that's caused stagnation and
   fragmentation of the code base. my bad.

   Stelian Ionescu has graciously offered to take up further
   development of FiveAM. So i'm going to let him do that.

good luck,
--
-marco
Răzvan Rotaru | 6 Feb 16:50
Picon

form validation

Hi,

 

I’m currently trying to learn and evaluate ucw for future projects and I was wondering if there is any support for form validation. I would be very thankful for suggestions on how to do this efficiently in ucw.

 

Thanks,
Razvan
_______________________________________________
bese-devel mailing list
bese-devel <at> common-lisp.net
http://lists.common-lisp.net/cgi-bin/mailman/listinfo/bese-devel
CHIBA Masaomi | 22 Dec 00:38
Picon

[Bug-Report]ARNESI:VARSYMP couses error with zero lengh name symbol

Hi.
I found trivial bug.
ARNESI:VARSYMP couses error with "zero lengh name" symbol.

(IT.BESE.ARNESI::VARSYMP :||)
;>>> error: Index 0 out of bounds for (SIMPLE-ARRAY CHARACTER (0))

(IT.BESE.ARNESI::VARSYMP '||)
;>>> error: Index 0 out of bounds for (SIMPLE-ARRAY CHARACTER (0))

fix:
(defun varsymp (x)
  (and (symbolp x)
       (string/= "" x)                  ;not zero length name
       (eq (aref (symbol-name x) 0) #\?)))

Regards.
--
CHIBA Masaomi
Boris Smilga | 11 Mar 22:29
Picon

[yaclml] [patch] fixed inconsistency between NODE-CHILDREN and MAKE-NODE, (SETF NODE-CHILDREN) in XMLS

Hi.

This is a minor issue, actually.  In yaclml/src/tal/xmls.lisp, we read:

  (defun make-node (&key name ns attrs child children)
    (cons #<Datum for name, ns and attrs> #<Datum for child or children>))

and, correspondingly,

  (defun (setf node-children) (children elem)
    (setf (CDR elem) children)
    (node-children elem))

but, at the same time,

  (defun node-children (elem)
    (CDDR elem))

which results in the first child being lost.

Attached is a patch to fix this issue.

Sincerely,
 - B. Smilga.

Attachment (node-children.dpatch): application/octet-stream, 3777 bytes
_______________________________________________
bese-devel mailing list
bese-devel <at> common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/bese-devel
Aashish L | 2 Jul 15:08
Picon
Favicon

Date in form and clsql time elements mapping

Hi 
I am using stock UCW and I have difficulty in handling dates from CLSQL.
Take a look at following code, its messy, use of variables- dd,mm,yy and action- datehelper is what I want to
avoid! I also refered back Boxset's form.lisp, but could not figure out how to put raw d,m,y intgers back in
time element.
Help welcome!
Thanks.
~Arl

code starts:-------------
(clsql:def-view-class datetrial ()
  ((id
    :db-kind :key :type (integer 4) :initarg :id :initform 0)  
   (trydate
    :accessor trydate :type clsql:wall-time
    :initarg :trydate :initform (clsql:make-time :year 2000 :month 1 :day 1)))
  (:base-table |datetrial|))

;(clsql:create-view-from-class 'datetrial)

(defcomponent date-man ()
  ((ddate :accessor ddate :initarg :ddate :backtrack t
	  :initform (make-instance 'datetrial))))

(defcomponent get-date (date-man) 
  ())

(defmethod render ((self get-date))
  (let* ((temp (ddate self))
	 (bdate (trydate temp))
	 (dd (clsql:time-element bdate :day-of-month))
	 (mm (clsql:time-element bdate :month))
	 (yy (clsql:time-element bdate :year)))
    (<ucw:form :action (datehelper temp dd mm yy)
	       :method "post"
	       (<:table
		:border 1		
		(<:tr (<:td "date") 
		      (<:td "D :" (<ucw:select :accessor dd
					       (dotimes (x 31) 
						 (<ucw:option :value (+ 1 x) (<:as-html (+ 1 x)))))
			    " M :" (<ucw:select :accessor mm
						(dotimes (x 12) 
						  (<ucw:option :value (+ 1 x) (<:as-html (+ 1 x)))))
			    " Y :" (<ucw:select :accessor yy
						(do ((x 1950 (1+ x))) ((>= x 2020)) 
						  (<ucw:option :value x (<:as-html x)))))))
		(<:tr (<:td :colspan 2 :align "center"
			    (<:input :type "submit"))))))

(defaction datehelper ((temp datetrial) dd mm yy)
  (setf (trydate temp) (clsql:make-time :day dd
					:month mm
					:year yy))
  (answer temp))

(defaction new-date ()
  (let* ((newid (+ 1 (caar (clsql:select [max [id]] :from [|datetrial|]))))
	 (tdate (call 'get-date)))
    (progn 
      (setf (slot-value datetrial 'id) newid)      
      (clsql:update-records-from-instance tdate))))

(defentry-point "datetrial.html" (:application *date-application*);simple-application
  ()
  (new-date))
code ends:-------------
Drew Crampsie | 15 Jun 16:54

Re: [PATCH] Use the provided form for session in WITH-LOCK-HELD-ON-SESSION

Hey,

I'm on vacation for a week or so. Clinton, can you have a look at
these and apply them? Do you have access to the cl-net repo? If not,
throw it on corsucant and i'll pull them from there when i can.

Cheers,

drewc

On 14 June 2010 12:25, Daniel White <daniel <at> whitehouse.id.au> wrote:
> Not sure what the story is, but I've just dumped the files into a
> Google Docs for now since I don't have any better space to host the
> patches at present.
>
> https://docs.google.com/leaf?id=0B4jyBCwAiYwMZjA4NDBlMzctNTgzOC00MzdmLWFkZTMtMzdlYTJlM2NiZDU5&hl=en
>
> One fixes a bug where the lexical value of the session is captured.
>
> The other fixes a bug that breaks the CALL/ANSWER mechanism when you
> have multiple nested components.
>
> On Tue, Jun 15, 2010 at 2:08 AM, Daniel White <daniel <at> whitehouse.id.au> wrote:
>> Sorry to be a nuisance yet again, but did this even make it through?
>> I'm not getting any bounce messages, so I can't for the life of me
>> work out why messages with attachments aren't making it through.
>>
>> On Thu, Jun 3, 2010 at 12:58 PM, Daniel White <daniel <at> whitehouse.id.au> wrote:
>>> Previously it was capturing the lexical value of session.
>
> Cheers,
>
> --
> Daniel White
>
Daniel White | 28 May 01:31
Picon

Re: [PATCH] Use the provided form for session in WITH-LOCK-HELD-ON-SESSION

On Wed, Sep 23, 2009 at 11:24 AM, Daniel White <daniel <at> whitehouse.id.au> wrote:
> Previously it was capturing the lexical value of session.

I've noticed this hasn't been pushed into the ucw-core repository.
Any problems with the patch and is the repository being updated and/or
maintained?

Cheers,

--

-- 
Daniel White
Anton Rizov | 22 May 19:13
Picon

serve-file and content-disposition

Hi,

serve-file method doesn't expose content-disposition parameter. Is
that intentional?.

I was looking at how to serve static content with ucw and found
serve-file.  Unfortunately it assumes that content disposition is
"attachment" and doesn't provide a way for one to specify an
alternative.

It was easy to change it, so that it could be used as:

(serve-file (make-pathname ...)
            :content-disposition "inline"
            :content-type "text/html; charset=\"...\"")

but I'm wondering whether there is a reason or it's only a matter of
unintentional omission.

Is "attachment" really the preferred way to serve static content,
especially for html files? I tried using
static-roots-application-mixin and was surprised to see download
dialog opening.

Regards,
Anton

_______________________________________________
bese-devel mailing list
bese-devel <at> common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/bese-devel
Anton Rizov | 14 May 18:42
Picon

Some trivial changes

Hi,

Before anything else I have a "management" question. As I'll be doing
(mostly trivial for now) changes so it would be useful to know about the
policy here. What do you prefer to ask/discuss on this list before
changing anything or directly send patches?

This time I'll ask:

* Is there any reason in-application is not exported?

  In protocol.lisp there is a macro in-application but it is not
  exported. IMHO it could be useful in client code as it will
  eliminate the need to specify :application argument in
  defentry-point.

  Any objections about exporting it?

* Is *ucw-applications-directory* in vars.lisp needed?

  I don't think this variable is actually used. Any reason to keep it?

* Is *ucw-systems* in vars.lisp needed?
 
  Same as *ucw-applications-directory*

* How about changing default value fo create-server :application argument?

- (applications *ucw-applications*)
+ (applications (or *ucw-applications* '(*default-application*))

  So than one could write:

  (in-application (make-instance 'demo-application))

  (create-server)

  rather than
 
  (create-server :applications '(*default-application*))

  Or maybe changing in-application
  (pushnew *default-application* *ucw-applications*)

Kind regards,
Anton

_______________________________________________
bese-devel mailing list
bese-devel <at> common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/bese-devel

Gmane