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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gabriel Monnerat
slapos.core
Commits
1ae88498
Commit
1ae88498
authored
Mar 02, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master' into performance-hack
parents
6c9d9c1c
04bbc8e7
Changes
22
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
1056 additions
and
32 deletions
+1056
-32
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibEmailConstraint/email_unicity_constraint.xml
..._sheets/VifibEmailConstraint/email_unicity_constraint.xml
+1
-1
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSoftwareReleaseConstraint/aggregate_category_membership_arity_constraint.xml
...traint/aggregate_category_membership_arity_constraint.xml
+25
-1
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSoftwareReleaseConstraint/aggregate_state_constraint.xml
...bSoftwareReleaseConstraint/aggregate_state_constraint.xml
+1
-1
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSoftwareReleaseConstraint/contributor_state_constraint.xml
...oftwareReleaseConstraint/contributor_state_constraint.xml
+28
-0
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSoftwareReleaseConstraint/language_not_empty_constraint.xml
...ftwareReleaseConstraint/language_not_empty_constraint.xml
+28
-0
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSoftwareReleaseConstraint/reference_not_empty_constraint.xml
...twareReleaseConstraint/reference_not_empty_constraint.xml
+28
-0
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSoftwareReleaseConstraint/url_not_empty_constraint.xml
...fibSoftwareReleaseConstraint/url_not_empty_constraint.xml
+28
-0
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSoftwareReleaseConstraint/url_unicity_constraint.xml
...VifibSoftwareReleaseConstraint/url_unicity_constraint.xml
+1
-1
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSoftwareReleaseConstraint/version_not_empty_constraint.xml
...oftwareReleaseConstraint/version_not_empty_constraint.xml
+28
-0
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSoftwareReleaseConstraint/version_unicity_constraint.xml
...bSoftwareReleaseConstraint/version_unicity_constraint.xml
+1
-1
master/bt5/vifib_erp5/bt/revision
master/bt5/vifib_erp5/bt/revision
+1
-1
master/bt5/vifib_open_trade/SkinTemplateItem/portal_skins/vifib_open_trade/OpenSaleOrderLine_getSoftwareInstanceList.xml
..._open_trade/OpenSaleOrderLine_getSoftwareInstanceList.xml
+7
-16
master/bt5/vifib_open_trade/bt/revision
master/bt5/vifib_open_trade/bt/revision
+1
-1
master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/SoftwareInstance_getInstancePackingListLine.xml
...ifib_slap/SoftwareInstance_getInstancePackingListLine.xml
+2
-2
master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/SoftwareInstance_getStatus.xml
...em/portal_skins/vifib_slap/SoftwareInstance_getStatus.xml
+12
-4
master/bt5/vifib_slap/bt/revision
master/bt5/vifib_slap/bt/revision
+1
-1
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/SoftwareInstanceConnectionKey_renderURL.xml
...vifib_hosting/SoftwareInstanceConnectionKey_renderURL.xml
+70
-0
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/SoftwareInstanceConnectionValue_renderURL.xml
...fib_hosting/SoftwareInstanceConnectionValue_renderURL.xml
+70
-0
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/SoftwareInstance_getConnectionParameterList.xml
...b_hosting/SoftwareInstance_getConnectionParameterList.xml
+83
-0
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/SoftwareInstance_viewAsWeb.xml
...portal_skins/vifib_hosting/SoftwareInstance_viewAsWeb.xml
+1
-1
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/SoftwareInstance_viewAsWeb/your_connection_listbox.xml
...ng/SoftwareInstance_viewAsWeb/your_connection_listbox.xml
+638
-0
master/bt5/vifib_web/bt/revision
master/bt5/vifib_web/bt/revision
+1
-1
No files found.
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibEmailConstraint/email_unicity_constraint.xml
View file @
1ae88498
...
...
@@ -72,7 +72,7 @@
</item>
<item>
<key>
<string>
test_tales_expression
</string>
</key>
<value>
<string>
python: object.getCoordinateText("") != ""
</string>
</value>
<value>
<string>
python: object.getCoordinateText("") != ""
and context.getValidationState() != \'cancelled\'
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSoftwareReleaseConstraint/aggregate_category_membership_arity_constraint.xml
View file @
1ae88498
...
...
@@ -40,10 +40,22 @@
<key>
<string>
id
</string>
</key>
<value>
<string>
aggregate_category_membership_arity_constraint
</string>
</value>
</item>
<item>
<key>
<string>
int_index
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
max_arity
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
membership_criterion_category
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
message_arity_not_in_range
</string>
</key>
<value>
<string>
One Software Product must be defined
</string>
</value>
...
...
@@ -68,9 +80,21 @@
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category Membership Arity Constraint
</string>
</value>
</item>
<item>
<key>
<string>
string_index
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
test_method_id
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
test_tales_expression
</string>
</key>
<value>
<string>
python: object.getValidationState()
!= \'draft\'
</string>
</value>
<value>
<string>
python: object.getValidationState()
not in (\'draft\' , \'cancelled\')
</string>
</value>
</item>
<item>
<key>
<string>
use_acquisition
</string>
</key>
...
...
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSoftwareReleaseConstraint/aggregate_state_constraint.xml
View file @
1ae88498
...
...
@@ -70,7 +70,7 @@
</item>
<item>
<key>
<string>
test_tales_expression
</string>
</key>
<value>
<string>
python: object.getValidationState()
!= \'draft\'
</string>
</value>
<value>
<string>
python: object.getValidationState()
not in (\'draft\', \'cancelled\')
</string>
</value>
</item>
<item>
<key>
<string>
workflow_state_list
</string>
</key>
...
...
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSoftwareReleaseConstraint/contributor_state_constraint.xml
View file @
1ae88498
...
...
@@ -32,6 +32,18 @@
<key>
<string>
id
</string>
</key>
<value>
<string>
contributor_state_constraint
</string>
</value>
</item>
<item>
<key>
<string>
int_index
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
membership_criterion_category
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
membership_portal_type_list
</string>
</key>
<value>
<string>
python: (\'Person\',)
</string>
</value>
...
...
@@ -44,6 +56,22 @@
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category Membership State Constraint
</string>
</value>
</item>
<item>
<key>
<string>
string_index
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
test_method_id
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
test_tales_expression
</string>
</key>
<value>
<string>
python: context.getValidationState() != \'cancelled\'
</string>
</value>
</item>
<item>
<key>
<string>
workflow_state_list
</string>
</key>
<value>
<string>
python: \'validated\'
</string>
</value>
...
...
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSoftwareReleaseConstraint/language_not_empty_constraint.xml
View file @
1ae88498
...
...
@@ -53,6 +53,18 @@
<key>
<string>
id
</string>
</key>
<value>
<string>
language_not_empty_constraint
</string>
</value>
</item>
<item>
<key>
<string>
int_index
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
membership_criterion_category
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
message_attribute_match
</string>
</key>
<value>
<string>
Language should be defined
</string>
</value>
...
...
@@ -69,6 +81,22 @@
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
String Attribute Match Constraint
</string>
</value>
</item>
<item>
<key>
<string>
string_index
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
test_method_id
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
test_tales_expression
</string>
</key>
<value>
<string>
python: context.getValidationState() != \'cancelled\'
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
...
...
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSoftwareReleaseConstraint/reference_not_empty_constraint.xml
View file @
1ae88498
...
...
@@ -53,6 +53,18 @@
<key>
<string>
id
</string>
</key>
<value>
<string>
reference_not_empty_constraint
</string>
</value>
</item>
<item>
<key>
<string>
int_index
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
membership_criterion_category
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
message_attribute_match
</string>
</key>
<value>
<string>
Reference must be defined
</string>
</value>
...
...
@@ -69,6 +81,22 @@
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
String Attribute Match Constraint
</string>
</value>
</item>
<item>
<key>
<string>
string_index
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
test_method_id
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
test_tales_expression
</string>
</key>
<value>
<string>
python: context.getValidationState() != \'cancelled\'
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
...
...
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSoftwareReleaseConstraint/url_not_empty_constraint.xml
View file @
1ae88498
...
...
@@ -53,6 +53,18 @@
<key>
<string>
id
</string>
</key>
<value>
<string>
url_not_empty_constraint
</string>
</value>
</item>
<item>
<key>
<string>
int_index
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
membership_criterion_category
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
message_attribute_match
</string>
</key>
<value>
<string>
URL must be defined
</string>
</value>
...
...
@@ -69,6 +81,22 @@
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
String Attribute Match Constraint
</string>
</value>
</item>
<item>
<key>
<string>
string_index
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
test_method_id
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
test_tales_expression
</string>
</key>
<value>
<string>
python: context.getValidationState() != \'cancelled\'
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
...
...
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSoftwareReleaseConstraint/url_unicity_constraint.xml
View file @
1ae88498
...
...
@@ -74,7 +74,7 @@
</item>
<item>
<key>
<string>
test_tales_expression
</string>
</key>
<value>
<string>
python: object.getUrlString("") != ""
</string>
</value>
<value>
<string>
python: object.getUrlString("") != ""
and context.getValidationState() != \'cancelled\'
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSoftwareReleaseConstraint/version_not_empty_constraint.xml
View file @
1ae88498
...
...
@@ -53,6 +53,18 @@
<key>
<string>
id
</string>
</key>
<value>
<string>
version_not_empty_constraint
</string>
</value>
</item>
<item>
<key>
<string>
int_index
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
membership_criterion_category
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
message_attribute_match
</string>
</key>
<value>
<string>
Version should be defined
</string>
</value>
...
...
@@ -69,6 +81,22 @@
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
String Attribute Match Constraint
</string>
</value>
</item>
<item>
<key>
<string>
string_index
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
test_method_id
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
test_tales_expression
</string>
</key>
<value>
<string>
python: context.getValidationState() != \'cancelled\'
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
...
...
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSoftwareReleaseConstraint/version_unicity_constraint.xml
View file @
1ae88498
...
...
@@ -74,7 +74,7 @@
</item>
<item>
<key>
<string>
test_tales_expression
</string>
</key>
<value>
<string>
python: object.getVersion("") != ""
</string>
</value>
<value>
<string>
python: object.getVersion("") != ""
and context.getValidationState() != \'cancelled\'
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
master/bt5/vifib_erp5/bt/revision
View file @
1ae88498
394
\ No newline at end of file
395
\ No newline at end of file
master/bt5/vifib_open_trade/SkinTemplateItem/portal_skins/vifib_open_trade/OpenSaleOrderLine_getSoftwareInstanceList.xml
View file @
1ae88498
...
...
@@ -50,26 +50,17 @@
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
subscription_item = context.getAggregateValue(portal_type="Hosting Subscription")\n
<value>
<string>
portal = context.getPortalObject()\n
subscription_item = context.getAggregateValue(portal_type="Hosting Subscription")\n
\n
line_list = context.portal_catalog(\n
portal_type="Sale Packing List Line",\n
resource_relative_url=context.portal_preferences.getPreferredInstanceSetupResource(),\n
aggregate_uid=subscription_item.getUid())\n
\n
order_line_list = context.portal_catalog( \n
portal_type="Sale Order Line",\n
resource_relative_url=context.portal_preferences.getPreferredInstanceSetupResource(),\n
aggregate_relative_url=subscription_item.getRelativeUrl(),\n
simulation_state="ordered")\n
\n
# XXX order line has to display (as order is under approval)\n
portal_type=["Sale Order Line", "Sale Packing List Line"],\n
default_resource_uid=portal.restrictedTraverse(context.portal_preferences.getPreferredInstanceSetupResource()).getUid(),\n
default_aggregate_uid=subscription_item.getUid())\n
\n
portal_type_list = ["Software Instance", "Slave Instance"]\n
result = [x.getAggregateValue(portal_type=portal_type_list) for x in line_list]\n
result.extend([x.getAggregateValue(portal_type=portal_type_list) for x in order_line_list])\n
# result.extend([x.getObject() for x in order_line_list])\n
return result\n
instance_dict = dict([(x.getAggregate(portal_type=portal_type_list), 0) for x in line_list])\n
return [portal.restrictedTraverse(x) for x in instance_dict.keys()]\n
</string>
</value>
</item>
<item>
...
...
master/bt5/vifib_open_trade/bt/revision
View file @
1ae88498
166
\ No newline at end of file
167
\ No newline at end of file
master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/SoftwareInstance_getInstancePackingListLine.xml
View file @
1ae88498
...
...
@@ -80,7 +80,7 @@ state_list.extend(portal.getPortalTransitInventoryStateList())\n
state_list.extend(portal.getPortalCurrentInventoryStateList())\n
\n
packing_list_line = portal.portal_catalog.getResultValue(\n
portal_type=
\'Sale Packing List Line\'
,\n
portal_type=
portal_type
,\n
simulation_state=state_list,\n
aggregate_uid=software_instance.getUid(),\n
default_resource_uid=service_uid_list,\n
...
...
@@ -95,7 +95,7 @@ return packing_list_line\n
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
service_relative_url=None
</string>
</value>
<value>
<string>
service_relative_url=None
, portal_type="Sale Packing List Line"
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/SoftwareInstance_getStatus.xml
View file @
1ae88498
...
...
@@ -56,7 +56,11 @@ if context.getPortalType() == "Sale Order Line":\n
\n
sale_packing_list_line = context.SoftwareInstance_getInstancePackingListLine()\n
if sale_packing_list_line is None:\n
return \'Destroyed\'\n
sale_packing_list_line = context.SoftwareInstance_getInstancePackingListLine(portal_type="Sale Order Line")\n
if sale_packing_list_line is None:\n
# Let\'s hope the sale order is not indexed yet\n
return \'Looking for a free partition\'\n
\n
service_url = sale_packing_list_line.getResource()\n
\n
portal_preferences = context.getPortalObject().portal_preferences\n
...
...
@@ -64,8 +68,12 @@ simulation_state = sale_packing_list_line.getSimulationState()\n
if service_url == portal_preferences.getPreferredInstanceSetupResource():\n
if simulation_state == \'delivered\':\n
return \'Destroyed\'\n
elif simulation_state in (\'confirmed\', \'started\'):\n
elif simulation_state in (\'confirmed\', ):\n
return \'Waiting for partition instanciation\'\n
elif simulation_state in (\'started\', ):\n
return \'Instanciation in progress\'\n
elif simulation_state in (\'ordered\', ):\n
return \'Looking for a free partition\'\n
return \'Stopped\'\n
elif service_url == portal_preferences.getPreferredInstanceCleanupResource():\n
if simulation_state == \'delivered\':\n
...
...
@@ -80,8 +88,8 @@ elif service_url == portal_preferences.getPreferredInstanceHostingResource():\n
return \'Stop in progress\'\n
elif simulation_state == \'delivered\':\n
return \'Stopped\'\n
else:
\n
return \'Unknown
\'\n
\n
return \'Unable to calculate the status...
\'\n
</string>
</value>
</item>
<item>
...
...
master/bt5/vifib_slap/bt/revision
View file @
1ae88498
590
\ No newline at end of file
592
\ No newline at end of file
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/SoftwareInstanceConnectionKey_renderURL.xml
0 → 100644
View file @
1ae88498
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
v = context.getProperty(\'connection_key\')\n
\n
if v is not None and v.startswith(\'http:\') or v.startswith(\'https:\'):\n
return v\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
*args, **kwargs
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
SoftwareInstanceConnectionKey_renderURL
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/SoftwareInstanceConnectionValue_renderURL.xml
0 → 100644
View file @
1ae88498
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
v = context.getProperty(\'connection_value\')\n
\n
if v is not None and v.startswith(\'http\'):\n
return v\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
*args, **kwargs
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
SoftwareInstanceConnectionValue_renderURL
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/SoftwareInstance_getConnectionParameterList.xml
0 → 100644
View file @
1ae88498
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
from Products.ERP5Type.Document import newTempDocument\n
\n
return_list = []\n
try:\n
connection_dict = context.getConnectionXmlAsDict()\n
except:\n
return return_list\n
\n
if connection_dict is None:\n
return return_list\n
\n
portal = context.getPortalObject()\n
for k, v in connection_dict.iteritems():\n
d = newTempDocument(portal, \'temp\')\n
d.edit(connection_key=k, connection_value=v)\n
return_list.append(d)\n
return return_list\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
*args, **kwargs
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
SoftwareInstance_getConnectionParameterList
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/SoftwareInstance_viewAsWeb.xml
View file @
1ae88498
...
...
@@ -102,7 +102,7 @@
<key>
<string>
normal bis
</string>
</key>
<value>
<list>
<string>
your_connection_
xml
</string>
<string>
your_connection_
listbox
</string>
</list>
</value>
</item>
...
...
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/SoftwareInstance_viewAsWeb/your_connection_
xml
.xml
→
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/SoftwareInstance_viewAsWeb/your_connection_
listbox
.xml
View file @
1ae88498
This diff is collapsed.
Click to expand it.
master/bt5/vifib_web/bt/revision
View file @
1ae88498
328
\ No newline at end of file
330
\ 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