-from sfa.util.enumeration import Enum
-
-GENICODE = Enum(
- SUCCESS=0,
- BADARGS=1,
- ERROR=2,
- FORBIDDEN=3,
- BADVERSION=4,
- SERVERERROR=5,
- TOOBIG=6,
- REFUSED=7,
- TIMEDOUT=8,
- DBERROR=9,
- RPCERROR=10,
- UNAVAILABLE=11,
- SEARCHFAILED=12,
- UNSUPPORTED=13,
- BUSY=14,
- EXPIRED=15,
- INPORGRESS=16,
- ALREADYEXISTS=17
-)
-
+#----------------------------------------------------------------------\r
+# Copyright (c) 2008 Board of Trustees, Princeton University\r
+#\r
+# Permission is hereby granted, free of charge, to any person obtaining\r
+# a copy of this software and/or hardware specification (the "Work") to\r
+# deal in the Work without restriction, including without limitation the\r
+# rights to use, copy, modify, merge, publish, distribute, sublicense,\r
+# and/or sell copies of the Work, and to permit persons to whom the Work\r
+# is furnished to do so, subject to the following conditions:\r
+#\r
+# The above copyright notice and this permission notice shall be\r
+# included in all copies or substantial portions of the Work.\r
+#\r
+# THE WORK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS \r
+# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF \r
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND \r
+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT \r
+# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, \r
+# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, \r
+# OUT OF OR IN CONNECTION WITH THE WORK OR THE USE OR OTHER DEALINGS \r
+# IN THE WORK.\r
+#----------------------------------------------------------------------\r
+\r
+from sfa.util.enumeration import Enum\r
+\r
+GENICODE = Enum(\r
+ SUCCESS=0,\r
+ BADARGS=1,\r
+ ERROR=2,\r
+ FORBIDDEN=3,\r
+ BADVERSION=4,\r
+ SERVERERROR=5,\r
+ TOOBIG=6,\r
+ REFUSED=7,\r
+ TIMEDOUT=8,\r
+ DBERROR=9,\r
+ RPCERROR=10,\r
+ UNAVAILABLE=11,\r
+ SEARCHFAILED=12,\r
+ UNSUPPORTED=13,\r
+ BUSY=14,\r
+ EXPIRED=15,\r
+ INPORGRESS=16,\r
+ ALREADYEXISTS=17 \r
+) \r