I have been able to manually place the Miln Checkbox in the plugins/ 
directory in a single trac environment using a vanilla Trac install 
(version 1.2) on ubuntu.

I am running into an issue when trying to manually place the 
*NewsflashMacro.py* file (and it's css file) into the plugins directory. 
Trac sees the plugin and it is enabled in the Admin pannel. The trac.log 
says that there is no handler for the css file.

   - Where should I put the css file?
   - What is the best practice for loading css files from plugins? i.e. is 
   the NewsflashMacro.py plugin demonstrating current best practice for Trac 
   1.2 and Trac 1.4?
   
Kindly,
Aikido Guy
On Friday, September 25, 2020 at 4:25:44 PM UTC-4 Aikido Guy wrote:

> I contacted the author of Miln Checkbox. He no longer supports that 
> plugin. I will build my own from scratch... that suites my needs. 
> - https://trac.edgewall.org/wiki/TracDev/IWikiSyntaxProviderExample looks 
> like a very nice place for me to start learning how to do this
>
> Thank you all for your help getting met to this point!
>
> Kindly,
> Aikido Guy
>
> On Wednesday, September 23, 2020 at 5:19:09 PM UTC-4 Aikido Guy wrote:
>
>> I like the TracFormsPlugin. If I understand correctly, one starts by 
>> creating the "form", perhaps in a wiki page which becomes the template. 
>> Then the wiki page can be included in comments or somewhere else and that 
>> second location will have its own data.
>>
>> I see 2 things that may trip me up:
>> 1. Not sure how to customize a row so that the whole row could be a 
>> different colour
>> 2. If the template changes over time then what happens to the comments 
>> that are using it? Create template A. Include it from comment B. Change 
>> template A... what happens to comment B?
>>
>> I think the MilnCheckboxPlugin may be better because it keeps in the 
>> theme that a comment would need to be edited and then submitted. I was 
>> thinking clickon a checkbox might be a nice thing to do, but I'm waffling 
>> on that. My only issue with using MilnCheckboxPlugin is trying to modify 
>> the code to make it do what I'd like it to do. I've found the piece of the 
>> code that I think needs to change... perhaps I should directly contact the 
>> author of that plugin...
>>
>> Thank you for pointing out TracFormsPlugin... seems very nice and I 
>> didn't know about it!
>>
>> On Wednesday, September 23, 2020 at 5:04:48 PM UTC-4 Chris Shelton wrote:
>>
>>> Would this other plugin be more in line with what you are looking for:
>>> https://trac-hacks.org/wiki/TracFormsPlugin
>>>
>>> Chris
>>>
>>> On Wed, Sep 23, 2020 at 4:15 PM Aikido Guy <aiki...@gmail.com> wrote:
>>>
>>>> I have mocked up an html file that can display what I want.
>>>>
>>>> Now I'm looking at the source code of the checkbox plugin you kindly 
>>>> shared.
>>>>
>>>> In particular:
>>>>     def get_wiki_syntax(self):
>>>>         yield (
>>>>             "\[(?P<contents>[ xX+])\]",
>>>>             lambda x, y, z: self._format_checkbox(z.group("contents")))
>>>> I am guessing that the regular expression is, somehow, searching over 
>>>> the wiki markup (or the generate html... I'm not sure) and replacing the 
>>>> text with the respective html code.
>>>>
>>>> I am wondering how to change this code so that I have both the text 
>>>> "[x]" (like above) but also the part after it up until the next newline... 
>>>> hints appreciated!
>>>>
>>>> On Wednesday, September 23, 2020 at 2:18:27 PM UTC-4 Aikido Guy wrote:
>>>>
>>>>> Maybe a little bit of CSS styling could be used to change the font 
>>>>> colour on checked vs unchecked boxes using the plugin. The plugin looks 
>>>>> to 
>>>>> be very small; which I like...
>>>>>
>>>>> Any thoughts how I might accomplish this?
>>>>>
>>>>> On Wednesday, September 23, 2020 at 2:06:52 PM UTC-4 Aikido Guy wrote:
>>>>>
>>>>>> Our posts passed each other...
>>>>>>
>>>>>> I like the plugin... however, the checkboxes are not interactive... 
>>>>>> I'm wondering if something interactive could be done?
>>>>>>
>>>>>> On Wednesday, September 23, 2020 at 2:04:47 PM UTC-4 Aikido Guy wrote:
>>>>>>
>>>>>>> Maybe along the lines of adding a comment that contained something 
>>>>>>> similar to *[ticket-custom]*...
>>>>>>>
>>>>>>> Possible mockup for a comment containing checkboxes:
>>>>>>>
>>>>>>>
>>>>>>> *[comment-custom]*
>>>>>>>
>>>>>>> *test_one = checkbox*
>>>>>>>
>>>>>>> *test_one.label = Some checkbox checked at the start... and possibly 
>>>>>>> unchecked by clicking on a box*
>>>>>>> *test_one.value = 1*
>>>>>>>
>>>>>>>
>>>>>>> *test_two = checkbox*
>>>>>>> *test_two.label = Some checkbox unchecked at the start... and 
>>>>>>> possibly checked by clicking on a box*
>>>>>>>
>>>>>>> On Wednesday, September 23, 2020 at 1:50:00 PM UTC-4 Aikido Guy 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> Is there any way to add a comment on a ticket that contains a check 
>>>>>>>> list with boxes that could be checked as TODO items are completed?
>>>>>>>>
>>>>>>>> I'm using Trac 1.4.2. Maybe there is a plugin? Or maybe I'd had to 
>>>>>>>> build one? I know that I could add check boxes to a ticket via 
>>>>>>>> customization, but I'm looking for something that does not alter the 
>>>>>>>> basic 
>>>>>>>> functionality (data) on a ticket but is only related to one comment on 
>>>>>>>> one 
>>>>>>>> ticket.
>>>>>>>>
>>>>>>>> Any and all thoughts welcome!
>>>>>>>>
>>>>>>>> Kindly,
>>>>>>>> Aikido Guy
>>>>>>>>
>>>>>>> -- 
>>>> 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+...@googlegroups.com.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/trac-users/3644bc65-9b01-472b-9789-8c9adf95fd25n%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/trac-users/3644bc65-9b01-472b-9789-8c9adf95fd25n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/23a3b47b-43ba-4c5f-969b-668bbe668bdfn%40googlegroups.com.

Reply via email to