Re: [Freeipa-devel] [PATCH 0139] otptoken-add: improve the robustness of QR code printing to tty

2016-03-24 Thread Jan Cholasta
On 24.3.2016 14:13, Martin Babinsky wrote: On 03/24/2016 01:47 PM, Martin Babinsky wrote: On 03/22/2016 12:28 PM, Martin Babinsky wrote: On 03/16/2016 02:17 PM, Martin Babinsky wrote: On 03/16/2016 01:35 PM, Nathaniel McCallum wrote: On Wed, 2016-03-16 at 07:25 +0100, Jan Cholasta wrote: On

Re: [Freeipa-devel] [PATCH 0139] otptoken-add: improve the robustness of QR code printing to tty

2016-03-24 Thread Martin Babinsky
On 03/24/2016 01:47 PM, Martin Babinsky wrote: On 03/22/2016 12:28 PM, Martin Babinsky wrote: On 03/16/2016 02:17 PM, Martin Babinsky wrote: On 03/16/2016 01:35 PM, Nathaniel McCallum wrote: On Wed, 2016-03-16 at 07:25 +0100, Jan Cholasta wrote: On 15.3.2016 22:22, Nathaniel McCallum wrote:

Re: [Freeipa-devel] [PATCH 0139] otptoken-add: improve the robustness of QR code printing to tty

2016-03-24 Thread Martin Babinsky
On 03/22/2016 12:28 PM, Martin Babinsky wrote: On 03/16/2016 02:17 PM, Martin Babinsky wrote: On 03/16/2016 01:35 PM, Nathaniel McCallum wrote: On Wed, 2016-03-16 at 07:25 +0100, Jan Cholasta wrote: On 15.3.2016 22:22, Nathaniel McCallum wrote: On Tue, 2016-03-15 at 17:54 +0100, Martin

Re: [Freeipa-devel] [PATCH 0139] otptoken-add: improve the robustness of QR code printing to tty

2016-03-22 Thread Martin Babinsky
On 03/16/2016 02:17 PM, Martin Babinsky wrote: On 03/16/2016 01:35 PM, Nathaniel McCallum wrote: On Wed, 2016-03-16 at 07:25 +0100, Jan Cholasta wrote: On 15.3.2016 22:22, Nathaniel McCallum wrote: On Tue, 2016-03-15 at 17:54 +0100, Martin Babinsky wrote: On 03/15/2016 03:36 PM, Martin

Re: [Freeipa-devel] [PATCH 0139] otptoken-add: improve the robustness of QR code printing to tty

2016-03-19 Thread Martin Babinsky
On 03/16/2016 01:35 PM, Nathaniel McCallum wrote: On Wed, 2016-03-16 at 07:25 +0100, Jan Cholasta wrote: On 15.3.2016 22:22, Nathaniel McCallum wrote: On Tue, 2016-03-15 at 17:54 +0100, Martin Babinsky wrote: On 03/15/2016 03:36 PM, Martin Babinsky wrote: On 03/09/2016 07:06 AM, Jan

Re: [Freeipa-devel] [PATCH 0139] otptoken-add: improve the robustness of QR code printing to tty

2016-03-19 Thread Nathaniel McCallum
On Wed, 2016-03-16 at 07:25 +0100, Jan Cholasta wrote: > On 15.3.2016 22:22, Nathaniel McCallum wrote: > > > > On Tue, 2016-03-15 at 17:54 +0100, Martin Babinsky wrote: > > > > > > On 03/15/2016 03:36 PM, Martin Babinsky wrote: > > > > > > > > > > > > On 03/09/2016 07:06 AM, Jan Cholasta

Re: [Freeipa-devel] [PATCH 0139] otptoken-add: improve the robustness of QR code printing to tty

2016-03-16 Thread Jan Cholasta
On 15.3.2016 22:22, Nathaniel McCallum wrote: On Tue, 2016-03-15 at 17:54 +0100, Martin Babinsky wrote: On 03/15/2016 03:36 PM, Martin Babinsky wrote: On 03/09/2016 07:06 AM, Jan Cholasta wrote: On 8.3.2016 17:45, Martin Babinsky wrote: On 03/08/2016 05:35 PM, Jan Cholasta wrote: Hi,

Re: [Freeipa-devel] [PATCH 0139] otptoken-add: improve the robustness of QR code printing to tty

2016-03-15 Thread Nathaniel McCallum
On Tue, 2016-03-15 at 17:54 +0100, Martin Babinsky wrote: > On 03/15/2016 03:36 PM, Martin Babinsky wrote: > > > > On 03/09/2016 07:06 AM, Jan Cholasta wrote: > > > > > > On 8.3.2016 17:45, Martin Babinsky wrote: > > > > > > > > On 03/08/2016 05:35 PM, Jan Cholasta wrote: > > > > > > > > > >

Re: [Freeipa-devel] [PATCH 0139] otptoken-add: improve the robustness of QR code printing to tty

2016-03-15 Thread Martin Babinsky
On 03/15/2016 03:36 PM, Martin Babinsky wrote: On 03/09/2016 07:06 AM, Jan Cholasta wrote: On 8.3.2016 17:45, Martin Babinsky wrote: On 03/08/2016 05:35 PM, Jan Cholasta wrote: Hi, On 8.3.2016 16:21, Martin Babinsky wrote: https://fedorahosted.org/freeipa/ticket/5700 1) Instead of

Re: [Freeipa-devel] [PATCH 0139] otptoken-add: improve the robustness of QR code printing to tty

2016-03-15 Thread Martin Babinsky
On 03/09/2016 07:06 AM, Jan Cholasta wrote: On 8.3.2016 17:45, Martin Babinsky wrote: On 03/08/2016 05:35 PM, Jan Cholasta wrote: Hi, On 8.3.2016 16:21, Martin Babinsky wrote: https://fedorahosted.org/freeipa/ticket/5700 1) Instead of checking for utf-8 in particular, I would prefer a more

Re: [Freeipa-devel] [PATCH 0139] otptoken-add: improve the robustness of QR code printing to tty

2016-03-08 Thread Jan Cholasta
On 8.3.2016 17:45, Martin Babinsky wrote: On 03/08/2016 05:35 PM, Jan Cholasta wrote: Hi, On 8.3.2016 16:21, Martin Babinsky wrote: https://fedorahosted.org/freeipa/ticket/5700 1) Instead of checking for utf-8 in particular, I would prefer a more robust approach: try: qr =

Re: [Freeipa-devel] [PATCH 0139] otptoken-add: improve the robustness of QR code printing to tty

2016-03-08 Thread Martin Babinsky
On 03/08/2016 05:35 PM, Jan Cholasta wrote: Hi, On 8.3.2016 16:21, Martin Babinsky wrote: https://fedorahosted.org/freeipa/ticket/5700 1) Instead of checking for utf-8 in particular, I would prefer a more robust approach: try: qr = qrcode.QRCode() qr.add_data('test')

Re: [Freeipa-devel] [PATCH 0139] otptoken-add: improve the robustness of QR code printing to tty

2016-03-08 Thread Jan Cholasta
Hi, On 8.3.2016 16:21, Martin Babinsky wrote: https://fedorahosted.org/freeipa/ticket/5700 1) Instead of checking for utf-8 in particular, I would prefer a more robust approach: try: qr = qrcode.QRCode() qr.add_data('test') qr.make() qr.print_ascii(tty=True) except