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
b70e35b3
Commit
b70e35b3
authored
May 07, 2007
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Snapshot as-yet-incomplete efforts.
parent
d20b7de0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
3 deletions
+34
-3
lib/python/Zope2/Startup/zopectl.py
lib/python/Zope2/Startup/zopectl.py
+21
-0
lib/python/zope/__init__.py
lib/python/zope/__init__.py
+7
-2
lib/python/zope/app/__init__.py
lib/python/zope/app/__init__.py
+6
-1
No files found.
lib/python/Zope2/Startup/zopectl.py
View file @
b70e35b3
...
...
@@ -230,6 +230,27 @@ class ZopeCmd(ZDCmd):
def
help_adduser
(
self
):
print
"adduser <name> <password> -- add a Zope management user"
def
do_whisk
(
self
,
arg
):
from
setuptools.command.easy_install
import
main
import
site
args
=
filter
(
None
,
arg
.
split
(
' '
))
instance_home
=
os
.
getenv
(
'INSTANCE_HOME'
)
software_home
=
os
.
getenv
(
'SOFTWARE_HOME'
)
instance_lib
=
os
.
path
.
join
(
instance_home
,
'lib'
,
'python'
)
args
=
[
'--multi-version'
,
'--install-dir'
,
instance_lib
]
+
args
sys
.
path
.
insert
(
0
,
software_home
)
sys
.
path
.
insert
(
0
,
instance_lib
)
site
.
addsitedir
(
instance_lib
)
try
:
main
(
args
)
except
:
import
traceback
traceback
.
print_exc
()
def
help_whisk
(
self
):
print
(
"whisk <packagename> -- add an egg, and its dependencies, "
" to $INSTANCE_HOME/lib/python"
)
def
do_test
(
self
,
arg
):
args
=
filter
(
None
,
arg
.
split
(
' '
))
...
...
lib/python/zope/__init__.py
View file @
b70e35b3
...
...
@@ -18,5 +18,10 @@ multiple directories.
$Id$
"""
from
pkgutil
import
extend_path
__path__
=
extend_path
(
__path__
,
__name__
)
try
:
import
pkg_resources
pkg_resources
.
declare_namespace
(
__name__
)
except
ImportError
:
import
pkgutil
__path__
=
pkgutil
.
extend_path
(
__path__
,
__name__
)
lib/python/zope/app/__init__.py
View file @
b70e35b3
...
...
@@ -15,4 +15,9 @@
$Id$
"""
try
:
import
pkg_resources
pkg_resources
.
declare_namespace
(
__name__
)
except
ImportError
:
import
pkgutil
__path__
=
pkgutil
.
extend_path
(
__path__
,
__name__
)
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