first draft of the Xrn class, designed to replace sfa.util.namespace
[sfa.git] / sfa / util / namespace.py
index 3ed03ab..961b3b3 100644 (file)
@@ -1,5 +1,21 @@
-### $Id$
-### $URL$
+#
+#  WARNING - This file should be soon deprecated in favor of sfa.util.xrn
+#
+#
+#  WARNING - This file should be soon deprecated in favor of sfa.util.xrn
+#
+#
+#  WARNING - This file should be soon deprecated in favor of sfa.util.xrn
+#
+#
+#  WARNING - This file should be soon deprecated in favor of sfa.util.xrn
+#
+#
+#  WARNING - This file should be soon deprecated in favor of sfa.util.xrn
+#
+#
+#  WARNING - This file should be soon deprecated in favor of sfa.util.xrn
+#
 import re
 from sfa.util.faults import *
 URN_PREFIX = "urn:publicid:IDN"
@@ -94,7 +110,7 @@ def urn_to_hrn(urn):
          
     # Remove the authority name (e.g. '.sa')
     if type == 'authority':
-        urn_parts = hrn_parts[:-1]
+        urn_parts = urn_parts[:-1]
 
     # convert hrn_parts (list) into hrn (str) by doing the following
     # 1. remove blank elements