Yuri wrote:
> suki wrote:
>> Hi all,
>> i have created a report in csv format for displaying the information of
>> all the registered users. I m able to display the login name, username ,
>> last login time, etc. But i dnt knw how to display the IP Address and
>> password.
>> Following is the line of code i hv used for getting the details:
>> text+="%s,%s,%s,%s,%s,%s,%s" %
>> (member.getProperty('fullname'),getattr(member,'id'),member.getProperty('email'),member.getProperty('emailPermission'),member.getProperty('last_login_time'),member.getProperty('login_time'),member.getProperty('login'))
>>
>>
>> What is the property for getting the ip address?
>>
>
> you've to get it from the request :)
A user may have many IP addresses, and it's not stored as member data.
You could perhaps store the last one used (or a list of all used), but
you'd have to do it yourself.
Also, the passwords are stored hashed (i.e. useless) in any modern
version of Plone. The basic ZODB UserFolder (if you have a version with
GRUF) can be switched back and forth, but already-hashed passwords
cannot be unhashed. I don't think the default PAS stuff has a non-hashed
mode, though one could create such a plugin.
--jcc
--
Connexions
http://cnx.org"Building Websites with Plone"
http://plonebook.packtpub.com-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>
http://get.splunk.com/_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users