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
b04834a6
Commit
b04834a6
authored
Jul 13, 2005
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forward-port fix for collector #1813 from 2.8 branch.
parent
d18c452b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
90 deletions
+0
-90
lib/python/Products/BTreeFolder2/CMFBTreeFolder.py
lib/python/Products/BTreeFolder2/CMFBTreeFolder.py
+0
-71
lib/python/Products/BTreeFolder2/__init__.py
lib/python/Products/BTreeFolder2/__init__.py
+0
-19
No files found.
lib/python/Products/BTreeFolder2/CMFBTreeFolder.py
deleted
100644 → 0
View file @
d18c452b
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
#
##############################################################################
"""CMFBTreeFolder
$Id: CMFBTreeFolder.py,v 1.2 2002/10/30 14:54:18 shane Exp $
"""
import
Globals
from
BTreeFolder2
import
BTreeFolder2Base
try
:
from
Products.CMFCore.PortalFolder
import
PortalFolderBase
as
PortalFolder
except
ImportError
:
from
Products.CMFCore.PortalFolder
import
PortalFolder
import
Products.CMFCore.PortalFolder
_actions
=
Products
.
CMFCore
.
PortalFolder
.
factory_type_information
[
0
][
'actions'
]
factory_type_information
=
(
{
'id'
:
'CMF BTree Folder'
,
'meta_type'
:
'CMF BTree Folder'
,
'description'
:
"""
\
CMF folder designed to hold a lot of objects."""
,
'icon'
:
'folder_icon.gif'
,
'product'
:
'BTreeFolder2'
,
'factory'
:
'manage_addCMFBTreeFolder'
,
'filter_content_types'
:
0
,
'immediate_view'
:
'folder_edit_form'
,
'actions'
:
_actions
,
},
)
def
manage_addCMFBTreeFolder
(
dispatcher
,
id
,
title
=
''
,
REQUEST
=
None
):
"""Adds a new BTreeFolder object with id *id*.
"""
id
=
str
(
id
)
ob
=
CMFBTreeFolder
(
id
)
ob
.
title
=
str
(
title
)
dispatcher
.
_setObject
(
id
,
ob
)
ob
=
dispatcher
.
_getOb
(
id
)
if
REQUEST
is
not
None
:
REQUEST
[
'RESPONSE'
].
redirect
(
ob
.
absolute_url
()
+
'/manage_main'
)
class
CMFBTreeFolder
(
BTreeFolder2Base
,
PortalFolder
):
"""BTree folder for CMF sites.
"""
meta_type
=
'CMF BTree Folder'
def
__init__
(
self
,
id
,
title
=
''
):
PortalFolder
.
__init__
(
self
,
id
,
title
)
BTreeFolder2Base
.
__init__
(
self
,
id
)
def
_checkId
(
self
,
id
,
allow_dup
=
0
):
PortalFolder
.
_checkId
(
self
,
id
,
allow_dup
)
BTreeFolder2Base
.
_checkId
(
self
,
id
,
allow_dup
)
Globals
.
InitializeClass
(
CMFBTreeFolder
)
lib/python/Products/BTreeFolder2/__init__.py
View file @
b04834a6
...
...
@@ -30,22 +30,3 @@ def initialize(context):
#context.registerHelpTitle('Zope Help')
context
.
registerBaseClass
(
BTreeFolder2
.
BTreeFolder2
)
try
:
from
Products.CMFCore
import
utils
except
ImportError
:
# CMF not installed
pass
else
:
# CMF installed; make available a special folder type.
import
CMFBTreeFolder
ADD_FOLDERS_PERMISSION
=
'Add portal folders'
utils
.
ContentInit
(
'CMF BTree Folder'
,
content_types
=
(
CMFBTreeFolder
.
CMFBTreeFolder
,),
permission
=
ADD_FOLDERS_PERMISSION
,
extra_constructors
=
(
CMFBTreeFolder
.
manage_addCMFBTreeFolder
,),
fti
=
CMFBTreeFolder
.
factory_type_information
).
initialize
(
context
)
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