Am Dienstag, 25. Juni 2013 22:42:34 UTC+2 schrieb Steffen Hoffmann: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello, > > your email clients quotation support is seriously flawed, trying to redo > correctly here. >
Sorry, i don't know where to change this, i send a request for this group with my first email account but i sign in with my google email account. > > On 25.06.2013 08:45, ini wrote: > > Am Montag, 24. Juni 2013 20:51:45 UTC+2 schrieb Steffen Hoffmann: > >> On 24.06.2013 15:59, ini wrote: > >>> hello, > >> > >>> i start to write a plugin for trac and now i have a problem with set > >>> reference to a python file. > >> ... > >>> i don't know why it is not working. i can also send my debug log > >>> file or other informations. > >> > >> There are a few other things to do, namely > >> * implement the ITemplateProvider for registering the directory > >> containing 'designflow.html' as a template folder used by Trac > >> * include the template when packaging the plugin using setup from > >> setuptools with the 'package_data' keyword > >> > > Thanks for the quick response. Unfortunately this is not the reason for > > the problem. > > The ITemplateProvider is already implement in the main.py, this is the > > first file which is calling after press the button in the mainnav. > > I implement the second py and html file like in the tracdeveloperplugin. > > And the templates are also already included in the setup.py. > > If you mention different files here, ITemplateProvider might not be > implemented in the same class as the request handler, but exactly this > must be done, you see? > I implement the ITemplateProvider only in the first (main.py) file, in the tracdeveloperplugin it is also implemented only in the main.py. Now i implement it also in the second (designflow.py) file but it is still not working. > >> A DEBUG log of the request to <env>/support/designflow could help > >> too, sure. > > Here is the log file: > ... > > 2013-06-24 15:17:19,042 Trac[main] DEBUG: Dispatching > > <RequestWithSession "GET '/support/designflow'"> > > 2013-06-24 15:17:19,042 Trac[api] WARNING: Unable to find repository > > '(default)' for synchronization > > 2013-06-24 15:17:19,042 Trac[session] DEBUG: Retrieving session for ID > > u'irena' > > 2013-06-24 15:17:19,042 Trac[chrome] DEBUG: Prepare chrome data for > request > > 2013-06-24 15:17:19,104 Trac[main] DEBUG: Dispatching > > <RequestWithSession "GET '/chrome/site/style.css'"> > > 2013-06-24 15:17:19,119 Trac[session] DEBUG: Retrieving session for ID > > u'irena' > > 2013-06-24 15:17:19,119 Trac[chrome] WARNING: File style.css not found > > in any of ['c:\\projects\\htdocs'] > > 2013-06-24 15:17:19,119 Trac[main] WARNING: [127.0.0.1] HTTPNotFound: > > 404 Not Found (File style.css not found) > > 2013-06-24 15:17:19,119 Trac[chrome] DEBUG: Prepare chrome data for > request > > > > It seems for me like the designflow request is sending by the server but > > the py file is not reacting. > > Do i think wrong? What is the problem with this plugin? > > I can only see reception of the request and no error processing it at > Trac's side. It would take at least a few (self.)env.log.debug() > statements in the plugin code to make sure it is really executed as > intended. > I'm a beginner in python and trac as well. The next days i will try to figure out how to implement this statements, then hopefully i can say more about my problem or maybe solve it finally. Can you recommend me an another plugin which i can refer to as a help? Greetings Ini > > Steffen Hoffmann > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAlHKALIACgkQ31DJeiZFuHdl1ACaAygkurgTaLrAu6IjeD8cYbA8 > DWMAnRyqcNyAimuMr5/0jQdjFxj3vWtq > =6edf > -----END PGP SIGNATURE----- > -- 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.
