Jesper Nøhr avatar Jesper Nøhr committed 1c13041

removing mentions of bitbucket

Comments (0)

Files changed (2)

piston/authentication.py

         This will usually be a `HttpResponse` object with
         some kind of challenge headers and 401 code on it.
     """
-    def __init__(self, auth_func=django_auth, realm='Bitbucket.org API'):
+    def __init__(self, auth_func=django_auth, realm='API'):
         self.auth_func = auth_func
         self.realm = realm
 
     response = HttpResponse(err.message.encode('utf-8'))
     response.status_code = 401
 
-    realm = 'Bitbucket.org OAuth'
+    realm = 'OAuth'
     header = oauth.build_authenticate_header(realm=realm)
 
     for k, v in header.iteritems():
     """
     OAuth authentication. Based on work by Leah Culver.
     """
-    def __init__(self, realm='Bitbucket.org HTTP'):
+    def __init__(self, realm='API'):
         self.realm = realm
         self.builder = oauth.build_authenticate_header
     
         """
         response = HttpResponse()
         response.status_code = 401
-        realm = 'Bitbucket.org OAuth'
+        realm = 'API'
 
         for k, v in self.builder(realm=realm).iteritems():
             response[k] = v
         super(Consumer, self).save(**kwargs)
         
         if self.id and self.user:
-            subject = "Bitbucket API Consumer"
+            subject = "API Consumer"
             rcpt = [ self.user.email, ]
 
             if self.status == "accepted":
             body = loader.render_to_string(template, 
                     { 'consumer': self, 'user': self.user })
                     
-            send_mail(subject, body, 'api-noreply@bitbucket.org', 
+            send_mail(subject, body, settings.DEFAULT_FROM_EMAIL, 
                         rcpt, fail_silently=True)
             
             if self.status == 'pending':
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.