Compare commits

..

No commits in common. 'dc776881e405693968e84651322d114242669100' and '467060e49170677da9c255f51d4047a1fe5118cb' have entirely different histories.

@ -22,7 +22,7 @@ jobs:
uses: JackMcKew/pyinstaller-action-linux@python3.10
with:
path: .
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v2
with:
name: stacosys-${{ matrix.runs-on }}
name: stacosys
path: dist/linux

1
.gitignore vendored

@ -72,4 +72,3 @@ config-dev.ini
.python-version
stacosys.sublime-project
stacosys.sublime-workspace
out/

@ -5,112 +5,49 @@
# pre: false
# features: []
# all-features: false
# with-sources: false
# generate-hashes: false
# universal: false
-e file:.
altgraph==0.17.4
# via pyinstaller
astroid==3.2.4
# via pylint
astroid==3.1.0
background==0.2.1
# via stacosys
black==24.8.0
blinker==1.8.2
# via flask
certifi==2024.8.30
# via requests
black==24.3.0
blinker==1.7.0
certifi==2024.2.2
charset-normalizer==3.3.2
# via requests
click==8.1.7
# via black
# via flask
coverage==7.6.1
# via coveralls
# via pytest-cov
coveralls==4.0.1
coverage==6.5.0
coveralls==3.3.1
dill==0.3.8
# via pylint
docopt==0.6.2
# via coveralls
exceptiongroup==1.2.2
# via pytest
exceptiongroup==1.2.0
flask==3.0.3
# via stacosys
idna==3.9
# via requests
importlib-metadata==8.5.0
# via flask
# via markdown
# via pyinstaller
# via pyinstaller-hooks-contrib
idna==3.7
iniconfig==2.0.0
# via pytest
isort==5.13.2
# via pylint
itsdangerous==2.2.0
# via flask
jinja2==3.1.4
# via flask
markdown==3.7
# via stacosys
itsdangerous==2.1.2
jinja2==3.1.3
markdown==3.6
markupsafe==2.1.5
# via jinja2
# via werkzeug
mccabe==0.7.0
# via pylint
mypy==1.11.2
mypy==1.9.0
mypy-extensions==1.0.0
# via black
# via mypy
packaging==24.1
# via black
# via pyinstaller
# via pyinstaller-hooks-contrib
# via pytest
packaging==24.0
pathspec==0.12.1
# via black
platformdirs==4.3.3
# via black
# via pylint
pluggy==1.5.0
# via pytest
pydal==20240906.1
# via stacosys
pyinstaller==6.10.0
pyinstaller-hooks-contrib==2024.8
# via pyinstaller
pylint==3.2.7
platformdirs==4.2.0
pluggy==1.4.0
pydal==20231114.3
pyinstaller==6.5.0
pyinstaller-hooks-contrib==2024.3
pylint==3.1.0
pyrss2gen==1.1
# via stacosys
pytest==8.3.3
# via pytest-cov
pytest==8.1.1
pytest-cov==5.0.0
requests==2.32.3
# via coveralls
# via stacosys
setuptools==74.1.2
# via pyinstaller
# via pyinstaller-hooks-contrib
requests==2.31.0
tomli==2.0.1
# via black
# via coverage
# via mypy
# via pylint
# via pytest
tomlkit==0.13.2
# via pylint
types-markdown==3.7.0.20240822
# via stacosys
typing-extensions==4.12.2
# via astroid
# via black
# via mypy
# via pylint
urllib3==2.2.3
# via requests
werkzeug==3.0.4
# via flask
zipp==3.20.2
# via importlib-metadata
tomlkit==0.12.4
types-markdown==3.6.0.20240316
typing-extensions==4.11.0
urllib3==2.2.1
werkzeug==3.0.2
# The following packages are considered to be unsafe in a requirements file:
setuptools==69.3.0

@ -5,48 +5,22 @@
# pre: false
# features: []
# all-features: false
# with-sources: false
# generate-hashes: false
# universal: false
-e file:.
background==0.2.1
# via stacosys
blinker==1.8.2
# via flask
certifi==2024.8.30
# via requests
blinker==1.7.0
certifi==2024.2.2
charset-normalizer==3.3.2
# via requests
click==8.1.7
# via flask
flask==3.0.3
# via stacosys
idna==3.9
# via requests
importlib-metadata==8.5.0
# via flask
# via markdown
itsdangerous==2.2.0
# via flask
jinja2==3.1.4
# via flask
markdown==3.7
# via stacosys
idna==3.7
itsdangerous==2.1.2
jinja2==3.1.3
markdown==3.6
markupsafe==2.1.5
# via jinja2
# via werkzeug
pydal==20240906.1
# via stacosys
pydal==20231114.3
pyrss2gen==1.1
# via stacosys
requests==2.32.3
# via stacosys
types-markdown==3.7.0.20240822
# via stacosys
urllib3==2.2.3
# via requests
werkzeug==3.0.4
# via flask
zipp==3.20.2
# via importlib-metadata
requests==2.31.0
types-markdown==3.6.0.20240316
urllib3==2.2.1
werkzeug==3.0.2

@ -8,11 +8,9 @@ class Messages:
def load_messages(self, lang):
config = configparser.ConfigParser()
config.read(
os.path.join(os.path.dirname(__file__), "messages_" + lang + ".properties")
)
config.read(os.path.join(os.path.dirname(__file__), 'messages_' + lang + '.properties'))
for key, value in config.items("messages"):
for key, value in config.items('messages'):
self.property_dict[key] = value
def get(self, key):

@ -1,6 +1,6 @@
[messages]
login.failure.username=Identifiant ou mot de passe incorrect
logout.flash=Vous avez \xe9t\xe9 d\xe9connect\xe9.
logout.flash=Vous avez été déconnecté.
admin.comment.notfound=Commentaire introuvable
admin.comment.approved=Commentaire publi\xe9
admin.comment.deleted=Commentaire supprim\xe9
admin.comment.approved=Commentaire publié
admin.comment.deleted=Commentaire supprimé

@ -0,0 +1,32 @@
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
from dataclasses import dataclass
from datetime import datetime
from typing import List
@dataclass
class Part:
content: str
content_type: str
@dataclass
class Attachment:
filename: str
content: str
content_type: str
@dataclass
class Email:
id: int
encoding: str
date: datetime
from_addr: str
to_addr: str
subject: str
parts: List[Part]
attachments: List[Attachment]
plain_text_content: str

@ -101,5 +101,5 @@ if __name__ == "__main__":
try:
main(args.config)
except Exception as e:
logging.error("Failed to start application: %s", e)
logging.error(f"Failed to start application: {e}")
sys.exit(1)

@ -5,7 +5,7 @@ a = Analysis(
['src/stacosys/run.py'],
pathex=['src'],
binaries=[],
datas=[('src/stacosys/interface/templates/*.html', 'stacosys/interface/templates/'), ('src/stacosys/i18n/*.properties', 'stacosys/i18n/')],
datas=[('src/stacosys/interface/templates/*.html', 'src/stacosys/interface/templates/')],
hiddenimports=[],
hookspath=[],
hooksconfig={},

Loading…
Cancel
Save