Commit 8a910a35 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_subscription_request: Add script to get the user Created on the Transaction

    This help us to avoid query outdated catalog, consider that the user is only at transaction for now.
parent 2b5711da
......@@ -9,6 +9,11 @@ def SubscriptionRequest_saveTransactionalUser(self, person=None):
getTransactionalVariable()["transactional_user"] = person
return person
def SubscriptionRequest_getTransactionalUser(self, REQUEST=None):
if REQUEST is not None:
raise Unauthorized
return getTransactionalVariable().get("transactional_user", None)
def Base_instanceXmlToDict(self, xml):
result_dict = {}
try:
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ExternalMethod" module="Products.ExternalMethod.ExternalMethod"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_function</string> </key>
<value> <string>SubscriptionRequest_getTransactionalUser</string> </value>
</item>
<item>
<key> <string>_module</string> </key>
<value> <string>SlapOSSubscriptionRequest</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>SubscriptionRequest_getTransactionalUser</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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