For your user sign out /register issue, use like this
% request.environ.has_key('REMOTE_USER'):
<li "first">welcome ${c.user_name}</li>
% else:
<li "first"><a href="/account/signin">Signin</a></li>
<li><a href="/account/new">Register</a></li>
% endif
If you use authkit, authkit middleware shall fill the REMOTE_USER key.
Otherwise you can write your custom middleware to set the REMOTE_USER
option.
On Aug 25, 3:41 am, Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
> it would be more correct to update c , and not the 'base controller'
>
> in any event, i think you might have better luck setting
> 'self.main_panel' instead of BaseController.main_panel
>
> messing with class vars can create problems down the road. after you
> set BaseController.main_panel in your example, its no longer a null
> string for the next class instantiated
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---