Permalink
Browse files

reduce rendevous server logging

  • Loading branch information...
1 parent 8de3528 commit 272cace2a9700827647a1ca9fa0dcce4dae8bae4 @netguy204 committed Mar 16, 2012
Showing with 10 additions and 10 deletions.
  1. +10 −10 hosted-server/mymedia.py
View
@@ -24,8 +24,8 @@ def get(self):
code.code = code_str
code.put()
- spawn_event(self, REQUEST_CODE_USEREVENT,
- code=code.code).put()
+ #spawn_event(self, REQUEST_CODE_USEREVENT,
+ # code=code.code).put()
with_template(self, 'code.xml', { 'code': code })
@@ -39,9 +39,9 @@ def post(self):
try:
code = DeviceRegistration.for_code(code_str)
except:
- spawn_event(self, CODEFAILED_USEREVENT,
- code=code_str,
- regtype=regtype_str).put()
+ #spawn_event(self, CODEFAILED_USEREVENT,
+ # code=code_str,
+ # regtype=regtype_str).put()
with_template(self, 'index.html', {
'error': "The code %s is not recognized" % code_str})
@@ -58,9 +58,9 @@ def post(self):
code.date = datetime.datetime.now()
code.put()
- spawn_event(self, REGISTER_USEREVENT,
- code=code_str,
- regtype=regtype_str).put()
+ #spawn_event(self, REGISTER_USEREVENT,
+ # code=code_str,
+ # regtype=regtype_str).put()
self.redirect('/walkthrough')
@@ -70,8 +70,8 @@ def get(self):
code_str = self.request.get('code')
code = DeviceRegistration.for_code(code_str)
- spawn_event(self, REQUEST_STATUS_USEREVENT,
- code=code_str).put()
+ #spawn_event(self, REQUEST_STATUS_USEREVENT,
+ # code=code_str).put()
with_template(self, "state.xml", { 'code': code })

0 comments on commit 272cace

Please sign in to comment.