Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. greg@earth ~/Development/_freelancer/crud_operations_in_mongodb_using_python $ python main.py
  2. Loading all items from database:
  3. ID = 54953f0a8524880d021cd856 | Title = Wordpress website for Freelancers | Price = 250
  4. ID = 54953f408524880d0db9a8a1 | Title = Wordpress website for Freelancers | Price = 250
  5. ID = 54953f788524880d14d4e590 | Title = Wordpress website for Freelancers | Price = 250
  6.  
  7.  
  8.  
  9. Saving new_project to database
  10. new_project saved to database
  11. Loading new_project from database
  12. new_project = {'price': 250, '_id': ObjectId('549546f68524880e86271de3'), 'assigned_to': u'John Doe', 'description': u'This should be a very simple website, based on wordpress with functionalities for Freelancers', 'title': u'Wordpress website for Freelancers'}
  13.  
  14.  
  15. Updating new_project to database
  16. new_project updated in database
  17. Reloading new_project from database
  18. new_project = {'price': 350, '_id': ObjectId('549546f68524880e86271de3'), 'assigned_to': u'John Doe', 'description': u'This should be a very simple website, based on wordpress with functionalities for Freelancers', 'title': u'Wordpress website for Freelancers'}
  19.  
  20.  
  21. Deleting new_project to database
  22. new_project deleted from database
  23. Trying to reload new_project from database
  24. Item with id = 549546f68524880e86271de3 was not found in the database
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement