You're right, it would be better if I used the Trac API whith my Python program. The problem is that I've searched - and even posted a mail on this list- but I can't find any document that explains how Trac works, which classes/functions are used to create tickets, etc. So I don't know what I must call and with which arguments in order to create a new ticket. Maybe someone can help me with this?
As it is surely better that doing it with pysqlite, I would be glad to do it this way. As for your question : " Like I wrote in the beginning, why are you using sqlite libraries to access database. It's a binary file (format known). Why don't you write and read it directly without any libraries?" I simply didn't know there was another way to modify a database without SQLite. In fact, I'm quite new to programming so I guess there are a lot of things which seem clear to programmers but that I don't even know of. Thanks for your answer, Eleonore. -----Message d'origine----- De : [email protected] [mailto:[EMAIL PROTECTED] De la part de Jani Tiainen Envoyé : vendredi 11 juillet 2008 19:42 À : [email protected] Objet : [Trac] Re: add ticket with php page Eleonore DUVELLE kirjoitti: > Yes, I've taken care of that too with my Python program (our tickets are in > French so it would have been impossible not to use utf-8). But if there are > other problems with creating tickets into the Trac database, I'd like to know > them... My program is already created and used, so I can't use xml-rpc. Problems are much like modfying sqlite database directly as a binary file not through sqlite libraries - it will work for a while. Schema might change without notification since it's not intended to be modified directly. But what if DB schema changes? What if there is plugin that relies on ITicketChangeListener interface? All that get's bypassed. Also, you're bypassing lot of built-in security. Trac is pretty secure against attacks since it's tested by many, but how about yours? So it is very preferable to use Trac API to manage Trac data. If you're working with Python you can use Ticket API directly, but don't bypass it. Like I wrote in the beginning, why are you using sqlite libraries to access database. It's a binary file (format known). Why don't you write and read it directly without any libraries? This is the point - Using Trac API can make program work much longer and with much more variety of environments. Happy hacking. -- Jani Tiainen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
