bundle = None
if action == 'create':
bundle_name = data['bundle_name'].strip()
+ if '/' in bundle_name:
+ return ['Bundle names can\'t contain slashes']
+
if not bundle_name:
return ['No bundle name was specified']
for (recipient, notifications) in groups:
notifications = list(notifications)
+ projects = set([ n.patch.project.linkname for n in notifications ])
def delete_notifications():
PatchChangeNotification.objects.filter(
'site': Site.objects.get_current(),
'person': recipient,
'notifications': notifications,
+ 'projects': projects,
}
+
subject = render_to_string(
'patchwork/patch-change-notification-subject.text',
context).strip()