PATCH: To fix salt generation in session.py

From: Murtuza Zabuawala <murtuza(dot)zabuawala(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: PATCH: To fix salt generation in session.py
Date: 2016-07-11 07:11:56
Message-ID: CAKKotZTcPrR6uWqPUSCrgObfLVwEp4ECb14tqpNPi9vJcY4+bA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi,

With latest pull session.py fails with below error with python3 because in
python3 strings 'lowercase' method has been renamed to 'ascii_lowercase',
PFA patch to fix the issue.

Issue:
----------
* File "../pgadmin4/web/pgadmin/utils/session.py", line 59, in sign*
* self.randval = ''.join(random.sample(string.lowercase+string.digits,
20))*
*AttributeError: module 'string' has no attribute 'lowercase'*

--
Regards,
Murtuza Zabuawala
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Attachment Content-Type Size
Fix_sessions.patch application/octet-stream 895 bytes

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Murtuza Zabuawala 2016-07-11 07:14:20 Re: PATCH: To fix salt generation in session.py
Previous Message Magnun Leno (Pessoal) 2016-07-08 16:07:40 Re: [Patch] Fix Unicode in errmsg