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
3c2c9bf4
Commit
3c2c9bf4
authored
Nov 17, 2001
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Examples folder in a transation.
parent
65bce260
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
lib/python/OFS/Application.py
lib/python/OFS/Application.py
+5
-4
No files found.
lib/python/OFS/Application.py
View file @
3c2c9bf4
...
@@ -84,8 +84,8 @@
...
@@ -84,8 +84,8 @@
##############################################################################
##############################################################################
__doc__
=
'''Application support
__doc__
=
'''Application support
$Id: Application.py,v 1.16
2 2001/11/17 00:00:20
amos Exp $'''
$Id: Application.py,v 1.16
3 2001/11/17 00:06:29
amos Exp $'''
__version__
=
'$Revision: 1.16
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.16
3
$'
[
11
:
-
2
]
import
Globals
,
Folder
,
os
,
sys
,
App
.
Product
,
App
.
ProductRegistry
,
misc_
import
Globals
,
Folder
,
os
,
sys
,
App
.
Product
,
App
.
ProductRegistry
,
misc_
import
time
,
traceback
,
os
,
string
,
Products
import
time
,
traceback
,
os
,
string
,
Products
...
@@ -476,9 +476,10 @@ def initialize(app):
...
@@ -476,9 +476,10 @@ def initialize(app):
# b/c: Ensure that there's an Examples folder with examples
# b/c: Ensure that there's an Examples folder with examples
if
not
hasattr
(
app
,
'Examples'
):
if
not
hasattr
(
app
,
'Examples'
):
examples
=
app
.
_p_jar
.
importFile
(
examples
=
app
.
_p_jar
.
importFile
(
os
.
path
.
join
(
Globals
.
data_dir
,
'Examples.zexp'
),
os
.
path
.
join
(
Globals
.
data_dir
,
'Examples.zexp'
))
clue
=
'Added Examples folder'
)
app
.
_setObject
(
'Examples'
,
examples
)
app
.
_setObject
(
'Examples'
,
examples
)
get_transaction
().
note
(
'Added Examples folder'
)
get_transaction
().
commit
()
del
examples
del
examples
# b/c: Ensure that Owner role exists.
# b/c: Ensure that Owner role exists.
...
...
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