uri ndf mapping proposal

Jean-Christophe Michel <jc.michel-/aRvmaKoZxNWk0Htik3J/[email protected]> Wed, 23 Mar 2005 14:03:11 +0100
Newsgroups gmane.comp.lib.binarycloud.devel
Message-ID <[email protected]>
Hi,

I'm thinking to a way to:
- reduce the htdocs/* similar files
  how would it be possible to do simply in bc:
- protect some uris with role base access
- have a site wide url conf file used to produce and receive uris 
(printuri in tpls if role matches, call ndf from an uri)

I propose to have a class ProjectMap extending Project, that would use 
info stored into uri.conf.xml with units like this one:

   <section id="/index">
     <section id="roles">
       <param>roles.editors</param>
     </section>
     <param id="ndf">app/top/Top.ndf.xml</param>
   </section>

A tool could even try to geenrate the RewriteRules to optimize uri -> 
ndf redirecting :

RewriteRule  ^/index  /work.php?uri=/index&ndf=app/top/Top.ndf.xml [L]
   ...

Role matching would be tested and an event posted if unauthorized access 
is attempted.

Reactions ?
-- 
Jean-Christophe Michel
_______________________________________________
dev mailing list
dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected]
http://lists.binarycloud.com/mailman/listinfo/dev