Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
erp5
Commits
7d1689c3
Commit
7d1689c3
authored
Apr 06, 2022
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py3: has_key().
parent
d25efe94
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
9 deletions
+9
-9
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_predicate_category_list.sql
...g/erp5_mysql_innodb/z_catalog_predicate_category_list.sql
+1
-1
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/field_render.zpt
...mplateItem/portal_skins/erp5_xhtml_style/field_render.zpt
+1
-1
product/ERP5Type/dtml/properties.dtml
product/ERP5Type/dtml/properties.dtml
+3
-3
product/ERP5Type/patches/Restricted.py
product/ERP5Type/patches/Restricted.py
+1
-1
product/ERP5Type/patches/XMLExportImport.py
product/ERP5Type/patches/XMLExportImport.py
+1
-1
product/ZSQLCatalog/SQLCatalog.py
product/ZSQLCatalog/SQLCatalog.py
+1
-1
product/ZSQLCatalog/ZSQLCatalog.py
product/ZSQLCatalog/ZSQLCatalog.py
+1
-1
No files found.
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_predicate_category_list.sql
View file @
7d1689c3
...
...
@@ -17,7 +17,7 @@ WHERE
INSERT
INTO
predicate_category
VALUES
<
dtml
-
in
prefix
=
"loop"
expr
=
"predicate_list"
>
<
dtml
-
if
sequence
-
start
><
dtml
-
else
>
,
</
dtml
-
if
>
<
dtml
-
if
"
predicate_property_dict[loop_item].has_key('membership_criterion_category_list')
"
>
<
dtml
-
if
"
'membership_criterion_category_list' in predicate_property_dict[loop_item]
"
>
<
dtml
-
let
uid_list
=
"portal_categories.CategoryTool_getPreferredPredicateCategoryParentUidItemList(predicate_property_dict[loop_item]['membership_criterion_category_list'], getObject[loop_item])"
>
<
dtml
-
if
uid_list
>
<
dtml
-
in
"uid_list"
>
...
...
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/field_render.zpt
View file @
7d1689c3
...
...
@@ -8,7 +8,7 @@
render_prefix render_prefix | nothing;
key_prefix key_prefix | nothing;
field_errors python: request.get('field_errors', {});
field_has_error python: field_
errors.has_key(field_id)
;
field_has_error python: field_
id in field_errors
;
global form_id form_id | form/id | nothing;
field_description field/Field_getDescription;
is_web_mode is_web_mode | nothing">
...
...
product/ERP5Type/dtml/properties.dtml
View file @
7d1689c3
...
...
@@ -48,7 +48,7 @@ property values, edit the values and click "Save Changes".
</tr>
<dtml-in propertyMap mapping>
<dtml-let type="
not _.has_key('type')
and 'string' or type">
<dtml-let type="
'type' not in _
and 'string' or type">
<tr>
<td align="left" valign="top" width="16">
<dtml-if "'d' in _['sequence-item'].get('mode', 'awd')">
...
...
@@ -105,7 +105,7 @@ property values, edit the values and click "Save Changes".
</dtml-in>
</select>
</div>
<dtml-elif "
_.has_key('select_variable')
">
<dtml-elif "
'select_variable' in _
">
<div class="form-element">
<select name="&dtml-id;:<dtml-var "REQUEST['management_page_charset_tag']">text">
<dtml-in "_[select_variable]">
...
...
@@ -135,7 +135,7 @@ property values, edit the values and click "Save Changes".
</dtml-in>
</select>
</div>
<dtml-elif "
_.has_key('select_variable')
">
<dtml-elif "
'select_variable' in _
">
<div class="form-element">
<select name="&dtml-id;:<dtml-var "REQUEST['management_page_charset_tag']">list:string" multiple
size="<dtml-var "_.min(7, _.len(_[select_variable]))">">
...
...
product/ERP5Type/patches/Restricted.py
View file @
7d1689c3
...
...
@@ -271,7 +271,7 @@ def allow_full_write(t):
This supports both RestrictedPython-3.6.0, where the safetype is implemented as:
safetype = {dict: True, list: True}.
has_key
safetype = {dict: True, list: True}.
__contains__
...
safetype(t)
...
...
product/ERP5Type/patches/XMLExportImport.py
View file @
7d1689c3
...
...
@@ -44,7 +44,7 @@ def reorderPickle(jar, p):
def
persistent_load
(
ooid
,
Ghost
=
Ghost
,
oids
=
oids
,
wrote_oid
=
oids
.
has_key
,
oids
=
oids
,
wrote_oid
=
oids
.
__contains__
,
new_oid
=
storage
.
new_oid
):
"Remap a persistent id to an existing ID and create a ghost for it."
...
...
product/ZSQLCatalog/SQLCatalog.py
View file @
7d1689c3
...
...
@@ -1645,7 +1645,7 @@ class Catalog(Folder,
This function return a list of ids.
"""
ids
=
{}
have_id
=
ids
.
has_key
have_id
=
ids
.
__contains__
while
self
is
not
None
:
if
hasattr
(
self
,
'objectValues'
):
...
...
product/ZSQLCatalog/ZSQLCatalog.py
View file @
7d1689c3
...
...
@@ -1094,7 +1094,7 @@ class ZCatalog(Folder, Persistent, Implicit):
"Return list of valid roles"
obj
=
self
dict
=
{}
dup
=
dict
.
has_key
dup
=
dict
.
__contains__
x
=
0
while
x
<
100
:
if
hasattr
(
obj
,
'__ac_roles__'
):
...
...
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