good point.
i have updated the xowiki+xotcl core in cvs head to allow in the policy rules conditional checks based on match and regular expressions. One can specify now e.g. that for objects
with names ending in weblog or index, one needs admin
rights on the package id.
Class Page -array set require_permission {
view none
revisions {{package_id write}}
diff {{package_id write}}
edit {
{{regexp {name {(weblog|index)$}}} package_id admin}
{package_id write}
}
...
}
One can as well check the contents of other attributes of a page by replacing 'name' with some other attribute.