Mailing List Archive

Wiki macro to create dated pages?
I know I once used a Trac wiki macro which allowed you to create dated wiki
pages but I can't find it in my cloned repos or on Trac-Hacks. If I recall
correctly, the macro created a button you could click to create a wiki page
under the current path with a name that included a formatted date. I used
it to take daily notes or meeting minutes. So my project notes wiki page
had a New Meeting button that would create ./Meeting 2020-11-30 if I
clicked it today. Does that sound familiar to anyone?

Chris
--
Christopher Nelson, PE
Professional Software Engineer
@ChrisNelsonPE
LinkedIn.com/in/ChrisNelsonPE
NoPerfectProgram.Wordpress.com

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/CAFFqYiBo%2B7cKaGypnoxSd84foYLjb_mMPUMwC%2BiZeSic%3DW4xYA%40mail.gmail.com.
Re: Wiki macro to create dated pages? [ In reply to ]
On Mon, Nov 30, 2020 at 10:55 AM Christopher Nelson <
chris.nelson.1022@gmail.com> wrote:

> I know I once used a Trac wiki macro which allowed you to create dated
> wiki pages but I can't find it in my cloned repos or on Trac-Hacks. If I
> recall correctly, the macro created a button you could click to create a
> wiki page under the current path with a name that included a formatted
> date. I used it to take daily notes or meeting minutes. So my project
> notes wiki page had a New Meeting button that would create ./Meeting
> 2020-11-30 if I clicked it today. Does that sound familiar to anyone?
>
> Chris
>

Yeah, I was using WikiCalendarMacro for the same purpose many years ago.
https://trac-hacks.org/wiki/WikiCalendarMacro

> This plugin inserts a small calendar where each day links to a wiki page
whose name matches the wiki-page-format argument.

Ryan

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/CA%2BBGpn9BvSORAxAtvhm2Ea%3DavD0pWvpjhg-Z7ppmtS0WxJOKYg%40mail.gmail.com.
Re: Wiki macro to create dated pages? [ In reply to ]
That's the one! I was looking for "notes" in the name.

I tried a couple of different versions and I get:

2020-12-02 22:07:05,247 Trac[loader] DEBUG: Loading wikicalendar from
/opt/trac\
/trac1.0/plugins/WikiCalendarMacro-2.1.0-py2.7.egg
2020-12-02 22:07:05,250 Trac[loader] ERROR: Skipping "wikicalendar =
wikicalend\
ar.macros":
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/trac/loader.py", line 68, in _load_eggs
entry.load(require=True)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
2324,\
in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
2330,\
in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "build/bdist.linux-x86_64/egg/wikicalendar/macros.py", line 25, in
<modu\
ImportError: cannot import name tag

I'm guessing a Genshi version issue but haven't worked it out yet.
On Monday, November 30, 2020 at 2:03:59 PM UTC-5 RjOllos wrote:

> On Mon, Nov 30, 2020 at 10:55 AM Christopher Nelson <chris.ne...@gmail.com>
> wrote:
>
>> I know I once used a Trac wiki macro which allowed you to create dated
>> wiki pages but I can't find it in my cloned repos or on Trac-Hacks. If I
>> recall correctly, the macro created a button you could click to create a
>> wiki page under the current path with a name that included a formatted
>> date. I used it to take daily notes or meeting minutes. So my project
>> notes wiki page had a New Meeting button that would create ./Meeting
>> 2020-11-30 if I clicked it today. Does that sound familiar to anyone?
>>
>> Chris
>>
>
> Yeah, I was using WikiCalendarMacro for the same purpose many years ago.
> https://trac-hacks.org/wiki/WikiCalendarMacro
>
> > This plugin inserts a small calendar where each day links to a wiki page
> whose name matches the wiki-page-format argument.
>
> Ryan
>

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/fc7fca9f-263f-41a0-b8f7-05873856169an%40googlegroups.com.
Re: Wiki macro to create dated pages? [ In reply to ]
On Wednesday, December 2, 2020 at 2:18:27 PM UTC-8 Chris Nelson wrote:

> That's the one! I was looking for "notes" in the name.
>
> I tried a couple of different versions and I get:
>
> 2020-12-02 22:07:05,247 Trac[loader] DEBUG: Loading wikicalendar from
> /opt/trac\
> /trac1.0/plugins/WikiCalendarMacro-2.1.0-py2.7.egg
> 2020-12-02 22:07:05,250 Trac[loader] ERROR: Skipping "wikicalendar =
> wikicalend\
> ar.macros":
> Traceback (most recent call last):
> File "build/bdist.linux-x86_64/egg/trac/loader.py", line 68, in
> _load_eggs
> entry.load(require=True)
> File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
> 2324,\
> in load
> return self.resolve()
> File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
> 2330,\
> in resolve
> module = __import__(self.module_name, fromlist=['__name__'], level=0)
> File "build/bdist.linux-x86_64/egg/wikicalendar/macros.py", line 25, in
> <modu\
> le>
> ImportError: cannot import name tag
>

You are on a very old version of Trac ;)

Please try the latest trunk again. I just pushed a fix for that issue.

Ryan

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/61957239-7c8b-4f70-bdb8-d68ba79f9612n%40googlegroups.com.
Re: Wiki macro to create dated pages? [ In reply to ]
Yes, I am. I want move ahead but... what you tweaked has me working for
now.

On Wednesday, December 2, 2020 at 5:31:55 PM UTC-5 RjOllos wrote:

> On Wednesday, December 2, 2020 at 2:18:27 PM UTC-8 Chris Nelson wrote:
>
>> That's the one! I was looking for "notes" in the name.
>>
>> I tried a couple of different versions and I get:
>>
>> 2020-12-02 22:07:05,247 Trac[loader] DEBUG: Loading wikicalendar from
>> /opt/trac\
>> /trac1.0/plugins/WikiCalendarMacro-2.1.0-py2.7.egg
>> 2020-12-02 22:07:05,250 Trac[loader] ERROR: Skipping "wikicalendar =
>> wikicalend\
>> ar.macros":
>> Traceback (most recent call last):
>> File "build/bdist.linux-x86_64/egg/trac/loader.py", line 68, in
>> _load_eggs
>> entry.load(require=True)
>> File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
>> 2324,\
>> in load
>> return self.resolve()
>> File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
>> 2330,\
>> in resolve
>> module = __import__(self.module_name, fromlist=['__name__'], level=0)
>> File "build/bdist.linux-x86_64/egg/wikicalendar/macros.py", line 25, in
>> <modu\
>> le>
>> ImportError: cannot import name tag
>>
>
> You are on a very old version of Trac ;)
>
> Please try the latest trunk again. I just pushed a fix for that issue.
>
> Ryan
>

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/108fa1f2-bf96-442e-b95b-f91f6b08e671n%40googlegroups.com.