Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit dd9491b3
authored
May 10, 2025
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
pyramid mailer
1 parent
f72d7911
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
opensipkd/base/__init__.py
opensipkd/base/__init__.py
View file @
dd9491b
...
...
@@ -10,6 +10,7 @@ from pyramid.renderers import JSON
from
pyramid_beaker
import
session_factory_from_settings
from
pyramid.config
import
Configurator
from
pyramid.events
import
NewRequest
,
BeforeRender
,
subscriber
from
pyramid_mailer
import
mailer_factory_from_settings
from
opensipkd.tools
import
get_settings
,
DefaultTimeZone
,
dmy
,
dmyhms
from
.security
import
MySecurityPolicy
,
get_user
...
...
@@ -287,7 +288,7 @@ def get_config(settings):
config
.
add_renderer
(
'csv'
,
'opensipkd.tools.CSVRenderer'
)
config
.
add_renderer
(
'json'
,
json_renderer
())
config
.
add_renderer
(
'json_rpc'
,
json_rpc
())
#
config.registry['mailer'] = mailer_factory_from_settings(settings)
config
.
registry
[
'mailer'
]
=
mailer_factory_from_settings
(
settings
)
return
config
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment