--- a/server/hookhelper.py Thu May 14 10:24:56 2009 +0200
+++ b/server/hookhelper.py Thu May 14 11:38:40 2009 +0200
@@ -42,7 +42,7 @@
for session in repo._sessions.values():
if ueid == session.user.eid:
yield session
-
+
# mail related ################################################################
@@ -58,17 +58,17 @@
else:
assert recipients is None
self.to_send = []
- super(SendMailOp, self).__init__(session, **kwargs)
-
+ super(SendMailOp, self).__init__(session, **kwargs)
+
def register(self, session):
previous = super(SendMailOp, self).register(session)
if previous:
self.to_send = previous.to_send + self.to_send
-
+
def commit_event(self):
self.repo.threaded_task(self.sendmails)
- def sendmails(self):
+ def sendmails(self):
server, port = self.config['smtp-host'], self.config['smtp-port']
SMTP_LOCK.acquire()
try:
@@ -89,7 +89,7 @@
smtp.close()
finally:
SMTP_LOCK.release()
-
+
# state related ###############################################################