1. PyPA
  2. Python Packaging Authority Projects
  3. pypi


pypi / templates / register.pt

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
  <metal:fill fill-slot="body">

    <p tal:condition="python:not data['openid_fields'] and data['new_user']">
    This form allows "traditional" registration (using a password).
    Users who want to register with their OpenID (e.g. Google,
    myOpenID or Launchpad account) should follow one of the links
    to the right.
    <p tal:condition="not:data/new_user">
    This form allows to modify your PyPI account information, and to delete your account.
    <form tal:attributes="action app/url_path" method="POST"
        <input type="hidden" name=":action" value="delete_user" />
	<input type="submit" value="Delete account"/>
    <tal:block tal:condition="data/owns_packages">You cannot delete your account since you
    are still listed as owner of some packages.</tal:block>
    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>https://pypi.python.org/id/<span tal:replace="data/name"/></b>; you can also use this ID directly to log in.
    <form tal:attributes="action app/url_path" method="POST">
      <input type="hidden" name=":action" value="user" />
      <input type="hidden" name="name" tal:condition="not:data/new_user"
	     tal:attributes="value data/name"/>
      <tal:block tal:repeat="field data/openid_fields">
       <input type="hidden" tal:attributes="name python:field[0];value python:field[1].decode('utf-8')"/>
      <table class="form">
	  <td tal:condition="data/new_user"><input name="name" tal:attributes="value data/name"/></td>
	  <td tal:condition="not:data/new_user" tal:content="data/name"></td>
	<tal:block tal:condition="not:data/openid_fields">
	  <td><input type="password" name="password"/></td>
	  <td><input type="password" name="confirm" /></td>
        <tr tal:condition="data/openid">
          <td tal:content="data/openid"/>
	  <th>Email Address:</th>
	  <td><input name="email" tal:attributes="value data/email" /></td>
	  <th>PGP Key ID (optional):</th>
	  <td><input name="gpg_keyid" tal:attributes="value data/gpg_keyid" />
          (This identifies a <a
          href="http://www.gnupg.org/documentation/howtos.html">PGP or GPG
	  <td><input type="submit" tal:attributes="value data/action" /></td>

  <p>Please ensure your password is of a reasonable length (>8 characters) and
    mixes letters, cases and numbers. Please don't use the same password
    as with other services.</p>

    <tal:block tal:condition="data/new_user">
      <p><b>A confirmation email will be sent to the address you nominate above.</b></p>
      <p>Please ensure you will be able to receive email from cheeseshop@python.org
      (check any "sender confirmation" systems you might be using.)</p>
      <p>To complete the registration process, you must visit the link indicated in the

    <tal:block tal:condition="not:data/new_user">
      <form tal:attributes="action app/url_path" method="POST" tal:repeat="key data/sshkeys">
      <input type="hidden" name=":action" value="delkey" />
      <input type="hidden" name="id" tal:attributes="value key/id" />
      <textarea name="key" cols="50" rows="4" readonly="1" tal:content="key/key"/>
      <input type="submit" value="Delete this key"/>
      <form tal:attributes="action app/url_path" method="POST">
      <input type="hidden" name=":action" value="addkey" />
      <textarea name="key" cols="50" rows="4"> </textarea>
      <input type="submit" value="Add SSH key"/>

    <tal:block tal:condition="data/openids">
     <p>Your OpenIDs:</p>
       <li tal:repeat="curid data/openids"><span tal:replace="curid/id"/>
       <form tal:attributes="action app/url_path" method="POST">
        <input type="hidden" name=":action" value="dropid"/>
        <input type="hidden" name="openid" tal:attributes="value curid/id"/>
        <input type="submit" value="Drop this ID"/>

    <p tal:condition="not:data/new_user">Claim OpenID, either from one of these providers:
     <tal:block tal:repeat="prov data/providers">
      <a style="border: none;" tal:attributes="href prov/claim"><img width="16" height="16" tal:attributes="src prov/favicon; title prov/title; alt prov/title"/></a>
    or enter your ID explicitly:
      <input type='hidden' name=':action' value='claim'/>
      <input name='openid_identifier' size='60'/>
      <input type='submit' value='Claim'/>