pboot 3.2.0__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.
pboot/wrappers.py ADDED
@@ -0,0 +1,255 @@
1
+ from __future__ import annotations
2
+
3
+ import typing as t
4
+
5
+ from werkzeug.exceptions import BadRequest
6
+ from werkzeug.exceptions import HTTPException
7
+ from werkzeug.wrappers import Request as RequestBase
8
+ from werkzeug.wrappers import Response as ResponseBase
9
+
10
+ from . import json
11
+ from .globals import current_app
12
+ from .helpers import _split_blueprint_path
13
+
14
+ if t.TYPE_CHECKING: # pragma: no cover
15
+ from werkzeug.routing import Rule
16
+
17
+
18
+ class Request(RequestBase):
19
+ """The request object used by default in Pboot. Remembers the
20
+ matched endpoint and view arguments.
21
+
22
+ It is what ends up as :class:`~pboot.request`. If you want to replace
23
+ the request object used you can subclass this and set
24
+ :attr:`~pboot.Pboot.request_class` to your subclass.
25
+
26
+ The request object is a :class:`~werkzeug.wrappers.Request` subclass and
27
+ provides all of the attributes Werkzeug defines plus a few Pboot
28
+ specific ones.
29
+ """
30
+
31
+ json_module: t.Any = json
32
+
33
+ #: The internal URL rule that matched the request. This can be
34
+ #: useful to inspect which methods are allowed for the URL from
35
+ #: a before/after handler (``request.url_rule.methods``) etc.
36
+ #: Though if the request's method was invalid for the URL rule,
37
+ #: the valid list is available in ``routing_exception.valid_methods``
38
+ #: instead (an attribute of the Werkzeug exception
39
+ #: :exc:`~werkzeug.exceptions.MethodNotAllowed`)
40
+ #: because the request was never internally bound.
41
+ #:
42
+ #: .. versionadded:: 0.6
43
+ url_rule: Rule | None = None
44
+
45
+ #: A dict of view arguments that matched the request. If an exception
46
+ #: happened when matching, this will be ``None``.
47
+ view_args: dict[str, t.Any] | None = None
48
+
49
+ #: If matching the URL failed, this is the exception that will be
50
+ #: raised / was raised as part of the request handling. This is
51
+ #: usually a :exc:`~werkzeug.exceptions.NotFound` exception or
52
+ #: something similar.
53
+ routing_exception: HTTPException | None = None
54
+
55
+ _max_content_length: int | None = None
56
+ _max_form_memory_size: int | None = None
57
+ _max_form_parts: int | None = None
58
+
59
+ @property
60
+ def max_content_length(self) -> int | None:
61
+ """The maximum number of bytes that will be read during this request. If
62
+ this limit is exceeded, a 413 :exc:`~werkzeug.exceptions.RequestEntityTooLarge`
63
+ error is raised. If it is set to ``None``, no limit is enforced at the
64
+ Pboot application level. However, if it is ``None`` and the request has
65
+ no ``Content-Length`` header and the WSGI server does not indicate that
66
+ it terminates the stream, then no data is read to avoid an infinite
67
+ stream.
68
+
69
+ Each request defaults to the :data:`MAX_CONTENT_LENGTH` config, which
70
+ defaults to ``None``. It can be set on a specific ``request`` to apply
71
+ the limit to that specific view. This should be set appropriately based
72
+ on an application's or view's specific needs.
73
+
74
+ .. versionchanged:: 3.1
75
+ This can be set per-request.
76
+
77
+ .. versionchanged:: 0.6
78
+ This is configurable through Pboot config.
79
+ """
80
+ if self._max_content_length is not None:
81
+ return self._max_content_length
82
+
83
+ if not current_app:
84
+ return super().max_content_length
85
+
86
+ return current_app.config["MAX_CONTENT_LENGTH"] # type: ignore[no-any-return]
87
+
88
+ @max_content_length.setter
89
+ def max_content_length(self, value: int | None) -> None:
90
+ self._max_content_length = value
91
+
92
+ @property
93
+ def max_form_memory_size(self) -> int | None:
94
+ """The maximum size in bytes any non-file form field may be in a
95
+ ``multipart/form-data`` body. If this limit is exceeded, a 413
96
+ :exc:`~werkzeug.exceptions.RequestEntityTooLarge` error is raised. If it
97
+ is set to ``None``, no limit is enforced at the Pboot application level.
98
+
99
+ Each request defaults to the :data:`MAX_FORM_MEMORY_SIZE` config, which
100
+ defaults to ``500_000``. It can be set on a specific ``request`` to
101
+ apply the limit to that specific view. This should be set appropriately
102
+ based on an application's or view's specific needs.
103
+
104
+ .. versionchanged:: 3.1
105
+ This is configurable through Pboot config.
106
+ """
107
+ if self._max_form_memory_size is not None:
108
+ return self._max_form_memory_size
109
+
110
+ if not current_app:
111
+ return super().max_form_memory_size
112
+
113
+ return current_app.config["MAX_FORM_MEMORY_SIZE"] # type: ignore[no-any-return]
114
+
115
+ @max_form_memory_size.setter
116
+ def max_form_memory_size(self, value: int | None) -> None:
117
+ self._max_form_memory_size = value
118
+
119
+ @property # type: ignore[override]
120
+ def max_form_parts(self) -> int | None:
121
+ """The maximum number of fields that may be present in a
122
+ ``multipart/form-data`` body. If this limit is exceeded, a 413
123
+ :exc:`~werkzeug.exceptions.RequestEntityTooLarge` error is raised. If it
124
+ is set to ``None``, no limit is enforced at the Pboot application level.
125
+
126
+ Each request defaults to the :data:`MAX_FORM_PARTS` config, which
127
+ defaults to ``1_000``. It can be set on a specific ``request`` to apply
128
+ the limit to that specific view. This should be set appropriately based
129
+ on an application's or view's specific needs.
130
+
131
+ .. versionchanged:: 3.1
132
+ This is configurable through Pboot config.
133
+ """
134
+ if self._max_form_parts is not None:
135
+ return self._max_form_parts
136
+
137
+ if not current_app:
138
+ return super().max_form_parts
139
+
140
+ return current_app.config["MAX_FORM_PARTS"] # type: ignore[no-any-return]
141
+
142
+ @max_form_parts.setter
143
+ def max_form_parts(self, value: int | None) -> None:
144
+ self._max_form_parts = value
145
+
146
+ @property
147
+ def endpoint(self) -> str | None:
148
+ """The endpoint that matched the request URL.
149
+
150
+ This will be ``None`` if matching failed or has not been
151
+ performed yet.
152
+
153
+ This in combination with :attr:`view_args` can be used to
154
+ reconstruct the same URL or a modified URL.
155
+ """
156
+ if self.url_rule is not None:
157
+ return self.url_rule.endpoint # type: ignore[no-any-return]
158
+
159
+ return None
160
+
161
+ @property
162
+ def blueprint(self) -> str | None:
163
+ """The registered name of the current blueprint.
164
+
165
+ This will be ``None`` if the endpoint is not part of a
166
+ blueprint, or if URL matching failed or has not been performed
167
+ yet.
168
+
169
+ This does not necessarily match the name the blueprint was
170
+ created with. It may have been nested, or registered with a
171
+ different name.
172
+ """
173
+ endpoint = self.endpoint
174
+
175
+ if endpoint is not None and "." in endpoint:
176
+ return endpoint.rpartition(".")[0]
177
+
178
+ return None
179
+
180
+ @property
181
+ def blueprints(self) -> list[str]:
182
+ """The registered names of the current blueprint upwards through
183
+ parent blueprints.
184
+
185
+ This will be an empty list if there is no current blueprint, or
186
+ if URL matching failed.
187
+
188
+ .. versionadded:: 2.0.1
189
+ """
190
+ name = self.blueprint
191
+
192
+ if name is None:
193
+ return []
194
+
195
+ return _split_blueprint_path(name)
196
+
197
+ def _load_form_data(self) -> None:
198
+ super()._load_form_data()
199
+
200
+ # In debug mode we're replacing the files multidict with an ad-hoc
201
+ # subclass that raises a different error for key errors.
202
+ if (
203
+ current_app
204
+ and current_app.debug
205
+ and self.mimetype != "multipart/form-data"
206
+ and not self.files
207
+ ):
208
+ from .debughelpers import attach_enctype_error_multidict
209
+
210
+ attach_enctype_error_multidict(self)
211
+
212
+ def on_json_loading_failed(self, e: ValueError | None) -> t.Any:
213
+ try:
214
+ return super().on_json_loading_failed(e)
215
+ except BadRequest as ebr:
216
+ if current_app and current_app.debug:
217
+ raise
218
+
219
+ raise BadRequest() from ebr
220
+
221
+
222
+ class Response(ResponseBase):
223
+ """The response object that is used by default in Pboot. Works like the
224
+ response object from Werkzeug but is set to have an HTML mimetype by
225
+ default. Quite often you don't have to create this object yourself because
226
+ :meth:`~pboot.Pboot.make_response` will take care of that for you.
227
+
228
+ If you want to replace the response object used you can subclass this and
229
+ set :attr:`~pboot.Pboot.response_class` to your subclass.
230
+
231
+ .. versionchanged:: 1.0
232
+ JSON support is added to the response, like the request. This is useful
233
+ when testing to get the test client response data as JSON.
234
+
235
+ .. versionchanged:: 1.0
236
+
237
+ Added :attr:`max_cookie_size`.
238
+ """
239
+
240
+ default_mimetype: str | None = "text/html"
241
+
242
+ json_module = json
243
+
244
+ @property
245
+ def max_cookie_size(self) -> int: # type: ignore
246
+ """Read-only view of the :data:`MAX_COOKIE_SIZE` config key.
247
+
248
+ See :attr:`~werkzeug.wrappers.Response.max_cookie_size` in
249
+ Werkzeug's docs.
250
+ """
251
+ if current_app:
252
+ return current_app.config["MAX_COOKIE_SIZE"] # type: ignore[no-any-return]
253
+
254
+ # return Werkzeug's default when not in an app context
255
+ return super().max_cookie_size
@@ -0,0 +1,194 @@
1
+ Metadata-Version: 2.4
2
+ Name: pboot
3
+ Version: 3.2.0
4
+ Summary: A simple framework for building complex web applications.
5
+ Maintainer: pboot-org
6
+ Requires-Python: >=3.11
7
+ Description-Content-Type: text/markdown
8
+ License-Expression: BSD-3-Clause
9
+ Classifier: Development Status :: 5 - Production/Stable
10
+ Classifier: Environment :: Web Environment
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
15
+ Classifier: Topic :: Internet :: WWW/HTTP :: WSGI
16
+ Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application
17
+ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
18
+ Classifier: Typing :: Typed
19
+ License-File: LICENSE.txt
20
+ Requires-Dist: blinker>=1.9.0
21
+ Requires-Dist: click>=8.1.3
22
+ Requires-Dist: itsdangerous>=2.2.0
23
+ Requires-Dist: jinja2>=3.1.2
24
+ Requires-Dist: markupsafe>=2.1.1
25
+ Requires-Dist: werkzeug>=3.1.0
26
+ Requires-Dist: asgiref>=3.2 ; extra == "async"
27
+ Requires-Dist: python-dotenv ; extra == "dotenv"
28
+ Project-URL: Changes, https://gitee.com/pboot-org/pboot/blob/main/CHANGES.rst
29
+ Project-URL: Chat, https://gitee.com/pboot-org/pboot/issues
30
+ Project-URL: Documentation, https://gitee.com/pboot-org/pboot
31
+ Project-URL: Donate, https://gitee.com/pboot-org/pboot
32
+ Project-URL: Source, https://gitee.com/pboot-org/pboot/
33
+ Provides-Extra: async
34
+ Provides-Extra: dotenv
35
+
36
+ <div align="center">
37
+ <img src="docs/_static/pboot-logo.svg" alt="Pboot" height="140">
38
+ </div>
39
+
40
+ # Pboot
41
+
42
+ **Pboot** 是一个轻量级的 [WSGI] Web 应用框架,目标是让项目启动足够快,同时又能平滑扩展到复杂应用。
43
+
44
+ ```python
45
+ from pboot import Pboot
46
+
47
+ app = Pboot(__name__)
48
+
49
+
50
+ @app.route("/")
51
+ def hello():
52
+ return "Hello, Pboot!"
53
+ ```
54
+
55
+ ```console
56
+ $ pboot run
57
+ * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
58
+ ```
59
+
60
+ ## 特性
61
+
62
+ - **轻量**:核心只依赖 [Werkzeug]、[Jinja]、[Click]、[ItsDangerous]、[MarkupSafe] 与 [Blinker]
63
+ - **灵活**:Pboot 只提供建议,不强制依赖或项目结构,开发者可以自由选择工具链
64
+ - **可扩展**:通过统一的扩展接口,ORM、缓存、CSRF、HTTP 安全头等能力按需接入
65
+ - **完备**:内置路由、模板、会话、蓝图、信号、测试客户端与 CLI
66
+
67
+ ## 安装
68
+
69
+ ```console
70
+ $ pip install pboot
71
+ ```
72
+
73
+ ## 生态
74
+
75
+ | 扩展 | 说明 |
76
+ | --- | --- |
77
+ | [pboot-pbatis](https://gitee.com/pboot-org/pboot-pbatis) | 基于 [pbatis](https://gitee.com/pboot-org/pbatis) ORM 的数据库支持 |
78
+ | [pboot-wtf](https://gitee.com/pboot-org/pboot-wtf) | 表单渲染、校验、CSRF 防护与文件上传 |
79
+ | [pboot-caching](https://gitee.com/pboot-org/pboot-caching) | 多后端缓存支持 |
80
+ | [pboot-talisman](https://gitee.com/pboot-org/pboot-talisman) | HTTP 安全响应头 |
81
+ | [pboot-mongoengine](https://gitee.com/pboot-org/pboot-mongoengine) | MongoEngine 集成 |
82
+
83
+ ## 核心概念
84
+
85
+ ### 应用与路由
86
+
87
+ ```python
88
+ from pboot import Pboot
89
+
90
+ app = Pboot(__name__)
91
+
92
+
93
+ @app.route("/users/<int:user_id>")
94
+ def show_user(user_id):
95
+ return f"User {user_id}"
96
+
97
+
98
+ @app.post("/users")
99
+ def create_user():
100
+ return "created", 201
101
+ ```
102
+
103
+ ### 蓝图
104
+
105
+ ```python
106
+ from pboot import Blueprint
107
+
108
+ bp = Blueprint("api", __name__)
109
+
110
+
111
+ @bp.route("/ping")
112
+ def ping():
113
+ return "pong"
114
+ ```
115
+
116
+ ### 模板
117
+
118
+ ```python
119
+ from pboot import render_template
120
+
121
+
122
+ @app.route("/hello/<name>")
123
+ def hello(name):
124
+ return render_template("hello.html", name=name)
125
+ ```
126
+
127
+ ### 配置
128
+
129
+ 配置来自多种来源,按优先级从高到低依次为:
130
+
131
+ 1. 直接传给 `Pboot(...)` 的构造参数
132
+ 2. 环境变量
133
+ 3. 配置文件
134
+ 4. 默认值
135
+
136
+ ```python
137
+ app.config["SECRET_KEY"] = "your-secret"
138
+ ```
139
+
140
+ ## 命令行
141
+
142
+ ```console
143
+ $ pboot --help
144
+ $ pboot run --port 8080
145
+ $ pboot routes
146
+ $ pboot shell
147
+ ```
148
+
149
+ ## 测试
150
+
151
+ Pboot 提供测试客户端与独立的测试运行器:
152
+
153
+ ```python
154
+ from pboot import Pboot
155
+
156
+ app = Pboot(__name__)
157
+
158
+
159
+ @app.route("/")
160
+ def index():
161
+ return "ok"
162
+
163
+
164
+ def test_index():
165
+ client = app.test_client()
166
+ assert client.get("/").data == b"ok"
167
+ ```
168
+
169
+ ## 环境变量
170
+
171
+ | 变量 | 说明 |
172
+ | --- | --- |
173
+ | `PBOOT_APP` | 指定要加载的应用或工厂函数 |
174
+ | `PBOOT_DEBUG` | 开启调试模式 |
175
+ | `PBOOT_RUN_PORT` | 指定开发服务器端口 |
176
+ | `PBOOT_SKIP_DOTENV` | 跳过 `.pbootenv` / `.env` 加载 |
177
+
178
+ ## 参与贡献
179
+
180
+ 问题反馈、功能建议与代码贡献都欢迎通过
181
+ [pboot-org/pboot](https://gitee.com/pboot-org/pboot/issues) 提交。
182
+
183
+ ## 许可证
184
+
185
+ BSD-3-Clause,详见 [LICENSE.txt](LICENSE.txt)。
186
+
187
+ [WSGI]: https://wsgi.readthedocs.io/
188
+ [Werkzeug]: https://werkzeug.palletsprojects.com/
189
+ [Jinja]: https://jinja.palletsprojects.com/
190
+ [Click]: https://click.palletsprojects.com/
191
+ [ItsDangerous]: https://itsdangerous.palletsprojects.com/
192
+ [MarkupSafe]: https://markupsafe.palletsprojects.com/
193
+ [Blinker]: https://blinker.readthedocs.io/
194
+
@@ -0,0 +1,31 @@
1
+ pboot/__init__.py,sha256=YIVcbBONBAvQ5E3_Ra0oORTlh7cAYrQn1VoJIL4EXr0,2072
2
+ pboot/__main__.py,sha256=bYt9eEaoRQWdejEHFD8REx9jxVEdZptECFsV7F49Ink,30
3
+ pboot/app.py,sha256=g1Dgr-q0VNhqS4BT69Sm116t6l8Dk-3pimPaX8Rn_qs,67776
4
+ pboot/blueprints.py,sha256=UIGVqYoJ8nVNOvmlUngCoE925TdFoPUJ3m5kDymDC-g,4541
5
+ pboot/cli.py,sha256=nk2vlRikvuQbxUic24-br0ixw59nQTKS90H7wGbT-P8,36756
6
+ pboot/config.py,sha256=7ROZ5arTsoNwerOC2ceKxMykOixYKD_CVt4v4ojfvkE,13219
7
+ pboot/ctx.py,sha256=OHU6cfk1ySoD4L-fl7GdjQ_51iPNDTCBmzArqg9KbDU,18261
8
+ pboot/debughelpers.py,sha256=fmy-HzRl0LvQ3goii8A4eBJILwkZsyVJ4gN2QGToSzk,6078
9
+ pboot/globals.py,sha256=bKNMu6dfFSdoxdwUYtg7LbxJrFU5tdzgkZ0mq-Vc_R4,2414
10
+ pboot/helpers.py,sha256=qmX0ZPJWMXRj0cPpqh8phcwasETGK4aXkn1ZH5Jp858,24511
11
+ pboot/logging.py,sha256=xuj7b7W4o0aPnjiuY1A3RUiIDsbeleh1aTlYREASHBw,2377
12
+ pboot/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
+ pboot/sessions.py,sha256=JdEyRT8rRtiIyevyj424ba81Ged0lY4UGYYeaSyW5Rs,14955
14
+ pboot/signals.py,sha256=mklfcVHiXl2ySFVFjub4ZM12vC4-Q08ODVWWNQINoA4,750
15
+ pboot/templating.py,sha256=6Az5cIzLZRYVSuZbFujtBU9DILfIwL1FFvjBliwBbuo,7336
16
+ pboot/testing.py,sha256=CaaVktAOVBgRYC_tBND_sHZty9zPtpXv8EyTFwJFdvQ,10134
17
+ pboot/typing.py,sha256=mEL4vcco0rRHdgYsRKcecQm6tHj34eJ9bAfEgOySz7Q,3117
18
+ pboot/views.py,sha256=bHaGkswsIM8aqk09LkMkjQIDWmThWsmD9Uik8PsSYNQ,6971
19
+ pboot/wrappers.py,sha256=9hyZHd-VlW7Hi8K50rilhHaKNt47gzlOa-UKaiYyvHE,9365
20
+ pboot/json/__init__.py,sha256=HeXBmhH_fectHVomfpM9XmGEt4qZfg5_Odd8Sqhusyc,5583
21
+ pboot/json/provider.py,sha256=6oo2VDuJQHZHo3nYvlpDIk2qSIPGosTRz5ZbIoz9_hI,7644
22
+ pboot/json/tag.py,sha256=Uw8G2Oe83OCXaEgKOoIGBoulVjYvAVQ-Aayd1GBXBao,9281
23
+ pboot/sansio/README.md,sha256=5V2FSPeLCkssqG6SSVZI9M6KkfTZ-QVs-VzHUEsPiTU,229
24
+ pboot/sansio/app.py,sha256=_xlbiduRTmP6M537vTJYEevlP7rfrr_vL6i16RDkY98,39530
25
+ pboot/sansio/blueprints.py,sha256=ugpe7p0bItySSiTq78AGqAGuahawnj9f4TJ1wVqb5bk,27017
26
+ pboot/sansio/scaffold.py,sha256=YB2INocmzI_3X2NE-ahCigTmKImd2FRaqhhurujnSBw,30633
27
+ pboot-3.2.0.dist-info/entry_points.txt,sha256=RR0QL9F21c2wuv8-eZJeWW89j18WOF7pKTrISJVt0sc,40
28
+ pboot-3.2.0.dist-info/licenses/LICENSE.txt,sha256=SJqOEQhQntmKN7uYPhHg9-HTHwvY-Zp5yESOf_N9B-o,1475
29
+ pboot-3.2.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
30
+ pboot-3.2.0.dist-info/METADATA,sha256=8rvTcBy9zNwMoEYZkBtgtQ2oavpEWh_AIkH3T32y7uk,4854
31
+ pboot-3.2.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: flit 3.12.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ pboot=pboot.cli:main
3
+
@@ -0,0 +1,28 @@
1
+ Copyright 2010 Pallets
2
+
3
+ Redistribution and use in source and binary forms, with or without
4
+ modification, are permitted provided that the following conditions are
5
+ met:
6
+
7
+ 1. Redistributions of source code must retain the above copyright
8
+ notice, this list of conditions and the following disclaimer.
9
+
10
+ 2. Redistributions in binary form must reproduce the above copyright
11
+ notice, this list of conditions and the following disclaimer in the
12
+ documentation and/or other materials provided with the distribution.
13
+
14
+ 3. Neither the name of the copyright holder nor the names of its
15
+ contributors may be used to endorse or promote products derived from
16
+ this software without specific prior written permission.
17
+
18
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
21
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
24
+ TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.