Commits

Richard Jones committed c68b0bd

update the scheme_host when necessary too; document the HTTPS location for openid

Comments (0)

Files changed (2)

             self.url = "https"+self.url[4:]
             self.pydotorg = '/'
             self.files_url = "https"+self.files_url[4:]
+            self.scheme_host = urlunsplit(urlsplit(self.url)[:2]+('','',''))
 
     def make_http(self):
         if self.url.startswith("https:"):
             self.url = "http"+self.url[5:]
             self.pydotorg = self.orig_pydotorg
             self.files_url = "http"+self.files_url[5:]
+            self.scheme_host = urlunsplit(urlsplit(self.url)[:2]+('','',''))

templates/register.pt

     You can use your PyPI account to log into other services supporting <a href="http://en.wikipedia.org/wiki/OpenID">OpenID</a>.
     You need to first log into PyPI before logging into other services (doing it the other way is prone to phishing attacks).
     To log in, simply type <b>pypi.python.org</b> into the field asking for an OpenID. Your OpenID is
-    <b>http://pypi.python.org/id/<span tal:replace="data/name"/></b>; you can also use this ID directly to log in.
+    <b>https://pypi.python.org/id/<span tal:replace="data/name"/></b>; you can also use this ID directly to log in.
     </p>
     <form tal:attributes="action app/url_path" method="POST">
       <input type="hidden" name=":action" value="user" />
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.