That's interesting. I just loaded the sources in blog-v2.tar in a
fresh lisp (using SBCL and running the three commands below) and could
not reproduce.
I'm not sure how to go debugging this one... Did you try in a fresh
lisp? Which lisp are you using? Which OS? Which browser? Do you
see the dropdown in the HTML sources (e.g. using Firebug in Firefox)?
What you could try also is insert an error in the function ALL-USERS,
for example by adding (error "this is a debugging error") somewhere in
the body to see whether it gets executed at all.
Sometimes I also find it useful to restart the browser session (using
the icon at the bottom-left in the browser or by stopping and
restarting the application), although for functions to render widgets
and views I experienced that just reloading the page in the browser is
enough.
Finally, I wrote the code for the drop-down after looking at the
similar code in the weblocks-demo example application, so you could
also check whether the dropdown works in this case.
Hope this helps,
Evan
- - -
(push #p"/path/to/blog-v2/" asdf:*central-registry*)
You're right, this is nicer. I'll add this (and also for short-text as well).
Looking at the tickets in the track, I also thought that maybe it
would be a nice occasion to also define an additional presentation for
the universal-time format that lisp defines?
Just a thought, not enough time right now :).
Evan
Ok. I have SBCL 1.0.6 on Ubuntu but it shouldn't make a difference.
I tried firefox 3 beta 4 but couldn't reproduce.
> > Finally, I wrote the code for the drop-down after looking at the
> > similar code in the weblocks-demo example application, so you could
> > also check whether the dropdown works in this case.
>
> Actually, *none* of the fields work for me in the demo.
So maybe it is a problem with weblocks on your configuration?
What version of weblocks do you have? "darcs changes | head -n 1"
tells me that the last change was on February 22 on my version.
Also, do the unit tests in weblocks succeed?
Evan
Ok, then it is my fault :). I will get the latest weblocks and update
my code for it. I'll let you know.
Evan
Sorry for the delay, it is difficult for me to find time these days
with a newborn in my hands ;).
> ;;;; Now compile the files or load them from asdf
>
> Do you mean:
>
> (asdf:operate 'asdf:load-op :blog) ?
Yes, that's what I meant.
> I'm getting an error after typing in v.1 when trying to add a user.
> (Note that I called it myapp instead of blog.)
>
> Internal Server Error
>
> There is no applicable method for the generic function
> #<STANDARD-GENERIC-FUNCTION WEBLOCKS:WITH-VIEW-HEADER (2)>
> when called with arguments
> (#<WEBLOCKS:FORM-VIEW {ACA1219}> #<MYAPP::USER {BBCF191}>
> #<WEBLOCKS:DATAFORM #:G2359> #<CLOSURE #
> {BC7D3DD}> :METHOD :POST :ACTION
> "2361:497E46257AC964BCBA557F475C7B92D5" :VALIDATION-ERRORS NIL
> :INTERMEDIATE-VALUES NIL :WIDGET #<WEBLOCKS:DATAFORM #:G2359>).
>
> 0: (BACKTRACE 536870911 #<SB-IMPL::STRING-OUTPUT-STREAM {BC7DA19}>)
> 1: (HUNCHENTOOT:GET-BACKTRACE #<unavailable argument>)
> 2: ((LAMBDA (COND)) #<SIMPLE-ERROR {BC7D6D9}>)
> 3: ((LAMBDA (COND)) #<SIMPLE-ERROR {BC7D6D9}>)
> 4: (SIGNAL #<SIMPLE-ERROR {BC7D6D9}>)
> 5: (ERROR
> "~@<There is no applicable method for the generic function
> ~2I~_~S~
> ~I~_when called with arguments ~2I~_~S.~:>")
> 6: ((SB-PCL::FAST-METHOD NO-APPLICABLE-METHOD (T))
> #<unavailable argument>
> #<unavailable argument>
> #<STANDARD-GENERIC-FUNCTION WEBLOCKS:WITH-VIEW-HEADER (2)>)
> 7: ((SB-PCL::FAST-METHOD WEBLOCKS:WITH-WIDGET-HEADER (T "#<...>" .
> "#<...>"))
> #<unavailable argument>
> #<unavailable argument>
> #<WEBLOCKS:DATAFORM #:G2359>
> #<STANDARD-GENERIC-FUNCTION WEBLOCKS:RENDER-WIDGET-BODY (11)>)
> 8: (WEBLOCKS:RENDER-WIDGET #<WEBLOCKS:DATAFORM #:G2359>)
> 9: (WEBLOCKS:RENDER-WIDGET #<WEBLOCKS:GRIDEDIT MYAPP::USERS-GRID>)
> 10: ((LAMBDA (WEBLOCKS::W)) #<WEBLOCKS:GRIDEDIT MYAPP::USERS-GRID>)
> 11: (WEBLOCKS::RENDER-DIRTY-WIDGETS)
Actually I haven't looked at my sample blog app for some time, so I
wasn't sure if it was because of a change in weblocks in the
meanwhile, but I just checked blog-v0 through blog-v4 versions and it
is ok on my setup.
As for your error, I really have no idea what can be wrong, since the
generic function with-view-header in weblocks accepts just that: a
view, an object, a widget, a closure, and additional arguments.
Just in case, did you try to restart the lisp before loading the blog
app? Also, does weblocks pass all tests? Is it the latest one?
Cheers,
Evan
I am now an expert one-hand typist due to my similar situation!
--
Sohail Somani
http://uint32t.blogspot.com
I am now an expert one-hand typist due to my similar situation!