[Grok-dev] Problem with a container

rockaroundtheclock battlefox at gmail.com
Fri Jun 12 13:16:35 EDT 2009


Thx to Uli, problem is solved ;-)


rockaroundtheclock wrote:
> 
> I'm new to Grok, and have a simple problem:
> 
> I got a container in a module "xyz" called "Times". The container contains
> a list of Objects (Instances of a class). With "for x in
> self.context.values()" , I can access the objects of the container without
> problems,
> but if I try to do that in another module (let's say "abc" + import of the
> first module "xyz"), I'm unable to access the objects in the container
> (tried with "xyz.Times.values()").
> 
> I recieve following error:  
> 
> TypeError: unbound method values() must be called with Times instance as
> first argument (got nothing instead)
> 
> Any Idea, or tip how to acces values of a container from outside the
> module the container-class belongs to?
> 
> 

-- 
View this message in context: http://www.nabble.com/Problem-with-a-container-tp23995849p24002939.html
Sent from the Grok mailing list archive at Nabble.com.



More information about the Grok-dev mailing list