tags:

views:

80

answers:

1

Is it possible to get the current windows user from with in pylons?

I am starting a pylons app that is going to be used from within a controlled Windows domain.

Is it possible to get the logged on user?

Much like I would do in ASP.NET with Page.User.Identity.Name.

+3  A: 

You can do this with the standard getpass module:

import getpass
getpass.getuser()
jkp
Perfect thanks.
Daniel
@daniel: I see you're new around here - feel free to upvote if the answer helped! :)
jkp