[Moin-user] Theme Help
Andrew.Premdas at manchester.ac.uk
Tue Oct 12 06:16:05 EDT 2004
Thankyou for your help with this. I'll get working on it right away :)
My current theme is a corporate one designed to create intranet wiki's that
can only be authored by members of AuthorGroup and administered by members
of AdminGroup, and is aimed at producing pages aimed at non-wiki users (i.e.
people that will never author and don't understand wiki). As such it
contains some corporate stuff that will have to be removed before I can
On the positive side it is a bar theme that does edit properly in IE6 (needs
a patch, which I posted and which may or may not be in current Moin stuff).
If I get the ACL stuff working, which I should be able to do now, I'll try
and write a cut down and properly commented version which can hopefully be
included in other themes, or as a theme itself. I'll also download 1.3 at
some point and try it on there
By all means pass on my email to Nir (I don't know who he is). He is welcome
to contact off or on the list.
Student Systems Developer
From: moin-user-admin at lists.sourceforge.net
[mailto:moin-user-admin at lists.sourceforge.net] On Behalf Of Thomas Waldmann
Sent: 11 October 2004 10:22
To: moin-user at lists.sourceforge.net
Subject: Re: [Moin-user] Theme Help
> A page by page approach whereby if the user has the ACL right to write
> to the page then the authoring stuff will appear
> A user approach where if the user is known the authoring stuff will
> Does anyone have any views on this? Can anyone give me some help in
> implementing this?
Both shouldn't be a problem (but because of the different cases, it will
make writing the theme a bit more extensive).
If you start that development now, maybe do it for moin 1.3devel / beta.
You can also do it for 1.2, but there might be some minor changes necessary
for 1.3 and 1.2.4 will be the last 1.2.x release.
In the theme object (see __init__ of it), you have self.request and via
that, you can query like this:
if self.request.user.valid: ... # user is known (logged in)
if self.request.user.may.write(d['page_name'): ... # user may edit this page
BTW, Nir is working on a really nice "aluminium" theme. Maybe you want to
work together with him finishing and modifying it? Some theme adapting to
ACLs could be of common interest (we don't need to show actions the user is
not allowed to do anyway).
Hope that helps.
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use
IT products in your business? Tell us what you think of them. Give us Your
Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
Moin-user mailing list
Moin-user at lists.sourceforge.net
More information about the Moin-user