Package: python-sqlalchemy
Version: 0.4.6-1
Severity: wishlist
Tags: patch

Sqlalchemy complains any time it sees the postgresql CIDR type (which
only differs from an INET in the fact that it checks that zero-bits in
the netmask are zero-bits in the address).

--- sqlalchemy/databases/postgres.py    2008-07-01 10:13:02.000000000 -0600
+++ sqlalchemy/databases/postgres.py    2008-07-01 10:14:10.000000000 -0600
@@ -32,6 +32,10 @@
     def get_col_spec(self):
         return "INET"
 
+class PGCidr(sqltypes.TypeEngine):
+    def get_col_spec(self):
+        return "CIDR"
+
 class PGMacAddr(sqltypes.TypeEngine):
     def get_col_spec(self):
         return "MACADDR"
@@ -200,6 +204,7 @@
     'float' : PGFloat,
     'real' : PGFloat,
     'inet': PGInet,
+    'cidr': PGCidr,
     'macaddr': PGMacAddr,
     'double precision' : PGFloat,
     'timestamp' : PGDateTime,

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-sqlalchemy depends on:
ii  python                        2.4.4-6    An interactive high-level object-o
ii  python-support                0.7.6      automated rebuilding support for p

python-sqlalchemy recommends no packages.

-- no debconf information

-- 
Eldon Koyle
System Administration Operations
Information Technology
Utah State University
-- 
BOFH excuse #284:
Electrons on a bender



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to