Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Unified Diff: rietveld.py

Issue 10704111: Allow apply_issue.py to make api calls to rietveld that don't require (Closed) Base URL: http://src.chromium.org/svn/trunk/tools/depot_tools/
Patch Set: Removed default for --email option Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « apply_issue.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: rietveld.py
===================================================================
--- rietveld.py (revision 145588)
+++ rietveld.py (working copy)
@@ -47,6 +47,12 @@
extra_headers=extra_headers or {})
else:
self.rpc_server = upload.GetRpcServer(url, email)
+ # If email is given as an empty string, then assume we want to make
+ # requests that do not need authentication. Bypass authentication by
+ # setting the flag to True.
+ if email == '':
+ self.rpc_server.authenticated = True
+
self._xsrf_token = None
self._xsrf_token_time = None
« no previous file with comments | « apply_issue.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698