Grammalecte  Diff

Differences From Artifact [f3a8765730]:

To Artifact [e0f5ecd431]:


137
138
139
140
141
142
143

144
145

146
147
148
149

150

151
152
153

154
155
156
157
158
159
160
137
138
139
140
141
142
143
144
145

146
147
148
149
150
151

152
153
154

155
156
157
158
159
160
161
162







+

-
+




+
-
+


-
+







                self.xContainer.endExecute()
            else:
                print("Wrong command: " + xActionEvent.ActionCommand)
        except:
            traceback.print_exc()

    def _setDefault (self):
        dOpt = gce.gc_options.getOptions("Writer")
        for w in self.lxOptions:
            w.State = gce.gc_options.dOpt.get(w.Name, False)
            w.State = dOpt.get(w.Name, False)

    def load (self, sLang):
        try:
            xChild = self.xNode.getByName(sLang)
            dOpt = gce.gc_options.getOptions("Writer")
            for sKey in gce.gc_options.dOpt:
            for sKey in dOpt:
                sValue = xChild.getPropertyValue(sKey)
                if sValue == '':
                    if gce.gc_options.dOpt[sKey]:
                    if dOpt[sKey]:
                        sValue = 1
                    else:
                        sValue = 0
                options[sKey] = bool(int(sValue))
        except:
            traceback.print_exc()