Robin Lee Powell | 1 Oct 2008 08:32

Minor docs issue.


defwebapp's docs say it has a :name parameter that is used to
construct the page <title>.  It doesn't actually seem to do
anything.  On the other had, the :name argument for start-webapp
*does* actually seem to change the page <title>.

The docs for defwebapp, start-webapp, and page-title should be
updated.  I can do it and make a diff if people want.

-Robin

--

-- 
Lojban Reason #17: http://en.wikipedia.org/wiki/Buffalo_buffalo
Proud Supporter of the Singularity Institute - http://singinst.org/
http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "weblocks" group.
To post to this group, send email to weblocks@...
To unsubscribe from this group, send email to weblocks+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/weblocks?hl=en
-~----------~----~----~----~------~----~------~--~---

Leslie P. Polzer | 1 Oct 2008 09:49
Picon
Gravatar

Re: Minor docs issue.


On 1 Oct, 08:32, Robin Lee Powell <rlpow...@...> wrote:
> defwebapp's docs say it has a :name parameter that is used to
> construct the page <title>.  It doesn't actually seem to do
> anything.  On the other had, the :name argument for start-webapp
> *does* actually seem to change the page <title>.
>
> The docs for defwebapp, start-webapp, and page-title should be
> updated.  I can do it and make a diff if people want.

By all means, but let's give DEFWEBAPP some more thought.

How about having a :DEFAULT-NAME initarg there that can be changed
later with START-WEBAPP?

I suppose it's a pretty common use case that DEFWEBAPP is used
with :AUTOSTART T and then the user should be able to forget about
(explicit) webapp stuff.

  Leslie
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "weblocks" group.
To post to this group, send email to weblocks@...
To unsubscribe from this group, send email to weblocks+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/weblocks?hl=en
-~----------~----~----~----~------~----~------~--~---

nunb | 1 Oct 2008 13:38
Picon
Gravatar

Re: using html-template with forms and views; and il8n


> All I do when the user changes the language is change the current
> language session variable and refresh the page which dynamically
> generates the appropriate strings.  I haven't noticed any performance
> impact from doing this.
>

good to hear. must be due to that old fashioned compilation-
whatchamacallit, I suppose.

I'd be very interested in whatever you have, and I can offer to munge
it into weblocks and or write docs.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "weblocks" group.
To post to this group, send email to weblocks@...
To unsubscribe from this group, send email to weblocks+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/weblocks?hl=en
-~----------~----~----~----~------~----~------~--~---

Leslie P. Polzer | 1 Oct 2008 19:01
Picon
Gravatar

Main dispatcher not installed?


I'm migrating my main project to -dev, but public files won't be
served unless I

(push #'weblocks::weblocks-dispatcher tbnl::*dispatch-table*)

I can't find any place where this happens automatically.

Maybe somebody can provide background information?

  Leslie
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "weblocks" group.
To post to this group, send email to weblocks@...
To unsubscribe from this group, send email to weblocks+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/weblocks?hl=en
-~----------~----~----~----~------~----~------~--~---

Leslie P. Polzer | 1 Oct 2008 20:19
Picon
Gravatar

Inline tests


Currently the tests are separate from the actual code.
How about inlining?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "weblocks" group.
To post to this group, send email to weblocks@...
To unsubscribe from this group, send email to weblocks+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/weblocks?hl=en
-~----------~----~----~----~------~----~------~--~---

nunb | 1 Oct 2008 20:30
Picon
Gravatar

Re: question about rendering dialogs.


> > Can someone point me to the parts of the code I need to
> > look at?
>
> src/control-flow/
>

I looked at that, and also used firebug to view json transfers. Still
stuck. With weblocks-stable I'd get a xml-http-request response like
("$('2').focusFirstElement();") whereas with weblocks-dev I am now
getting include_css('/app/app/pub/stylesheets/dataform.css') ..

My webapp is declared like so:

(defpackage #:app
  (:use :cl :weblocks :parenscript :metatilities :cl-who)
  (:documentation
   "app"))

In dialog.lisp in -stable, refreshing would lead to update-dialog-on-
request being called, whereas it now gives me the error message in do-
dialog, viz. "multiple dialogs not allowed".

Perhaps this is an effect of the way I am using (misusing) flows?

; ====  Weblocks starts here ====
(defun init-user-session (comp)
  (setf (composite-widgets comp) #'make-welcome-page))

(defun make-welcome-page ()
(Continue reading)

Stephen Compall | 1 Oct 2008 20:49
Picon

Re: Inline tests


"Leslie P. Polzer" <leslie.polzer-hi6Y0CQ0nG0@...> writes:
> Currently the tests are separate from the actual code.
> How about inlining?

I see the problem here as well, but I think a solution that would be
equally effective without requiring quite as much legwork would be to
(in dev only) add a post-load ASDF hook that loads weblocks-test and
runs the weblocks suite.

--

-- 
I write stuff at http://failex.blogspot.com/ now.  But the post
formatter and themes are terrible for sharing code, the primary
content, so it might go away sooner or later.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "weblocks" group.
To post to this group, send email to weblocks@...
To unsubscribe from this group, send email to weblocks+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/weblocks?hl=en
-~----------~----~----~----~------~----~------~--~---

Stephen Compall | 1 Oct 2008 20:54
Picon

Re: Main dispatcher not installed?


"Leslie P. Polzer" <leslie.polzer-hi6Y0CQ0nG0@...> writes:
> I can't find any place where this happens automatically.
>
> Maybe somebody can provide background information?

It's in src/server.lisp, under the comment

;; install weblocks-dispatcher

However, you won't find references to TBNL anywhere, as Weblocks was
begun after Edi transitioned to Hunchentoot.

--

-- 
I write stuff at http://failex.blogspot.com/ now.  But the post
formatter and themes are terrible for sharing code, the primary
content, so it might go away sooner or later.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "weblocks" group.
To post to this group, send email to weblocks@...
To unsubscribe from this group, send email to weblocks+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/weblocks?hl=en
-~----------~----~----~----~------~----~------~--~---

Leslie P. Polzer | 2 Oct 2008 09:26
Picon

Re: Inline tests


> "Leslie P. Polzer" <leslie.polzer-hi6Y0CQ0nG0@...> writes:
>> Currently the tests are separate from the actual code.
>> How about inlining?
>
> I see the problem here as well, but I think a solution that would be
> equally effective without requiring quite as much legwork would be to
> (in dev only) add a post-load ASDF hook that loads weblocks-test and
> runs the weblocks suite.

I'm not sure whether we talk about the same problem here.

My main incentive for inlining the tests would be that they
are right next to the code, thus encouraging contributors
to write new ones and fix existing ones.

What's your problem? :)

  Leslie

--

-- 
LinkedIn Profile: http://www.linkedin.com/in/polzer
Xing Profile: https://www.xing.com/profile/LeslieP_Polzer
Blog: http://blog.viridian-project.de/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "weblocks" group.
To post to this group, send email to weblocks@...
To unsubscribe from this group, send email to weblocks+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/weblocks?hl=en
(Continue reading)

Leslie P. Polzer | 2 Oct 2008 09:30
Picon

Re: Main dispatcher not installed?


>
> "Leslie P. Polzer" <leslie.polzer-hi6Y0CQ0nG0@...> writes:
>> I can't find any place where this happens automatically.
>>
>> Maybe somebody can provide background information?
>
> It's in src/server.lisp, under the comment
>
> ;; install weblocks-dispatcher

Oh, it has escaped me that *dispatch-table* may contain function
/designators/.

So the cause must be something else.

Don't let the TBNL fool you, it's just a convenient shortcut
for the HUNCHENTOOT package. :)

  Leslie

--

-- 
LinkedIn Profile: http://www.linkedin.com/in/polzer
Xing Profile: https://www.xing.com/profile/LeslieP_Polzer
Blog: http://blog.viridian-project.de/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "weblocks" group.
To post to this group, send email to weblocks@...
To unsubscribe from this group, send email to weblocks+unsubscribe@...
(Continue reading)


Gmane