On 3/23/06, Justin Francis <[EMAIL PROTECTED]> wrote:
> Andy Levy wrote:
>
> >On 3/22/06, Justin Francis <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Andy Levy wrote:
> >>
> >>
> >>
> >>>On 3/22/06, Russ Brown <[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>
> >>>
> >>>>On Wed, 2006-03-22 at 14:57 -0500, Andy Levy wrote:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>I just started using Trac this week to document an application that's
> >>>>>sorely in need of it (and hopefully management will agree and we can
> >>>>>use it beyond my desktop).  So far, so good.  But as I'm working, I'm
> >>>>>leaving a lot of things unfinished - mostly making [wiki:] links to
> >>>>>pages that I haven't gotten around to creating yet for whatever
> >>>>>reason.
> >>>>>
> >>>>>Is there any way to get a list of Trac Links that currently don't
> >>>>>point at an actual page?
> >>>>>
> >>>>>Or would stubs be the way to go with this, and just create an empty
> >>>>>stub page for these entries?  I found one Trac wiki
> >>>>>(http://dev.muness.textdriven.com/trac.cgi/wiki/tags) that's using
> >>>>>tags and has one labelled "stub". (I guess I still would have to track
> >>>>>all these entries down the first time around)
> >>>>>
> >>>>>How are other people managing this type of thing?
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>I think you're looking for this:
> >>>>
> >>>>http://trac-hacks.org/wiki/WantedPagesMacro
> >>>>
> >>>>
> >>>>
> >>>>
> >>>I think you & Malcolm are right.  Got it installed and it's close, but
> >>>it looks like it only picks up items that are in CamelCase - I have
> >>>several [wiki:] links that don't appear on the list (for example,
> >>>[wiki:Sched_Emp_Type]).
> >>>
> >>>
> >>>
> >>>
> >>Sorry about that. The macro is just something I threw together at work.
> >>I'll update it to support the [wiki:] syntax and publish a new version
> >>by the end of this week.
> >>
> >>
> >
> >Wow, thanks!
> >
> >I think it's missing some of my CamelCase words as well - though it
> >*has* picked one up.  I should probably get some solid test cases
> >together for you if you're going to be working on it.
> >
> >
> Test Cases would be awesome. It is actually a simple regex that searches
> through wiki pages and tickets directly in the DB, making it highly
> fragile. But let me know about what syntax is not being picking up and
> I'll add it no problem.

Justin,

I'm sorry to say that it looks like pretty much any CamelCase word is
being missed now, with a single exception (JavaScript does get picked
up).  I created the following page, called WantedPages, in my wiki:

---BEGIN---
A listing of pages that are TracLinks or CamelCase words, but have no
content behind them.

UtilitySurcharge should appear here, but doesn't?

[[wantedPages]]
---END---

I have no page named "UtilitySurcharge" in my wiki, so it appears in
grey w/ a question mark after it, as expected.  wantedPages(),
however, lists the following:
---BEGIN---
CamelCase
ClearSilver
DocumentRoot
MyPage
NoLinkHere
PageName
ParentWiki
SilverCity
SubWiki
TracGuide
WikiPageLinks
FineGrainedPermissions?
JavaScript?
TracIniReportCustomFieldSample?
---END---

Only the last 2 are linked.

JavaScript was one of the first CamelCase words I put in the wiki (and
it was put in before I found your macro) - almost everything else has
been via [wiki:] links.  But it seems like any CamelCase word now
doesn't appear.  I just added another one, LeaseTermsAgain, but it
also does not appear on WantedPages.

Unfortunately, I don't know Python, and I'm rolling the dice even
using Trac to document this system, so I can't spend the time learning
Python to fix it while I'm on the clock. Hopefully some evening soon I
can try some stuff on my own time.  Please let me know if there's any
other information I can provide.
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to