On 2011-11-15 at 16:39:51, Steffen Hoffmann wrote:
> Am 15.11.2011 18:38, schrieb Chris Nelson:
>> This may be more of a Python question than Trac but hopefully you
>> don't mind too much.
>>...
>> TracError: NameError: name 'ITaskScheduler' is not defined
>> ...
>>
>> Specific advise or reference to a tutorial or clear working example
>> would be most welcome.
>
> Well, most probably you already know about Trac's component architecture
> [1].
Yep, read that.
> It holds a number of examples, and there is the growing
> ExtensionPoint reference [2].
I'll look at that.
> ...
In estimation tools, workload.py does "from estimationtools.utils import ...".
When I copied that style and had my tracjsgantt.py do "from tracjsgantt.tracpm
import TracPM", I get the error above. When I make it "from tracpm import
TracPM", it works! I have no idea why but running code trumps documentation
and examples so I'm not going to complain.
Chris
--
Christopher Nelson, Software Engineering Manager
SIXNET - Solutions for Your Industrial Networking Challenges
331 Ushers Road, Ballston Lake, NY 12019
Tel: +1.518.877.5173, Fax: +1.518.877.8346 www.sixnet.com
--
You received this message because you are subscribed to the Google Groups "Trac
Development" 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-dev?hl=en.