Commit 153e5452 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Get current location/project at the present date.

parent 86779556
# This script might not be efficient to a large quantities of # This script might not be efficient to a large quantities of
# Computers # Computers
kw = {"node_uid": context.getUid()} from DateTime import DateTime
kw = {"node_uid": context.getUid(),
"at_date": DateTime()}
return [ i.getObject() return [ i.getObject()
for i in context.portal_simulation.getCurrentTrackingList(**kw)] for i in context.portal_simulation.getCurrentTrackingList(**kw)]
# This script might not be efficient to a large quantities of # This script might not be efficient to a large quantities of
# Computers # Computers
from DateTime import DateTime
kw = {"project_uid": context.getUid()} kw = {"project_uid": context.getUid(),
"at_date": DateTime()}
return [ i.getObject() return [ i.getObject()
for i in context.portal_simulation.getCurrentTrackingList(**kw)] for i in context.portal_simulation.getCurrentTrackingList(**kw)]
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