uPortal IRC Logs-2010-12-10

[12:19:42 CST(-0600)] <EricDalquist> any ideas on how in code I can check if a user has specifically selected a skin?
[12:21:34 CST(-0600)] <athena> like in what context? for the current user, or for some arbitrary one
[12:21:44 CST(-0600)] <EricDalquist> yeah current user
[12:21:49 CST(-0600)] <EricDalquist> for our portal vhosting stuff
[12:22:04 CST(-0600)] <EricDalquist> I have a little dlm processor that sets your skin based on some groups/attributes
[12:22:12 CST(-0600)] <EricDalquist> but I need to let users select their own skin too
[12:22:23 CST(-0600)] <EricDalquist> so I need to check if they have actually picked a skin or if they are just using the default
[12:22:28 CST(-0600)] <EricDalquist> (tongue)
[12:28:03 CST(-0600)] <EricDalquist> man do I wish we had real DAOs for all this layout stuff
[12:28:20 CST(-0600)] <athena> no kidding
[12:28:20 CST(-0600)] <EricDalquist> it would be so easy to just check with UserLayoutParameter DAO
[12:28:34 CST(-0600)] <athena> i knwo the skin name is visible to the theme
[12:28:39 CST(-0600)] <EricDalquist> right
[12:28:40 CST(-0600)] <athena> presumably you could get it from the same place?
[12:28:45 CST(-0600)] <EricDalquist> so it is in the ThemeStylesheetUserPreferences
[12:28:57 CST(-0600)] <EricDalquist> but the problem is the default skin is set in there if the user has no override
[12:29:12 CST(-0600)] <EricDalquist> so simply checking with the skin preference is set doesn't really help
[12:31:55 CST(-0600)] <EricDalquist> yeah so it is one method in RDBMDistributedLayoutStore that loads the defaults from the file and reads from the DB
[12:32:09 CST(-0600)] <EricDalquist> so there is no way to determine if a user has picked a specific skin right now (smile)
[12:32:13 CST(-0600)] <EricDalquist> yay
[12:38:05 CST(-0600)] <EricDalquist> athena: do you know the name of the servlet/controller that gets called when setting the skin via the gallery?
[12:39:01 CST(-0600)] <athena> UpdatePreferencesServlet?
[12:39:20 CST(-0600)] <EricDalquist> hrm ... looks promising
[12:39:29 CST(-0600)] <athena> that should be where everything's changed
[12:39:36 CST(-0600)] <EricDalquist> I think I'm just going to make skin-selection session persistent for now
[12:39:36 CST(-0600)] <athena> should be a method for each user preferences operation
[12:39:45 CST(-0600)] <EricDalquist> set a session attribute if a user picks a different skin
[12:39:51 CST(-0600)] <EricDalquist> and make my override code check that
[14:07:35 CST(-0600)] <ajan> Hi, anyone present here - I need some help regarding implementing a dlm evaluator to hide or show fragments depending on selected locale. In uPortal 2 I did this with modifications to the XSL but as (i think) athena suggested on the list, it could be easy to do with a dlm evaluator. But the documentation is rather scarce. The evaluator only has access to the person, and I would instead need access to the session locale and the fragment definition, and I wonder