Changeset 1999
- Timestamp:
- 01/01/05 09:16:17 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/sql.py
r1992 r1999 22 22 # 23 23 # $Log$ 24 # Revision 1.63 2005/01/01 08:16:17 jalet 25 # Fixed a problem which occured when 'limitby' was unset in the PostgreSQL 26 # database 27 # 24 28 # Revision 1.62 2004/12/21 16:19:44 jalet 25 29 # Fixed the problem with dumpykota's filtering of printers groups membership … … 262 266 user.ident = fields.get("id") 263 267 user.Name = fields.get("username", username) 264 user.LimitBy = fields.get("limitby") 268 user.LimitBy = fields.get("limitby") or "quota" 265 269 user.AccountBalance = fields.get("balance") 266 270 user.LifeTimePaid = fields.get("lifetimepaid") … … 277 281 group.ident = fields.get("id") 278 282 group.Name = fields.get("groupname", groupname) 279 group.LimitBy = fields.get("limitby") 283 group.LimitBy = fields.get("limitby") or "quota" 280 284 group.AccountBalance = fields.get("balance") 281 285 group.LifeTimePaid = fields.get("lifetimepaid") … … 363 367 user = StorageUser(self, record.get("username")) 364 368 user.ident = record.get("userid") 365 user.LimitBy = record.get("limitby") 369 user.LimitBy = record.get("limitby") or "quota" 366 370 user.AccountBalance = record.get("balance") 367 371 user.LifeTimePaid = record.get("lifetimepaid") … … 422 426 user = StorageUser(self, record.get("username")) 423 427 user.ident = record.get("uid") 424 user.LimitBy = record.get("limitby") 428 user.LimitBy = record.get("limitby") or "quota" 425 429 user.AccountBalance = record.get("balance") 426 430 user.LifeTimePaid = record.get("lifetimepaid")