(
{
'temp': 'obs_request_delpkg',
- 'cond': lambda bs, req: req.get('deleteproject') and req.get('deletepackage'),
- 'sub': '${reqid}: Remove package ${deleteproject}/${deletepackage}',
+ 'cond': lambda bs, req:
+ req.get('deleteproject') and
+ req.get('deletepackage'),
+ 'sub': '${reqid}: Remove package '
+ '${deleteproject}/${deletepackage}',
'to': ['mailinglist'],
'cc': [],
'from': 'who',
},
{
'temp': 'obs_request_changedevel',
- 'cond': lambda bs, req: req.get('origintype') == 'change_devel',
- 'sub': '${reqid}: Change devel of ${targetproject}/${targetpackage} to ${sourceproject}/${sourcepackage}',
+ 'cond': lambda bs, req:
+ req.get('origintype') == 'change_devel',
+ 'sub': '${reqid}: Change devel of '
+ '${targetproject}/${targetpackage} to '
+ '${sourceproject}/${sourcepackage}',
'to': ['mailinglist'],
'cc': [],
'from': 'who',
- 'fields':['description', 'targetproject', 'targetpackage', 'sourceproject', 'sourcepackage'],
+ 'fields':['description', 'targetproject', 'targetpackage',
+ 'sourceproject', 'sourcepackage'],
'detail?':False,
'tgtprj': 'targetproject',
},
{
'temp': 'obs_request_newpkg',
- 'cond': lambda bs, req: not bs.exists(req['targetproject'], req['targetpackage']),
- 'sub': '${reqid}: New package ${targetproject}/${targetpackage}',
+ 'cond': lambda bs, req:
+ not bs.exists(req['targetproject'],
+ req['targetpackage']),
+ 'sub': '${reqid}: New package '
+ '${targetproject}/${targetpackage}',
'to': ['mailinglist'],
'cc': [],
'from': 'who',
- 'fields':['description', 'targetproject', 'targetpackage', 'sourceproject', 'sourcepackage'],
+ 'fields':['description', 'targetproject', 'targetpackage',
+ 'sourceproject', 'sourcepackage'],
'detail?':True,
'tgtprj': 'targetproject',
},
{
'temp': 'obs_request_create',
'cond': None,
- 'sub': '${reqid}: Changes to ${targetproject}/${targetpackage}',
+ 'sub': '${reqid}: Changes to '
+ '${targetproject}/${targetpackage}',
'to': ['mailinglist'],
'cc': [],
'from': 'who',
- 'fields':['description', 'targetproject', 'targetpackage', 'sourceproject', 'sourcepackage'],
+ 'fields':['description', 'targetproject', 'targetpackage',
+ 'sourceproject', 'sourcepackage'],
'detail?':True,
'tgtprj': 'targetproject',
},
(
{
'temp': 'obs_request_changedevel_accept',
- 'cond': lambda bs, req: req['state'] == 'accepted' and req.get('origintype') == 'change_devel',
- 'sub': '${reqid} accepted: ${sourceproject}/${sourcepackage} is devel of ${targetproject}/${targetpackage}',
+ 'cond': lambda bs, req:
+ req['state'] == 'accepted' and
+ req.get('origintype') == 'change_devel',
+ 'sub': '${reqid} accepted: '
+ '${sourceproject}/${sourcepackage} is devel of '
+ '${targetproject}/${targetpackage}',
'to': ['mailinglist'],
'cc': [],
'from': 'sender',
- 'fields':['comment', 'targetproject', 'targetpackage', 'sourceproject', 'sourcepackage'],
+ 'fields':['comment', 'targetproject', 'targetpackage',
+ 'sourceproject', 'sourcepackage'],
'detail?':False,
'tgtprj': 'targetproject',
},
{
'temp': 'obs_request_accept',
'cond': lambda bs, req: req['state'] == 'accepted',
- 'sub': '${reqid} accepted: ${targetproject}/${targetpackage}',
+ 'sub': '${reqid} accepted: '
+ '${targetproject}/${targetpackage}',
'to': ['GIT_AUTHOR_EMAIL'],
'cc': ['mailinglist'],
'from': 'sender',
'OBS_SRCSRV_REQUEST_STATECHANGE':
(
{
- 'cond': lambda bs, req: req['state'] == 'declined' and req.get('deleteproject') and req.get('deletepackage'),
+ 'cond': lambda bs, req:
+ req['state'] == 'declined' and
+ req.get('deleteproject') and
+ req.get('deletepackage'),
'temp': 'obs_request_delpkg_decline',
- 'sub': '${reqid} declined: Request to delete ${deleteproject}/${deletepackge}',
+ 'sub': '${reqid} declined: Request to delete '
+ '${deleteproject}/${deletepackge}',
'to': ['GIT_AUTHOR_EMAIL'],
'cc': ['mailinglist'],
'from': 'sender',
'tgtprj': 'deleteproject',
},
{
- 'cond': lambda bs, req: req['state'] == 'declined' and req.get('origintype') == 'change_devel',
+ 'cond': lambda bs, req:
+ req['state'] == 'declined' and
+ req.get('origintype') == 'change_devel',
'temp': 'obs_request_changedevel_decline',
- 'sub': '${reqid} declined: ${sourceproject}/${sourcepackage} as devel of ${targetproject}/${targetpackage}',
+ 'sub': '${reqid} declined: '
+ '${sourceproject}/${sourcepackage} as devel of '
+ '${targetproject}/${targetpackage}',
'to': ['GIT_AUTHOR_EMAIL'],
'cc': ['mailinglist'],
'from': 'sender',
- 'fields':['comment', 'targetproject', 'targetpackage', 'sourceproject', 'sourcepackage'],
+ 'fields':['comment', 'targetproject', 'targetpackage',
+ 'sourceproject', 'sourcepackage'],
'detail?':False,
'tgtprj': 'targetproject',
},
{
- 'cond': lambda bs, req: req['state'] == 'declined' and req['comment'] == AUTO_REJECT_COMMENT,
+ 'cond': lambda bs, req:
+ req['state'] == 'declined' and
+ req['comment'] == AUTO_REJECT_COMMENT,
'temp': 'obs_request_auto_reject',
- 'sub': '${reqid} auto rejected: ${sourceproject}/${sourcepackage} to ${targetproject}/${targetpackage}',
+ 'sub': '${reqid} auto rejected: '
+ '${sourceproject}/${sourcepackage} to '
+ '${targetproject}/${targetpackage}',
'to': ['GIT_AUTHOR_EMAIL'],
'cc': ['mailinglist'],
'from': 'sender',
- 'fields':['comment', 'targetproject', 'targetpackage', 'sourceproject', 'sourcepackage'],
+ 'fields':['comment', 'targetproject', 'targetpackage',
+ 'sourceproject', 'sourcepackage'],
'detail?':False,
'tgtprj': 'targetproject',
},
{
'cond': lambda bs, req: req['state'] == 'declined',
'temp': 'obs_request_decline',
- 'sub': '${reqid} declined: ${sourceproject}/${sourcepackage} to ${targetproject}/${targetpackage}',
+ 'sub': '${reqid} declined: '
+ '${sourceproject}/${sourcepackage} to '
+ '${targetproject}/${targetpackage}',
'to': ['GIT_AUTHOR_EMAIL'],
'cc': ['mailinglist'],
'from': 'sender',
- 'fields':['comment', 'targetproject', 'targetpackage', 'sourceproject', 'sourcepackage'],
+ 'fields':['comment', 'targetproject', 'targetpackage',
+ 'sourceproject', 'sourcepackage'],
'detail?':False,
'tgtprj': 'targetproject',
},
{
- 'cond': lambda bs, req: req['state'] == 'revoked' and req.get('deleteproject') and req.get('deletepackage'),
+ 'cond': lambda bs, req:
+ req['state'] == 'revoked' and
+ req.get('deleteproject') and
+ req.get('deletepackage'),
'temp': 'obs_request_delpkg_revoke',
- 'sub': '${reqid} revoked: Request to delete ${deleteproject}/${deletepackage}',
+ 'sub': '${reqid} revoked: Request to delete '
+ '${deleteproject}/${deletepackage}',
'to': ['GIT_AUTHOR_EMAIL'],
'cc': ['mailinglist'],
'from': 'who',
'tgtprj': 'deleteproject',
},
{
- 'cond': lambda bs, req: req['state'] == 'revoked' and req.get('origintype') == 'change_devel',
+ 'cond': lambda bs, req:
+ req['state'] == 'revoked' and
+ req.get('origintype') == 'change_devel',
'temp': 'obs_request_changedevel_revoke',
- 'sub': '${reqid} revoked: Change devel of ${targetproject}/${targetpackage}',
+ 'sub': '${reqid} revoked: Change devel of '
+ '${targetproject}/${targetpackage}',
'to': ['GIT_AUTHOR_EMAIL'],
'cc': ['mailinglist'],
'from': 'who',
- 'fields':['comment', 'targetproject', 'targetpackage', 'sourceproject', 'sourcepackage'],
+ 'fields':['comment', 'targetproject', 'targetpackage',
+ 'sourceproject', 'sourcepackage'],
'detail?':False,
'tgtprj': 'targetproject',
},
{
'cond': lambda bs, req: req['state'] == 'revoked',
'temp': 'obs_request_revoke',
- 'sub': '${reqid} revoked: Changes to ${targetproject}/${targetpackage}',
+ 'sub': '${reqid} revoked: Changes to '
+ '${targetproject}/${targetpackage}',
'to': ['GIT_AUTHOR_EMAIL'],
'cc': ['mailinglist'],
'from': 'who',
msg = []
try:
from Cheetah.Template import Template
- template = Template(template_str, searchList = return_dict)
+ template = Template(template_str, searchList=return_dict)
template.msg = "\n".join(msg)
body = str(template)
except ImportError: