Show
Ignore:
Timestamp:
07/09/03 22:17:07 (21 years ago)
Author:
jalet
Message:

Email field added to PostgreSQL schema

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storages/pgstorage.py

    r1068 r1079  
    2121# 
    2222# $Log$ 
     23# Revision 1.7  2003/07/09 20:17:07  jalet 
     24# Email field added to PostgreSQL schema 
     25# 
    2326# Revision 1.6  2003/07/07 11:49:24  jalet 
    2427# Lots of small fixes with the help of PyChecker 
     
    283286        """Returns the list of users who uses a given printer, along with their quotas.""" 
    284287        usersandquotas = [] 
    285         result = self.doSearch("SELECT users.id as uid,username,balance,lifetimepaid,limitby,userpquota.id,lifepagecounter,pagecounter,softlimit,hardlimit,datelimit FROM users JOIN userpquota ON users.id=userpquota.userid AND printerid=%s ORDER BY username ASC" % self.doQuote(printer.ident)) 
     288        result = self.doSearch("SELECT users.id as uid,username,balance,lifetimepaid,limitby,email,userpquota.id,lifepagecounter,pagecounter,softlimit,hardlimit,datelimit FROM users JOIN userpquota ON users.id=userpquota.userid AND printerid=%s ORDER BY username ASC" % self.doQuote(printer.ident)) 
    286289        if result : 
    287290            for record in result : 
     
    292295                    user.AccountBalance = record.get("balance") 
    293296                    user.LifeTimePaid = record.get("lifetimepaid") 
    294                     user.Email = record.get("email")    # TODO : Always None here 
     297                    user.Email = record.get("email")  
    295298                    user.Exists = 1 
    296299                    userpquota = StorageUserPQuota(self, user, printer)