
from eve import Eve


def piterpy(endpoint, response):
    for document in response['_items']:
        document['PITERPY'] = 'IS SO COOL!'

app = Eve()
app.on_fetched_resource += piterpy

if __name__ == '__main__':
    app.run()


from eve import Eve


def codemotion(endpoint, response):
    for document in response['_items']:
        document['CODEMOTION'] = 'IS SO FREAKING COOL!'

app = Eve()
app.on_fetched_resource += codemotion

if __name__ == '__main__':
    app.run()

Prepare for Codemotion Rome 2017 demo
Prepare for Codemotion Rome 2017 demo

  
  from eve import Eve
  
  
- def piterpy(endpoint, response):
+ def codemotion(endpoint, response):
      for document in response['_items']:
-         document['PITERPY'] = 'IS SO COOL!'
+         document['CODEMOTION'] = 'IS SO FREAKING COOL!'
  
  app = Eve()
- app.on_fetched_resource += piterpy
+ app.on_fetched_resource += codemotion
  
  if __name__ == '__main__':
      app.run()
  
Prepare for Codemotion Rome 2017 demo
## Code Before:

from eve import Eve


def piterpy(endpoint, response):
    for document in response['_items']:
        document['PITERPY'] = 'IS SO COOL!'

app = Eve()
app.on_fetched_resource += piterpy

if __name__ == '__main__':
    app.run()

## Instruction:
Prepare for Codemotion Rome 2017 demo
## Code After:

from eve import Eve


def codemotion(endpoint, response):
    for document in response['_items']:
        document['CODEMOTION'] = 'IS SO FREAKING COOL!'

app = Eve()
app.on_fetched_resource += codemotion

if __name__ == '__main__':
    app.run()
