Raven Document Notification conditions, message templates and Jinja recipients were evaluated with the full server-script frappe object. Raven Admins can edit these but aren't System Managers, so a Raven Admin could write any record, for example create a System Manager user, or make outbound requests. Use render_safe_globals instead, the read-only set Frappe gives Jinja templates. On Frappe versions without it (before v15.111 and v16.21), fall back to frappe.utils only. Simple conditions like doc.status == "Open" keep working. Raise the minimum Frappe version to 15.111.0.
48 lines
1.0 KiB
TOML
48 lines
1.0 KiB
TOML
[project]
|
|
name = "raven"
|
|
authors = [
|
|
{ name = "Frappe", email = "support@frappe.io"}
|
|
]
|
|
description = "Simple, open source messaging tool"
|
|
requires-python = ">=3.10"
|
|
readme = "README.md"
|
|
dynamic = ["version"]
|
|
dependencies = [
|
|
"linkpreview~=0.9.0",
|
|
"openai>=2.30.0",
|
|
"blurhash-python",
|
|
"openai-agents>=0.17.2",
|
|
"markitdown",
|
|
"pandas",
|
|
"google-cloud-documentai"
|
|
]
|
|
|
|
[build-system]
|
|
requires = ["flit_core >=3.4,<4"]
|
|
build-backend = "flit_core.buildapi"
|
|
|
|
[tool.black]
|
|
line-length = 99
|
|
|
|
[tool.isort]
|
|
line_length = 99
|
|
multi_line_output = 3
|
|
include_trailing_comma = true
|
|
force_grid_wrap = 0
|
|
use_parentheses = true
|
|
ensure_newline_before_comments = true
|
|
indent = "\t"
|
|
|
|
[tool.bench.frappe-dependencies]
|
|
frappe = ">=15.111.0,<=17.0.0-dev"
|
|
|
|
[tool.bench.assets]
|
|
build_dir = "./apps/web"
|
|
out_dir = "../../raven/public/raven"
|
|
index_html_path = "../../raven/www/raven.html"
|
|
|
|
[project.urls]
|
|
Homepage = "https://frappe.io/products/raven"
|
|
Repository = "https://github.com/frappe/raven.git"
|
|
"Bug Reports" = "https://github.com/frappe/raven/issues"
|