Permalink
Browse files

Removed mixpanel refs

  • Loading branch information...
1 parent 8c6f3f4 commit 9f0b796f28197c9ae5e37756dd051606e90c8a77 @iladriano iladriano committed Jan 10, 2012
Showing with 0 additions and 4 deletions.
  1. +0 −4 api/restapi.py
View
4 api/restapi.py
@@ -7,7 +7,6 @@
from models import Account, ScoreFunction, Package, Service
from flaptor.indextank.rpc import ttypes
-from views import mixpanel_event_track
from restresource import ProvisionerResource, Resource, JsonResponse, non_empty_argument, int_argument, required_data, optional_data, int_querystring, json_querystring, querystring_argument, required_querystring_argument, check_public_api, get_index_param, get_index_param_or404, wakeup_if_hibernated, authorized_method
@@ -682,7 +681,6 @@ def PUT(self, request, data, version, index_name, public_search=None):
return HttpResponse(status=204) # already exists
mail.report_new_index(index)
- mixpanel_event_track('use', { 'plan' : account.package.code, 'use-type': 'index creation', 'distinct_id': account.user.email})
# 201 OK : index created
return JsonResponse(metadata_for_index(index), status=201)
@@ -695,7 +693,6 @@ def DELETE(self, request, data, version, index):
return HttpResponse(status=204)
rpc.get_deploy_manager().delete_index(index.code)
mail.report_delete_index(index)
- mixpanel_event_track('use', { 'plan' : index.account.package.code, 'use-type': 'index deletion', 'distinct_id': index.account.user.email})
return HttpResponse()
@@ -1533,7 +1530,6 @@ def POST(self, request, data, plan=None, **kwargs):
account.apply_package(package)
account.save()
- mixpanel_event_track('signup', { 'plan' : package.code, 'signup_place': self.provisioner.name, 'distinct_id': account.user.email})
# create an index, using ApiClient
client = ApiClient(account.get_private_apiurl())

0 comments on commit 9f0b796

Please sign in to comment.