> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Luigi Casalegno
> Sent: 15 January 2013 07:26
> To: [email protected]
> Subject: RE: [Trac] customize projects list page
> 
> Dear Mark
> I still have a question
> Where do I put an image if I want to add it to the initial 
> project list page?
> Thanks
> Luigi

I would put it in the same directory as the genshi template file and just 
reference it there.

~ Mark C

> -----Original Message-----
> From: Luigi Casalegno [mailto:[email protected]] 
> Sent: mercoledì 9 gennaio 2013 09:14
> To: '[email protected]'
> Subject: RE: [Trac] customize projects list page
> 
> Dear Mark
> Thank you very much. Now it works perfectly.
> I think it was due to an incorrect access right on the 
> directory in which I
> put my file.
> Now as you suggested I am using the apache htdocs directory 
> and it runs
> correctly Luigi
> 
> -----Original Message-----Dear
> From: [email protected] 
> [mailto:[email protected]] On
> Behalf Of Cooke, Mark
> Sent: mercoledì 9 gennaio 2013 08:14
> To: [email protected]
> Subject: RE: [Trac] customize projects list page
> 
> > -----Original Message-----
> > From: [email protected] On Behalf Of 
> > [email protected]
> > Sent: 08 January 2013 20:56
> > To: [email protected]
> > Subject: [Trac] customize projects list page
> > 
> > I am trying to customize the initial project list page as 
> explained in 
> > the trac Guide at Customizing the Trac Interface, but if I 
> follow the 
> > instructions it always gives me a Server Error I am using 
> Windows 2008 
> > server with wsgi. Has someone a more extensive example or further 
> > details?
> > thanks
> >  
> Hello Luigi,
> 
> It is always helpful to give as much info as you can.  
> Questions that spring
> to my mind include: What is the actual error that you are 
> getting?  Have you
> looked in the apache (or IIS?) logs for more information?  What is the
> actual configuration you are using?
> 
> I am using apache on windoze 2k8 server using WSGI.  I am using the
> following in my WSGI file to invoke my version of the project page:
> 
> {{{
> import os
> os.environ['TRAC_ENV_INDEX_TEMPLATE'] =
> r'D:\trac\apache\htdocs\site-index.html'
> }}}
> 
> ...and here is an example of one of my site-index.html files:
> 
> <!DOCTYPE html
>     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> <html xmlns="http://www.w3.org/1999/xhtml";
>       xmlns:py="http://genshi.edgewall.org/";
>       xmlns:xi="http://www.w3.org/2001/XInclude";>
>   <head>
>     <title>Trac Server</title>
>         <style>
>             h1 {
>                 width: 96%;
>                 color: #FFFFFF;
>                 background-color: #b43530;
>                 padding: 2%;
>             }
>             h3
>             {
>                 width: 98%;
>                 color: #0;
>                 background-color: #F6CECE;
>                 padding: 1%;
>             }
>             body {
>                 font: 10pt verdana;
>                 font-family: verdana;
>                 height: 100%;
>                 padding: 0;
>                 margin: 0,2%,2%,0;
>             }
>         </style>
>   </head>
> 
>   <body>
>     <h1>Projects Available:</h1>
> 
>     <table>
>       <tbody>
>         <tr py:for="project in projects">
>           <py:choose test="'href' in project">
>             <py:when test="True">
>               <td>
>                 <a href="$project.href">${project.name}</a>
>               </td>
>               <td>
>                 ${project.description}
>               </td>
>             </py:when>
>             <py:otherwise>
>               <td>
>                 <small>${project.name}</small>
>               </td>
>               <td>
>                 <small> <em>Error</em> ($project.description) </small>
>               </td>
>             </py:otherwise>
>           </py:choose>
>         </tr>
>       </tbody>
>     </table>
> 
>     <h3>
>       NOTE:
>     </h3>
>     <p><b>
>       You must be authorised to access the project or you 
> will only see
>       an error report!<br/>
>       If this happens, please ask the project leader to grant 
> you access.
>     </b></p>
> 
>     <hr/>
>     <p>
>       <a href="mailto:user@domain";>My Name</a> ~ Subversion 
> Admin      
>     </p>
>   </body>
> </html>
> 
> Is this the same for you?  Are the permissions for this file 
> set so that
> your server process can access it (even on windoze)?
> 
> Regards,
> 
> ~ Mark C
> 
> --
> 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.
> 
> -- 
> 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.
> 
> 

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