2007-11-13:
[9:43] <hypersmil> hi,[9:43] <hypersmil> when i assign a number value to a property of a mapped HopObject (property mapped to a column with datatype character varying) 1.0 is inserted insted of 1, is this a bug or a feature?[9:53] <zumbrunn> Sounds like a bug to me, but I'm not sure...[9:53] <zumbrunn> best to just file it as a bug and then we'll see[9:53] <zumbrunn> http://helma.org/bugs/[10:19] <hypersmil> filed as a bug report, thank you[10:21] <zumbrunn> http://helma.org/bugs/show_bug.cgi?id=569[10:21] <zumbrunn> (just for the record) :-)[10:35] <hypersmil> what does the number after the table name in the sql logfile mean?[10:35] <hypersmil> example:[10:35] <hypersmil> [2007/11/13 10:59:42] [INFO] SQL SELECT_BYKEY my_user 1: SELECT my_user.* FROM my_user WHERE my_user.id = 2020636[10:35] <hypersmil> [2007/11/13 10:59:52] [INFO] SQL SELECT_BYKEY my_user 1: SELECT my_user.* FROM my_user WHERE my_user.id = 2020636[10:40] <zumbrunn> hypersmil, hannes says it's the milliseconds that the query took[11:03] <hypersmil> cool, thank you[14:06] <kuccello> zumbrunn - how would I get access to request header information inside an action?[14:07] <zumbrunn> http://helma.zumbrunn.com/reference/req.html#getHeaders[14:07] <zumbrunn> is that what you are looking for?[14:08] <kuccello> thanks[14:12] <kuccello> actually I cant see it on that page?[14:13] <kuccello> found it[14:13] <zumbrunn> ok :-)[14:14] <kuccello> inside a skin is the implicit object called request or req?[14:14] <zumbrunn> req.data becomes "request" inside the skins[14:15] <kuccello> ok[14:15] <zumbrunn> to avoid that confusion, one could set request = req.data[14:16] <zumbrunn> but that same trick will not work for session.data[14:17] <kuccello> so I'm trying to add this line to the edit.skin - <a href="<% request.getHeader("Referer") %>">Back</a>[14:17] <kuccello> but I keep getting the current page link not the referer[14:17] <zumbrunn> req.data != req[14:18] <kuccello> ok[14:18] <kuccello> so should I set an attribute in the action?[14:19] <zumbrunn> you could set req.data.referer = req.getHeader("Referer")[14:19] <zumbrunn> and then use request.referer in the skin[14:21] <kuccello> no joy - keeps giving me the current page[14:22] <kuccello> I'll fiddle with it some more today[14:22] <zumbrunn> does res.write(req.getHeader("Referer")) give you what you want?[14:22] <kuccello> btw: do you ever travel to Canada?[14:23] <zumbrunn> It's been a while since I've been in Canada the last time[14:23] <kuccello> ya that last one worked[14:23] <zumbrunn> I've never been in Toronto, though[14:24] <kuccello> if you ever find your self heading to Toronto, let me know and I'll bring you out to a DemoCamp[14:24] <zumbrunn> yep[14:26] <zumbrunn> if you set req.data.referer = 'test' and use <% request.test %> in the skin, does that work?[14:26] <kuccello> let me check[14:26] <zumbrunn> otherwise, use res.data and response instead[14:26] <zumbrunn> (that's the proper way, anyway)[14:27] <zumbrunn> ehmm, req.data.referer = 'test' and use <% request.referer %>, of course[14:27] <kuccello> brb - meeting - I'll check it and get back to you[14:38] <kuccello> no joy on the req.data.referer method[14:38] <kuccello> it does not appear to render anything in the skin[14:39] <kuccello> <a href="">Back</a>[14:43] <zumbrunn> kuccello, what about res.data.referer = 'test' and <% response.referer %>[14:43] <kuccello> same[14:43] <zumbrunn> huh?[14:44] <kuccello> here is what I have in the edit.hac:[14:44] <kuccello> req.data.referer = 'test';[14:44] <kuccello> and the skin: <a href="<% request.referer %>">Back</a>[14:44] <kuccello> also tried the response object[14:45] <kuccello> res.data.referer = 'test';[14:45] <kuccello> <a href="<% response.referer %>">Back</a>[14:45] <kuccello> same result[14:45] <zumbrunn> hmm[14:49] <zumbrunn> where do you have these files?[14:49] <kuccello> Feed/edit.hac has the res.data.referer = 'test';[14:49] <kuccello> and HopObject/edit.skin has the <% response.referer %>[14:49] <kuccello> see the source from the working feed reader[14:52] <zumbrunn> how are you calling the skin?[14:53] <zumbrunn> this.renderSkin("edit"); ?[14:53] <kuccello> opps, I see where the problem is - I'm setting the referer after I call the this.renderAsString("edit");[14:54] <zumbrunn> ;-)[14:54] <kuccello> thanks[14:55] <kuccello> bingo that worked
In the channel now:
Logs by date: