~jcsackett/launchpad/series-need-usage-attributes-643902

« back to all changes in this revision

Viewing changes to lib/canonical/launchpad/doc/account.txt

  • Committer: Ian Booth
  • Date: 2010-09-14 21:32:16 UTC
  • mfrom: (11542 launchpad)
  • mto: This revision was merged to the branch mainline in revision 11564.
  • Revision ID: ian.booth@canonical.com-20100914213216-2cg4edr4sbglh1wo
Code review fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
196
196
    >>> account.status = AccountStatus.ACTIVE
197
197
    >>> login('no-priv@canonical.com')
198
198
 
199
 
An Account has an OpenID identifier used to generate the OpenID identity
200
 
URL.
 
199
An Account has at least one OpenID identifier used to generate the
 
200
OpenID identity URL.
201
201
 
202
 
    >>> print account.openid_identifier
203
 
    no-priv_oid
 
202
    >>> account.openid_identifiers.any().identifier
 
203
    u'no-priv_oid'
204
204
 
205
205
 
206
206
Creating new accounts
339
339
 
340
340
    >>> db_policy = getUtility(IStoreSelector).pop()
341
341
 
342
 
 
343
 
OpenID identifiers
344
 
------------------
345
 
 
346
 
The account is given an openid identifier. The identifier is created directly
347
 
in the database; it not available until the account object is synced.
348
 
 
349
 
    >>> new_account = account_set.new(
350
 
    ...     AccountCreationRationale.OWNER_CREATED_LAUNCHPAD, 'OID Account',
351
 
    ...     password=u'clear_password')
352
 
    >>> syncUpdate(new_account)
353
 
    >>> len(new_account.openid_identifier) == 7
354
 
    True