Subversion Repositories basico

Rev

Rev 406 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 406 Rev 407
Line 7... Line 7...
7
# Description: SAPNoteViewVisor widgets
7
# Description: SAPNoteViewVisor widgets
8
"""
8
"""
9
9
10
import os
10
import os
11
from os.path import sep as SEP
11
from os.path import sep as SEP
12
from cgi import escape
-
 
-
 
12
from html import escape
13
import glob
13
import glob
14
import json
14
import json
15
from enum import IntEnum
15
from enum import IntEnum
16
16
17
import gi
17
import gi
Line 779... Line 779...
779
        visor_sapnotes = self.srvgui.get_widget('visor_sapnotes')
779
        visor_sapnotes = self.srvgui.get_widget('visor_sapnotes')
780
        selected = []
780
        selected = []
781
781
782
        def get_selected_sapnotes(model, path, itr):
782
        def get_selected_sapnotes(model, path, itr):
783
            sid = model.get(itr, COLUMN.SID)[0]
783
            sid = model.get(itr, COLUMN.SID)[0]
784
            if len(aid) == 0:
-
 
-
 
784
            self.log.debug(sid)
-
 
785
            if len(escape(sid)) > 0:
785
                selected.append(str(sid))
786
                selected.append(str(sid))
786
787
787
        sorted_model.foreach(get_selected_sapnotes)
788
        sorted_model.foreach(get_selected_sapnotes)
788
        return selected
789
        return selected