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
18
Merge Requests
18
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
nexedi
slapos.core
Commits
721394d9
Commit
721394d9
authored
Jan 28, 2013
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use template to initialize the ticket.
parent
b58a0201
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
master/bt5/slapos_payzen/SkinTemplateItem/portal_skins/slapos_payzen/PaymentTransaction_addPayzenTicket.xml
...kins/slapos_payzen/PaymentTransaction_addPayzenTicket.xml
+8
-3
master/bt5/slapos_payzen/SkinTemplateItem/portal_skins/slapos_payzen/PaymentTransaction_sendManualPayzenPaymentUrl.xml
..._payzen/PaymentTransaction_sendManualPayzenPaymentUrl.xml
+2
-0
master/bt5/slapos_payzen/bt/revision
master/bt5/slapos_payzen/bt/revision
+1
-1
No files found.
master/bt5/slapos_payzen/SkinTemplateItem/portal_skins/slapos_payzen/PaymentTransaction_addPayzenTicket.xml
View file @
721394d9
...
@@ -64,10 +64,15 @@ ticket_relative_url = integration_site.getCategoryFromMapping(\'SourceProject/%s
...
@@ -64,10 +64,15 @@ ticket_relative_url = integration_site.getCategoryFromMapping(\'SourceProject/%s
if ticket_relative_url != \'source_project/%s\' % context.getId().replace(\'-\', \'_\'):\n
if ticket_relative_url != \'source_project/%s\' % context.getId().replace(\'-\', \'_\'):\n
ticket = portal.restrictedTraverse(ticket_relative_url)\n
ticket = portal.restrictedTraverse(ticket_relative_url)\n
else:\n
else:\n
ticket = portal.support_request_module.newContent(\n
support_request_template = portal.restrictedTraverse(\n
portal_type=\'Support Request\',\n
portal.portal_preferences.getPreferredSupportRequestTemplate())\n
ticket = support_request_template.Base_createCloneDocument(batch_mode=1)\n
ticket.edit(\n
source_project_value=context,\n
source_project_value=context,\n
title=\'Payzen Transaction to check\',\n
title=\'Payzen Transaction to check for "%s"\' % context.getDestinationSectionTitle(),\n
destination_decision_value=context.getDestinationSectionValue(),\n
start_date=DateTime(),\n
resource=portal.portal_preferences.getPreferredSupportRequestResource(),\n
)\n
)\n
ticket.validate(comment=\'New automatic ticket for %s\' % context.getTitle())\n
ticket.validate(comment=\'New automatic ticket for %s\' % context.getTitle())\n
\n
\n
...
...
master/bt5/slapos_payzen/SkinTemplateItem/portal_skins/slapos_payzen/PaymentTransaction_sendManualPayzenPaymentUrl.xml
View file @
721394d9
...
@@ -64,6 +64,8 @@ site_message = portal.event_module.newContent(\n
...
@@ -64,6 +64,8 @@ site_message = portal.event_module.newContent(\n
destination_value=context.getDestinationSectionValue(),\n
destination_value=context.getDestinationSectionValue(),\n
follow_up=ticket.getRelativeUrl(),\n
follow_up=ticket.getRelativeUrl(),\n
source_value=context.getSourceSectionValue(),\n
source_value=context.getSourceSectionValue(),\n
resource=ticket.getResource(),\n
title="Payment requested",\n
# XXX Hardcoded script provided by another bt5\n
# XXX Hardcoded script provided by another bt5\n
text_content=\'Please pay your payment by clicking <a \'\\\n
text_content=\'Please pay your payment by clicking <a \'\\\n
\'href="%s/PaymentTransaction_redirectToManualPayzenPayment">
here
</a>
.\' % \\\n
\'href="%s/PaymentTransaction_redirectToManualPayzenPayment">
here
</a>
.\' % \\\n
...
...
master/bt5/slapos_payzen/bt/revision
View file @
721394d9
98
99
\ 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