There are issues with using decorators with class variables (see
https://stackoverflow.com/questions/
11731136/class-method-decorator-with-self-arguments)
so it was changed to take no variables and access the class internally
# write out function. pre-pend "op_" because some instrs are
# also python keywords (cmp). also replace "." with "_"
op_fname ="op_%s" % page.replace(".", "_")
- f.write(" @inject(self.namespace)\n")
+ f.write(" @inject()\n")
f.write(" def %s(%s):\n" % (op_fname, args))
pycode = pycode.split("\n")
pycode = '\n'.join(map(lambda x: " %s" % x, pycode))