On Wed, 2012-02-29 at 00:53 -0800, Benjamin Lau wrote:
> On Wed, Feb 29, 2012 at 12:23 AM, Roger Oberholtzer
> <[email protected]> wrote:
> > I am toying with the idea of a user-specific wiki-start page. I am
> > curious if anyone else has done this.
> >
> > My first thought was to use the Include macro as:
> >
> >        [[Include users/$USER]]
> >
> > But is seems $USER is not parsed here. So I get a message that
> > users/$USER is not found.
> >
> > Any better ways to do this?
> 
> Before I even read your message I thought of the include macro... but
> as you noted... it doesn't appear to support the necessary construct.
> So I implemented it.
> 
> I've attached the patch to this e-mail... And I'll submit it as an
> enhancement[1] to the Include macro as well. I took the implementation
> logic from this ticket[2] which showed how this was done for the
> Ticket query.
> 
> I'm not sure what platform you're on... but this is how I compiled
> this on my mac...
> svn co http://trac-hacks.org/svn/includemacro/0.11/ includemacro
> cd includemacro
> svn patch ~/includemacro-uservar.patch
> python2.6 setup.py bdist_egg && sudo easy_install dist/Trac*-*-py2.6.egg
> 
> You might have to restart trac once you finish.

I'm running 0.12.3 on openSUSE Linux. I will surely sort the
installation ok. Thanks for the patch!

> 
> Enjoy!
> 
> Ben
> [1] https://trac-hacks.org/ticket/9866
> [2] http://trac.edgewall.org/ticket/1467
> 

-- 
Roger Oberholtzer

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