Mercurial > p > roundup > code
comparison roundup/roundupdb.py @ 2149:702f9a6afdcf
Added DEFAULT_TIMEZONE. Fixed up some missing info from What's New.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 26 Mar 2004 23:45:34 +0000 |
| parents | 7d886a79ab67 |
| children | 643f9c9d7517 |
comparison
equal
deleted
inserted
replaced
| 2148:2490d26c88df | 2149:702f9a6afdcf |
|---|---|
| 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" | 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 17 # | 17 # |
| 18 # $Id: roundupdb.py,v 1.103 2004-03-22 00:15:34 richard Exp $ | 18 # $Id: roundupdb.py,v 1.104 2004-03-26 23:45:34 richard Exp $ |
| 19 | 19 |
| 20 """Extending hyperdb with types specific to issue-tracking. | 20 """Extending hyperdb with types specific to issue-tracking. |
| 21 """ | 21 """ |
| 22 __docformat__ = 'restructuredtext' | 22 __docformat__ = 'restructuredtext' |
| 23 | 23 |
| 54 timezone = int(self.user.get(userid, 'timezone')) | 54 timezone = int(self.user.get(userid, 'timezone')) |
| 55 except (KeyError, ValueError, TypeError): | 55 except (KeyError, ValueError, TypeError): |
| 56 # If there is no class 'user' or current user doesn't have timezone | 56 # If there is no class 'user' or current user doesn't have timezone |
| 57 # property or that property is not numeric assume he/she lives in | 57 # property or that property is not numeric assume he/she lives in |
| 58 # Greenwich :) | 58 # Greenwich :) |
| 59 timezone = 0 | 59 timezone = self.config.get('DEFAULT_TIMEZONE', 0) |
| 60 return timezone | 60 return timezone |
| 61 | 61 |
| 62 def confirm_registration(self, otk): | 62 def confirm_registration(self, otk): |
| 63 props = self.getOTKManager().getall(otk) | 63 props = self.getOTKManager().getall(otk) |
| 64 for propname, proptype in self.user.getprops().items(): | 64 for propname, proptype in self.user.getprops().items(): |
