[Trac] TitleIndex Include and Exclude doesn't work

2011-05-11 Thread Seregwethrin
Hi,

I'm using Trac 0.12.2 stable release. I didn't put any add-ons or hacks.

For example this exlude doesn't work and TitleIndex displays all wikis
[[TitleIndex(exclude=RecentChanges:TitleIndex,format=hierarchy,min=2)]]

Same as include doesn't work.

Is there a patch I need to do to make it work? I searched but couldn't find
if it's an internal feature or not.

Do you have any ideas about how can I get it to work?
Thanks
--
Seregwethrin

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



Re: [Trac] TitleIndex Include and Exclude doesn't work

2011-05-11 Thread Christian Boos

On 5/11/2011 10:09 AM, Seregwethrin wrote:

Hi,

I'm using Trac 0.12.2 stable release. I didn't put any add-ons or hacks.

For example this exlude doesn't work and TitleIndex displays all wikis
[[TitleIndex(exclude=RecentChanges:TitleIndex,format=hierarchy,min=2)]]

Same as include doesn't work.

Is there a patch I need to do to make it work? I searched but couldn't 
find if it's an internal feature or not.


It's a 0.13 feature. You were probably mislead to think it was a 0.12 
feature because the WikiMacros page documented it that way. I've now 
fixed it, http://trac.edgewall.org/wiki/WikiMacros has the documentation 
corresponding to 0.12 and only 
http://trac.edgewall.org/wiki/0.13/WikiMacros has the dynamically 
generated documentation (t.e.o is mostly always running trunk).



Do you have any ideas about how can I get it to work?


Just upgrade ;-) (http://trac.edgewall.org/wiki/TracDownload#Tractrunk)

-- Christian

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



[Trac] Re: TitleIndex Include and Exclude doesn't work

2011-05-11 Thread Ata Sasmaz
Isn't there any other way to do it rather than upgrading to 0.13
because I perefer stable release over dev release. Like a patch or
hack?
Or is it soon that dev release become a stable one?

On Wednesday, May 11, 2011, Christian Boos cb...@neuf.fr wrote:






 On 5/11/2011 10:09 AM, Seregwethrin wrote:
 Hi,


   I'm using Trac 0.12.2 stable release. I didn't put
   any add-ons or hacks.


   For example this exlude doesn't work and
   TitleIndex displays all wikis
   [[TitleIndex(exclude=RecentChanges:TitleIndex,format=hierarchy,min=2)]]


   Same as include doesn't work.



 Is there a patch I need to do to make it work? I
   searched but couldn't find if it's an internal feature or not.


 It's a 0.13 feature. You were probably mislead to think it was a
 0.12 feature because the WikiMacros page documented it that way.
 I've now fixed it, http://trac.edgewall.org/wiki/WikiMacros has the
 documentation corresponding to 0.12 and only
 http://trac.edgewall.org/wiki/0.13/WikiMacros has the dynamically
 generated documentation (t.e.o is mostly always running trunk).


   Do you have any ideas about how can I get it to
   work?


 Just upgrade ;-)
 (http://trac.edgewall.org/wiki/TracDownload#Tractrunk)

 -- Christian





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


-- 
--
Ata Sasmaz
http://www.atasasmaz.com

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



[Trac] TracJSGanttChart : KeyError: None

2011-05-11 Thread Marc Simonin
Hello

I'm trying to use the TracJSGanttChart plugin.
I use trac 0.12-2, and the latest available TracJSGanttChart plugin.

I can show the sample chart with [[TracJSGanttChart(sample=1)]], but
everything else raise an error like
Error: Macro TracJSGanttChart(milestone=Project1) failed

I tried with different (existing !) milestone, without arguments
[[TracJSGanttChart]], without any plugin, and with the
TimingAndEstimationPlugin, but still have the same behaviour.

The log file in DEBUG mode show me this :

Trac[formatter] DEBUG: Executing Wiki macro TracJSGanttChart by provider
tracjsgantt.tracjsgantt.TracJSGanttChart object at 0x7f5f85e8fed0
Trac[query] DEBUG: Count results in Query: 124
Trac[query] DEBUG: Query SQL: SELECT t.id AS id,t.description (.../...)
Trac[formatter] ERROR: Macro TracJSGanttChart(milestone=Project1) failed:
Traceback (most recent call last):
  File 
/usr/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/wiki/formatter
.py, line 717, in _macro_formatter
return macro.process(args, in_paragraph=True)
  File 
/usr/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/wiki/formatter
.py, line 304, in process
text = self.processor(text)
  File 
/usr/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/wiki/formatter
.py, line 291, in _macro_processor
text)
  File build/bdist.linux-x86_64/egg/tracjsgantt/tracjsgantt.py, line
723, in expand_macro
tasks = self._add_tasks(options)
  File build/bdist.linux-x86_64/egg/tracjsgantt/tracjsgantt.py, line
696, in _add_tasks
self._schedule_tasks()
  File build/bdist.linux-x86_64/egg/tracjsgantt/tracjsgantt.py, line
418, in _schedule_tasks
t['calc_start'] = _start(t)
  File build/bdist.linux-x86_64/egg/tracjsgantt/tracjsgantt.py, line
378, in _start
finish = datetime.strptime(_finish(ticket), self.pyDateFormat)
  File build/bdist.linux-x86_64/egg/tracjsgantt/tracjsgantt.py, line
398, in _finish
elif ticket[self.fields['succ']] != []:
KeyError: None

Do you have any ideas ?
Best regards !

Marc






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



Re: [Trac] Re: TitleIndex Include and Exclude doesn't work

2011-05-11 Thread Seregwethrin
I'll try as you explained, firstly replacing the Macros file and if that
doesn't work easily than I'll use the trunk.
Thanks for your help Christian
--
Seregwethrin


On Wed, May 11, 2011 at 1:32 PM, Christian Boos cb...@neuf.fr wrote:

 On 5/11/2011 12:17 PM, Ata Sasmaz wrote:

 Isn't there any other way to do it rather than upgrading to 0.13
 because I perefer stable release over dev release. Like a patch or
 hack?


 Well, if you're already willing to use a patched version, why not just use
 trunk?
 At least, you know that we're using it daily on edgewall.org and that it
 is a supported version, as opposed to custom patched versions.

 But if you just want *that* feature, just hand pick the TitleIndexMacro
 class from trunk/trac/wiki/macros.py in your version. You'll be on your own
 though, and probably need to fix one thing or two, so only do that if you're
 familiar with Python or willing to learn.


  Or is it soon that dev release become a stable one?


 No, still some work to do and not much time these days, so that's still a
 few months away.


 -- Christian

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



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



Re: [Trac] Date/Time fields from SQL query

2011-05-11 Thread Bill Buklis


On 5/10/2011 3:08 PM, Remy Blank wrote:

Bill Buklis wrote:

Thanks. That worked. Interesting that they would choose to use
microseconds. Milliseconds I can understand, but that's some pretty fine
precision there.

Heh, they was actually me :)

The reason is that the `datetime` object in Python has microsecond
resolution, so using microsecond timestamps makes the return trip lossless.

-- Remy



Makes sense. Thanks for the info.

--
Bill

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



[Trac] Re: Error resynchronization environment trac and subversion repository

2011-05-11 Thread Parrera
I have a enviroment trac mounted and a repository subversion. I'm
trying to resynchronize the two in a given project. Understand?
Thanks!

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



Re: [Trac] MySQL or Sqlite?

2011-05-11 Thread Ata Sasmaz
Thanks Matthew, I'll try MySQL and if it works without any problems I'll
stick with it :)

--
Ata Sasmaz
http://www.atasasmaz.com



On Wed, May 11, 2011 at 9:07 PM, Matthew Caron matt.ca...@sixnet.comwrote:

 On 05/11/2011 01:47 PM, Seregwethrin wrote:

 I fear that I'd lose my data because of some concurrent processes to
 Sqlite
 db.


 In my experience, the Sqlite libraries understand locking, but it's
 table-level locking. So, you don't corrupt data, you just time out when
 someone else is trying to do something and it's taking too long.


  The documentation suggests to use Sqlite and use MySQL only as the last
 option, but it's for version 0.10.


 You can use PostgreSQL as well. I've not had issues with it and am on
 0.11.6.


  I'm using Sqlite but there's also MySQL Server is available at the same
 host. And it's known that MySQL DBMS is very reliable.


 More or less. :-) I've managed to corrupt all of them (though not with
 Trac).


  Whould you suggest me to migrate into MySQL for Trac version 0.12/0.13?


 Depends on how well-supported MySQL is in those versions. I stayed away
 from it in 0.11 because it was still being added.
 --
 Matthew Caron
 Build Engineer
 Sixnet | www.sixnet.com
 O +1 518 877 5173 Ext. 138
 F +1 518 602 9209
 matt.ca...@sixnet.com

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



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



[Trac] PostgreSQL (was: MySQL or Sqlite?)

2011-05-11 Thread W. Martin Borgert

Quoting Seregwethrin seregweth...@gmail.com:

Whould you suggest me to migrate into MySQL for Trac version 0.12/0.13?


I use PostgreSQL happily with Trac 0.11.
I assume, that it does work with 0.12 and 0.13 as well.

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



[Trac] Can you refresh the Trac server?

2011-05-11 Thread Alejandro V.
I'm using GitPlugin: http://trac-hacks.org/wiki/GitPlugin
and whenever I make a commit the server doesn't refresh until I stop
and restart the tracd server.
I'm using a git post-commit hook to add the revisions but I can't see
anything new until I reset.
Here's my line in post-commit:
trac-admin /home/arv/pyenv/trac2 changeset added test $REV

Anyone know if there is an easy Trac refresh command I can add to the
hook file, or if I'm missing a step somewhere?

Alejandro

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



Re: [Trac] prefix ticket id

2011-05-11 Thread Ryan J Ollos



Pascal Graf wrote:
 
 
 hello there
 
 in our company we use two different trac. an internal and an external.
 is it possible to put a prefix in front of the ticket id's so we can
 differentiate between internal and external tickets.
 cause till now it's possible to have to tickets with the same id (intern,
 extern).
 
 thanks for your help
 
 regards
 pascal
 

Yes, you just need to edit the [intertrac] section of trac.ini:
http://trac.edgewall.org/wiki/InterTrac

You can try this out in the SandBox on trac-hacks. #1000 will link to ticket
1000 on t-h.o. t:#1000 will link to ticket 1000 on t.e.o.

For even more clarify, you could start the ticket numbering on one of the
trac sites at a very high number, such as 10.

-- 
View this message in context: 
http://old.nabble.com/prefix-ticket-id-tp31588686p31597944.html
Sent from the Trac Users mailing list archive at Nabble.com.

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



Re: [Trac] Problem with migrated Trac DB

2011-05-11 Thread Ryan J Ollos



charmer-2 wrote:
 
 When I want add another item such as milestone or version in my admin
 panel in the new installation, I get this error:
 
 OperationalError: table cache has 3 columns but 2 values were supplied
 
 I tried to flush the cache table manually still no go. Here's the full
 report:
 

Try running `trac-admin upgrade`:

http://trac.edgewall.org/wiki/TracAdmin#FullCommandReference

-- 
View this message in context: 
http://old.nabble.com/Problem-with-migrated-Trac-DB-tp31586512p31598558.html
Sent from the Trac Users mailing list archive at Nabble.com.

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



Re: [Trac] Fine Grained Permissions on a subset of tickets

2011-05-11 Thread Ryan J Ollos



Daniel Krol wrote:
 
 I'm even willing to hack together a plugin for this, can somebody
 point me where to start with writing a plugin that intercepts requests
 to ticket actions, does a test, and allows/denies?
 

You might take a look at:
http://trac-hacks.org/wiki/PrivateCommentPlugin
http://trac-hacks.org/wiki/SensitiveTicketsPlugin

-- 
View this message in context: 
http://old.nabble.com/Fine-Grained-Permissions-on-a-subset-of-tickets-tp31417729p31599193.html
Sent from the Trac Users mailing list archive at Nabble.com.

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



Re: [Trac] Editing attachments

2011-05-11 Thread Ryan J Ollos



Kilian-7 wrote:
 
 Hi list,
 
 on Trac 0.10.4, I just uploaded a PNG file as attachment to a wiki page, 
 then made some change to the file in the attachments/wiki/PageName 
 directory. Result: the attachment cannot be shown any more.
 

Did you edit the filename or just change the file contents?



Kilian-7 wrote:
 
 I can't even delete it now because the error page does not show the 
 Delete button.
 

You may need to edit the database to remove the attachment, using a tool
such as SQLite Manager (for Firefox). Make sure to backup your Trac database
and make sure you know what you are doing before proceeding!

-- 
View this message in context: 
http://old.nabble.com/Editing-attachments-tp31598905p31599207.html
Sent from the Trac Users mailing list archive at Nabble.com.

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



Re: [Trac] page name overrides tag name

2011-05-11 Thread Ryan J Ollos



mARK bLOORE wrote:
 
 If i have a page called FooBar, and a tag called FooBar, on the tags
 page filtered or not, clicking FooBar in a tag list takes me to the
 page instead.  I am using Trac 0.12.
 

Lowercase rather than CamelCase is typically used for tags, which would
avoid this issue. You should be able to link to the tags page using the wiki
markup tag:FooBar.

-- 
View this message in context: 
http://old.nabble.com/page-name-overrides-tag-name-tp31548162p31599253.html
Sent from the Trac Users mailing list archive at Nabble.com.

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



Re: [Trac] Diff/Patch Wiki Processor

2011-05-11 Thread Ryan J Ollos



anatoly techtonik wrote:
 
 I remember I've seen wiki processor showing diff/patch inline, but can't 
 find any documentation on that.
 http://trac.edgewall.org/wiki/WikiProcessors Would 
 be nice to get it as a standard Trac feature.
 

Both

{{{
#!patch
}}}

and 

{{{
#!diff
}}}

work.

#!diff is shown near the bottom of that page. Or am I misreading what you
want?
-- 
View this message in context: 
http://old.nabble.com/Diff-Patch-Wiki-Processor-tp31549717p31599262.html
Sent from the Trac Users mailing list archive at Nabble.com.

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



Re: [Trac] Using History Data for Reports or Query?

2011-05-11 Thread Ryan J Ollos



MikeKatPayPal wrote:
 
 Is it possible to use data from ticket history for report or query
 purposes. For example, can I find the last owner of a ticket or if a
 ticket had ever been in a certain state in it's history?
 

That information specifically is in the ticket_change table:
http://trac.edgewall.org/wiki/TracDev/DatabaseSchema#DatabaseSchema

-- 
View this message in context: 
http://old.nabble.com/Using-History-Data-for-Reports-or-Query--tp31548161p31599269.html
Sent from the Trac Users mailing list archive at Nabble.com.

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



Re: [Trac] Diff/Patch Wiki Processor

2011-05-11 Thread anatoly techtonik
On Thu, May 12, 2011 at 3:52 AM, Ryan J Ollos ry...@physiosonics.com wrote:



 anatoly techtonik wrote:

 I remember I've seen wiki processor showing diff/patch inline, but can't
 find any documentation on that.
 http://trac.edgewall.org/wiki/WikiProcessors Would
 be nice to get it as a standard Trac feature.


 Both

 {{{
 #!patch
 }}}

 and

 {{{
 #!diff
 }}}

 work.

 #!diff is shown near the bottom of that page. Or am I misreading what you
 want?

No. I've added it there. =)
--
anatoly t.

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