1182
1184
return IPerson(self.context, self.user)
1184
1193
@action('Register Branch', name='add')
1185
1194
def add_action(self, action, data):
1186
1195
"""Handle a request to create a new branch for this product."""
1188
1198
namespace = self.target.getNamespace(data['owner'])
1189
1199
self.branch = namespace.createBranch(
1194
1204
lifecycle_status=data['lifecycle_status'])
1195
1207
except BranchCreationForbidden:
1197
1209
"You are not allowed to create branches in %s." %