From: Jeff R. <dv...@di...> - 2015-11-19 07:53:50
|
Bitbucket wrote: > 3 new commits in naviserver: > https://bitbucket.org/naviserver/naviserver/commits/2758b9f8392f/ > Changeset: 2758b9f8392f > User: gustafn > Date: 2015-11-18 19:35:25+00:00 > Summary: - The new command "ns_urlspace" that allows to attach data to URLs in > a hierarchical manner form the Tcl level. The command allows e.g. to > write ns-perm like access control in Tcl without much hassle. This is very cool; it's something I've wanted to expose as a tcl api for a long time. A thought for a further extension to this is to make the separator character changeable instead of only "/", so strings represented as "a.b.c.d" or "a:b:c:d" could be handled too. However, that would probably add a good deal of complexity that is unjustified lacking an actual use case. I was also thinking that the trie structure could be applicable to logging configurations: enabling logging for "debug/sql" and "info/*" but not "debug/*" would be really nice. The "/" as a separator character seems odd at first, but ultimately unimportant as it conveys the same hierarchical information as "." or ":" would. -J |