On the way to alternative inputs. Still needs unit and integration testing

This commit is contained in:
Vincent Jacques
2012-03-16 08:11:07 +01:00
parent a85de99ea5
commit a475d685d8
5 changed files with 24 additions and 6 deletions
+1 -1
View File
@@ -134,6 +134,6 @@ Repository._addAttributePolicy( SeveralAttributePolicies( [
ExternalListOfObjects( "pulls", "pull", PullRequest,
ListGetable( Parameters( [], [ "state" ] ), __modifyAttributesForObjectsReferingRepo ),
ElementGetable( Parameters( [ "number" ], [] ), __modifyAttributesForObjectsReferingRepo ),
ElementCreatable( Parameters( [ "title", "body", "base", "head" ], [] ), __modifyAttributesForObjectsReferingRepo ),
ElementCreatable( Alternative( Parameters( [ "title", "body", "base", "head" ], [] ), Parameters( [ "issue", "base", "head" ], [] ) ), __modifyAttributesForObjectsReferingRepo ),
),
] ) )