Re: [th-users] basic egg cooking - help
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 27.09.2011 23:27, wrote j98789 hotmail: > success, FINALLY!!! Congrats. > I followed the mypage plugin example. [...] > > Still I have no clue what is really going on but it is nice that I can > let something happen now :-) I know, was there, done similar things. Anyway there is at least another common pattern for the entry point configuration: in setup.py: ... version=VERSION, packages=['HelloWorldPlugin'], entry_points={'trac.plugins': 'helloworld = helloworld'}, ) ls ./plugin_dev/ helloworld setup.py ls ./plugin_dev/helloworld/ __init__.py helloworld.py in __init__.py: # -*- coding: utf-8 -*- # from helloworld import HelloWorldPlugin That's all about declaring a point, where Trac could hook in and start to load plugin code. Maybe this helps, a little. Keep on studying plugin source code, to get a grip on this an other things. Steffen Hoffmann -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6CRmcACgkQ31DJeiZFuHejKACeMCz5VCnHIw+EEW0Ab4zI/AIr uyIAoNfRWpfdV/NTmUmbK6drcpm5QwnR =n7yo -END PGP SIGNATURE- ___ th-users mailing list th-users@lists.trac-hacks.org https://lists.trac-hacks.org/mailman/listinfo/th-users
Re: [th-users] basic egg cooking - help
success, FINALLY!!! I followed the mypage plugin example. Renamed the subfolder and .py file to be identical to the class: HelloWorldPlugin (not sure if necessary) updated __init__.py accordingly and it seems you need folder name DOT class (or .py file?) name in the entry points line in setup.py: from setuptools import setup PACKAGE = 'TracHelloWorldPlugin' VERSION = '0.1' setup(name=PACKAGE, version=VERSION, packages=['HelloWorldPlugin'], entry_points={'trac.plugins': 'helloworld = HelloWorldPlugin.HelloWorldPlugin'}, ) And now I have the hello tab. In this case the trac.log file was not very helpful. Also with the egg I created yesterdag it mentioned the plugin was added and loaded. Still I have no clue what is really going on but it is nice that I can let something happen now :-) ___ th-users mailing list th-users@lists.trac-hacks.org https://lists.trac-hacks.org/mailman/listinfo/th-users
Re: [th-users] basic egg cooking - help
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 26.09.2011 23:35, wrote j98789 hotmail: >> Hi all, >> >> I followed the tutorial >> http://trac-hacks.org/wiki/EggCookingTutorialTrac0.11 [...] I could >> build the egg file. Copied it to my test project plugins folder. >> Added the components section in conf/trac.ini. Restarted tracd - >> but no helloworld link in the navigation bar. Admin - manage >> plugins - the helloworld plugin is not in the list. Admin - manage >> plugin - install - browse to egg file - press install - Plugin >> Trachelloworld-1.1-py2.7.egg already installed. >> >> I'm stuck ... any suggestions how to get me going again?? Sure, enable DEBUG logging in Trac [1] and watch the lines on environment startup. This may already give more inside in why you can't see our plugin. Steffen Hoffmann (hasienda) [1] http://trac.edgewall.org/wiki/TracLogging -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6BCMEACgkQ31DJeiZFuHcqegCfRPXSDT511ogjlLGOeW1XYpDM oEgAniW3sIYrnwoZJoPJH9d4rEr/OxhJ =fKtM -END PGP SIGNATURE- ___ th-users mailing list th-users@lists.trac-hacks.org https://lists.trac-hacks.org/mailman/listinfo/th-users