Jeroen Ruigrok van der Werven wrote:
> -On [20080110 05:06], Alan Kent ([EMAIL PROTECTED]) wrote:
>>> It looks like to create new ticket you only really need to insert a row
>>> into
>>> ticket table, so something like
>>> sqlite3 'mytrac.db' 'insert into ticket ...'
>>> should do the trick. (Disclaimer: ICBW, I haven't tried this myself.)
>> Thanks. This is sounding an interesting approach - I don't have to do
>> web authentication this way (from the shell script). Thanks for the
>> lead. I am using sqlite3 and I can see the table structures - there
>> are actually 'ticket', 'ticket_change', and 'ticket_custom'. However if
>> I do this (and its safe), then the rest of Trac is not going to mail out
>> notifications of new tickets etc is it?
>
> Like Noah before me, I also would seriously advise about going this route. It
> will effectively mean you are on your own and there are no guarantees your
> data will remain intact, that your cat will keep all its hair, that your
> girlfriend will not walk out on you and your house burn down. So you've been
> warned. :)
>
> You're better off looking at `pydoc trac.ticket.api` and using that API.
Right so, good advice. While we're on the subject:
I'm using 0.10.4 and I get:
% pydoc trac.ticket.api
Traceback (most recent call last):
File "/usr/bin/pydoc", line 5, in ?
pydoc.cli()
File "/usr/lib/python2.4/pydoc.py", line 2235, in cli
help.help(arg)
File "/usr/lib/python2.4/pydoc.py", line 1689, in help
elif request: doc(request, 'Help on %s:')
File "/usr/lib/python2.4/pydoc.py", line 1475, in doc
pager(title % desc + '\n\n' + text.document(object, name))
File "/usr/lib/python2.4/pydoc.py", line 295, in document
if inspect.ismodule(object): return self.docmodule(*args)
File "/usr/lib/python2.4/pydoc.py", line 1066, in docmodule
contents = [self.formattree(
File "/usr/lib/python2.4/inspect.py", line 590, in getclasstree
for parent in c.__bases__:
TypeError: iteration over non-sequence
Anyone know why?
/L
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---