hello,

i start to write a plugin for trac and now i have a problem with set 
reference to a python file.
i've read a lot and searched for this problem without solution.
i've also done the helloworld example, that's works. Now starting with that 
as a base (structure and other files like in helloworld but renamed) i put 
a link in support.html (the first page after klicking the hw button in the 
mainnav) like below:

<!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";>
  <xi:include href="layout.html" />
  <head>
    <title>Support</title>
  </head>

  <body>
    <div id="content" class="support">
      <h1>Support</h1>
      <ul>
       * <li><a href="${href.support('designflow')}">Design Flow 
Support</a></li>*
        <li><a href="http://www.google.de";>Tool Support</a></li>
      </ul>
    </div>
  </body>
</html>

the reference should be substitute with the evaluation of the expression 
and return a new html page. this way to call a file is using in the 
tracdeveloperplugin as well and it works.
here is the match_request method from designflow.py (that should be 
executed after klicking the link 'Design Flow Support' and returned the new 
page designflow.html):

# IRequestHandler methods
    def match_request(self, req):
        return re.match(r'/support/designflow?$', req.path_info)

 def process_request(self, req):
        data = {}
        add_stylesheet(req, 'ht/css/designflow.css')
        return 'designflow.html', data, None

i also execute this with other string to see if trac return an error like 
no handler matched, but no error, the first page is still showing up and 
only the url in browser is changing.
i don't know why it is not working. i can also send my debug log file or 
other informations.
i hope somebody can help me, please!!!

regards
ini

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to