[Nym3-commit] r503 - trunk/nymbaron/Server
laurent at conuropsis.org
laurent at conuropsis.org
Tue Mar 21 17:19:38 CET 2006
Author: laurent
Date: 2006-03-21 17:19:37 +0100 (Tue, 21 Mar 2006)
New Revision: 503
Modified:
trunk/nymbaron/Server/Config.py
Log:
Introduce the `purgeAfter' option, to expire accounts.
Modified: trunk/nymbaron/Server/Config.py
===================================================================
--- trunk/nymbaron/Server/Config.py 2006-03-21 16:13:25 UTC (rev 502)
+++ trunk/nymbaron/Server/Config.py 2006-03-21 16:19:37 UTC (rev 503)
@@ -117,6 +117,11 @@
"""The path to a script to execute upon successful new account
creation"""
+ self.purgeAfter = None
+ """Time without activity after which accounts are ready for deletion
+ expressed in days.
+ """
+
if filename:
config = ConfigParser.RawConfigParser()
config.read(filename)
@@ -137,6 +142,8 @@
for k in self.default_settings.keys():
if config.has_option('accounts', k):
self.default_settings[k] = config.get('accounts', k)
+ if config.has_option('accounts', 'purgeAfter'):
+ self.purgeAfter = float(config.get('accounts', 'purgeAfter'))
if config.has_section('logging'):
if config.has_option('logging', 'logfile'):
More information about the Nym3-commit
mailing list