wikidot 3.1.0.dev4__tar.gz → 3.1.0.dev6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {wikidot-3.1.0.dev4/src/wikidot.egg-info → wikidot-3.1.0.dev6}/PKG-INFO +1 -1
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/pyproject.toml +1 -1
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/module/page.py +15 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/module/site.py +2 -3
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6/src/wikidot.egg-info}/PKG-INFO +1 -1
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/LICENSE +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/MANIFEST.in +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/README.md +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/setup.cfg +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/__init__.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/common/__init__.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/common/decorators.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/common/exceptions.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/common/logger.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/connector/__init__.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/connector/ajax.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/connector/api.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/module/__init__.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/module/auth.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/module/client.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/module/forum.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/module/forum_category.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/module/forum_group.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/module/forum_post.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/module/forum_thread.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/module/page_revision.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/module/page_source.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/module/page_votes.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/module/private_message.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/module/site_application.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/module/user.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/util/__init__.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/util/parser/__init__.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/util/parser/odate.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/util/parser/user.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/util/quick_module.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/util/requestutil.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/util/stringutil.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/util/table/__init__.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot/util/table/char_table.py +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot.egg-info/SOURCES.txt +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot.egg-info/dependency_links.txt +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot.egg-info/requires.txt +0 -0
- {wikidot-3.1.0.dev4 → wikidot-3.1.0.dev6}/src/wikidot.egg-info/top_level.txt +0 -0
|
@@ -717,3 +717,18 @@ class Page:
|
|
|
717
717
|
comment,
|
|
718
718
|
force_edit,
|
|
719
719
|
)
|
|
720
|
+
|
|
721
|
+
def set_tags(self, tags: list[str]):
|
|
722
|
+
# TODO: setter/getterにする
|
|
723
|
+
self.site.client.login_check()
|
|
724
|
+
self.site.amc_request(
|
|
725
|
+
[
|
|
726
|
+
{
|
|
727
|
+
"tags": " ".join(tags),
|
|
728
|
+
"action": "WikiPageAction",
|
|
729
|
+
"event": "saveTags",
|
|
730
|
+
"pageId": self.id,
|
|
731
|
+
"moduleName": "Empty",
|
|
732
|
+
}
|
|
733
|
+
]
|
|
734
|
+
)
|
|
@@ -7,12 +7,11 @@ import httpx
|
|
|
7
7
|
from wikidot.common import exceptions
|
|
8
8
|
from wikidot.common.decorators import login_required
|
|
9
9
|
from wikidot.module.forum import Forum
|
|
10
|
-
from wikidot.module.page import PageCollection, SearchPagesQuery
|
|
10
|
+
from wikidot.module.page import Page, PageCollection, SearchPagesQuery
|
|
11
11
|
from wikidot.module.site_application import SiteApplication
|
|
12
12
|
|
|
13
13
|
if TYPE_CHECKING:
|
|
14
14
|
from wikidot.module.client import Client
|
|
15
|
-
from wikidot.module.page import Page
|
|
16
15
|
from wikidot.module.user import User
|
|
17
16
|
|
|
18
17
|
|
|
@@ -91,7 +90,7 @@ class SitePageMethods:
|
|
|
91
90
|
force_edit: bool
|
|
92
91
|
ページが存在する場合に上書きするかどうか
|
|
93
92
|
"""
|
|
94
|
-
Page.create_or_edit(
|
|
93
|
+
return Page.create_or_edit(
|
|
95
94
|
site=self.site,
|
|
96
95
|
fullname=fullname,
|
|
97
96
|
title=title,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|