Changeset 1087 for pykota/trunk/pykota/storages/pgstorage.py
- Timestamp:
- 07/16/03 23:53:08 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/pgstorage.py
r1085 r1087 21 21 # 22 22 # $Log$ 23 # Revision 1.10 2003/07/16 21:53:08 jalet 24 # Really big modifications wrt new configuration file's location and content. 25 # 23 26 # Revision 1.9 2003/07/14 17:20:15 jalet 24 27 # Bug in postgresql storage when modifying the prices for a printer … … 333 336 def addUser(self, user) : 334 337 """Adds a user to the quota storage, returns its id.""" 335 self.doModify("INSERT INTO users (username, limitby, balance, lifetimepaid ) VALUES (%s, %s, %s, %s)" % (self.doQuote(user.Name), self.doQuote(user.LimitBy), self.doQuote(user.AccountBalance), self.doQuote(user.LifeTimePaid)))338 self.doModify("INSERT INTO users (username, limitby, balance, lifetimepaid, email) VALUES (%s, %s, %s, %s, %s)" % (self.doQuote(user.Name), self.doQuote(user.LimitBy), self.doQuote(user.AccountBalance), self.doQuote(user.LifeTimePaid), self.doQuote(user.Email))) 336 339 return self.getUser(user.Name) 337 340