1
Copyright 2010 Canonical Ltd. This software is licensed under the
2
GNU Affero General Public License version 3 (see the file LICENSE).
4
= Read-Only Mode and the SSO =
6
There is no warning on the SSO server about the Launchpad read-only mode,
7
as it is not affected by this mode.
9
>>> from canonical.config import config
10
>>> def push_read_only_mode(flag):
11
... config.push('read only mode', """
13
... read_only: %s""" % str(flag))
14
>>> def pop_read_only_mode():
15
... config.pop('read only mode')
16
>>> push_read_only_mode(True)
18
>>> user_browser.open('http://openid.launchpad.dev')
19
>>> print first_tag_by_class(
20
... user_browser.contents, 'warning message')
23
>>> pop_read_only_mode()