]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/rm/plugins/davical.rb
Add a TODO item.
[mailshears.git] / lib / rm / plugins / davical.rb
index 86273cba6e5d2a31f0fb617b24a88f9088d523cc..04d5fbf024dde17e47375afa486d4359c897c9dd 100644 (file)
@@ -12,15 +12,12 @@ class DavicalRm
   include RmPlugin
 
 
-  def delete_domain(domain)
-    # DAViCal doesn't have a concept of domains.
-  end
-
-
   def delete_account(account)
     # Delete the given username. DAViCal uses foreign keys properly
     # and only supports postgres, so we let the ON DELETE CASCADE
     # trigger handle most of the work.
+    raise NonexistentAccountError.new(account) if not user_exists(account)
+
     sql_queries = ['DELETE FROM usr WHERE username = $1']
 
     begin
@@ -45,4 +42,5 @@ class DavicalRm
 
   end
 
+
 end