Skip to content

Commit

Permalink
complete remote regist_dealer class
Browse files Browse the repository at this point in the history
  • Loading branch information
jhs2jhs committed Jun 23, 2012
1 parent 5395a71 commit 2298c8b
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions django/dataware/catalog/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
from libauth.models import Registration
from libauth.models import REGIST_STATUS, REGIST_TYPE, REQUEST_MEDIA, TOKEN_TYPE
from libauth.models import find_key_by_value_regist_type, find_key_by_value_regist_status, find_key_by_value_regist_request_media
from libauth.views import regist_steps, regist_dealer
#from libauth.views import method_regist_init, method_registrant_request, method_registrant_owner_redirect, method_registrant_owner_grant, method_registrant_confirm
from libauth.views import regist_steps

def hello(request):
#return HttpResponse("Hello, catalog")
Expand All @@ -22,30 +21,8 @@ def hello_slibs(request):
return HttpResponse('hello, dataware shared libs')

regist_callback_me = 'http://localhost:8000/catalog/regist'

'''
class regist_dealer_catalog(regist_dealer):
def regist_init(self):
return method_regist_init(self.request)
def registrant_request(self):
return method_registrant_request(self.request, regist_callback_me)
def register_owner_redirect(self): pass
def register_owner_grant(self): pass
def register_grant(self): pass
def registrant_owner_redirect(self):
return method_registrant_owner_redirect(self.request, regist_callback_me)
def registrant_owner_grant(self):
return method_registrant_owner_grant(self.request, regist_callback_me)
def registrant_confirm(self):
return method_registrant_confirm(self.request, regist_callback_me)
def register_activate(self): pass
def regist_finish(self): pass
'''

#@login_required
def regist(request):
# if no correct status is matched
#return regist_steps(regist_dealer_catalog(request), request)
return regist_steps(request, regist_callback_me)


Expand Down

0 comments on commit 2298c8b

Please sign in to comment.