Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
3a8b4293
Commit
3a8b4293
authored
May 10, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial changes to make it actually work.
parent
7fc5b580
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
1 deletion
+33
-1
lib/python/Zope/__init__.py
lib/python/Zope/__init__.py
+33
-1
No files found.
lib/python/Zope/__init__.py
View file @
3a8b4293
"""Initialize the Zope Package and provide a
m
ublished module
"""Initialize the Zope Package and provide a
p
ublished module
"""
#######################################################################
# We need to get the right BTree extensions loaded
import
sys
,
os
,
App
.
FindHomes
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
SOFTWARE_HOME
,
'ZopeZODB3'
))
#######################################################################
import
ZODB
,
ZODB
.
FileStorage
,
ZODB
.
ZApplication
import
Globals
,
OFS
.
Application
,
sys
Globals
.
BobobaseName
=
'%s/Data.fs'
%
Globals
.
data_dir
# Import products
OFS
.
Application
.
import_products
()
# Open the database
DB
=
ZODB
.
FileStorage
.
FileStorage
(
Globals
.
BobobaseName
,
log
=
lambda
x
:
sys
.
stderr
.
write
(
x
))
DB
=
ZODB
.
DB
(
DB
)
Globals
.
opened
.
append
(
DB
)
# Set up the "application" object that automagically opens
# connections
app
=
bobo_application
=
ZODB
.
ZApplication
.
ZApplicationWrapper
(
DB
,
'Application'
,
OFS
.
Application
.
Application
,
(),
'ZopeVersion'
)
# Initialize products:
c
=
app
()
OFS
.
Application
.
initialize
(
c
)
c
.
_p_jar
.
close
()
del
c
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment