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
df9937c4
Commit
df9937c4
authored
Mar 07, 2011
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- removed unused Globals import
parent
ca78f91a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
src/App/Product.py
src/App/Product.py
+1
-4
src/OFS/ObjectManager.py
src/OFS/ObjectManager.py
+0
-2
No files found.
src/App/Product.py
View file @
df9937c4
...
...
@@ -7,7 +7,7 @@
# 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
# FOR A PARTICULAR PURPOSE
.
#
##############################################################################
"""Product objects
...
...
@@ -204,8 +204,6 @@ InitializeClass(Product)
def
initializeProduct
(
productp
,
name
,
home
,
app
):
# Initialize a persistent product
assert
doInstall
()
import
Globals
# to set data
fver
=
''
if
hasattr
(
productp
,
'__import_error__'
):
...
...
@@ -289,4 +287,3 @@ def ihasattr(o, name):
def
doInstall
():
from
App.config
import
getConfiguration
return
getConfiguration
().
enable_product_installation
src/OFS/ObjectManager.py
View file @
df9937c4
...
...
@@ -85,8 +85,6 @@ def checkValidId(self, id, allow_dup=0):
# only check that the id string contains no illegal chars;
# check_valid_id() will be called again later with allow_dup
# set to false before the object is added.
import
Globals
# for data
if
not
id
or
not
isinstance
(
id
,
str
):
if
isinstance
(
id
,
unicode
):
id
=
escape
(
id
)
...
...
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