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
a34f18db
Commit
a34f18db
authored
Sep 08, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added manage_edit.
parent
069c4d34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
lib/python/App/Factory.py
lib/python/App/Factory.py
+14
-2
No files found.
lib/python/App/Factory.py
View file @
a34f18db
...
...
@@ -10,8 +10,8 @@
##############################################################################
__doc__
=
'''Principia Factories
$Id: Factory.py,v 1.
2 1998/08/14 16:48:52 brian
Exp $'''
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
$Id: Factory.py,v 1.
3 1998/09/08 18:28:39 jim
Exp $'''
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
import
OFS.SimpleItem
,
Acquisition
,
Globals
...
...
@@ -32,6 +32,15 @@ class Factory(OFS.SimpleItem.Item, Acquisition.Implicit):
self
.
initial
=
initial
self
.
__of__
(
product
).
_register
()
def
manage_edit
(
self
,
title
,
object_type
,
initial
,
REQUEST
=
None
):
"Modify factory properties."
self
.
_unregister
()
self
.
title
=
title
self
.
object_type
=
object_type
self
.
initial
=
initial
self
.
_register
()
if
REQUEST
is
not
None
:
return
self
.
manage_main
(
self
,
REQUEST
)
def
_notifyOfCopyTo
(
self
,
container
,
op
=
0
):
if
container
.
__class__
is
not
Product
:
raise
TypeError
,
(
...
...
@@ -62,6 +71,9 @@ class Factory(OFS.SimpleItem.Item, Acquisition.Implicit):
##############################################################################
#
# $Log: Factory.py,v $
# Revision 1.3 1998/09/08 18:28:39 jim
# Added manage_edit.
#
# Revision 1.2 1998/08/14 16:48:52 brian
# Updated copy support in leverish things
#
...
...
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