pyclient does not delete deleted schedules
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Xibo |
Fix Released
|
Low
|
Alex Harrington |
Bug Description
Hi! I don't know if this is a bug, but I suppose so.
When a schedule is deleted from the web interface,
pyclient keeps showing it if it is the last schedule.
I think to have understood the reason.
In XmdsScheduler.
if self.previousSc
doc = minidom.
# Parse out the default layout and update if appropriate
for l in defaultLayout:
for l in tmpLayouts:
# End if previousSchedule != schedule
the instructions:
self.__
self.__layouts = newLayouts
self.__
are placed in the loop "for l in tmpLayouts:", so they are executed
only if there is at least one layout in the schedule, event that doesn't
happen if there is only one schedule and it is deleted before its
natural end.
I solved it by de-indenting them.
By the way I have done a modification in the server too, since
I found annoying the labels in layout design page, so I tried to hide it,
unless the mouse enters in the region.
I don't know its browser compatibility, but if you find it useful you can
do whatever you want with it.
Related branches
Changed in xibo: | |
status: | Fix Committed → Fix Released |
Hi Andrea
That all looks right to me - I'll make sure it's fixed in the next release.
As to your stuff on the server, it would probably be better either logged as a separate bug or perhaps mailed to <email address hidden> so Dan can take a look at it.
Alex