Commit 4ae4cf08 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_ecoallocation: Make pylint happy

parent 057f0ec3
Pipeline #10804 failed with stage
in 0 seconds
......@@ -127,11 +127,13 @@
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/>
<global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle>
<pickle>
<tuple>
<none/>
<dictionary>
<item>
<key> <string>_log</string> </key>
<value>
<list>
<dictionary>
<item>
......@@ -269,7 +271,9 @@
</item>
</dictionary>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="4" aka="AAAAAAAAAAQ=">
......
from zExceptions import Unauthorized
if REQUEST is not None:
pass #raise Unauthorized
raise Unauthorized
document = context
portal = document.getPortalObject()
......
import random
from Products.ZSQLCatalog.SQLCatalog import SimpleQuery, ComplexQuery
person = context
computer_partition = None
query_kw = {
......@@ -19,14 +18,13 @@ else:
# support SLA
# Explicit location
explicit_location = False
#explicit_location = False
if "computer_guid" in filter_kw:
explicit_location = True
#explicit_location = True
query_kw["parent_reference"] = SimpleQuery(parent_reference=filter_kw.pop("computer_guid"))
if "instance_guid" in filter_kw:
explicit_location = True
portal = context.getPortalObject()
#explicit_location = True
instance_guid = filter_kw.pop("instance_guid")
query_kw["aggregate_related_reference"] = SimpleQuery(aggregate_related_reference=instance_guid)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment