File: //usr/lib/python3/dist-packages/trac/wiki/__pycache__/admin.cpython-310.pyc
o
�k�`�* � @ s� d dl Z d dlZd dlZd dlT d dlmZ d dlT d dlmZ d dl m
Z
d dlmZm
Z
d dlmZmZ d dlmZmZmZmZmZmZ d d lmZ G d
d� de�ZdS )� N)�*)�IEnvironmentSetupParticipant)�model)�
WikiSystem)�lazy� read_file)�format_datetime�from_utimestamp)�path_to_unicode�print_table�printout�
to_unicode�
unicode_quote�unicode_unquote)�_c @ s� e Zd ZdZeee� dd� Zedd� �Z d4dd�Z
d d
� Zg dfdd
�Zg g dfdd�Z
dd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zd4dd�Zd4d d!�Zd"d#� Zd$d%� Zd&d'� Zd(d)� Zd5d*d+�Zd,d-� Zd.d/� Zd0d1� Zd2d3� ZdS )6� WikiAdminz4trac-admin command provider for wiki administration.c c s� � dddd | j fV ddd| j| jfV ddd | j| jfV d
dd| j| jfV d
dd| j| jfV ddd| j| jfV ddd| j | j
fV ddd| j | jfV dddd | jfV d S )Nz wiki list� zList wiki pageszwiki renamez<page> <new_name>zRename wiki pagezwiki removez<page>zRemove wiki pagezwiki exportz
<page> [file]z"Export wiki page to file or stdoutzwiki importz#Import wiki page from file or stdinz wiki dumpz<directory> [page] [...]a8 Export wiki pages to files named by title
Individual wiki page names can be specified after the directory.
A name ending with a * means that all wiki pages starting with
that prefix should be dumped. If no name is specified, all wiki
pages are dumped.z wiki loadz<path> [...]z�Import wiki pages from files
If a given path is a file, it is imported as a page with the
name of the file. If a path is a directory, all files in that
directory are imported.zwiki replacea� Replace content of wiki pages from files (DANGEROUS!)
This command replaces the content of the last version of one
or more wiki pages with new content. The previous content is
lost, and no new entry is created in the page history. The
metadata of the page (time, author) is not changed either.
If a given path is a file, it is imported as a page with the
name of the file. If a path is a directory, all files in that
directory are imported.
WARNING: This operation results in the loss of the previous
content and cannot be undone. It may be advisable to backup
the current content using "wiki dump" beforehand.zwiki upgradez-Upgrade default wiki pages to current version)
�_do_list�_complete_page�
_do_rename�
_do_remove�_complete_import_export�
_do_export�
_do_import�_complete_dump�_do_dump�_complete_load_replace�_do_load�_do_replace�_do_upgrade��self� r"