Noah Kantrowitz wrote:
> On Mar 18, 2009, at 9:15 PM, missychoppa wrote:
> 
>> Hello (from a newbie, Hi there!)
>>
>> I am working on some TracHacks plugins and noticed something strange
>> in the core Trac system (ie. something I don't understand).
>>
>> Class Componenent(object) is declared twice:
>>
>> once in:   core.py
>> again in:  ticket/model.py
>>
>> The two declarations are quite different.
> 
> They are unrelated classes. One refers to plugin components (the basic  
> building block of plugins) the other refers to the ticket enum called  
> "component". You might want to familiarize yourself with Python's  
> import semantics and how packages/modules work.
> 

Oh that bit I understand - I couldn't understand why in the first place 
in the same devel tree two classes had been given the exact same name!  :)

Thanks Noah, much obliged.

MC


> --Noah
> 
> > 

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

Reply via email to