[PyCS-devel] New feature in CVS: user options
Status: Alpha
Brought to you by:
myelin
|
From: Bauer, G. <ba...@gw...> - 2004-01-26 16:42:59
|
Hi! I had a first go at the user options. Implemented are pycsAdmin interfaces to list options for an user and to set an option for an user. Currently the User or the Weblog tool can't set those options. And there is only one option, stylesheet. This is used if the user has set it to a value and someone calls either the zeitgeist.py, the mailto.py or the search.py module. Those modules are usually incorporated into the weblogs themselves, so I thought it would be a good idea to have those styled. Others like the referrer views or update views don't need to be styled, as those are usually called from the community servers main page. Stylesheets currently must reside in the PyCS users directories somewhere. So if users outside of PyCS want to use for example the spamfree mailto, they need a user and the admin needs to put the users stylesheet into his root and set the users option. A next step would be to add user accessible option pages as a module and some functionality to XSS to allow clients to set those options, too. But that's for some other day (or for some other hacker ;-) ). If you want to see how this looks: http://hugo.muensterland.org/ has a new style and the stylesheet is set for that users stylesheet option, so the mailto will look different than the default mailto. bye, Georg |