Commit 8ca07000 authored by Alain Takoudjou's avatar Alain Takoudjou

slapos_cloud: portal_type 'Certificate Access ID' renamed to 'Certificate Login'

parent 072a03a3
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string>Certificate used to authenticate Object in erp5</string> </value> <value> <string>Certificate Login used to authenticate Object in erp5</string> </value>
</item> </item>
<item> <item>
<key> <string>factory</string> </key> <key> <string>factory</string> </key>
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>Certificate Access ID</string> </value> <value> <string>Certificate Login</string> </value>
</item> </item>
<item> <item>
<key> <string>init_script</string> </key> <key> <string>init_script</string> </key>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<workflow>edit_workflow, validation_workflow</workflow> <workflow>edit_workflow, validation_workflow</workflow>
</chain> </chain>
<chain> <chain>
<type>Certificate Access ID</type> <type>Certificate Login</type>
<workflow>edit_workflow, validation_workflow</workflow> <workflow>edit_workflow, validation_workflow</workflow>
</chain> </chain>
<chain> <chain>
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>CertificateAccessID_view</string> </value> <value> <string>CertificateLogin_view</string> </value>
</item> </item>
<item> <item>
<key> <string>method</string> </key> <key> <string>method</string> </key>
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
</item> </item>
<item> <item>
<key> <string>name</string> </key> <key> <string>name</string> </key>
<value> <string>CertificateAccessID_view</string> </value> <value> <string>CertificateLogin_view</string> </value>
</item> </item>
<item> <item>
<key> <string>pt</string> </key> <key> <string>pt</string> </key>
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Certificate Access ID</string> </value> <value> <string>Certificate Login</string> </value>
</item> </item>
<item> <item>
<key> <string>unicode_mode</string> </key> <key> <string>unicode_mode</string> </key>
......
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>CertificateAccessID_viewAsList</string> </value> <value> <string>CertificateLogin_viewAsList</string> </value>
</item> </item>
<item> <item>
<key> <string>method</string> </key> <key> <string>method</string> </key>
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
</item> </item>
<item> <item>
<key> <string>name</string> </key> <key> <string>name</string> </key>
<value> <string>Computer_viewCertificateAccessList</string> </value> <value> <string>CertificateLogin_viewAsList</string> </value>
</item> </item>
<item> <item>
<key> <string>pt</string> </key> <key> <string>pt</string> </key>
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Certificate Access IDs</string> </value> <value> <string>Certificate Login IDs</string> </value>
</item> </item>
<item> <item>
<key> <string>unicode_mode</string> </key> <key> <string>unicode_mode</string> </key>
......
...@@ -129,8 +129,8 @@ ...@@ -129,8 +129,8 @@
<value> <value>
<list> <list>
<tuple> <tuple>
<string>Certificate Access ID</string> <string>Certificate Login</string>
<string>Certificate Access ID</string> <string>Certificate Login</string>
</tuple> </tuple>
</list> </list>
</value> </value>
......
...@@ -7,7 +7,7 @@ try: ...@@ -7,7 +7,7 @@ try:
except KeyError, e: except KeyError, e:
raise TypeError("Computer_generateCertificate takes exactly 1 argument: %s" % str(e)) raise TypeError("Computer_generateCertificate takes exactly 1 argument: %s" % str(e))
certificate_portal_type = "Certificate Access ID" certificate_portal_type = "Certificate Login"
certificate_id_list = [x for x in certificate_id_list = [x for x in
computer.contentValues(portal_type=certificate_portal_type) computer.contentValues(portal_type=certificate_portal_type)
if x.getValidationState() == 'validated'] if x.getValidationState() == 'validated']
......
...@@ -2,7 +2,7 @@ computer = state_change['object'] ...@@ -2,7 +2,7 @@ computer = state_change['object']
context.REQUEST.set('computer_certificate', None) context.REQUEST.set('computer_certificate', None)
context.REQUEST.set('computer_certificate_url', None) context.REQUEST.set('computer_certificate_url', None)
certificate_id_list = [x for x in certificate_id_list = [x for x in
computer.contentValues(portal_type="Certificate Access ID") computer.contentValues(portal_type="Certificate Login")
if x.getValidationState() == 'validated'] if x.getValidationState() == 'validated']
if not len(certificate_id_list): if not len(certificate_id_list):
......
Caucase REST Client Interface | view Caucase REST Client Interface | view
Certificate Access ID | view Certificate Login | view
Computer Model | view_capacity Computer Model | view_capacity
Computer Network | view_computer_list Computer Network | view_computer_list
Computer Network | view_software_release Computer Network | view_software_release
......
Computer | Certificate Access ID Computer | Certificate Login
Hosting Subscription Module | Hosting Subscription Hosting Subscription Module | Hosting Subscription
Person | Certificate Access ID Person | Certificate Login
Software Installation Module | Software Installation Software Installation Module | Software Installation
Software Instance Module | Slave Instance Software Instance Module | Slave Instance
Software Instance Module | Software Instance Software Instance Module | Software Instance
Software Instance | Certificate Access ID Software Instance | Certificate Login
\ No newline at end of file \ No newline at end of file
Caucase REST Client Interface Caucase REST Client Interface
Certificate Access ID Certificate Login
Hosting Subscription Hosting Subscription
Hosting Subscription Module Hosting Subscription Module
Slave Instance Slave Instance
......
...@@ -2,8 +2,8 @@ Assignment | SlaposAssignmentConstraint ...@@ -2,8 +2,8 @@ Assignment | SlaposAssignmentConstraint
Caucase REST Client Interface | Login Caucase REST Client Interface | Login
Caucase REST Client Interface | RESTClientInterface Caucase REST Client Interface | RESTClientInterface
Caucase REST Client Interface | Url Caucase REST Client Interface | Url
Certificate Access ID | Reference Certificate Login | Reference
Certificate Access ID | Url Certificate Login | Url
Computer Model | SlaposCapacity Computer Model | SlaposCapacity
Computer Partition | ComputerPartition Computer Partition | ComputerPartition
Computer Partition | SlaposComputerPartitionConstraint Computer Partition | SlaposComputerPartitionConstraint
......
Caucase REST Client Interface | edit_workflow Caucase REST Client Interface | edit_workflow
Caucase REST Client Interface | validation_workflow Caucase REST Client Interface | validation_workflow
Certificate Access ID | edit_workflow Certificate Login | edit_workflow
Certificate Access ID | validation_workflow Certificate Login | validation_workflow
Computer Partition | computer_partition_slap_interface_workflow Computer Partition | computer_partition_slap_interface_workflow
Computer | computer_slap_interface_workflow Computer | computer_slap_interface_workflow
Computer | slapos_cloud_interaction_workflow Computer | slapos_cloud_interaction_workflow
......
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