I'm writing an external interface for ticket manipulation.  I may have
missed some pertinent documentation, but lacking any I've come up with
the following, roughly:

def addComment(env, db, tktNum, who, comment):
        tkt = trac.ticket.Ticket(env, tktNum, db)
        tkt.save_changes(who, comment)

env = trac.env.open_environment('/path/to/env')
db = env.get_db_cnx()
addComment(env, db, 3310, 'testuser', "this test's comment has an apostrophe")

It seems that sometime during save_changes(), the comment text's
apostrophe is doubled up.  I assume this is SQL escapage, but it's
going into the database as "test''s", and that gets rendered in wiki
markup as "test<i>s".  Is this correct, or a bug?  If correct, what
should I be doing instead?

Trac 0.11.2.1

-- 
 -D.    [email protected]    NSIT    University of Chicago

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