Mercurial > p > roundup > code
comparison roundup/cgi/actions.py @ 2373:b48fcae8b2ad maint-0.7
couple of bugfixes
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 28 May 2004 01:03:53 +0000 |
| parents | c69b67905043 |
| children | 9e1c4c932323 |
comparison
equal
deleted
inserted
replaced
| 2371:65bb0e974f20 | 2373:b48fcae8b2ad |
|---|---|
| 1 #$Id: actions.py,v 1.27.2.2 2004-05-23 23:26:30 richard Exp $ | 1 #$Id: actions.py,v 1.27.2.3 2004-05-28 01:03:53 richard Exp $ |
| 2 | 2 |
| 3 import re, cgi, StringIO, urllib, Cookie, time, random | 3 import re, cgi, StringIO, urllib, Cookie, time, random |
| 4 | 4 |
| 5 from roundup import hyperdb, token, date, password, rcsv, exceptions | 5 from roundup import hyperdb, token, date, password, rcsv, exceptions |
| 6 from roundup.i18n import _ | 6 from roundup.i18n import _ |
| 573 | 573 |
| 574 # re-open the database as "admin" | 574 # re-open the database as "admin" |
| 575 if self.user != 'admin': | 575 if self.user != 'admin': |
| 576 self.client.opendb('admin') | 576 self.client.opendb('admin') |
| 577 self.db = self.client.db | 577 self.db = self.client.db |
| 578 otks = self.db.getOTKManager() | |
| 578 | 579 |
| 579 # change the password | 580 # change the password |
| 580 newpw = password.generatePassword() | 581 newpw = password.generatePassword() |
| 581 | 582 |
| 582 cl = self.db.user | 583 cl = self.db.user |
