File: //usr/lib/python3/dist-packages/trac/__pycache__/api.cpython-310.pyc
o
�k�` � @ s0 d dl mZ G dd� de�ZG dd� de�ZdS )� )� Interfacec @ s e Zd ZdZdd� ZdS )�ISystemInfoProviderzjProvider of system information, displayed in the "About Trac"
page and in internal error reports.
c C � dS )z�Yield a sequence of `(name, version)` tuples describing the
name and version information of external packages used by a
component.
N� r r r �*/usr/lib/python3/dist-packages/trac/api.py�get_system_info � z#ISystemInfoProvider.get_system_infoN)�__name__�
__module__�__qualname__�__doc__r r r r r r s r c @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) �IEnvironmentSetupParticipanta� Extension point interface for components that need to participate in
the creation and upgrading of Trac environments, for example to create
additional database tables.
Please note that `IEnvironmentSetupParticipant` instances are called in
arbitrary order. If your upgrades must be ordered consistently, please
implement the ordering in a single `IEnvironmentSetupParticipant`. See
the database upgrade infrastructure in Trac core for an example.
c C r )z.Called when a new Trac environment is created.Nr r r r r �environment_created( r z0IEnvironmentSetupParticipant.environment_createdc C r )z�Called when Trac checks whether the environment needs to be
upgraded.
Should return `True` if this participant needs an upgrade to
be performed, `False` otherwise.
Nr r r r r �environment_needs_upgrade+ r z6IEnvironmentSetupParticipant.environment_needs_upgradec C r )a� Actually perform an environment upgrade.
Implementations of this method don't need to commit any
database transactions. This is done implicitly for each
participant if the upgrade succeeds without an error being
raised.
However, if the `upgrade_environment` consists of small,
restartable, steps of upgrade, it can decide to commit on its
own after each successful step.
Nr r r r r �upgrade_environment3 r z0IEnvironmentSetupParticipant.upgrade_environmentN)r r
r r r r r r r r r r
s
r
N)� trac.corer r r
r r r r �<module> s