wiking 2.2.0__py2.py3-none-any.whl
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.
- wiking/__init__.py +58 -0
- wiking/application.py +662 -0
- wiking/cms/__init__.py +47 -0
- wiking/cms/appl.py +424 -0
- wiking/cms/cms.py +5879 -0
- wiking/cms/configuration.py +186 -0
- wiking/cms/crypto.py +263 -0
- wiking/cms/texts.py +124 -0
- wiking/cms/users.py +1912 -0
- wiking/configuration.py +676 -0
- wiking/db.py +2995 -0
- wiking/dbdefs/__init__.py +20 -0
- wiking/dbdefs/sql/cms_add_email_label.sql +7 -0
- wiking/dbdefs/sql/cms_add_text_label.sql +11 -0
- wiking/dbdefs/sql/cms_attachments_after_update_trigger.sql +15 -0
- wiking/dbdefs/sql/cms_crypto_change_password.sql +16 -0
- wiking/dbdefs/sql/cms_crypto_cook_passwords.sql +16 -0
- wiking/dbdefs/sql/cms_crypto_copy_key.sql +17 -0
- wiking/dbdefs/sql/cms_crypto_delete_key.sql +10 -0
- wiking/dbdefs/sql/cms_crypto_extract_key.sql +14 -0
- wiking/dbdefs/sql/cms_crypto_insert_key.sql +8 -0
- wiking/dbdefs/sql/cms_crypto_lock_passwords.sql +2 -0
- wiking/dbdefs/sql/cms_crypto_unlock_passwords.sql +4 -0
- wiking/dbdefs/sql/cms_crypto_unlocked_passwords_insert_trigger.sql +4 -0
- wiking/dbdefs/sql/cms_discussions_trigger_before_insert.sql +9 -0
- wiking/dbdefs/sql/cms_f_all_user_roles.sql +4 -0
- wiking/dbdefs/sql/cms_f_insert_or_update_user.sql +13 -0
- wiking/dbdefs/sql/cms_f_role_member.sql +7 -0
- wiking/dbdefs/sql/cms_page_tree_order.sql +6 -0
- wiking/dbdefs/sql/cms_page_tree_published.sql +6 -0
- wiking/dbdefs/sql/cms_pages_update_order.sql +24 -0
- wiking/dbdefs/sql/cms_update_session_history.sql +11 -0
- wiking/dbdefs/sql/expanded_role.sql +9 -0
- wiking/dbdefs/sql/f_update_cached_tables.sql +65 -0
- wiking/dbdefs/sql/f_update_cached_tables_after.sql +7 -0
- wiking/dbdefs/sql/role_sets_cycle_check.sql +6 -0
- wiking/dbdefs/sql/role_sets_trigger_after.sql +6 -0
- wiking/dbdefs/sql/unrelated_roles.sql +2 -0
- wiking/dbdefs/sql/update_user_roles.sql +13 -0
- wiking/dbdefs/wiking_cms.py +1653 -0
- wiking/dbdefs/wiking_db.py +78 -0
- wiking/export.py +389 -0
- wiking/handler.py +416 -0
- wiking/mod_python_interface.py +171 -0
- wiking/modules.py +658 -0
- wiking/request.py +1389 -0
- wiking/resources/css/default.css +1233 -0
- wiking/resources/css/discussion.css +61 -0
- wiking/resources/images/shadow.png +0 -0
- wiking/resources/images/wiking-icons.png +0 -0
- wiking/resources/newsletter-template.html +99 -0
- wiking/resources/scripts/discussion.js +187 -0
- wiking/resources/scripts/wiking-cms.js +119 -0
- wiking/resources/scripts/wiking.js +385 -0
- wiking/test.py +460 -0
- wiking/translations/cs/LC_MESSAGES/wiking-cms.mo +0 -0
- wiking/translations/cs/LC_MESSAGES/wiking.mo +0 -0
- wiking/translations/de/LC_MESSAGES/wiking-cms.mo +0 -0
- wiking/translations/de/LC_MESSAGES/wiking.mo +0 -0
- wiking/translations/es/LC_MESSAGES/wiking-cms.mo +0 -0
- wiking/translations/es/LC_MESSAGES/wiking.mo +0 -0
- wiking/translations/fr/LC_MESSAGES/wiking-cms.mo +0 -0
- wiking/translations/fr/LC_MESSAGES/wiking.mo +0 -0
- wiking/translations/hu/LC_MESSAGES/wiking-cms.mo +0 -0
- wiking/translations/hu/LC_MESSAGES/wiking.mo +0 -0
- wiking/translations/it/LC_MESSAGES/wiking-cms.mo +0 -0
- wiking/translations/it/LC_MESSAGES/wiking.mo +0 -0
- wiking/translations/no/LC_MESSAGES/wiking-cms.mo +0 -0
- wiking/translations/no/LC_MESSAGES/wiking.mo +0 -0
- wiking/translations/pl/LC_MESSAGES/wiking-cms.mo +0 -0
- wiking/translations/pl/LC_MESSAGES/wiking.mo +0 -0
- wiking/translations/po/LC_MESSAGES/wiking-cms.mo +0 -0
- wiking/translations/po/LC_MESSAGES/wiking.mo +0 -0
- wiking/translations/ro/LC_MESSAGES/wiking-cms.mo +0 -0
- wiking/translations/ro/LC_MESSAGES/wiking.mo +0 -0
- wiking/translations/sk/LC_MESSAGES/wiking-cms.mo +0 -0
- wiking/translations/sk/LC_MESSAGES/wiking.mo +0 -0
- wiking/util.py +3084 -0
- wiking/wsgi_interface.py +205 -0
- wiking-2.2.0.dist-info/METADATA +42 -0
- wiking-2.2.0.dist-info/RECORD +83 -0
- wiking-2.2.0.dist-info/WHEEL +5 -0
- wiking-2.2.0.dist-info/licenses/COPYING +340 -0
wiking/__init__.py
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Copyright (C) 2006-2016 OUI Technology Ltd.
|
|
4
|
+
# Copyright (C) 2019-2025 Tomáš Cerha <t.cerha@gmail.com>
|
|
5
|
+
#
|
|
6
|
+
# This program is free software; you can redistribute it and/or modify
|
|
7
|
+
# it under the terms of the GNU General Public License as published by
|
|
8
|
+
# the Free Software Foundation; either version 2 of the License, or
|
|
9
|
+
# (at your option) any later version.
|
|
10
|
+
#
|
|
11
|
+
# This program is distributed in the hope that it will be useful,
|
|
12
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
+
# GNU General Public License for more details.
|
|
15
|
+
#
|
|
16
|
+
# You should have received a copy of the GNU General Public License
|
|
17
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
18
|
+
|
|
19
|
+
__version__ = '2.2.0'
|
|
20
|
+
|
|
21
|
+
from .util import ( # noqa: F401
|
|
22
|
+
DBG, EVT, OPR,
|
|
23
|
+
Abort, AuthenticationError, AuthenticationProvider, AuthenticationRedirect,
|
|
24
|
+
AuthorizationError, BadRequest, Binding, Channel, ChannelContent, ConfirmationDialog,
|
|
25
|
+
CookieAuthenticationProvider, Date, DateTime, DecryptionDialog, Document,
|
|
26
|
+
Forbidden, HTTPBasicAuthenticationProvider, HtmlContent, IFrame, InputForm,
|
|
27
|
+
InternalServerError, LanguageSelection, LoginControl, LoginDialog, MailAttachment,
|
|
28
|
+
MaximizedModeControl, MenuItem, Message, ModuleInstanceResolver, NotAcceptable, NotFound,
|
|
29
|
+
NotModified, Panel, PasswordStorage,
|
|
30
|
+
Pbkdf2Md5PasswordStorage, Pbkdf2PasswordStorage, PermanentRedirect, PlainTextPasswordStorage,
|
|
31
|
+
Redirect, RequestError, Response, RssWriter, ServiceUnavailable,
|
|
32
|
+
Specification, TZInfo, Theme, Time, TopBarControl, UniversalPasswordStorage,
|
|
33
|
+
UnsaltedMd5PasswordStorage, WikingDefaultDataClass, WikingResolver,
|
|
34
|
+
ajax_response, format_http_date, generate_random_string, log, module,
|
|
35
|
+
parse_http_date, pdf_document, send_mail, serve_file, validate_email_address, breakpoint,
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
from .request import ( # noqa: F401
|
|
39
|
+
ClosedConnection, FileUpload, Request, Role, Roles, ServerInterface, User,
|
|
40
|
+
)
|
|
41
|
+
from .modules import ( # noqa: F401
|
|
42
|
+
ActionHandler, Documentation, Module, Reload, RequestHandler, Resources,
|
|
43
|
+
Robots, Search, Session, SiteIcon, SubmenuRedirect,
|
|
44
|
+
)
|
|
45
|
+
from .db import ( # noqa: F401
|
|
46
|
+
APIProvider, CachedTables, CachingPytisModule, CbCachingPytisModule, DBException,
|
|
47
|
+
PytisModule, PytisRssModule, RssModule,
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
from .application import Application # noqa: F401
|
|
51
|
+
from .export import Exporter, MinimalExporter # noqa: F401
|
|
52
|
+
from .handler import Handler # noqa: F401
|
|
53
|
+
|
|
54
|
+
from lcg import log as debug # noqa: F401
|
|
55
|
+
|
|
56
|
+
# Initialize the global configuration object 'wiking.cfg'.
|
|
57
|
+
from .configuration import Configuration, ApplicationConfiguration # noqa: F401
|
|
58
|
+
cfg = Configuration()
|