Re: [Freeipa-devel] [PATCH 0020] Add IntEnum parameter to ipalib

2013-10-09 Thread Petr Viktorin
On 10/08/2013 08:37 PM, Nathaniel McCallum wrote: On Tue, 2013-10-08 at 18:29 +0200, Petr Viktorin wrote: On 10/07/2013 11:28 PM, Nathaniel McCallum wrote: On Mon, 2013-10-07 at 13:22 +0200, Petr Viktorin wrote: On 10/04/2013 07:33 PM, Nathaniel McCallum wrote: This patch is preparatory for

Re: [Freeipa-devel] [PATCH 0020] Add IntEnum parameter to ipalib

2013-10-09 Thread Nathaniel McCallum
On Wed, 2013-10-09 at 10:23 +0200, Petr Viktorin wrote: On 10/08/2013 08:37 PM, Nathaniel McCallum wrote: On Tue, 2013-10-08 at 18:29 +0200, Petr Viktorin wrote: On 10/07/2013 11:28 PM, Nathaniel McCallum wrote: On Mon, 2013-10-07 at 13:22 +0200, Petr Viktorin wrote: On 10/04/2013 07:33

Re: [Freeipa-devel] [PATCH 0020] Add IntEnum parameter to ipalib

2013-10-09 Thread Petr Viktorin
On 10/09/2013 04:17 PM, Nathaniel McCallum wrote: On Wed, 2013-10-09 at 10:23 +0200, Petr Viktorin wrote: On 10/08/2013 08:37 PM, Nathaniel McCallum wrote: On Tue, 2013-10-08 at 18:29 +0200, Petr Viktorin wrote: On 10/07/2013 11:28 PM, Nathaniel McCallum wrote: On Mon, 2013-10-07 at 13:22

Re: [Freeipa-devel] [PATCH 0020] Add IntEnum parameter to ipalib

2013-10-09 Thread Nathaniel McCallum
On Wed, 2013-10-09 at 16:36 +0200, Petr Viktorin wrote: On 10/09/2013 04:17 PM, Nathaniel McCallum wrote: On Wed, 2013-10-09 at 10:23 +0200, Petr Viktorin wrote: On 10/08/2013 08:37 PM, Nathaniel McCallum wrote: On Tue, 2013-10-08 at 18:29 +0200, Petr Viktorin wrote: On 10/07/2013 11:28

Re: [Freeipa-devel] [PATCH 0020] Add IntEnum parameter to ipalib

2013-10-09 Thread Petr Viktorin
On 10/09/2013 05:44 PM, Nathaniel McCallum wrote: On Wed, 2013-10-09 at 16:36 +0200, Petr Viktorin wrote: On 10/09/2013 04:17 PM, Nathaniel McCallum wrote: On Wed, 2013-10-09 at 10:23 +0200, Petr Viktorin wrote: On 10/08/2013 08:37 PM, Nathaniel McCallum wrote: On Tue, 2013-10-08 at 18:29

Re: [Freeipa-devel] [PATCH 0020] Add IntEnum parameter to ipalib

2013-10-08 Thread Petr Viktorin
On 10/07/2013 11:28 PM, Nathaniel McCallum wrote: On Mon, 2013-10-07 at 13:22 +0200, Petr Viktorin wrote: On 10/04/2013 07:33 PM, Nathaniel McCallum wrote: This patch is preparatory for the OTP CLI patch. +def _convert_scalar(self, value, index=None): +return

Re: [Freeipa-devel] [PATCH 0020] Add IntEnum parameter to ipalib

2013-10-08 Thread Nathaniel McCallum
On Tue, 2013-10-08 at 18:29 +0200, Petr Viktorin wrote: On 10/07/2013 11:28 PM, Nathaniel McCallum wrote: On Mon, 2013-10-07 at 13:22 +0200, Petr Viktorin wrote: On 10/04/2013 07:33 PM, Nathaniel McCallum wrote: This patch is preparatory for the OTP CLI patch. +def

Re: [Freeipa-devel] [PATCH 0020] Add IntEnum parameter to ipalib

2013-10-07 Thread Petr Viktorin
On 10/04/2013 07:33 PM, Nathaniel McCallum wrote: This patch is preparatory for the OTP CLI patch. +def _convert_scalar(self, value, index=None): +return Int._convert_scalar(self, value, index=index) That won't work. In Python 2 unbound methods (such as Int._validate_scalar)

Re: [Freeipa-devel] [PATCH 0020] Add IntEnum parameter to ipalib

2013-10-07 Thread Nathaniel McCallum
On Mon, 2013-10-07 at 13:22 +0200, Petr Viktorin wrote: On 10/04/2013 07:33 PM, Nathaniel McCallum wrote: This patch is preparatory for the OTP CLI patch. +def _convert_scalar(self, value, index=None): +return Int._convert_scalar(self, value, index=index) That won't

[Freeipa-devel] [PATCH 0020] Add IntEnum parameter to ipalib

2013-10-04 Thread Nathaniel McCallum
This patch is preparatory for the OTP CLI patch. From 2e1f6213f9516c282857bc9138262a7501f3976f Mon Sep 17 00:00:00 2001 From: Nathaniel McCallum npmccal...@redhat.com Date: Mon, 30 Sep 2013 12:45:37 -0400 Subject: [PATCH] Add IntEnum parameter to ipalib --- ipalib/__init__.py | 2 +-