Changes between Version 1 and Version 2 of CookBookShortcutsOpenIDAuthentication


Ignore:
Timestamp:
Apr 16, 2006, 10:10:14 PM (19 years ago)
Author:
djangoproject.com@…
Comment:

tidying up

Legend:

Unmodified
Added
Removed
Modified
  • CookBookShortcutsOpenIDAuthentication

    v1 v2  
    9090#!python
    9191import cgi
    92 import openid
    9392import openid.store. filestore
    9493import openid.consumer.consumer
    9594from myproject.settings import OPENID_DATASTORE_PATH,SITE_TOP_URL
    96 global OID_CONSUMER
    9795}}}
    9896
     
    10098
    10199{{{
    102 <form method="post" action=".">
    103  
    104 <table>
    105 <tr><th><label for="id_url">OpenID URL:</label></th><td>{{ form.url }}</td>
    106 <td class="formError">{% if form.url.errors %}{{ form.url.errors|join:", " %}{% endif %}</td></tr>
    107 </table>
    108  
    109 <input type="submit" value="Authenticate"/>
    110  
    111 </form>
     100#!html
     101&lt;form method="post" action="."&gt;
     102
     103&lt;table&gt;
     104&lt;tr&gt;&lt;th&gt;&lt;label for="id_url"&gt;OpenID URL:&lt;/label&gt;&lt;/th&gt;&lt;td&gt;{{ form.url }}&lt;/td&gt;
     105&lt;td class="formError"&gt;{% if form.url.errors %}{{ form.url.errors|join:", " %}{% endif %}&lt;/td&gt;&lt;/tr&gt;
     106&lt;/table&gt;
     107
     108&lt;input type="submit" value="Authenticate"/&gt;
     109
     110&lt;/form&gt;
    112111}}}
Back to Top