[Moin-user] setting variables depeding if a user is logged in.

Adam Shand adam at personaltelco.net
Thu Apr 11 12:43:53 EDT 2002

On Thu, 2002-04-11 at 11:34, Juergen Hermann wrote:
>          def __init__(self, user):
>              self.user = user
>              self.edit = self.edit and user.valid
>              if user.valid:
>                  from MoinMoin import config
>                  config.sitename = "test"

<sigh> i would have sworn that was the very first thing i tried and i
got an error, but it works great now.

anyway, i'll shut up now and go bother someone else.  thank you very
much for the help Juergen.


More information about the Moin-user mailing list