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
79e2cc7d
Commit
79e2cc7d
authored
Sep 25, 1997
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added document_id, document_title
parent
197cce8d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
lib/python/OFS/Document.py
lib/python/OFS/Document.py
+4
-2
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+8
-4
No files found.
lib/python/OFS/Document.py
View file @
79e2cc7d
"""Document object"""
__version__
=
'$Revision: 1.1
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
5
$'
[
11
:
-
2
]
from
Globals
import
HTML
from
Globals
import
HTMLFile
...
...
@@ -13,7 +13,7 @@ class Document(HTML, RoleManager, SimpleItem.Item_w__name__):
"""A Document object"""
meta_type
=
'Document'
icon
=
'OFS/Document_icon.gif'
__state_names__
=
HTML
.
__state_names__
+
(
'title'
,
'__roles__'
)
_formhead
=
"""
...
...
@@ -66,6 +66,8 @@ class Document(HTML, RoleManager, SimpleItem.Item_w__name__):
self
.
func_defaults
=
(
None
,)
def
__call__
(
self
,
client
=
None
,
REQUEST
=
{},
RESPONSE
=
None
,
**
kw
):
kw
[
'document_id'
]
=
self
.
id
kw
[
'document_title'
]
=
self
.
title
r
=
apply
(
HTML
.
__call__
,
(
self
,
client
,
REQUEST
),
kw
)
if
RESPONSE
is
None
:
return
r
return
decapitate
(
r
,
RESPONSE
)
...
...
lib/python/OFS/ObjectManager.py
View file @
79e2cc7d
__doc__
=
"""Object Manager
$Id: ObjectManager.py,v 1.1
1 1997/09/25 14:30:39
brian Exp $"""
$Id: ObjectManager.py,v 1.1
2 1997/09/25 15:43:35
brian Exp $"""
__version__
=
'$Revision: 1.1
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
2
$'
[
11
:
-
2
]
from
SingleThreadedTransaction
import
Persistent
...
...
@@ -296,8 +296,9 @@ class ObjectManager(Acquirer,Management,Persistent):
def
manage_addProperty
(
self
,
id
,
value
,
type
,
REQUEST
):
"""Add a new property (www)"""
try
:
value
=
type_converters
[
type
](
value
)
except
:
pass
# try: value=type_converters[type](value)
# except: pass
value
=
type_converters
[
type
](
value
)
self
.
_setProperty
(
id
,
value
,
type
)
return
self
.
manage_propertiesForm
(
self
,
REQUEST
)
...
...
@@ -394,6 +395,9 @@ class ObjectManager(Acquirer,Management,Persistent):
##############################################################################
#
# $Log: ObjectManager.py,v $
# Revision 1.12 1997/09/25 15:43:35 brian
# Added document_id, document_title
#
# Revision 1.11 1997/09/25 14:30:39 brian
# Fixed property typing error
#
...
...
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