Jeroen Ruigrok van der Werven asmodai at
Thu Jul 17 09:48:38 CEST 2008

-On [20080717 09:01], karthikbalaguru (karthikbalaguru79 at wrote:
>AttributeError : Classroom instance has no attribute 'desk_offset'

You are using a Classroom instance and probably assigning something to the
instance's variable/attribute 'desk_offset'. Except that the class Classroom
has no self.desk_offset.

So in your class definition you would need to add something to __init__()

self.desk_offset = None # or 0 or...

Jeroen Ruigrok van der Werven <asmodai(-at-)> / asmodai
イェルーン ラウフロック ヴァン デル ウェルヴェン | | GPG: 2EAC625B
A frightened mental vortex we will be, a Sun we seek, a Sun we flee...

More information about the Python-list mailing list