~geser/launchpadlib/toc

« back to all changes in this revision

Viewing changes to src/launchpadlib/credentials.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2009-03-23 21:50:35 UTC
  • mfrom: (36.1.6 launchpadlib)
  • Revision ID: launchpad@pqm.canonical.com-20090323215035-tda8p74bhhb61mft
MergeĀ fromĀ lp:~gary/launchpadlib/buildout

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
# This file is part of launchpadlib.
4
4
#
5
 
# launchpadlib is free software: you can redistribute it and/or modify
6
 
# it under the terms of the GNU Lesser General Public License as
7
 
# published by the Free Software Foundation, either version 3 of the
8
 
# License, or (at your option) any later version.
9
 
#
10
 
# launchpadlib is distributed in the hope that it will be useful, but
11
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
 
# Lesser General Public License for more details.
14
 
#
15
 
# You should have received a copy of the GNU Lesser General Public
16
 
# License along with launchpadlib.  If not, see
17
 
# <http://www.gnu.org/licenses/>.
 
5
# launchpadlib is free software: you can redistribute it and/or modify it
 
6
# under the terms of the GNU Lesser General Public License as published by the
 
7
# Free Software Foundation, version 3 of the License.
 
8
#
 
9
# launchpadlib is distributed in the hope that it will be useful, but WITHOUT
 
10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 
11
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
 
12
# for more details.
 
13
#
 
14
# You should have received a copy of the GNU Lesser General Public License
 
15
# along with launchpadlib. If not, see <http://www.gnu.org/licenses/>.
18
16
 
19
17
"""launchpadlib credentials and authentication support."""
20
18
 
25
23
    'Credentials',
26
24
    ]
27
25
 
 
26
from ConfigParser import SafeConfigParser
28
27
import cgi
29
28
import httplib2
 
29
from oauth.oauth import OAuthConsumer, OAuthToken
30
30
from urllib import urlencode
31
31
 
32
 
from ConfigParser import SafeConfigParser
33
32
from launchpadlib.errors import CredentialsFileError, HTTPError
34
 
from launchpadlib._oauth.oauth import OAuthConsumer, OAuthToken
35
33
 
36
34
 
37
35
CREDENTIALS_FILE_VERSION = '1'