Hi all,

I am using Trac 0.11, and I am developping a plugin.
I would like to know if it is possible to import my own code in
different files (for instance one file per class) instead of write all
my code in the same file.

I tried to do like this, considering the plugin helloworld. I created
a folder "lib" like this HelloWorld/helloworld-plugin/helloworld/lib
and I put myfile.py inside it. This file contain a class, named
"Myclass".
Then, in the file HelloWorld/helloworld-plugin/helloworld/
helloworld.py I added "from helloworld.lib import myfile" at the begin
of the file.
Finally I added the line      "                            'htdocs/lib/
*.py', " in the file HelloWorld/helloworld-plugin/setup.py

And I have this  error :
Error: Not Found          No handler matched request to /helloworld

I guess the import is not done well. Do you know how can I do that
please ?
Vincent


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