diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d6dd79..271b50c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ `wrap=` argument to SQLAlchemy. Also removed dead batteries. + Add `.waiter` module. For now, non-functional. + Add `ArgConfigSource` to `.configparse` ++ Add more strings to `.legal` module ## 0.5.3 diff --git a/src/suou/legal.py b/src/suou/legal.py index 422486d..d1ba18e 100644 --- a/src/suou/legal.py +++ b/src/suou/legal.py @@ -1,5 +1,5 @@ """ -TOS / policy building blocks for the lazy. +TOS / policy building blocks for the lazy, in English language. XXX DANGER! This is not replacement for legal advice. Contact your lawyer. @@ -30,3 +30,20 @@ GOVERNING_LAW = """ These terms of services are governed by, and shall be interpreted in accordance with, the laws of {0}. You consent to the sole jurisdiction of {1} for all disputes between You and , and You consent to the sole application of {2} law for all such disputes. """ +ENGLISH_FIRST = """ +In case there is any inconsistency between these Terms and any translation into other languages, the English language version takes precedence. +""" + +EXPECT_UPDATES = """ +{0} may periodically update these Terms of Service. Every time this happens, {0} will make its best efforts to notify You of such changes. + +Whenever {0} updates these Terms of Service, Your continued use of the {0} platform constitutes Your agreement to the updated Terms of Service. +""" + +SEVERABILITY = """ +If one clause of these Terms of Service or any policy incorporated here by reference is determined by a court to be unenforceable, the remainder of the Terms and Content Policy shall remain in force. +""" + +COMPLETENESS = """ +These Terms, together with the other policies incorporated into them by reference, contain all the terms and conditions agreed upon by You and {{ app_name }} regarding Your use of the {{ app_name }} service. No other agreement, oral or otherwise, will be deemed to exist or to bind either of the parties to this Agreement. +""" \ No newline at end of file diff --git a/src/suou/sqlalchemy/__init__.py b/src/suou/sqlalchemy/__init__.py index b207438..f691d8c 100644 --- a/src/suou/sqlalchemy/__init__.py +++ b/src/suou/sqlalchemy/__init__.py @@ -83,7 +83,7 @@ def token_signer(id_attr: Column | str, secret_attr: Column | str) -> Incomplete -## Utilities for use in web apps below +## (in)Utilities for use in web apps below @deprecated('not part of the public API and not even working') class AuthSrc(metaclass=ABCMeta): diff --git a/src/suou/sqlalchemy/orm.py b/src/suou/sqlalchemy/orm.py index 063bcef..06a876a 100644 --- a/src/suou/sqlalchemy/orm.py +++ b/src/suou/sqlalchemy/orm.py @@ -204,7 +204,7 @@ def parent_children(keyword: str, /, *, lazy='selectin', **kwargs) -> tuple[Inco def a_relationship(primary = None, /, j=None, *, lazy='selectin', **kwargs): """ - Shorthand for relationship() that sets lazy='selectin' automatically. + Shorthand for relationship() that sets lazy='selectin' by default. NEW 0.6.0 """