Advertisement
Guest User

Untitled

a guest
Jul 10th, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. I have used following code in utils.py of stock module
  2.  
  3. def urlopen():
  4. import webbrowser
  5. webbrowser.open_new("http://localhost:8200/201307091452.png")
  6. return "hi"
  7.  
  8. and i am calling this fun on_update of item
  9.  
  10. def on_update(self):
  11. import datetime
  12. from datetime import date
  13. from stock.utils import urlopen
  14. ww=urlopen()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement