Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

ANN: GenshiMacro, LighterTheme

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


ethan.jucovy at gmail

Apr 2, 2012, 6:04 PM

Post #1 of 4 (337 views)
Permalink
ANN: GenshiMacro, LighterTheme

Hi,

I've uploaded two new plugins on Trac Hacks and Github.

*GenshiMacro* is a wiki macro that lets you write, and render, Genshi
templates directly in wiki pages using a ``#!Genshi`` processor for
blockquotes. These templates have access to the current request, which
means you can check the user's authentication status, generate links using
``req.href``, and render form tokens for POST requests. The plugin's Trac
Hacks page includes a complete example of how you might use it to render a
custom "New Ticket" form on a wiki page.

http://trac-hacks.org/wiki/GenshiMacro
https://github.com/ejucovy/trac-GenshiMacro

*LighterTheme* is a theme plugin that skins Trac, slightly, for a "lighter"
look-and-feel. It provides a narrower (940px) main content div; fewer dark
lines in the top (mainnav and metanav) banner; bigger buttons (using CSS
from Twitter Bootstrap); rounded corners on input fields; and the "Ubuntu"
font used on Launchpad. Screenshots are available on the plugin's Trac
Hacks page.

http://trac-hacks.org/wiki/LighterTheme
https://github.com/ejucovy/trac-LighterTheme

I'll make initial releases of both plugins to PyPI soon. Feedback and bug
reports welcome!

Thanks,
Ethan

--
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 [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.


lkooglizmus at gmail

May 6, 2012, 12:30 AM

Post #2 of 4 (280 views)
Permalink
Re: ANN: GenshiMacro, LighterTheme [In reply to]

On Tuesday, April 3, 2012 4:04:01 AM UTC+3, Ethan Jucovy wrote:
>
>
> I've uploaded two new plugins on Trac Hacks and Github.
>
> *GenshiMacro* is a wiki macro that lets you write, and render, Genshi
> templates directly in wiki pages using a ``#!Genshi`` processor for
> blockquotes. These
> *LighterTheme* is a theme plugin that skins Trac, slightly, for a
> "lighter" look-and-feel. It provides a narrower (940px) main content div;
> fewer dark lines in the
>

Awesome, clicked Watch on both. But also tell me more about your
UserManagerPlugin fork, where are you trying to go with that? Have you got
any dieas about http://trac.edgewall.org/ticket/2456 ?

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/trac-users/-/BMCHwXRzs5kJ.
To post to this group, send email to trac-users [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.


remy.blank at pobox

May 6, 2012, 2:13 AM

Post #3 of 4 (282 views)
Permalink
Re: ANN: GenshiMacro, LighterTheme [In reply to]

Ethan Jucovy wrote:
> *GenshiMacro* is a wiki macro that lets you write, and render, Genshi
> templates directly in wiki pages using a ``#!Genshi`` processor for
> blockquotes.

You ask about security on the project page, so here's my take on it.
Genshi templates allow executing arbitrary Python code. So you basically
give users who can insert the macro anywhere (wiki page, ticket comment,
etc) permission to act as the user running Trac, including running run
any shell command.

{{{#!Genshi
<div>${open('/etc/apache2/htpasswd').read()}</div>
}}}

{{{#!Genshi
<?python
import os
os.system("rm /path/to/env/db/trac.db")
?>
}}}

So my advice is, only enable this macro on sites where you trust *all*
users who can edit *any* wiki text with the web server's account.

-- Remy
Attachments: signature.asc (0.19 KB)


ethan.jucovy at gmail

Jun 14, 2012, 2:15 PM

Post #4 of 4 (230 views)
Permalink
Re: Re: ANN: GenshiMacro, LighterTheme [In reply to]

On Sun, May 6, 2012 at 3:30 AM, Leho Kraav <lkooglizmus [at] gmail> wrote:

> On Tuesday, April 3, 2012 4:04:01 AM UTC+3, Ethan Jucovy wrote:
>
>>
>> I've uploaded two new plugins on Trac Hacks and Github.
>>
>> *GenshiMacro* is a wiki macro that lets you write, and render, Genshi
>> templates directly in wiki pages using a ``#!Genshi`` processor for
>> blockquotes. These
>> *LighterTheme* is a theme plugin that skins Trac, slightly, for a
>> "lighter" look-and-feel. It provides a narrower (940px) main content div;
>> fewer dark lines in the
>>
>
> Awesome, clicked Watch on both. But also tell me more about your
> UserManagerPlugin fork, where are you trying to go with that? Have you got
> any dieas about http://trac.edgewall.org/ticket/2456 ?
>

Sorry I didn't respond sooner, my day job swallowed me whole. I don't have
any big plans for that UserManager fork -- basically just using it to
collect UserManager patches that I need to run on my Trac sites. There
were a few bigger-picture changes I was thinking of making to it, and/or
patches I want to submit to AccountManager to make some UserManager things
easier .. but first I need to remember what those were going to be :-P

--
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 [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.