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
deb8d43f
Commit
deb8d43f
authored
Dec 27, 2008
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move Globals-stuffing to correct point.
parent
b3330120
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
38 deletions
+38
-38
lib/python/Zope2/App/startup.py
lib/python/Zope2/App/startup.py
+38
-0
lib/python/Zope2/Startup/__init__.py
lib/python/Zope2/Startup/__init__.py
+0
-38
No files found.
lib/python/Zope2/App/startup.py
View file @
deb8d43f
...
...
@@ -46,11 +46,49 @@ from zope.app import appsetup
app
=
None
startup_time
=
asctime
()
def
stuff_Globals
():
# Stuff BBB names into the Globals module
import
Globals
# to set data
import
TreeDisplay
Globals
.
TreeDisplay
=
TreeDisplay
import
App.Common
Globals
.
package_home
=
App
.
Common
.
package_home
Globals
.
attrget
=
App
.
Common
.
attrget
Globals
.
Dictionary
=
App
.
Common
.
Dictionary
from
Persistence
import
Persistent
from
Persistence
import
PersistentMapping
Globals
.
Persistent
=
Persistent
Globals
.
PersistentMapping
=
PersistentMapping
from
App.class_init
import
default__class_init__
from
App.class_init
import
ApplicationDefaultPermissions
Globals
.
InitializeClass
=
default__class_init__
from
App.special_dtml
import
HTML
from
App.special_dtml
import
HTMLFile
from
App.special_dtml
import
DTMLFile
Globals
.
HTML
=
HTML
Globals
.
HTMLFile
=
HTMLFile
Globals
.
DTMLFile
=
DTMLFile
from
App.Dialogs
import
MessageDialog
Globals
.
MessageDialog
=
MessageDialog
from
App.ImageFile
import
ImageFile
Globals
.
ImageFile
=
ImageFile
def
startup
():
from
App.PersistentExtra
import
patchPersistent
import
Globals
# to set / fetch data
patchPersistent
()
stuff_Globals
()
# XXX should this be optional?
global
app
# Import products
...
...
lib/python/Zope2/Startup/__init__.py
View file @
deb8d43f
...
...
@@ -36,42 +36,6 @@ from zope.app import appsetup
logger
=
logging
.
getLogger
(
"Zope"
)
started
=
False
def
stuff_Globals
():
# Stuff BBB names into the Globals module
import
Globals
# to set data
import
TreeDisplay
Globals
.
TreeDisplay
=
TreeDisplay
import
App.Common
Globals
.
package_home
=
App
.
Common
.
package_home
Globals
.
attrget
=
App
.
Common
.
attrget
Globals
.
Dictionary
=
App
.
Common
.
Dictionary
from
Persistence
import
Persistent
from
Persistence
import
PersistentMapping
Globals
.
Persistent
=
Persistent
Globals
.
PersistentMapping
=
PersistentMapping
from
App.class_init
import
default__class_init__
from
App.class_init
import
ApplicationDefaultPermissions
Globals
.
InitializeClass
=
default__class_init__
from
App.special_dtml
import
HTML
from
App.special_dtml
import
HTMLFile
from
App.special_dtml
import
DTMLFile
Globals
.
HTML
=
HTML
Globals
.
HTMLFile
=
HTMLFile
Globals
.
DTMLFile
=
DTMLFile
from
App.Dialogs
import
MessageDialog
Globals
.
MessageDialog
=
MessageDialog
from
App.ImageFile
import
ImageFile
Globals
.
ImageFile
=
ImageFile
def
get_starter
():
check_python_version
()
if
sys
.
platform
[:
3
].
lower
()
==
"win"
:
...
...
@@ -86,8 +50,6 @@ def start_zope(cfg, debug_handler):
# Don't allow any code to call start_zope() twice.
return
stuff_Globals
()
# XXX should this be optional?
starter
=
get_starter
()
starter
.
setConfiguration
(
cfg
)
starter
.
prepare
()
...
...
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