from portal.models import PendingUser, PendingSlice
import json
-# XXX sfa dependency, should be moved to SFA gateway
-from sfa.util.xrn import Xrn
+# Thierry: moving this right into the code so
+# most people can use myslice without having to install sfa
+# XXX tmp sfa dependency, should be moved to SFA gateway
+#from sfa.util.xrn import Xrn
# Get the list of authorities
try:
hrn = "%s.%s" % (request['authority_hrn'], request['login'])
+ # XXX tmp sfa dependency
+ from sfa.util.xrn import Xrn
urn = Xrn(hrn, request['type']).get_urn()
sfa_user_params = {
elif request['type'] == 'slice':
try:
hrn = "%s.%s" % (request['authority_hrn'], request['slice_name'])
+ # XXX tmp sfa dependency
+ from sfa.util.xrn import Xrn
urn = Xrn(hrn, request['type']).get_urn()
sfa_slice_params = {