Zotonic
Zotonic
zotonic@conference.zotonic.com
Tuesday, 28 August 2012< ^ >
arjan has set the subject to: Zotonic - the Erlang CMS
Room Configuration

GMT+2
[06:00:03] Ilya Rezvov leaves the room
[08:15:25] Ilya Rezvov joins the room
[08:15:32] <Ilya Rezvov> hi
[08:15:52] <Ilya Rezvov> can i store arbitrary erlang term in rsc field?
[08:16:22] <Ilya Rezvov> i want store list like [ {id, Id}, {key, Key} ]
[08:56:36] <Ilya Rezvov> and other question
[08:56:56] <Ilya Rezvov> can i group templates in directories?
[08:57:19] <Ilya Rezvov> if yes, how include this templates
[09:16:42] <Marc Worrell> Hi Ilya,
[09:17:06] <Marc Worrell> Yes, you can store anything in the rsc field. Be careful that a list of integers will become a binary though :)
[09:17:31] <Marc Worrell> so you have to put any integer lists inside a tuple.
[09:17:50] <Marc Worrell> and you can have templates in directories, just access them by their relative path
[09:18:05] <Marc Worrell> templates/a/b.tpl -> include "a/b.tpl"
[09:34:40] <Ilya Rezvov> ok, thx
[10:12:23] <Ilya Rezvov> documentation about m.acl differ from reality
[10:12:33] <Marc Worrell> oops
[10:12:39] <Ilya Rezvov> Marc Worrell: how m.acl.is_allowed work?
[10:13:26] <Ilya Rezvov> i have task: determine what user in manager group
[10:13:51] <Ilya Rezvov> with mod_acl_simple
[10:14:26] <Marc Worrell> it maps to z_acl:is_allowed(Action, Object, Context).
[10:14:45] <Marc Worrell> m.acl.is_allowed.delete[10]
[10:15:04] <Marc Worrell> m.acl.is_allowed.use.mod_admin (have to check this one :p)
[10:15:24] <Ilya Rezvov> but manager cant use mod_admin
[10:15:39] <Ilya Rezvov> ok, i add dummy module for manager group
[10:15:49] <Ilya Rezvov> and check on it rights
[10:19:12] <Ilya Rezvov> it works :)
[10:19:15] <Ilya Rezvov> thx
[10:20:22] <Ilya Rezvov> remove at least not to the existing methods from documentation
[10:26:08] <Marc Worrell> can you file an issue on github? then we don't forget to check that.
[10:26:48] <Ilya Rezvov> ok :)
[10:27:04] <Marc Worrell> thanks! :)
[10:36:07] <Ilya Rezvov> np
[11:00:09] Ilya Rezvov leaves the room
[12:42:52] Ilya Rezvov joins the room
[16:06:17] Ilya Rezvov leaves the room
[20:19:09] Ilya Rezvov joins the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!