I check log file and I saw IndentationError. I was able to fix it, and got
the plugin loaded.
When I changed/created ticket, I got this error in TRAC:

> NameError: global name 'script' is not defined
>

Then I added


> global script


before this line in MyTicketChangeScriptCaller.py file:

> script = Option('ticket_change_script', 'call', '',
> doc="/usr/local/bin/test.sh")
>

Then I got this error:


> TypeError: sequence item 0: expected string, Option found


Any idea how to fix it?
Thank you for your help and waiting for your guidance.

Greetings,

On Mon, Oct 8, 2012 at 9:30 PM, Steffen Hoffmann <[email protected]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 08.10.2012 19:59, Adelphe Rafanambinana wrote:
> > For my understanding when I create/modify a ticket in Trac , I should
> > get something in /tmp/test file. But there is nothing, even the file
> > (/tmp/test) wasn't created.
> > What I missed from your explanation?
>
> The required bits of information could be discovered by turning DEBUG
> logging on in trac.ini
>
> [logging]
> log_file = trac.log
> log_level = DEBUG
> log_type = file
>
> Now with
>  $> tail -f <env>/log/trac.log
>
> you'll open up this logfile in continuous update mode, so that all new
> lines will flow over your terminal screen. Make sure to have a big line
> buffer to re-read them later on.
>
> Then restart your Trac and access a page: You'll see many messages
> regarding the Trac environment load including all usable plugins, and
> complaints about errors, if a plugin is unusable. This is, what you'll
> need to see, if your new 1-file-plugin is detected and loaded.
>
> If your code passed this stage without error, the adding some debug
> log/print statements would be the next step. But let's do one step at a
> time.
>
> Steffen Hoffmann
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAlBzG8EACgkQ31DJeiZFuHe9vACgtEEuseJ0fVI9U6xT/hI3COg7
> jwgAn3DVQMNK/z6OxzQcyMpbrh/jv4wQ
> =Fw6y
> -----END PGP SIGNATURE-----
>
> --
> You received this message because you are subscribed to the Google Groups
> "Trac Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/trac-users?hl=en.
>
>


-- 
Adelphe Rafanambinana

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to