diff frontend/mfrontend/exceptions.py @ 7:d86794939fe4

Rejestracja użytkowników
author Michał Rudowicz <michal.rudowicz@fl9.eu>
date Mon, 28 Feb 2011 11:34:20 +0100
parents 27d63cac76ac
children c87f82a15606
line wrap: on
line diff
--- a/frontend/mfrontend/exceptions.py	Mon Feb 28 11:14:35 2011 +0100
+++ b/frontend/mfrontend/exceptions.py	Mon Feb 28 11:34:20 2011 +0100
@@ -12,3 +12,9 @@
         pass
     def __str__(self):
         return u"Błędna nazwa użytkownika lub hasło."
+
+class UserExists(Exception):
+    def __init__(self):
+        pass
+    def __str__(self):
+        return u"Użytkownik o takiej nazwie jest już zarejestrowany."