Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c4b347cd
authored
Jan 14, 2020
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Penggantian ZopeTransactionExtension() dengan register()
1 parent
74705157
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
CHANGES.txt
opensipkd/base/models/__init__.py
setup.py
CHANGES.txt
View file @
c4b347c
0.2.1 7-11-2019
---------------
- Menyesuaikan zope.sqlalchemy 1.2 yang mengganti nama ZopeTransactionExtension
menjadi ZopeTransactionEvents. Kita menggantinya dengan register().
0.2 31-1-2019
-------------
- Penambahan field users.api_key.
...
...
opensipkd/base/models/__init__.py
View file @
c4b347c
...
...
@@ -3,11 +3,12 @@ from sqlalchemy.orm import (
scoped_session
,
)
from
sqlalchemy.ext.declarative
import
declarative_base
from
zope.sqlalchemy
import
ZopeTransactionExtension
from
zope.sqlalchemy
import
register
ZTE
=
ZopeTransactionExtension
()
DBSession
=
scoped_session
(
sessionmaker
(
extension
=
ZTE
))
session_factory
=
sessionmaker
()
DBSession
=
scoped_session
(
session_factory
)
register
(
DBSession
)
Base
=
declarative_base
()
...
...
setup.py
View file @
c4b347c
...
...
@@ -20,6 +20,7 @@ version = line.split()[0]
requires
=
[
'pytz'
,
'sqlalchemy'
,
'zope.sqlalchemy'
,
'ziggurat_foundations'
,
'psycopg2-binary'
,
'pyramid'
,
...
...
@@ -27,11 +28,6 @@ requires = [
]
def
run
(
cmd
):
if
subprocess
.
call
(
cmd
)
!=
0
:
sys
.
exit
()
setup
(
name
=
'opensipkd-base'
,
version
=
version
,
...
...
@@ -44,7 +40,7 @@ setup(
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application"
,
],
keywords
=
'web pyramid pylons'
,
packages
=
setuptools
.
find_packages
(),
packages
=
find_packages
(),
zip_safe
=
False
,
install_requires
=
requires
,
)
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