On 28/11/12 12:41 +0530, Ivan Garcia wrote:
> Hello,
> 
> I created a _history_table from the ir.session class but it wasn't enough
> for what I wanted since I realize that during 1 single login, many session
> rows were appearing and also the logouts were not being registered ( a
> logout just deletes the session from the ir.session table)
> 
> So I want to create a new module that will register the logins and logouts
> of users with their IPs/Ports and Protocols in order to do allow auditories
> of the data entry for the future.
> 
> Is there something like that already or should I create one, what I'm
> afraid is that I will have to patch the protocols/dispatcher.py or
> security.py in order to achieve this?

I don't think it is a good idea to log such information in the database
because of the transaction.
You have all the information in the log of the server, so I think it is
better to parse the log file.

PS: By the way, this discussion should go on
http://groups-contrib.tryton.org/

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpORq9982E0O.pgp
Description: PGP signature

Reply via email to