flaskbb-plugin-conversations 2.1.0.dev1__tar.gz → 2.1.0.dev2__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.
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/PKG-INFO +1 -1
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/conversations/__init__.py +1 -1
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/conversations/models.py +3 -3
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/conversations/views.py +1 -1
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/pyproject.toml +1 -1
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/.gitignore +0 -0
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/LICENSE +0 -0
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/README.md +0 -0
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/conversations/forms.py +0 -0
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/conversations/migrations/201802171929_0625bc75ab77_add_conversations.py +0 -0
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/conversations/migrations/202602062122_1770409336_update_sqlalchemy_2.py +0 -0
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/conversations/migrations/202607311750_1785520254_move_message_quota_setting.py +0 -0
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/conversations/migrations/__init__.py +0 -0
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/conversations/templates/_inject_navlink.html +0 -0
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/conversations/templates/_inject_new_message_button.html +0 -0
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/conversations/templates/_inject_new_message_link.html +0 -0
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/conversations/templates/conversation.html +0 -0
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/conversations/templates/conversation_list.html +0 -0
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/conversations/templates/drafts.html +0 -0
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/conversations/templates/inbox.html +0 -0
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/conversations/templates/message_form.html +0 -0
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/conversations/templates/message_layout.html +0 -0
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/conversations/templates/sent.html +0 -0
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/conversations/templates/trash.html +0 -0
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/conversations/translations/en/LC_MESSAGES/messages.po +0 -0
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/conversations/utils.py +0 -0
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/tests/conftest.py +0 -0
- {flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/tests/test_message_models.py +0 -0
{flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: flaskbb-plugin-conversations
|
|
3
|
-
Version: 2.1.0.
|
|
3
|
+
Version: 2.1.0.dev2
|
|
4
4
|
Summary: A private messaging plugin for FlaskBB
|
|
5
5
|
Project-URL: Homepage, https://github.com/flaskbb/flaskbb-plugin-conversations
|
|
6
6
|
Project-URL: Repository, https://github.com/flaskbb/flaskbb-plugin-conversations
|
|
@@ -13,7 +13,7 @@ import os
|
|
|
13
13
|
|
|
14
14
|
from flask import Flask
|
|
15
15
|
from flask_login import current_user
|
|
16
|
-
from flaskbb.
|
|
16
|
+
from flaskbb.settings.definitions import IntSetting, SettingGroup
|
|
17
17
|
from flaskbb.forum.models import Post
|
|
18
18
|
from flaskbb.user.models import User
|
|
19
19
|
from flaskbb.utils.helpers import real, render_template
|
|
@@ -17,7 +17,7 @@ from typing import override
|
|
|
17
17
|
|
|
18
18
|
from flaskbb.extensions import db
|
|
19
19
|
from flaskbb.user.models import User
|
|
20
|
-
from flaskbb.utils.database import
|
|
20
|
+
from flaskbb.utils.database import BaseModel, UTCDateTime
|
|
21
21
|
from flaskbb.utils.helpers import time_utcnow
|
|
22
22
|
from sqlalchemy import Boolean, ForeignKey, Integer, String, Text, Uuid
|
|
23
23
|
from sqlalchemy.orm import Mapped, mapped_column, relationship
|
|
@@ -25,7 +25,7 @@ from sqlalchemy.orm import Mapped, mapped_column, relationship
|
|
|
25
25
|
logger = logging.getLogger(__name__)
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
class Conversation(
|
|
28
|
+
class Conversation(BaseModel):
|
|
29
29
|
__tablename__ = "conversations"
|
|
30
30
|
|
|
31
31
|
id: Mapped[int] = mapped_column(Integer, primary_key=True)
|
|
@@ -114,7 +114,7 @@ class Conversation(db.Model, CRUDMixin):
|
|
|
114
114
|
return self
|
|
115
115
|
|
|
116
116
|
|
|
117
|
-
class Message(
|
|
117
|
+
class Message(BaseModel):
|
|
118
118
|
__tablename__ = "messages"
|
|
119
119
|
|
|
120
120
|
id: Mapped[int] = mapped_column(Integer, primary_key=True)
|
|
@@ -28,7 +28,7 @@ from flaskbb.utils.helpers import (
|
|
|
28
28
|
render_template,
|
|
29
29
|
time_utcnow,
|
|
30
30
|
)
|
|
31
|
-
from flaskbb.
|
|
31
|
+
from flaskbb.settings import flaskbb_config
|
|
32
32
|
from sqlalchemy import not_, select
|
|
33
33
|
|
|
34
34
|
from .forms import ConversationForm, MessageForm
|
{flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/.gitignore
RENAMED
|
File without changes
|
|
File without changes
|
{flaskbb_plugin_conversations-2.1.0.dev1 → flaskbb_plugin_conversations-2.1.0.dev2}/README.md
RENAMED
|
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
|