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
f1fe0d88
Commit
f1fe0d88
authored
Jul 16, 2010
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed deprecation warnings in OFS.misc_
parent
63cbf5ee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
37 deletions
+54
-37
src/OFS/misc_.py
src/OFS/misc_.py
+54
-37
No files found.
src/OFS/misc_.py
View file @
f1fe0d88
...
@@ -11,10 +11,13 @@
...
@@ -11,10 +11,13 @@
#
#
##############################################################################
##############################################################################
from
os.path
import
dirname
from
AccessControl.SecurityInfo
import
ClassSecurityInfo
from
AccessControl.SecurityInfo
import
ClassSecurityInfo
from
App.class_init
import
InitializeClass
from
App.class_init
import
InitializeClass
from
App.ImageFile
import
ImageFile
from
App.ImageFile
import
ImageFile
class
misc_
:
class
misc_
:
"Miscellaneous product information"
"Miscellaneous product information"
security
=
ClassSecurityInfo
()
security
=
ClassSecurityInfo
()
...
@@ -22,51 +25,65 @@ class misc_:
...
@@ -22,51 +25,65 @@ class misc_:
InitializeClass
(
misc_
)
InitializeClass
(
misc_
)
class
p_
:
class
p_
:
"Shared system information"
"Shared system information"
security
=
ClassSecurityInfo
()
security
=
ClassSecurityInfo
()
security
.
declareObjectPublic
()
security
.
declareObjectPublic
()
broken
=
ImageFile
(
'www/broken.gif'
,
globals
())
here
=
dirname
(
__file__
)
broken
=
ImageFile
(
'www/broken.gif'
,
here
)
User_icon
=
ImageFile
(
'AccessControl/www/User_icon.gif'
)
import
AccessControl
locked
=
ImageFile
(
'www/modified.gif'
,
globals
())
User_icon
=
ImageFile
(
'www/User_icon.gif'
,
dirname
(
AccessControl
.
__file__
))
lockedo
=
ImageFile
(
'www/locked.gif'
,
globals
())
locked
=
ImageFile
(
'www/modified.gif'
,
here
)
davlocked
=
ImageFile
(
'webdav/www/davlock.gif'
)
lockedo
=
ImageFile
(
'www/locked.gif'
,
here
)
pl
=
ImageFile
(
'TreeDisplay/www/Plus_icon.gif'
)
import
webdav
mi
=
ImageFile
(
'TreeDisplay/www/Minus_icon.gif'
)
davlocked
=
ImageFile
(
'www/davlock.gif'
,
dirname
(
webdav
.
__file__
))
rtab
=
ImageFile
(
'App/www/rtab.gif'
)
ltab
=
ImageFile
(
'App/www/ltab.gif'
)
import
TreeDisplay
sp
=
ImageFile
(
'App/www/sp.gif'
)
treedisplay_dir
=
dirname
(
TreeDisplay
.
__file__
)
r_arrow_gif
=
ImageFile
(
'www/r_arrow.gif'
,
globals
())
pl
=
ImageFile
(
'www/Plus_icon.gif'
,
treedisplay_dir
)
l_arrow_gif
=
ImageFile
(
'www/l_arrow.gif'
,
globals
())
mi
=
ImageFile
(
'www/Minus_icon.gif'
,
treedisplay_dir
)
ControlPanel_icon
=
ImageFile
(
'OFS/www/ControlPanel_icon.gif'
)
import
App
ApplicationManagement_icon
=
ImageFile
(
'App/www/cpSystem.gif'
)
app_dir
=
dirname
(
App
.
__file__
)
DatabaseManagement_icon
=
ImageFile
(
'App/www/dbManage.gif'
)
rtab
=
ImageFile
(
'www/rtab.gif'
,
app_dir
)
DebugManager_icon
=
ImageFile
(
'App/www/DebugManager_icon.gif'
)
ltab
=
ImageFile
(
'www/ltab.gif'
,
app_dir
)
InstalledProduct_icon
=
ImageFile
(
'App/www/installedProduct.gif'
)
sp
=
ImageFile
(
'www/sp.gif'
,
app_dir
)
BrokenProduct_icon
=
ImageFile
(
'App/www/brokenProduct.gif'
)
r_arrow_gif
=
ImageFile
(
'www/r_arrow.gif'
,
here
)
Product_icon
=
ImageFile
(
'App/www/product.gif'
)
l_arrow_gif
=
ImageFile
(
'www/l_arrow.gif'
,
here
)
Permission_icon
=
ImageFile
(
'App/www/permission.gif'
)
ProductFolder_icon
=
ImageFile
(
'App/www/productFolder.gif'
)
import
OFS
PyPoweredSmall_Gif
=
ImageFile
(
'App/www/PythonPoweredSmall.gif'
)
ofs_dir
=
dirname
(
OFS
.
__file__
)
ControlPanel_icon
=
ImageFile
(
'www/ControlPanel_icon.gif'
,
ofs_dir
)
ZopeButton
=
ImageFile
(
'App/www/zope_button.jpg'
)
ApplicationManagement_icon
=
ImageFile
(
'www/cpSystem.gif'
,
app_dir
)
ZButton
=
ImageFile
(
'App/www/z_button.jpg'
)
DatabaseManagement_icon
=
ImageFile
(
'www/dbManage.gif'
,
app_dir
)
zopelogo_jpg
=
ImageFile
(
'App/www/zopelogo.jpg'
)
DebugManager_icon
=
ImageFile
(
'www/DebugManager_icon.gif'
,
app_dir
)
InstalledProduct_icon
=
ImageFile
(
'www/installedProduct.gif'
,
app_dir
)
Properties_icon
=
ImageFile
(
'OFS/www/Properties_icon.gif'
)
BrokenProduct_icon
=
ImageFile
(
'www/brokenProduct.gif'
,
app_dir
)
Propertysheets_icon
=
ImageFile
(
'OFS/www/Properties_icon.gif'
)
Product_icon
=
ImageFile
(
'www/product.gif'
,
app_dir
)
Permission_icon
=
ImageFile
(
'www/permission.gif'
,
app_dir
)
ProductHelp_icon
=
ImageFile
(
'HelpSys/images/productHelp.gif'
)
ProductFolder_icon
=
ImageFile
(
'www/productFolder.gif'
,
app_dir
)
HelpTopic_icon
=
ImageFile
(
'HelpSys/images/helpTopic.gif'
)
PyPoweredSmall_Gif
=
ImageFile
(
'www/PythonPoweredSmall.gif'
,
app_dir
)
ZopeButton
=
ImageFile
(
'www/zope_button.jpg'
,
app_dir
)
ZButton
=
ImageFile
(
'www/z_button.jpg'
,
app_dir
)
zopelogo_jpg
=
ImageFile
(
'www/zopelogo.jpg'
,
app_dir
)
Properties_icon
=
ImageFile
(
'www/Properties_icon.gif'
,
ofs_dir
)
Propertysheets_icon
=
ImageFile
(
'www/Properties_icon.gif'
,
ofs_dir
)
import
HelpSys
helpsys_dir
=
dirname
(
HelpSys
.
__file__
)
ProductHelp_icon
=
ImageFile
(
'images/productHelp.gif'
,
helpsys_dir
)
HelpTopic_icon
=
ImageFile
(
'images/helpTopic.gif'
,
helpsys_dir
)
InitializeClass
(
p_
)
InitializeClass
(
p_
)
class
Misc_
:
class
Misc_
:
"Miscellaneous product information"
"Miscellaneous product information"
security
=
ClassSecurityInfo
()
security
=
ClassSecurityInfo
()
...
...
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