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
6862c65b
Commit
6862c65b
authored
Jun 24, 2003
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge of Jamie Heilman's work on Collector 956 (dont install examples automagically).
parent
c47b5842
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
23 deletions
+4
-23
import/Examples.zexp
import/Examples.zexp
+0
-0
lib/python/App/dtml/zope_quick_start.dtml
lib/python/App/dtml/zope_quick_start.dtml
+2
-1
lib/python/OFS/Application.py
lib/python/OFS/Application.py
+2
-22
No files found.
import/Examples.zexp
View file @
6862c65b
No preview for this file type
lib/python/App/dtml/zope_quick_start.dtml
View file @
6862c65b
...
...
@@ -53,7 +53,8 @@ begin working with the tutorial.
<li>
<p>
Check out the
<b>
new
</b>
<a
href=
"Examples"
>
example Zope
<a
href=
"manage_importObject?file=Examples.zexp&set_owner:int=1"
>
Import
</a>
and then check out the
<b>
new
</b>
<a
href=
"Examples"
>
example Zope
applications
</a>
. These examples show you simple working Zope
applications that you can copy and modify.
</p>
...
...
lib/python/OFS/Application.py
View file @
6862c65b
...
...
@@ -12,8 +12,8 @@
##############################################################################
__doc__
=
'''Application support
$Id: Application.py,v 1.19
0 2003/05/17 14:48:4
9 chrism Exp $'''
__version__
=
'$Revision: 1.19
0
$'
[
11
:
-
2
]
$Id: Application.py,v 1.19
1 2003/06/24 13:30:2
9 chrism Exp $'''
__version__
=
'$Revision: 1.19
1
$'
[
11
:
-
2
]
import
Globals
,
Folder
,
os
,
sys
,
App
.
Product
,
App
.
ProductRegistry
,
misc_
import
time
,
traceback
,
os
,
Products
...
...
@@ -369,26 +369,6 @@ def initialize(app):
get_transaction
().
commit
()
del
sdm
# Ensure that there's an Examples folder with examples.
# However, make sure that if the examples have been added already
# and then deleted that we don't add them again.
if
not
hasattr
(
app
,
'Examples'
)
and
not
\
hasattr
(
app
,
'_Zope25_examples_have_been_added'
):
import
App.config
cfg
=
App
.
config
.
getConfiguration
()
examples_path
=
os
.
path
.
join
(
cfg
.
zopehome
,
'import'
,
'Examples.zexp'
)
if
os
.
path
.
isfile
(
examples_path
):
app
.
_importObjectFromFile
(
examples_path
,
verify
=
0
)
app
.
_Zope25_examples_have_been_added
=
1
get_transaction
().
note
(
'Added Examples folder'
)
get_transaction
().
commit
()
else
:
LOG
(
'Zope Default Object Creation'
,
INFO
,
'%s examples import file could not be found.'
%
examples_path
)
# b/c: Ensure that Owner role exists.
if
hasattr
(
app
,
'__ac_roles__'
)
and
not
(
'Owner'
in
app
.
__ac_roles__
):
app
.
__ac_roles__
=
app
.
__ac_roles__
+
(
'Owner'
,)
...
...
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