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
fba55b08
Commit
fba55b08
authored
May 05, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial
parent
a2f7fd2b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
0 deletions
+70
-0
lib/python/OFS/Uninstalled.py
lib/python/OFS/Uninstalled.py
+49
-0
lib/python/OFS/brokenEdit.dtml
lib/python/OFS/brokenEdit.dtml
+21
-0
No files found.
lib/python/OFS/Uninstalled.py
0 → 100644
View file @
fba55b08
"""
Objects for packages that have been uninstalled.
"""
import
string
,
SimpleItem
,
Globals
,
Acquisition
broken_klasses
=
{}
class
BrokenClass
(
SimpleItem
.
Item
,
Acquisition
.
Explicit
):
_p_changed
=
0
meta_type
=
'Broken Because Product is Gone'
icon
=
'p_/broken'
product_name
=
'unknown'
def
__getstate__
(
self
):
raise
SystemError
,
(
"""This object was originally created by a product that
is no longer installed. It cannot be updated.
"""
)
manage
=
manage_main
=
Globals
.
HTMLFile
(
'brokenEdit'
,
globals
())
def
Broken
(
self
,
oid
,
klass
):
if
broken_klasses
.
has_key
(
klass
):
klass
=
broken_klasses
[
klass
]
else
:
module
,
klass
=
klass
d
=
{
'BrokenClass'
:
BrokenClass
}
exec
(
"class %s(BrokenClass): ' '; __module__=%s"
%
(
klass
,
`module`
))
in
d
broken_klasses
[
klass
]
=
d
[
klass
]
klass
=
d
[
klass
]
module
=
string
.
split
(
module
,
'.'
)
if
len
(
module
)
>
2
and
module
[
0
]
==
'Products'
:
klass
.
product_name
=
module
[
1
]
klass
.
title
=
(
'This object from the <strong>%s</strong> product '
'is <strong><font color=red>broken</font></strong>!'
%
klass
.
product_name
)
klass
.
info
=
(
'This object
\
'
s class was %s in module %s.'
%
(
klass
.
__name__
,
klass
.
__module__
))
i
=
klass
()
i
.
_p_oid
=
oid
i
.
_p_jar
=
self
return
i
lib/python/OFS/brokenEdit.dtml
0 → 100644
View file @
fba55b08
<HTML>
<HEAD>
<TITLE>Edit</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
This object is <font color=red>broken</font> because the
<strong><!--#var product_name--></strong> product that created it
is no longer installed or is installed incorrectly. Please contact
your product vendor for assistance.
<p>
Note that the data associated with this product has not been lost,
and will be accessible again if the product is reinstalled.
<!--
<!--#var info-->
-->
</BODY>
</HTML>
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