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

2009-04-24:

[9:43] <simono> generic object references: i have a transient object and want to set its generic-reference-field to another transient object
[9:43] <simono> this gives me the error "Object is transient, can't derive persistent ID for Relation"
[9:44] <simono> why is this not working? i tried with the demo app provided in #516.
[10:22] <simono> no one uses generic refs? :)
[11:31] <hannesw_> simono: good to hear you're using generic refs extensively.
[11:31] <hannesw_> i replied on the list
[11:33] <simono> not implemented yet :)
[17:38] <hannesw_> ng built-in macros became quite powerful today.
[17:38] <hannesw_> you can now render an html table like this:
[17:38] <hannesw_> <table>
[17:38] <hannesw_> (%
[17:38] <hannesw_> for row in [1, 2, 3, 4, 5]
[17:38] <hannesw_> and col in [a, b, c, d, e]
[17:38] <hannesw_> echo (% row %) (% col %)
[17:38] <hannesw_> row-wrap = [<tr> </tr>]
[17:38] <hannesw_> col-wrap = [<td> </td>]
[17:39] <hannesw_> %)
[17:39] <hannesw_> </table>
[17:39] <hannesw_> or tihs:
[17:39] <hannesw_> <table>
[17:39] <hannesw_> (%
[17:39] <hannesw_> set { persons: [{name: fritz, age: 34}, {name: agathe, age: 23}]}
[17:39] <hannesw_> for person in (% persons %)
[17:39] <hannesw_> echo (% person.name %) (% person.age %)
[17:39] <hannesw_> echo-wrap = [<td> </td>]
[17:39] <hannesw_> person-wrap = [<tr> </tr>]
[17:39] <hannesw_> %)
[17:39] <hannesw_> </table>
[17:39] <hannesw_> and if statement supports boolean and/or:
[17:40] <hannesw_> (% if false or not false and true render x %)
[17:41] <hannesw_> i replaced <% %> with (% %) locally, not sure about this, although I like it much better... all the rest is in git/svn.
[20:23] <rsaccon> cool !!!

 

 

In the channel now:

Logs by date: