Hopbot log for 2009-03-18 - Helma IRC channel: #helma on irc.freenode.net

2009-03-18:

[14:19] <simono> didn't watch it yet, looks interesting wrt filter / req / res topic http://www.blueskyonmars.com/2009/02/17/creating-a-web-framework-with-wsgi-video/
[14:30] <jirkap> hello guys, two questions: 1) how do I renderSkin, which is located in another prototype on current hopobject? E.g. when in root, I want to renderSkin located at [User]. Is it possible? 2) In the antville code there are renderSkin calls on children, like 'root.users.renderSkin(...)' - what is it supposed to do?
[14:36] <jirkap> Edit: I get the second one now.
[14:41] <simono> add 1) ... the task seems strange - why render the skin on another prototype?
[14:47] <jirkap> hm, I guess the question is confusing again. I have Root and User, like parent and child. When there are no users, I want to show the register subskin located in User. With no redirection. The problem is it renders a blind page, no errors when I use root.users.renderSkin('User#register'). User is mounted on mysql, in Root/type.properties I have users = collection(User)
[14:49] <jirkap> I can sure place the skin in Root/ but, I will definitely get lost in the code in the future. So I'd like to have the code where it logically belongs to..
[14:55] <jirkap> Because, say in antville, the skins are spread all over the code, there is this fragment of this logic (talking about skins), while somewhere else there is another one etc.
[14:58] <zumbrunn> wouldn't it be better to redirect to something like /users/register in that situation?
[14:58] <zumbrunn> btw, you can get to all the skins using app.getSkin()
[14:59] <zumbrunn> http://helma.server-side-javascript.org/reference/app.html#app.getSkin
[15:38] <jirkap> works, thank you.

 

 

In the channel now:

Logs by date: