Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
4a39958d
Commit
4a39958d
authored
Feb 07, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to searchAndActivate.
Analyze one transaction per transaction.
parent
b9072f02
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
14 deletions
+17
-14
master/bt5/vifib_payzen/SkinTemplateItem/portal_skins/vifib_payzen/Alarm_registerPlannedPaymentTransactionPayzen.xml
..._payzen/Alarm_registerPlannedPaymentTransactionPayzen.xml
+6
-7
master/bt5/vifib_payzen/SkinTemplateItem/portal_skins/vifib_payzen/Alarm_updatePayzenConfirmedPaymentTransaction.xml
..._payzen/Alarm_updatePayzenConfirmedPaymentTransaction.xml
+6
-6
master/bt5/vifib_payzen/SkinTemplateItem/portal_skins/vifib_payzen/PaymentTransaction_registerPayzen.xml
..._skins/vifib_payzen/PaymentTransaction_registerPayzen.xml
+2
-0
master/bt5/vifib_payzen/SkinTemplateItem/portal_skins/vifib_payzen/PaymentTransaction_updateStatus.xml
...al_skins/vifib_payzen/PaymentTransaction_updateStatus.xml
+2
-0
master/bt5/vifib_payzen/bt/revision
master/bt5/vifib_payzen/bt/revision
+1
-1
No files found.
master/bt5/vifib_payzen/SkinTemplateItem/portal_skins/vifib_payzen/Alarm_registerPlannedPaymentTransactionPayzen.xml
View file @
4a39958d
...
@@ -51,19 +51,18 @@
...
@@ -51,19 +51,18 @@
<item>
<item>
<key>
<string>
_body
</string>
</key>
<key>
<string>
_body
</string>
</key>
<value>
<string>
portal = context.getPortalObject()\n
<value>
<string>
portal = context.getPortalObject()\n
for payment_transaction in portal.portal_catalog
(\n
portal.portal_catalog.searchAndActivate
(\n
portal_type="Payment Transaction", \n
portal_type="Payment Transaction", \n
simulation_state="planned",\n
simulation_state="planned",\n
limit=10\n
method_id=\'PaymentTransaction_registerPayzen\',\n
):\n
packet_size=1, # just one to minimise errors\n
# do not trust catalog\n
activate_kw={\'tag\': tag}\n
if payment_transaction.getSimulationState() == \'planned\':\n
)\n
payment_transaction.PaymentTransaction_registerPayzen()\n
</string>
</value>
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
<value>
<string>
tag, fixit, params
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
master/bt5/vifib_payzen/SkinTemplateItem/portal_skins/vifib_payzen/Alarm_updatePayzenConfirmedPaymentTransaction.xml
View file @
4a39958d
...
@@ -51,18 +51,18 @@
...
@@ -51,18 +51,18 @@
<item>
<item>
<key>
<string>
_body
</string>
</key>
<key>
<string>
_body
</string>
</key>
<value>
<string>
portal = context.getPortalObject()\n
<value>
<string>
portal = context.getPortalObject()\n
for payment_transaction in portal.portal_catalog
(\n
portal.portal_catalog.searchAndActivate
(\n
portal_type="Payment Transaction", \n
portal_type="Payment Transaction", \n
simulation_state="confirmed",\n
simulation_state="confirmed",\n
):
\n
method_id=\'PaymentTransaction_updateStatus\',
\n
# do not trust catalog
\n
packet_size=1, # just one to minimise errors
\n
if payment_transaction.getSimulationState() == \'confirmed\':
\n
activate_kw={\'tag\': tag}
\n
payment_transaction.activate().PaymentTransaction_updateStatus(
)\n
)\n
</string>
</value>
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
<value>
<string>
tag, fixit, params
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
master/bt5/vifib_payzen/SkinTemplateItem/portal_skins/vifib_payzen/PaymentTransaction_registerPayzen.xml
View file @
4a39958d
...
@@ -51,6 +51,8 @@
...
@@ -51,6 +51,8 @@
<item>
<item>
<key>
<string>
_body
</string>
</key>
<key>
<string>
_body
</string>
</key>
<value>
<string>
portal = context.getPortalObject()\n
<value>
<string>
portal = context.getPortalObject()\n
if context.getSimulationState() != \'planned\':\n
return\n
service = portal.portal_secure_payments.find()\n
service = portal.portal_secure_payments.find()\n
portal.system_event_module.newContent(title=\'Transaction %s Payzen registration\' % context.getTitle(), portal_type=\'Payzen Event\', source_value=service, destination_value=context).registerPayzen()\n
portal.system_event_module.newContent(title=\'Transaction %s Payzen registration\' % context.getTitle(), portal_type=\'Payzen Event\', source_value=service, destination_value=context).registerPayzen()\n
</string>
</value>
</string>
</value>
...
...
master/bt5/vifib_payzen/SkinTemplateItem/portal_skins/vifib_payzen/PaymentTransaction_updateStatus.xml
View file @
4a39958d
...
@@ -51,6 +51,8 @@
...
@@ -51,6 +51,8 @@
<item>
<item>
<key>
<string>
_body
</string>
</key>
<key>
<string>
_body
</string>
</key>
<value>
<string>
portal = context.getPortalObject()\n
<value>
<string>
portal = context.getPortalObject()\n
if context.getSimulationState() != \'confirmed\':\n
return\n
service = portal.portal_secure_payments.find()\n
service = portal.portal_secure_payments.find()\n
portal.system_event_module.newContent(title=\'Transaction %s Payzen status update\' % context.getTitle(), portal_type=\'Payzen Event\', source_value=service, destination_value=context).updateStatus()\n
portal.system_event_module.newContent(title=\'Transaction %s Payzen status update\' % context.getTitle(), portal_type=\'Payzen Event\', source_value=service, destination_value=context).updateStatus()\n
</string>
</value>
</string>
</value>
...
...
master/bt5/vifib_payzen/bt/revision
View file @
4a39958d
50
51
\ No newline at end of file
\ No newline at end of file
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