pyclient does not refresh default layout
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Xibo |
Fix Released
|
Medium
|
Alex Harrington |
Bug Description
If a display has only default layout and its contents are modified,
python client keep showing the old layout.
I tried to solve it, forcing always to change the default layout
In XmdsScheduler.run() I modified this:
into:
It seemed to work but I don't know if this solution has drawbacks.
Maybe this should be done only if the contents are different, even if
the layoutID's are the same.
Related branches
Changed in xibo: | |
status: | Confirmed → Fix Committed |
importance: | Undecided → Medium |
Changed in xibo: | |
status: | Fix Committed → Fix Released |
Yeah - you're right.
That code is new for 1.2.0a2 to support the new schedule format. All the other layouts in there get created fresh each time so I don't suppose it should be an issue if it were updated every time.
I don't see though how your code is working.
http:// bazaar. launchpad. net/~xibo- maintainers/ xibo/biela/ annotate/ head%3A/ client/ python/ XiboClient. py#L2001
That code block is only executed if there is a schedule change. So unless there is a schedule change accompanied by the default layout change then the change will still be missed.
I need to think about this some more.
Alex