On Thursday, August 25, 2016 at 11:55:12 AM UTC-7, j.j.proegler wrote:
>
> Hi,
>
> i will create Tickets from an external "Alarming System"
>
> My idea is:
>
> - On a Trac html - Site integrate a Table (in the past i have used
> SlickGrid or Handsontable) and call from a js-Script another Python-Script.
> This Python-Script returns a json - Alarmdata "stream", what i used via
> ajax to fill my Table... If the Table is filled, i will select a row and
> press a "Create Ticket- Button" and take the needed Alarmdata from the
> Table and create a new Ticket (similar csv/xls import plugin)
>
> - I have integrate a Table in my Html - Site. But i don't now, how i can
> call a Python Script from my js - script.. With Apache, i have simply put
> the python-Script in my Directory and activate mod_python.. In my
> Javascript i put
>
> $.ajax({
> url: "myJsonScript.py",
> type: "post",
> success: function(data){
>
> - My question, how can i make this in trac ? Have a example of similar
> requirement ?
>
> Thanks !
>
You could install XmlRpcPlugin (1) in your Trac site and write a script on
your remote system to create tickets using XmlRpcPlugin's API (2). The
XmlRpcPlugin page has several examples (3) using different programming
languages.
- Ryan
(1) https://trac-hacks.org/wiki/XmlRpcPlugin
(2) https://trac-hacks.org/rpc
(3) https://trac-hacks.org/wiki/XmlRpcPlugin#Example
--
You received this message because you are subscribed to the Google Groups "Trac
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/d/optout.