VirtualMailManager/MailLocation.py
changeset 122 30abf0abf8f8
parent 102 485d3f7d6981
child 133 2d5c4745efec
--- a/VirtualMailManager/MailLocation.py	Thu Aug 20 03:28:26 2009 +0000
+++ b/VirtualMailManager/MailLocation.py	Thu Aug 20 06:12:33 2009 +0000
@@ -14,13 +14,14 @@
 
 RE_MAILLOCATION = """^\w{1,20}$"""
 
-class MailLocation:
+class MailLocation(object):
     """A wrapper class thats provide access to the maillocation table"""
+    __slots__ = ('__id', '__maillocation', '_dbh')
     def __init__(self, dbh, mid=None, maillocation=None):
         """Creates a new MailLocation instance.
 
         Either mid or maillocation must be specified.
-        
+
         Keyword arguments:
         dbh -- a pyPgSQL.PgSQL.connection
         mid -- the id of a maillocation (long)