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
Eric Zheng
slapos.core
Commits
37a6f91d
Commit
37a6f91d
authored
Oct 05, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix constraint migration.
Some conditions were missing (WHY??).
parent
3326057a
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
197 additions
and
1 deletion
+197
-1
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibAssignmentConstraint/person_state_constraint.xml
...ets/VifibAssignmentConstraint/person_state_constraint.xml
+28
-0
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibComputerConstraint/reference_unicity_constraint.xml
.../VifibComputerConstraint/reference_unicity_constraint.xml
+28
-0
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibEmailConstraint/email_unicity_constraint.xml
..._sheets/VifibEmailConstraint/email_unicity_constraint.xml
+28
-0
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibPurchasePackingListLineConstraint/computer_state_constraint.xml
...sePackingListLineConstraint/computer_state_constraint.xml
+28
-0
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibPurchasePackingListLineConstraint/resource_state_constraint.xml
...sePackingListLineConstraint/resource_state_constraint.xml
+28
-0
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibPurchasePackingListLineConstraint/software_release_state_constraint.xml
...gListLineConstraint/software_release_state_constraint.xml
+28
-0
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSoftwareProductConstraint/title_unicity_constraint.xml
...fibSoftwareProductConstraint/title_unicity_constraint.xml
+28
-0
master/bt5/vifib_erp5/bt/revision
master/bt5/vifib_erp5/bt/revision
+1
-1
No files found.
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibAssignmentConstraint/person_state_constraint.xml
View file @
37a6f91d
...
@@ -32,6 +32,18 @@
...
@@ -32,6 +32,18 @@
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
person_state_constraint
</string>
</value>
<value>
<string>
person_state_constraint
</string>
</value>
</item>
</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>
<item>
<key>
<string>
membership_portal_type_list
</string>
</key>
<key>
<string>
membership_portal_type_list
</string>
</key>
<value>
<string>
python: (\'Person\',)
</string>
</value>
<value>
<string>
python: (\'Person\',)
</string>
</value>
...
@@ -44,6 +56,22 @@
...
@@ -44,6 +56,22 @@
<key>
<string>
portal_type
</string>
</key>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category Membership State Constraint
</string>
</value>
<value>
<string>
Category Membership State Constraint
</string>
</value>
</item>
</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() in ("updated", "draft")
</string>
</value>
</item>
<item>
<item>
<key>
<string>
workflow_state_list
</string>
</key>
<key>
<string>
workflow_state_list
</string>
</key>
<value>
<string>
python: \'validated\'
</string>
</value>
<value>
<string>
python: \'validated\'
</string>
</value>
...
...
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibComputerConstraint/reference_unicity_constraint.xml
View file @
37a6f91d
...
@@ -40,6 +40,18 @@
...
@@ -40,6 +40,18 @@
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
reference_unicity_constraint
</string>
</value>
<value>
<string>
reference_unicity_constraint
</string>
</value>
</item>
</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>
<item>
<key>
<string>
message_invalid_attribute_unicity
</string>
</key>
<key>
<string>
message_invalid_attribute_unicity
</string>
</key>
<value>
<string>
Reference must be unique
</string>
</value>
<value>
<string>
Reference must be unique
</string>
</value>
...
@@ -48,6 +60,22 @@
...
@@ -48,6 +60,22 @@
<key>
<string>
portal_type
</string>
</key>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Attribute Unicity Constraint
</string>
</value>
<value>
<string>
Attribute Unicity Constraint
</string>
</value>
</item>
</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.getReference("") != ""
</string>
</value>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
</record>
</record>
...
...
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibEmailConstraint/email_unicity_constraint.xml
View file @
37a6f91d
...
@@ -40,6 +40,18 @@
...
@@ -40,6 +40,18 @@
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
email_unicity_constraint
</string>
</value>
<value>
<string>
email_unicity_constraint
</string>
</value>
</item>
</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>
<item>
<key>
<string>
message_invalid_attribute_unicity
</string>
</key>
<key>
<string>
message_invalid_attribute_unicity
</string>
</key>
<value>
<string>
Email must be unique
</string>
</value>
<value>
<string>
Email must be unique
</string>
</value>
...
@@ -48,6 +60,22 @@
...
@@ -48,6 +60,22 @@
<key>
<string>
portal_type
</string>
</key>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Attribute Unicity Constraint
</string>
</value>
<value>
<string>
Attribute Unicity Constraint
</string>
</value>
</item>
</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.getCoordinateText("") != ""
</string>
</value>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
</record>
</record>
...
...
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibPurchasePackingListLineConstraint/computer_state_constraint.xml
View file @
37a6f91d
...
@@ -32,6 +32,18 @@
...
@@ -32,6 +32,18 @@
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
computer_state_constraint
</string>
</value>
<value>
<string>
computer_state_constraint
</string>
</value>
</item>
</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>
<item>
<key>
<string>
membership_portal_type_list
</string>
</key>
<key>
<string>
membership_portal_type_list
</string>
</key>
<value>
<string>
python: (\'Computer\',)
</string>
</value>
<value>
<string>
python: (\'Computer\',)
</string>
</value>
...
@@ -44,6 +56,22 @@
...
@@ -44,6 +56,22 @@
<key>
<string>
portal_type
</string>
</key>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category Membership State Constraint
</string>
</value>
<value>
<string>
Category Membership State Constraint
</string>
</value>
</item>
</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.getAggregateValue(portal_type=\'Computer\') is not None
</string>
</value>
</item>
<item>
<item>
<key>
<string>
workflow_state_list
</string>
</key>
<key>
<string>
workflow_state_list
</string>
</key>
<value>
<string>
python: \'validated\'
</string>
</value>
<value>
<string>
python: \'validated\'
</string>
</value>
...
...
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibPurchasePackingListLineConstraint/resource_state_constraint.xml
View file @
37a6f91d
...
@@ -32,6 +32,18 @@
...
@@ -32,6 +32,18 @@
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
resource_state_constraint
</string>
</value>
<value>
<string>
resource_state_constraint
</string>
</value>
</item>
</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>
<item>
<key>
<string>
membership_portal_type_list
</string>
</key>
<key>
<string>
membership_portal_type_list
</string>
</key>
<value>
<string>
python: (\'Service\',)
</string>
</value>
<value>
<string>
python: (\'Service\',)
</string>
</value>
...
@@ -44,6 +56,22 @@
...
@@ -44,6 +56,22 @@
<key>
<string>
portal_type
</string>
</key>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category Membership State Constraint
</string>
</value>
<value>
<string>
Category Membership State Constraint
</string>
</value>
</item>
</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.getResourceValue() is not None
</string>
</value>
</item>
<item>
<item>
<key>
<string>
workflow_state_list
</string>
</key>
<key>
<string>
workflow_state_list
</string>
</key>
<value>
<string>
python: \'validated\'
</string>
</value>
<value>
<string>
python: \'validated\'
</string>
</value>
...
...
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibPurchasePackingListLineConstraint/software_release_state_constraint.xml
View file @
37a6f91d
...
@@ -32,6 +32,18 @@
...
@@ -32,6 +32,18 @@
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
software_release_state_constraint
</string>
</value>
<value>
<string>
software_release_state_constraint
</string>
</value>
</item>
</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>
<item>
<key>
<string>
membership_portal_type_list
</string>
</key>
<key>
<string>
membership_portal_type_list
</string>
</key>
<value>
<string>
python: (\'Software Release\',)
</string>
</value>
<value>
<string>
python: (\'Software Release\',)
</string>
</value>
...
@@ -44,6 +56,22 @@
...
@@ -44,6 +56,22 @@
<key>
<string>
portal_type
</string>
</key>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category Membership State Constraint
</string>
</value>
<value>
<string>
Category Membership State Constraint
</string>
</value>
</item>
</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.getAggregateValue(portal_type=\'Software Release\') is not None
</string>
</value>
</item>
<item>
<item>
<key>
<string>
workflow_state_list
</string>
</key>
<key>
<string>
workflow_state_list
</string>
</key>
<value>
<string>
python: (\'shared\', \'released\', \'published\')
</string>
</value>
<value>
<string>
python: (\'shared\', \'released\', \'published\')
</string>
</value>
...
...
master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSoftwareProductConstraint/title_unicity_constraint.xml
View file @
37a6f91d
...
@@ -38,6 +38,18 @@
...
@@ -38,6 +38,18 @@
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
title_unicity_constraint
</string>
</value>
<value>
<string>
title_unicity_constraint
</string>
</value>
</item>
</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>
<item>
<key>
<string>
message_invalid_attribute_unicity
</string>
</key>
<key>
<string>
message_invalid_attribute_unicity
</string>
</key>
<value>
<string>
Title already exists
</string>
</value>
<value>
<string>
Title already exists
</string>
</value>
...
@@ -46,6 +58,22 @@
...
@@ -46,6 +58,22 @@
<key>
<string>
portal_type
</string>
</key>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Attribute Unicity Constraint
</string>
</value>
<value>
<string>
Attribute Unicity Constraint
</string>
</value>
</item>
</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.getTitle("") != ""
</string>
</value>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
</record>
</record>
...
...
master/bt5/vifib_erp5/bt/revision
View file @
37a6f91d
207
208
\ 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