its quite easy to add this type in.  im not exactly sure what python
type it should accept/return so you can start with just this patch:

Index: lib/sqlalchemy/databases/postgres.py
===================================================================
--- lib/sqlalchemy/databases/postgres.py        (revision 2199)
+++ lib/sqlalchemy/databases/postgres.py        (working copy)
@@ -32,6 +32,10 @@
    except:
        psycopg = None

+class Inet(sqltypes.TypeEngine):
+    def get_col_spec(self):
+        return "INET"
+
class PGNumeric(sqltypes.Numeric):
    def get_col_spec(self):
        if not self.precision:
@@ -161,6 +165,7 @@
    'numeric' : PGNumeric,
    'float' : PGFloat,
    'real' : PGFloat,
+    'inet': Inet,
    'double precision' : PGFloat,
    'timestamp' : PG2DateTime,
    'timestamp with time zone' : PG2DateTime,

additionally you can skip the reflection step and/or override the Inet
columns with any old type explicitly to avoid the failing dictionary
lookup (if you dont feel like using the above patch).


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to