> I'm very interested. I am working on a way of allowing group/individual > permissions to directories/files. > > In summary I need to: > > - allow/deny actions (view/edit/move/delete/attach etc..) to > directories/files based on ids or groups. I do not like the idea of > statically expand groups, because groups can include other groups, and > their membership can be changed (not very frequently, I suppose).
Right now, templates belong to a group, or to the group 'inherit' by default. Users belong to one or more groups. I'm not exactly certain what you mean by a group within a group, but multiple levels of group access in all different combinations work pretty well. I also added a couple of inline template functions for checking authorization. We use this for creating pages that show different content based on what level of subscription you have. If you are subscribed to level A, you only see content for level A, if you are subscribed to level B, you can see content for both level A and B, etc.. > > - In parallel I may need to store preferences of individual per page (for > instance, say that a page contains a report from a database, and the user > wants to customize the ordering). We usually store most of the user associated info in their session. Although I did write a very simple object store function that just takes a container name and a variable reference(scalar, array, or hash) and stores it on disk using Storable. We use the simple object store quite a bit. For example we have order page template libraries that are heavily css based, and we have a simple configuration page where a client can change any of the css values which are saved in the object store. The headers of each page read the object store for their css info. Chris > > > -- > Franco Bagnoli (franchino) <[EMAIL PROTECTED]> ([EMAIL PROTECTED]) > virtual location: Dipartimento di Energetica "S. Stecco" > ultra-virtual affiliation: Centro Dinamiche Complesse (CSDC-Firenze) > real location: Dip. Matematica Applicata "G. Sansone", Universita' Firenze, > Via S. Marta, 3 I-50139 Firenze, Italy. Tel. +39 0554796422, fax: +39 055471787 > > > _______________________________________________ > templates mailing list > [EMAIL PROTECTED] > http://lists.template-toolkit.org/mailman/listinfo/templates > _______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
