link = '<br><p>Full bug report at https://bugzilla.wikimedia.org/%s' \ '</p>' % bug.get('id') # set common mingle parameters description = htmlEscape( comments.get('comments')[0].get('text')).replace("\n", "<br />") + link cardParams = { 'card[name]': bugCardName, 'card[card_type_name]': bugCard, 'card[description]': description, 'card[created_by]': auth['username'], } cardLocation = mingle.addCard(cardParams) bingle.info(mingle.dumpRequest()) postComments(auth, apiBaseUrl, comments, cardLocation) # set custom mingle properties properties = {} for key, value in bugzillaProperties.iteritems(): properties[value] = bug.get(key, '') properties.update(mingleProperties) for prop, value in properties.iteritems(): propName = prop.strip('\'').strip('"') propValue = mapping.get(value, value).strip('\'').strip('"') cardParams = {
link = '<br><p>Full bug report at https://bugzilla.wikimedia.org/%s' \ '</p>' % bug.get('id') # set common mingle parameters description = htmlEscape( comments.get('comments')[0].get('text')).replace( "\n", "<br />") + link cardParams = { 'card[name]': bugCardName, 'card[card_type_name]': bugCard, 'card[description]': description, 'card[created_by]': auth['username'], } cardLocation = mingle.addCard(cardParams) bingle.info(mingle.dumpRequest()) postComments(auth, apiBaseUrl, comments, cardLocation) # set custom mingle properties properties = {} for key, value in bugzillaProperties.iteritems(): properties[value] = bug.get(key, '') properties.update(mingleProperties) for prop, value in properties.iteritems(): propName = prop.strip('\'').strip('"') propValue = mapping.get(value, value).strip('\'').strip('"') cardParams = {