[jokosher-devel] [Patch] to ensure musical quality



In accord with the emerging standard for ensuring
musical quality under all Free and Open Source audio
apps I think we need to commit the attached patch as
soon as possible so we can join the fight against this
evil menace.

chris

P.S. In case you're wondering, jono threatened to
revoke my access if I actually comitted this... 


	
	
		
___________________________________________________________ 
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine 
http://uk.docs.yahoo.com/nowyoucan.html
Index: Project.py
===================================================================
--- Project.py	(revision 548)
+++ Project.py	(working copy)
@@ -30,6 +30,10 @@
 		# raise "The URI scheme used is invalid." message
 		raise CreateProjectError(5)
 
+	if author=="jono" and name=="death metal":
+		raise CreateProjectError(6)
+
+
 	filename = (name + ".jokosher")
 	projectdir = os.path.join(folder, name)
 
@@ -939,6 +943,7 @@
 		   3) Unable to create file. (Invalid permissions, read-only, or the disk is full)
 		   4) Invalid path, name or author
 		   5) Invalid uri passed for the project file
+		   6) Musical quality constraints violated
 		"""
 		Exception.__init__(self)
 		self.errno=errno
Index: NewProjectDialog.py
===================================================================
--- NewProjectDialog.py	(revision 548)
+++ NewProjectDialog.py	(working copy)
@@ -82,7 +82,9 @@
 				message = _("Invalid name or author.")
 			elif e.errno == 5:
 				message = _("The uri scheme given is either invalid or not supported")
-				
+			elif e.errno == 6:
+				message = _("Jokosher only supports quality music, please aquire musical taste and try again")
+
 			dlg = gtk.MessageDialog(self.dlg,
 				gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
 				gtk.MESSAGE_ERROR,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]