#!/usr/bin/env python """emano schemes - emano.py""" def read(doc, uri): # @@ use 'editor' instead of self.editor, or doc.editor as it is now line = eval(uri[6:]) doc.append(line) def write(doc, uri): attribute = uri[6:] i = attribute.rfind('.') content = doc.getContent() content = content.rstrip('\n') # @@! where's that added? setattr(eval(attribute[:i]), attribute[i+1:], content) return 'Successfully wrote to %s' % uri if __name__=="__main__": print __doc__