File: existing.rst

package info (click to toggle)
python-fedora 1.1.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,436 kB
  • sloc: python: 3,362; xml: 107; makefile: 14
file content (70 lines) | stat: -rw-r--r-- 1,908 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
=================
Existing Services
=================

There are many Services in Fedora.  Many of these have an interface that we
can query and get back information as :term:`JSON` data.  There is
documentation here about both the services and the client modules that can
access them.

.. _`Fedora-Account-System`:
.. _`FAS`:

---------------------
Fedora Account System
---------------------

FAS is the Fedora Account System.  It holds the account data for all of our
contributors.

.. toctree::
    :maxdepth: 2

.. autoclass:: fedora.client.AccountSystem
    :members:
    :undoc-members:

Threadsafe Account System Access
================================

It is not safe to use a single instance of the
:class:`~fedora.client.AccountSystem` object in multiple threads.  This is
because instance variables are used to hold some connection-specific
information (for instance, the user who is logging in).  For this reason, we
also provide the :class:`fedora.client.FasProxyClient` object.

This is especially handy when writing authn and authz adaptors that talk to
fas from a multithreaded webserver.

.. toctree::
    :maxdepth: 2

.. autoclass:: fedora.client.FasProxyClient
    :members:
    :undoc-members:

.. _`Bodhi`:

------------------------
Bodhi, the Update Server
------------------------

Bodhi is used to push updates from the build system to the download
repositories.  It lets packagers send packages to the testing repository or to
the update repository.

pythyon-fedora currently supports both the old Bodhi1 interface and the new
Bodhi2 interface.  By using ``fedora.client.BodhiCLient``, the correct one
should be returned to you depending on what is running live on Fedora
Infrastructure servers.

.. toctree::
    :maxdepth: 2

.. autoclass:: fedora.client.Bodhi2Client
    :members:
    :undoc-members:

.. autoclass:: fedora.client.Bodhi1Client
    :members:
    :undoc-members: