Re: [mezzanine-users] Real Time update of orders

2015-07-04 Thread Andrew Fam
Hey all, Thanks for the help and suggestions. Yeah i tried the bases hack and it doesn't really work. Decided to go with the ajax suggestion of checking for new orders every minute and reloading the page if there were new ones. On Friday, May 15, 2015 at 4:48:47 AM UTC+8, Stephen McDonald

Re: [mezzanine-users] Real Time update of orders

2015-05-14 Thread Brandon Keith Biggs
Hello, If you did not want to write in Javascript, you can alternatively do an ajax call using python in brython: http://brython.info/doc/en/index.html# it is under Brython-specific built-in modules / browser.ajax Although I would first read all the stuff under Browser interface if you have

Re: [mezzanine-users] Real Time update of orders

2015-05-14 Thread Josh Cartmell
Hi Andrew, I would set up some javascript that would make an ajax call every 5, 10, 30 seconds (whatever interval works for you) and then would update the orders on the page if any new ones had come in. I think that would be much easier to set up than trying to make things literally real time.

Re: [mezzanine-users] Real Time update of orders

2015-05-14 Thread Stephen McDonald
Well thanks for actually clarifying what you're trying to do. As others said if you can get away with AJAX it'll be a lot easier. Otherwise if the __bases__ hacks I mentioned don't work, it's certainly feasible to create a tiny websocket pubsub server using gevent+gunicorn+redis without any

Re: [mezzanine-users] Real Time update of orders

2015-05-13 Thread Andrew Fam
Hey Stephen thanks for this. Yes I understand AJAX and a real time update. The store Im working with sells quite fast moving products and needed a consolidated orders view that would be automatically updated once orders came in. So, instead of having to click refresh the page to see the new

Re: [mezzanine-users] Real Time update of orders

2015-05-09 Thread Stephen McDonald
Hi there, real time is incredibly vague and begs for a stricter definition. The true meaning indicates a guaranteed response time, which is most likely not what your client means (http://en.wikipedia.org/wiki/Real-time_computing). What they most likely mean is submits without reloading the page,

[mezzanine-users] Real Time update of orders

2015-05-08 Thread Andrew Fam
I'm thinking of using mezzanine but a client wants a real time update of orders. http://swampdragon.net/documentation/quick-start/ from django.db import modelsfrom swampdragon.models import SelfPublishModelfrom .serializers import FooSerializer class Foo(SelfPublishModel, models.Model):