add a doc

parent df50e760
#!/usr/bin/env python
# encoding: utf-8
from click2 import *
class Demo(AppEventNature):
def __init__(self):
super(Demo, self).__init__()
def action(self, eventName):
data = self.data
data["who"] = "super-click-zqy"
data["context"]["super-context"] = "super-context"
super(Demo, self).action(eventName)
print (data)
if __name__ == "__main__":
d = Demo()
d.action(eventName="click")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment