Permalink
Browse files

Removed unused code from api

    - Removed a few lines that were thought to be required for future
      features. One step at a time.

Change-Id: I0ae88d6144dacec717eac97a8f28ae17d2acad06
  • Loading branch information...
1 parent 2a8689e commit 5ac8138062549a0e5f10465fb305b7f2cca65258 @a8 a8 committed Jun 19, 2012
Showing with 0 additions and 10 deletions.
  1. +0 −10 codespeed/api.py
View
@@ -274,10 +274,6 @@ def _populate_by_obj(self):
self.obj.branch = self.obj.revision.branch
#self.obj.result = self.obj
setattr(self.obj, 'result', self.obj)
- # TODO (a8): add user to models
- setattr(self.obj, 'user', User.objects.get(pk=1))
- #setattr(self.obj, 'user', None)
- #setattr(self.obj, 'notify', None)
def _check_data(self):
"""See if all mandatory data is there"""
@@ -375,8 +371,6 @@ class ResultBundleResource(Resource):
benchmark = fields.ToOneField(BenchmarkResource, 'benchmark')
environment = fields.ToOneField(EnvironmentResource, 'environment')
result = fields.ToOneField(ResultResource, 'result')
- #user = fields.ToOneField(UserResource, 'user', null=True)
- #notify = fields.CharField(attribute='notify', null=True)
class Meta:
resource_name = 'benchmark-result'
@@ -418,10 +412,6 @@ def obj_get(self, request=None, **kwargs):
result.project = result.executable.project
result.branch = result.revision.branch
setattr(result, 'result', result)
- # TODO (a8): add user to models
- #setattr(result, 'user', User.objects.get(pk=1))
- #setattr(result, 'user', None)
- #setattr(result, 'notify', None)
return result
def obj_create(self, bundle, request=None, **kwargs):

0 comments on commit 5ac8138

Please sign in to comment.