Home | Trees | Indices | Help |
|
---|
|
1 __author__ = 'Mei Si <meisi@isi.edu>' 2 3 4 from teamwork.agent.Generic import * 57 option_messages = [] 8 133415 """Returns a string representation of this entity""" 16 content = GenericModel.__repr__(self) 17 content += '\n\tOption_messages:\n' 18 content += '\t\t'+`self.option_messages` 19 return content2022 """Updates generic model from dictionary-style spec""" 23 GenericModel.importDict(self,generic) 24 # Option_messages 25 if generic.has_key('option_messages'): 26 for entry in generic['option_messages']: 27 if not entry in self.option_messages: 28 self.option_messages.append(copy.copy(entry)) 29 30 if generic.has_key('real_option_messages'): 31 for entry in generic['real_option_messages']: 32 if not entry in self.real_option_messages: 33 self.real_option_messages.append(copy.copy(entry))
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Aug 19 16:48:48 2009 | http://epydoc.sourceforge.net |