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 -~----------~----~----~----~------~----~------~--~---
