Re: having a detector add a message to an issue
Ralf Schlatterbeck <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, May 14, 2015 at 12:29:48PM +1000, John Kristensen wrote:
>
...
> msg_id = db.msg.create(
> author=db.getuid(),
> date=Date('.'),
> summary='some message summary',
> content='content of message',
> files=[file_id]
> )
>
> newvalues['messages'] = [msg_id]
If you don't notice that from the code: The "content" property of a
msg (same for file) is transparently stored in a file in the filesytem,
but the API treats it like any other property.
You probably don't want to set newvalues['messages'] to just the new
msg_id if you already have some messages attached to the issue...
Ralf
--
Dr. Ralf Schlatterbeck Tel: +43/2243/26465-16
Open Source Consulting www: http://www.runtux.com
Reichergasse 131, A-3411 Weidling email: [email protected]
allmenda.com member email: [email protected]
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y