Has anyone ever written any custom python code to integrate with dhtmlx scheduler? I’m currently using dhtmlx scheduler with pylons web framework. I can only pull data from the db to display it on the calendar but not write to the db…
So far we have no full examples for pyton, but saving updates can be implemented in the next manner
scheduler.attachEvent(“onEventAdded”,function(id){
var ev = scheduler.getEvent(id);
var start_date = scheduler.templates.xml_format(ev.start_date);
var end_date = scheduler.templates.xml_format(ev.end_date);
var text = ev.text;
dhtmlxAjax.get("some.py?start="+start_date+"&end="+end_date+"&text="+text);
})
In result , each time when new event added, server side script will be called, and data of new event available on server. Similar can be processed onEventChanged and onBeforeEventDelete cases.
Are there any plans to have a full-fledged connector for python?
There is no such plans yet
Are you using Django or vanila Python?
I think we can create a tutorial for Scheduler + Django.
Vanilla python on top of CherryPy.
At the mercy of what was being used when I came on board.
Thanks,
Mike