On Mon, 27 Apr 2009 17:44:53 +0200 (CEST)
"Leslie P. Polzer" <[email protected]> wrote:

> 
> 
> > We have two problems with this approach:
> >
> > 1) All texts in our defviews (using :label) are computed at
> > application start-up, and they don't get new values afterwards.
> 
> View labels are fixed at compile-time (that's the way DEFVIEW works);
> you need to modify your Weblocks to support translation of view field
> labels at run-time by defining an :around method for the
> view-field-label accessor.
> 

Ok, I'll try that. Thanks.

> > 2) It seems the defvar for *user-messages* is invalid. It doesn't
> > get filled with the new values unless I execute the logic manually
> > in slime. I don't find a reason for this behavior.
> 
> Where are you calling build-user-messages?

First I thought just calling it inside the init-session would suffice.
Afterwards, trying to figure out what could be happening, I wrote a
'ensure-messages-loaded' function and called it just before the defview
declaration. Such function just checks the size of the hash table, and
in case it's empty it calls build-user-messages. Still no luck.

>   Leslie
> 
> 
> > 

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

Reply via email to