Mercurial > p > roundup > code
comparison scripts/notify-roundup.py @ 4144:84c42a8eed7c gsoc-2009
Blind attempt at fixing issue where we dont respect item-class support
| author | Pygi <pygi@users.sourceforge.net> |
|---|---|
| date | Mon, 29 Jun 2009 20:59:57 +0000 |
| parents | af07059b6886 |
| children |
comparison
equal
deleted
inserted
replaced
| 4143:af07059b6886 | 4144:84c42a8eed7c |
|---|---|
| 181 | 181 |
| 182 # add the message to the spool | 182 # add the message to the spool |
| 183 date = roundup.date.Date(repos.date) | 183 date = roundup.date.Date(repos.date) |
| 184 msgid = db.msg.create(content=repos.message, summary=repos.summary, | 184 msgid = db.msg.create(content=repos.message, summary=repos.summary, |
| 185 author=userid, date=date, revision=svn_rev_id) | 185 author=userid, date=date, revision=svn_rev_id) |
| 186 messages = db.bug.get(repos.itemid, 'messages') | 186 klass = db.getclass(repos.klass) |
| 187 messages = klass.get(repos.itemid, 'messages') | |
| 187 messages.append(msgid) | 188 messages.append(msgid) |
| 188 klass = db.getclass(repos.klass) | |
| 189 klass.set(repos.itemid, messages=messages) | 189 klass.set(repos.itemid, messages=messages) |
| 190 | 190 |
| 191 # and set the status | 191 # and set the status |
| 192 if repos.status: | 192 if repos.status: |
| 193 klass.set(repos.itemid, status=status_id) | 193 klass.set(repos.itemid, status=status_id) |
