aboutsummaryrefslogtreecommitdiff
path: root/html/SmootLight.util.Config-pysrc.html
blob: f878a13dd9adc7c641a4f3f1cb044588ea001e3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>SmootLight.util.Config</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="SmootLight-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="SmootLight-module.html">Package&nbsp;SmootLight</a> ::
        <a href="SmootLight.util-module.html">Package&nbsp;util</a> ::
        Module&nbsp;Config
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="SmootLight.util.Config-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="SmootLight.util.Config-module.html">Module SmootLight.util.Config</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">xml</tt><tt class="py-op">.</tt><tt class="py-name">etree</tt><tt class="py-op">.</tt><tt class="py-name">ElementTree</tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">re</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">sys</tt> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">xml</tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">pdb</tt> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-0" class="py-name" targets="Package SmootLight.util=SmootLight.util-module.html"><a title="SmootLight.util" class="py-name" href="#" onclick="return doclink('link-0', 'util', 'link-0');">util</a></tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Module SmootLight.util.Strings=SmootLight.util.Strings-module.html"><a title="SmootLight.util.Strings" class="py-name" href="#" onclick="return doclink('link-1', 'Strings', 'link-1');">Strings</a></tt> <tt class="py-keyword">as</tt> <tt id="link-2" class="py-name"><a title="SmootLight.util.Strings" class="py-name" href="#" onclick="return doclink('link-2', 'Strings', 'link-1');">Strings</a></tt> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-3" class="py-name"><a title="SmootLight.util" class="py-name" href="#" onclick="return doclink('link-3', 'util', 'link-0');">util</a></tt><tt class="py-op">.</tt><tt id="link-4" class="py-name" targets="Module SmootLight.util.Search=SmootLight.util.Search-module.html"><a title="SmootLight.util.Search" class="py-name" href="#" onclick="return doclink('link-4', 'Search', 'link-4');">Search</a></tt> <tt class="py-keyword">as</tt> <tt id="link-5" class="py-name"><a title="SmootLight.util.Search" class="py-name" href="#" onclick="return doclink('link-5', 'Search', 'link-4');">Search</a></tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-6" class="py-name" targets="Package SmootLight.logger=SmootLight.logger-module.html"><a title="SmootLight.logger" class="py-name" href="#" onclick="return doclink('link-6', 'logger', 'link-6');">logger</a></tt> <tt class="py-keyword">import</tt> <tt id="link-7" class="py-name" targets="Variable SmootLight.behaviors.AllPixels.main_log=SmootLight.behaviors.AllPixels-module.html#main_log,Variable SmootLight.behaviors.AllPixelsLeft.main_log=SmootLight.behaviors.AllPixelsLeft-module.html#main_log,Variable SmootLight.behaviors.Circle.main_log=SmootLight.behaviors.Circle-module.html#main_log,Variable SmootLight.behaviors.ColorChangerBehavior.main_log=SmootLight.behaviors.ColorChangerBehavior-module.html#main_log,Variable SmootLight.behaviors.ColorShift.main_log=SmootLight.behaviors.ColorShift-module.html#main_log,Variable SmootLight.behaviors.DecayBehavior.main_log=SmootLight.behaviors.DecayBehavior-module.html#main_log,Variable SmootLight.behaviors.EchoBehavior.main_log=SmootLight.behaviors.EchoBehavior-module.html#main_log,Variable SmootLight.behaviors.Expand.main_log=SmootLight.behaviors.Expand-module.html#main_log,Variable SmootLight.behaviors.Flasher.main_log=SmootLight.behaviors.Flasher-module.html#main_log,Variable SmootLight.behaviors.MITDoors.main_log=SmootLight.behaviors.MITDoors-module.html#main_log,Variable SmootLight.behaviors.MobileShakeBehavior.main_log=SmootLight.behaviors.MobileShakeBehavior-module.html#main_log,Variable SmootLight.behaviors.ModifyParam.main_log=SmootLight.behaviors.ModifyParam-module.html#main_log,Variable SmootLight.behaviors.ModulateColor.main_log=SmootLight.behaviors.ModulateColor-module.html#main_log,Variable SmootLight.behaviors.MoveBehavior.main_log=SmootLight.behaviors.MoveBehavior-module.html#main_log,Variable SmootLight.behaviors.Oval.main_log=SmootLight.behaviors.Oval-module.html#main_log,Variable SmootLight.behaviors.RandomSetBrightColorBehavior.main_log=SmootLight.behaviors.RandomSetBrightColorBehavior-module.html#main_log,Variable SmootLight.behaviors.RandomWalk.main_log=SmootLight.behaviors.RandomWalk-module.html#main_log,Variable SmootLight.behaviors.RecursiveDecay.main_log=SmootLight.behaviors.RecursiveDecay-module.html#main_log,Variable SmootLight.behaviors.ResponseMover.main_log=SmootLight.behaviors.ResponseMover-module.html#main_log,Variable SmootLight.behaviors.RestrictLocation.main_log=SmootLight.behaviors.RestrictLocation-module.html#main_log,Variable SmootLight.behaviors.RiseFall.main_log=SmootLight.behaviors.RiseFall-module.html#main_log,Variable SmootLight.behaviors.RunningBehavior.main_log=SmootLight.behaviors.RunningBehavior-module.html#main_log,Variable SmootLight.behaviors.Sink.main_log=SmootLight.behaviors.Sink-module.html#main_log,Variable SmootLight.behaviors.SmootWind.main_log=SmootLight.behaviors.SmootWind-module.html#main_log,Variable SmootLight.behaviors.Square.main_log=SmootLight.behaviors.Square-module.html#main_log,Variable SmootLight.behaviors.SwitchBehavior.main_log=SmootLight.behaviors.SwitchBehavior-module.html#main_log,Variable SmootLight.behaviors.SynchTest.main_log=SmootLight.behaviors.SynchTest-module.html#main_log,Variable SmootLight.behaviors.TimedDie.main_log=SmootLight.behaviors.TimedDie-module.html#main_log,Variable SmootLight.behaviors.Timeout.main_log=SmootLight.behaviors.Timeout-module.html#main_log,Variable SmootLight.behaviors.VerticalBar.main_log=SmootLight.behaviors.VerticalBar-module.html#main_log,Variable SmootLight.behaviors.XYMove.main_log=SmootLight.behaviors.XYMove-module.html#main_log,Variable SmootLight.inputs.ContinuousCenterInput.main_log=SmootLight.inputs.ContinuousCenterInput-module.html#main_log,Variable SmootLight.inputs.ContinuousLocationInput.main_log=SmootLight.inputs.ContinuousLocationInput-module.html#main_log,Variable SmootLight.inputs.HTMLInput.main_log=SmootLight.inputs.HTMLInput-module.html#main_log,Variable SmootLight.inputs.PygameInput.main_log=SmootLight.inputs.PygameInput-module.html#main_log,Variable SmootLight.inputs.RandomLocs.main_log=SmootLight.inputs.RandomLocs-module.html#main_log,Variable SmootLight.inputs.UDPInput.main_log=SmootLight.inputs.UDPInput-module.html#main_log,Variable SmootLight.logger.Logger.main_log=SmootLight.logger.Logger-module.html#main_log,Variable SmootLight.pixelcore.PixelStrip.main_log=SmootLight.pixelcore.PixelStrip-module.html#main_log,Variable SmootLight.pixelmappers.C5SignMapper.main_log=SmootLight.pixelmappers.C5SignMapper-module.html#main_log,Variable SmootLight.pixelmappers.GaussianMapper.main_log=SmootLight.pixelmappers.GaussianMapper-module.html#main_log,Variable SmootLight.pixelmappers.SimpleMapper.main_log=SmootLight.pixelmappers.SimpleMapper-module.html#main_log,Variable SmootLight.pixelmappers.WindGaussianMapper.main_log=SmootLight.pixelmappers.WindGaussianMapper-module.html#main_log,Variable SmootLight.tests.TestBQS'.main_log=SmootLight.tests.TestBQS%27-module.html#main_log"><a title="SmootLight.behaviors.AllPixels.main_log
SmootLight.behaviors.AllPixelsLeft.main_log
SmootLight.behaviors.Circle.main_log
SmootLight.behaviors.ColorChangerBehavior.main_log
SmootLight.behaviors.ColorShift.main_log
SmootLight.behaviors.DecayBehavior.main_log
SmootLight.behaviors.EchoBehavior.main_log
SmootLight.behaviors.Expand.main_log
SmootLight.behaviors.Flasher.main_log
SmootLight.behaviors.MITDoors.main_log
SmootLight.behaviors.MobileShakeBehavior.main_log
SmootLight.behaviors.ModifyParam.main_log
SmootLight.behaviors.ModulateColor.main_log
SmootLight.behaviors.MoveBehavior.main_log
SmootLight.behaviors.Oval.main_log
SmootLight.behaviors.RandomSetBrightColorBehavior.main_log
SmootLight.behaviors.RandomWalk.main_log
SmootLight.behaviors.RecursiveDecay.main_log
SmootLight.behaviors.ResponseMover.main_log
SmootLight.behaviors.RestrictLocation.main_log
SmootLight.behaviors.RiseFall.main_log
SmootLight.behaviors.RunningBehavior.main_log
SmootLight.behaviors.Sink.main_log
SmootLight.behaviors.SmootWind.main_log
SmootLight.behaviors.Square.main_log
SmootLight.behaviors.SwitchBehavior.main_log
SmootLight.behaviors.SynchTest.main_log
SmootLight.behaviors.TimedDie.main_log
SmootLight.behaviors.Timeout.main_log
SmootLight.behaviors.VerticalBar.main_log
SmootLight.behaviors.XYMove.main_log
SmootLight.inputs.ContinuousCenterInput.main_log
SmootLight.inputs.ContinuousLocationInput.main_log
SmootLight.inputs.HTMLInput.main_log
SmootLight.inputs.PygameInput.main_log
SmootLight.inputs.RandomLocs.main_log
SmootLight.inputs.UDPInput.main_log
SmootLight.logger.Logger.main_log
SmootLight.pixelcore.PixelStrip.main_log
SmootLight.pixelmappers.C5SignMapper.main_log
SmootLight.pixelmappers.GaussianMapper.main_log
SmootLight.pixelmappers.SimpleMapper.main_log
SmootLight.pixelmappers.WindGaussianMapper.main_log
SmootLight.tests.TestBQS'.main_log" class="py-name" href="#" onclick="return doclink('link-7', 'main_log', 'link-7');">main_log</a></tt><tt class="py-op">,</tt> <tt id="link-8" class="py-name" targets="Variable SmootLight.inputs.ContinuousCenterInput.exception_log=SmootLight.inputs.ContinuousCenterInput-module.html#exception_log,Variable SmootLight.inputs.ContinuousLocationInput.exception_log=SmootLight.inputs.ContinuousLocationInput-module.html#exception_log,Variable SmootLight.inputs.HTMLInput.exception_log=SmootLight.inputs.HTMLInput-module.html#exception_log,Variable SmootLight.inputs.OSCInput.exception_log=SmootLight.inputs.OSCInput-module.html#exception_log,Variable SmootLight.inputs.PygameInput.exception_log=SmootLight.inputs.PygameInput-module.html#exception_log,Variable SmootLight.inputs.RandomLocs.exception_log=SmootLight.inputs.RandomLocs-module.html#exception_log,Variable SmootLight.inputs.TCPInput.exception_log=SmootLight.inputs.TCPInput-module.html#exception_log,Variable SmootLight.inputs.UDPInput.exception_log=SmootLight.inputs.UDPInput-module.html#exception_log,Variable SmootLight.logger.Logger.exception_log=SmootLight.logger.Logger-module.html#exception_log"><a title="SmootLight.inputs.ContinuousCenterInput.exception_log
SmootLight.inputs.ContinuousLocationInput.exception_log
SmootLight.inputs.HTMLInput.exception_log
SmootLight.inputs.OSCInput.exception_log
SmootLight.inputs.PygameInput.exception_log
SmootLight.inputs.RandomLocs.exception_log
SmootLight.inputs.TCPInput.exception_log
SmootLight.inputs.UDPInput.exception_log
SmootLight.logger.Logger.exception_log" class="py-name" href="#" onclick="return doclink('link-8', 'exception_log', 'link-8');">exception_log</a></tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt id="link-9" class="py-name" targets="Variable SmootLight.util.Config.classArgsMem=SmootLight.util.Config-module.html#classArgsMem"><a title="SmootLight.util.Config.classArgsMem" class="py-name" href="#" onclick="return doclink('link-9', 'classArgsMem', 'link-9');">classArgsMem</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt id="link-10" class="py-name" targets="Variable SmootLight.util.Config.CONFIG_PATH=SmootLight.util.Config-module.html#CONFIG_PATH"><a title="SmootLight.util.Config.CONFIG_PATH" class="py-name" href="#" onclick="return doclink('link-10', 'CONFIG_PATH', 'link-10');">CONFIG_PATH</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'config/'</tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt id="link-11" class="py-name" targets="Variable SmootLight.util.Config.DEFAULT_OVERRIDE_MODE=SmootLight.util.Config-module.html#DEFAULT_OVERRIDE_MODE"><a title="SmootLight.util.Config.DEFAULT_OVERRIDE_MODE" class="py-name" href="#" onclick="return doclink('link-11', 'DEFAULT_OVERRIDE_MODE', 'link-11');">DEFAULT_OVERRIDE_MODE</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'Merge'</tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"> </tt>
<a name="loadParamRequirementDict"></a><div id="loadParamRequirementDict-def"><a name="L13"></a><tt class="py-lineno"> 13</tt> <a class="py-toggle" href="#" id="loadParamRequirementDict-toggle" onclick="return toggle('loadParamRequirementDict');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="SmootLight.util.Config-module.html#loadParamRequirementDict">loadParamRequirementDict</a><tt class="py-op">(</tt><tt class="py-param">className</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="loadParamRequirementDict-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="loadParamRequirementDict-expanded"><a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt id="link-12" class="py-name" targets="Method SmootLight.operationscore.SmootCoreObject.SmootCoreObject.className()=SmootLight.operationscore.SmootCoreObject.SmootCoreObject-class.html#className"><a title="SmootLight.operationscore.SmootCoreObject.SmootCoreObject.className" class="py-name" href="#" onclick="return doclink('link-12', 'className', 'link-12');">className</a></tt> <tt class="py-keyword">in</tt> <tt id="link-13" class="py-name"><a title="SmootLight.util.Config.classArgsMem" class="py-name" href="#" onclick="return doclink('link-13', 'classArgsMem', 'link-9');">classArgsMem</a></tt><tt class="py-op">:</tt> <tt class="py-comment">#WOO CACHING</tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line">        <tt id="link-14" class="py-name"><a title="SmootLight.util.Config.classArgsMem" class="py-name" href="#" onclick="return doclink('link-14', 'classArgsMem', 'link-9');">classArgsMem</a></tt><tt class="py-op">[</tt><tt id="link-15" class="py-name"><a title="SmootLight.operationscore.SmootCoreObject.SmootCoreObject.className" class="py-name" href="#" onclick="return doclink('link-15', 'className', 'link-12');">className</a></tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt id="link-16" class="py-name" targets="Function SmootLight.util.Config.fileToDict()=SmootLight.util.Config-module.html#fileToDict"><a title="SmootLight.util.Config.fileToDict" class="py-name" href="#" onclick="return doclink('link-16', 'fileToDict', 'link-16');">fileToDict</a></tt><tt class="py-op">(</tt><tt id="link-17" class="py-name"><a title="SmootLight.util.Config.CONFIG_PATH" class="py-name" href="#" onclick="return doclink('link-17', 'CONFIG_PATH', 'link-10');">CONFIG_PATH</a></tt> <tt class="py-op">+</tt> <tt id="link-18" class="py-name"><a title="SmootLight.operationscore.SmootCoreObject.SmootCoreObject.className" class="py-name" href="#" onclick="return doclink('link-18', 'className', 'link-12');">className</a></tt><tt class="py-op">)</tt>  </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-19" class="py-name"><a title="SmootLight.util.Config.classArgsMem" class="py-name" href="#" onclick="return doclink('link-19', 'classArgsMem', 'link-9');">classArgsMem</a></tt><tt class="py-op">[</tt><tt id="link-20" class="py-name"><a title="SmootLight.operationscore.SmootCoreObject.SmootCoreObject.className" class="py-name" href="#" onclick="return doclink('link-20', 'className', 'link-12');">className</a></tt><tt class="py-op">]</tt> </tt>
</div><a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"> </tt>
<a name="loadConfigFile"></a><div id="loadConfigFile-def"><a name="L18"></a><tt class="py-lineno"> 18</tt> <a class="py-toggle" href="#" id="loadConfigFile-toggle" onclick="return toggle('loadConfigFile');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="SmootLight.util.Config-module.html#loadConfigFile">loadConfigFile</a><tt class="py-op">(</tt><tt class="py-param">fileName</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-comment">#TODO: error handling etc.</tt> </tt>
</div><a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line">    <tt class="py-docstring">"""Loads a config file.  If its an xml file, inheritances are automatically resolved."""</tt> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line">    <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-string">'.params'</tt> <tt class="py-keyword">in</tt> <tt class="py-name">fileName</tt><tt class="py-op">:</tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt id="link-21" class="py-name"><a title="SmootLight.util.Config.fileToDict" class="py-name" href="#" onclick="return doclink('link-21', 'fileToDict', 'link-16');">fileToDict</a></tt><tt class="py-op">(</tt><tt class="py-name">fileName</tt><tt class="py-op">)</tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-string">'.xml'</tt> <tt class="py-keyword">in</tt> <tt class="py-name">fileName</tt><tt class="py-op">:</tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line">            <tt class="py-name">config</tt> <tt class="py-op">=</tt> <tt class="py-name">ElementTree</tt><tt class="py-op">(</tt><tt class="py-op">)</tt>  </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line">            <tt class="py-name">config</tt><tt class="py-op">.</tt><tt class="py-name">parse</tt><tt class="py-op">(</tt><tt class="py-name">fileName</tt><tt class="py-op">)</tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line">            <tt id="link-22" class="py-name" targets="Function SmootLight.util.Config.resolveDocumentInheritances()=SmootLight.util.Config-module.html#resolveDocumentInheritances"><a title="SmootLight.util.Config.resolveDocumentInheritances" class="py-name" href="#" onclick="return doclink('link-22', 'resolveDocumentInheritances', 'link-22');">resolveDocumentInheritances</a></tt><tt class="py-op">(</tt><tt class="py-name">config</tt><tt class="py-op">.</tt><tt class="py-name">getroot</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">config</tt> </tt>
<a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line">    <tt class="py-keyword">except</tt> <tt class="py-name">Exception</tt> <tt class="py-keyword">as</tt> <tt class="py-name">inst</tt><tt class="py-op">:</tt> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line">        <tt id="link-23" class="py-name"><a title="SmootLight.behaviors.AllPixels.main_log
SmootLight.behaviors.AllPixelsLeft.main_log
SmootLight.behaviors.Circle.main_log
SmootLight.behaviors.ColorChangerBehavior.main_log
SmootLight.behaviors.ColorShift.main_log
SmootLight.behaviors.DecayBehavior.main_log
SmootLight.behaviors.EchoBehavior.main_log
SmootLight.behaviors.Expand.main_log
SmootLight.behaviors.Flasher.main_log
SmootLight.behaviors.MITDoors.main_log
SmootLight.behaviors.MobileShakeBehavior.main_log
SmootLight.behaviors.ModifyParam.main_log
SmootLight.behaviors.ModulateColor.main_log
SmootLight.behaviors.MoveBehavior.main_log
SmootLight.behaviors.Oval.main_log
SmootLight.behaviors.RandomSetBrightColorBehavior.main_log
SmootLight.behaviors.RandomWalk.main_log
SmootLight.behaviors.RecursiveDecay.main_log
SmootLight.behaviors.ResponseMover.main_log
SmootLight.behaviors.RestrictLocation.main_log
SmootLight.behaviors.RiseFall.main_log
SmootLight.behaviors.RunningBehavior.main_log
SmootLight.behaviors.Sink.main_log
SmootLight.behaviors.SmootWind.main_log
SmootLight.behaviors.Square.main_log
SmootLight.behaviors.SwitchBehavior.main_log
SmootLight.behaviors.SynchTest.main_log
SmootLight.behaviors.TimedDie.main_log
SmootLight.behaviors.Timeout.main_log
SmootLight.behaviors.VerticalBar.main_log
SmootLight.behaviors.XYMove.main_log
SmootLight.inputs.ContinuousCenterInput.main_log
SmootLight.inputs.ContinuousLocationInput.main_log
SmootLight.inputs.HTMLInput.main_log
SmootLight.inputs.PygameInput.main_log
SmootLight.inputs.RandomLocs.main_log
SmootLight.inputs.UDPInput.main_log
SmootLight.logger.Logger.main_log
SmootLight.pixelcore.PixelStrip.main_log
SmootLight.pixelmappers.C5SignMapper.main_log
SmootLight.pixelmappers.GaussianMapper.main_log
SmootLight.pixelmappers.SimpleMapper.main_log
SmootLight.pixelmappers.WindGaussianMapper.main_log
SmootLight.tests.TestBQS'.main_log" class="py-name" href="#" onclick="return doclink('link-23', 'main_log', 'link-7');">main_log</a></tt><tt class="py-op">.</tt><tt class="py-name">info</tt><tt class="py-op">(</tt><tt class="py-string">'Error loading config file '</tt> <tt class="py-op">+</tt> <tt class="py-name">fileName</tt><tt class="py-op">)</tt><tt class="py-comment">#, inst) TODO: log exception too</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line">        <tt id="link-24" class="py-name"><a title="SmootLight.behaviors.AllPixels.main_log
SmootLight.behaviors.AllPixelsLeft.main_log
SmootLight.behaviors.Circle.main_log
SmootLight.behaviors.ColorChangerBehavior.main_log
SmootLight.behaviors.ColorShift.main_log
SmootLight.behaviors.DecayBehavior.main_log
SmootLight.behaviors.EchoBehavior.main_log
SmootLight.behaviors.Expand.main_log
SmootLight.behaviors.Flasher.main_log
SmootLight.behaviors.MITDoors.main_log
SmootLight.behaviors.MobileShakeBehavior.main_log
SmootLight.behaviors.ModifyParam.main_log
SmootLight.behaviors.ModulateColor.main_log
SmootLight.behaviors.MoveBehavior.main_log
SmootLight.behaviors.Oval.main_log
SmootLight.behaviors.RandomSetBrightColorBehavior.main_log
SmootLight.behaviors.RandomWalk.main_log
SmootLight.behaviors.RecursiveDecay.main_log
SmootLight.behaviors.ResponseMover.main_log
SmootLight.behaviors.RestrictLocation.main_log
SmootLight.behaviors.RiseFall.main_log
SmootLight.behaviors.RunningBehavior.main_log
SmootLight.behaviors.Sink.main_log
SmootLight.behaviors.SmootWind.main_log
SmootLight.behaviors.Square.main_log
SmootLight.behaviors.SwitchBehavior.main_log
SmootLight.behaviors.SynchTest.main_log
SmootLight.behaviors.TimedDie.main_log
SmootLight.behaviors.Timeout.main_log
SmootLight.behaviors.VerticalBar.main_log
SmootLight.behaviors.XYMove.main_log
SmootLight.inputs.ContinuousCenterInput.main_log
SmootLight.inputs.ContinuousLocationInput.main_log
SmootLight.inputs.HTMLInput.main_log
SmootLight.inputs.PygameInput.main_log
SmootLight.inputs.RandomLocs.main_log
SmootLight.inputs.UDPInput.main_log
SmootLight.logger.Logger.main_log
SmootLight.pixelcore.PixelStrip.main_log
SmootLight.pixelmappers.C5SignMapper.main_log
SmootLight.pixelmappers.GaussianMapper.main_log
SmootLight.pixelmappers.SimpleMapper.main_log
SmootLight.pixelmappers.WindGaussianMapper.main_log
SmootLight.tests.TestBQS'.main_log" class="py-name" href="#" onclick="return doclink('link-24', 'main_log', 'link-7');">main_log</a></tt><tt class="py-op">.</tt><tt class="py-name">info</tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">inst</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div><a name="getElement"></a><div id="getElement-def"><a name="L32"></a><tt class="py-lineno"> 32</tt> <a class="py-toggle" href="#" id="getElement-toggle" onclick="return toggle('getElement');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="SmootLight.util.Config-module.html#getElement">getElement</a><tt class="py-op">(</tt><tt class="py-param">el</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="getElement-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="getElement-expanded"><a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line">    <tt class="py-docstring">"""Takes an Element or an ElementTree.  If it is a tree, it returns its root.  Otherwise, just returns</tt> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line"><tt class="py-docstring">    it"""</tt> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">xml</tt><tt class="py-op">.</tt><tt class="py-name">etree</tt><tt class="py-op">.</tt><tt class="py-name">ElementTree</tt><tt class="py-op">.</tt><tt class="py-name">iselement</tt><tt class="py-op">(</tt><tt class="py-name">el</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">el</tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line">    <tt class="py-keyword">elif</tt> <tt class="py-name">el</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt> <tt class="py-op">==</tt> <tt class="py-name">ElementTree</tt><tt class="py-op">:</tt> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">el</tt><tt class="py-op">.</tt><tt class="py-name">getroot</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="compositeXMLTrees"></a><div id="compositeXMLTrees-def"><a name="L39"></a><tt class="py-lineno"> 39</tt> <a class="py-toggle" href="#" id="compositeXMLTrees-toggle" onclick="return toggle('compositeXMLTrees');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="SmootLight.util.Config-module.html#compositeXMLTrees">compositeXMLTrees</a><tt class="py-op">(</tt><tt class="py-param">parentTree</tt><tt class="py-op">,</tt> <tt class="py-param">overridingTree</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>  </tt>
</div><a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line">    <tt class="py-docstring">"""XML tree composition.  Returns the resulting tree, but happens in-place in the overriding</tt> </tt>
<a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line"><tt class="py-docstring">    tree."""</tt> </tt>
<a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line">    <tt class="py-comment">#TODO: break up into sub-methods, change it to use .find()</tt> </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">parentTree</tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">overridingTree</tt> </tt>
<a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">overridingTree</tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">parentTree</tt> <tt class="py-comment">#TODO: this will probably cause a bug since it isn't in-place on</tt> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">        <tt class="py-comment">#overridingTree</tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line">    <tt class="py-name">parentTree</tt> <tt class="py-op">=</tt> <tt id="link-25" class="py-name" targets="Function SmootLight.util.Config.getElement()=SmootLight.util.Config-module.html#getElement"><a title="SmootLight.util.Config.getElement" class="py-name" href="#" onclick="return doclink('link-25', 'getElement', 'link-25');">getElement</a></tt><tt class="py-op">(</tt><tt class="py-name">parentTree</tt><tt class="py-op">)</tt> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line">    <tt class="py-name">overridingTree</tt> <tt class="py-op">=</tt> <tt id="link-26" class="py-name"><a title="SmootLight.util.Config.getElement" class="py-name" href="#" onclick="return doclink('link-26', 'getElement', 'link-25');">getElement</a></tt><tt class="py-op">(</tt><tt class="py-name">overridingTree</tt><tt class="py-op">)</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">    <tt class="py-name">parentItems</tt> <tt class="py-op">=</tt> <tt class="py-name">parentTree</tt><tt class="py-op">.</tt><tt class="py-name">getchildren</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line">    <tt class="py-name">overrideItems</tt> <tt class="py-op">=</tt> <tt class="py-name">overridingTree</tt><tt class="py-op">.</tt><tt class="py-name">getchildren</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">    <tt class="py-comment">#first, lets figure out what tags we have in the override tree:</tt> </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line">    <tt class="py-name">tagCollection</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-name">el</tt><tt class="py-op">.</tt><tt class="py-name">tag</tt> <tt class="py-keyword">for</tt> <tt class="py-name">el</tt> <tt class="py-keyword">in</tt> <tt class="py-name">overrideItems</tt><tt class="py-op">]</tt> <tt class="py-comment">#we can speed this up with a dict if necessary</tt> </tt>
<a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt class="py-name">item</tt> <tt class="py-keyword">in</tt> <tt class="py-name">parentItems</tt><tt class="py-op">:</tt> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">item</tt><tt class="py-op">.</tt><tt class="py-name">tag</tt> <tt class="py-keyword">in</tt> <tt class="py-name">tagCollection</tt><tt class="py-op">:</tt> <tt class="py-comment">#no override </tt> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line">            <tt class="py-name">overridingTree</tt><tt class="py-op">.</tt><tt class="py-name">insert</tt><tt class="py-op">(</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">,</tt> <tt class="py-name">item</tt><tt class="py-op">)</tt> <tt class="py-comment">#insert the new item at the end</tt> </tt>
<a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line">            <tt class="py-comment">#do we merge or replace?</tt> </tt>
<a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line">            <tt class="py-name">intersectingElements</tt> <tt class="py-op">=</tt> <tt id="link-27" class="py-name" targets="Function SmootLight.util.Config.findElementsByTag()=SmootLight.util.Config-module.html#findElementsByTag"><a title="SmootLight.util.Config.findElementsByTag" class="py-name" href="#" onclick="return doclink('link-27', 'findElementsByTag', 'link-27');">findElementsByTag</a></tt><tt class="py-op">(</tt><tt class="py-name">item</tt><tt class="py-op">.</tt><tt class="py-name">tag</tt><tt class="py-op">,</tt> <tt class="py-name">overrideItems</tt><tt class="py-op">)</tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">intersectingElements</tt><tt class="py-op">)</tt> <tt class="py-op">&gt;</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">                <tt id="link-28" class="py-name"><a title="SmootLight.behaviors.AllPixels.main_log
SmootLight.behaviors.AllPixelsLeft.main_log
SmootLight.behaviors.Circle.main_log
SmootLight.behaviors.ColorChangerBehavior.main_log
SmootLight.behaviors.ColorShift.main_log
SmootLight.behaviors.DecayBehavior.main_log
SmootLight.behaviors.EchoBehavior.main_log
SmootLight.behaviors.Expand.main_log
SmootLight.behaviors.Flasher.main_log
SmootLight.behaviors.MITDoors.main_log
SmootLight.behaviors.MobileShakeBehavior.main_log
SmootLight.behaviors.ModifyParam.main_log
SmootLight.behaviors.ModulateColor.main_log
SmootLight.behaviors.MoveBehavior.main_log
SmootLight.behaviors.Oval.main_log
SmootLight.behaviors.RandomSetBrightColorBehavior.main_log
SmootLight.behaviors.RandomWalk.main_log
SmootLight.behaviors.RecursiveDecay.main_log
SmootLight.behaviors.ResponseMover.main_log
SmootLight.behaviors.RestrictLocation.main_log
SmootLight.behaviors.RiseFall.main_log
SmootLight.behaviors.RunningBehavior.main_log
SmootLight.behaviors.Sink.main_log
SmootLight.behaviors.SmootWind.main_log
SmootLight.behaviors.Square.main_log
SmootLight.behaviors.SwitchBehavior.main_log
SmootLight.behaviors.SynchTest.main_log
SmootLight.behaviors.TimedDie.main_log
SmootLight.behaviors.Timeout.main_log
SmootLight.behaviors.VerticalBar.main_log
SmootLight.behaviors.XYMove.main_log
SmootLight.inputs.ContinuousCenterInput.main_log
SmootLight.inputs.ContinuousLocationInput.main_log
SmootLight.inputs.HTMLInput.main_log
SmootLight.inputs.PygameInput.main_log
SmootLight.inputs.RandomLocs.main_log
SmootLight.inputs.UDPInput.main_log
SmootLight.logger.Logger.main_log
SmootLight.pixelcore.PixelStrip.main_log
SmootLight.pixelmappers.C5SignMapper.main_log
SmootLight.pixelmappers.GaussianMapper.main_log
SmootLight.pixelmappers.SimpleMapper.main_log
SmootLight.pixelmappers.WindGaussianMapper.main_log
SmootLight.tests.TestBQS'.main_log" class="py-name" href="#" onclick="return doclink('link-28', 'main_log', 'link-7');">main_log</a></tt><tt class="py-op">.</tt><tt class="py-name">warn</tt><tt class="py-op">(</tt><tt class="py-string">'ABUSE!  Override of multiple items isn\'t well defined.  Don\'t do\</tt> </tt>
<a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line"><tt class="py-string">                it!'</tt><tt class="py-op">)</tt> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">            <tt class="py-name">interEl</tt> <tt class="py-op">=</tt> <tt class="py-name">intersectingElements</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line">            <tt class="py-name">mode</tt> <tt class="py-op">=</tt> <tt id="link-29" class="py-name"><a title="SmootLight.util.Config.DEFAULT_OVERRIDE_MODE" class="py-name" href="#" onclick="return doclink('link-29', 'DEFAULT_OVERRIDE_MODE', 'link-11');">DEFAULT_OVERRIDE_MODE</a></tt> </tt>
<a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt id="link-30" class="py-name"><a title="SmootLight.util.Strings" class="py-name" href="#" onclick="return doclink('link-30', 'Strings', 'link-1');">Strings</a></tt><tt class="py-op">.</tt><tt id="link-31" class="py-name" targets="Variable SmootLight.util.Strings.OVERRIDE_BEHAVIOR=SmootLight.util.Strings-module.html#OVERRIDE_BEHAVIOR"><a title="SmootLight.util.Strings.OVERRIDE_BEHAVIOR" class="py-name" href="#" onclick="return doclink('link-31', 'OVERRIDE_BEHAVIOR', 'link-31');">OVERRIDE_BEHAVIOR</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">interEl</tt><tt class="py-op">.</tt><tt class="py-name">attrib</tt><tt class="py-op">:</tt> </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line">                <tt class="py-name">mode</tt> <tt class="py-op">=</tt> <tt class="py-name">interEl</tt><tt class="py-op">.</tt><tt class="py-name">attrib</tt><tt class="py-op">[</tt><tt id="link-32" class="py-name"><a title="SmootLight.util.Strings" class="py-name" href="#" onclick="return doclink('link-32', 'Strings', 'link-1');">Strings</a></tt><tt class="py-op">.</tt><tt id="link-33" class="py-name"><a title="SmootLight.util.Strings.OVERRIDE_BEHAVIOR" class="py-name" href="#" onclick="return doclink('link-33', 'OVERRIDE_BEHAVIOR', 'link-31');">OVERRIDE_BEHAVIOR</a></tt><tt class="py-op">]</tt>  </tt>
<a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">mode</tt> <tt class="py-op">!=</tt> <tt class="py-string">'Replace'</tt> <tt class="py-keyword">and</tt> <tt class="py-name">mode</tt> <tt class="py-op">!=</tt> <tt class="py-string">'Merge'</tt><tt class="py-op">:</tt> </tt>
<a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line">                <tt id="link-34" class="py-name"><a title="SmootLight.behaviors.AllPixels.main_log
SmootLight.behaviors.AllPixelsLeft.main_log
SmootLight.behaviors.Circle.main_log
SmootLight.behaviors.ColorChangerBehavior.main_log
SmootLight.behaviors.ColorShift.main_log
SmootLight.behaviors.DecayBehavior.main_log
SmootLight.behaviors.EchoBehavior.main_log
SmootLight.behaviors.Expand.main_log
SmootLight.behaviors.Flasher.main_log
SmootLight.behaviors.MITDoors.main_log
SmootLight.behaviors.MobileShakeBehavior.main_log
SmootLight.behaviors.ModifyParam.main_log
SmootLight.behaviors.ModulateColor.main_log
SmootLight.behaviors.MoveBehavior.main_log
SmootLight.behaviors.Oval.main_log
SmootLight.behaviors.RandomSetBrightColorBehavior.main_log
SmootLight.behaviors.RandomWalk.main_log
SmootLight.behaviors.RecursiveDecay.main_log
SmootLight.behaviors.ResponseMover.main_log
SmootLight.behaviors.RestrictLocation.main_log
SmootLight.behaviors.RiseFall.main_log
SmootLight.behaviors.RunningBehavior.main_log
SmootLight.behaviors.Sink.main_log
SmootLight.behaviors.SmootWind.main_log
SmootLight.behaviors.Square.main_log
SmootLight.behaviors.SwitchBehavior.main_log
SmootLight.behaviors.SynchTest.main_log
SmootLight.behaviors.TimedDie.main_log
SmootLight.behaviors.Timeout.main_log
SmootLight.behaviors.VerticalBar.main_log
SmootLight.behaviors.XYMove.main_log
SmootLight.inputs.ContinuousCenterInput.main_log
SmootLight.inputs.ContinuousLocationInput.main_log
SmootLight.inputs.HTMLInput.main_log
SmootLight.inputs.PygameInput.main_log
SmootLight.inputs.RandomLocs.main_log
SmootLight.inputs.UDPInput.main_log
SmootLight.logger.Logger.main_log
SmootLight.pixelcore.PixelStrip.main_log
SmootLight.pixelmappers.C5SignMapper.main_log
SmootLight.pixelmappers.GaussianMapper.main_log
SmootLight.pixelmappers.SimpleMapper.main_log
SmootLight.pixelmappers.WindGaussianMapper.main_log
SmootLight.tests.TestBQS'.main_log" class="py-name" href="#" onclick="return doclink('link-34', 'main_log', 'link-7');">main_log</a></tt><tt class="py-op">.</tt><tt class="py-name">warn</tt><tt class="py-op">(</tt><tt class="py-string">'Bad Override Mode.  Choosing to replace.'</tt><tt class="py-op">)</tt> </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">                <tt class="py-name">mode</tt> <tt class="py-op">=</tt> <tt class="py-string">'Replace'</tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">mode</tt> <tt class="py-op">==</tt> <tt class="py-string">'Replace'</tt><tt class="py-op">:</tt> </tt>
<a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line">                <tt class="py-keyword">pass</tt> <tt class="py-comment">#we don't need to do anything</tt> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">mode</tt> <tt class="py-op">==</tt> <tt class="py-string">'Merge'</tt><tt class="py-op">:</tt>  </tt>
<a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line">                <tt class="py-name">interEl</tt> <tt class="py-op">=</tt> <tt id="link-35" class="py-name" targets="Function SmootLight.util.Config.compositeXMLTrees()=SmootLight.util.Config-module.html#compositeXMLTrees"><a title="SmootLight.util.Config.compositeXMLTrees" class="py-name" href="#" onclick="return doclink('link-35', 'compositeXMLTrees', 'link-35');">compositeXMLTrees</a></tt><tt class="py-op">(</tt><tt class="py-name">item</tt><tt class="py-op">,</tt> <tt class="py-name">interEl</tt><tt class="py-op">)</tt> </tt>
<a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt class="py-name">item</tt> <tt class="py-keyword">in</tt> <tt class="py-name">overrideItems</tt><tt class="py-op">:</tt> <tt class="py-comment">#resolve appendages</tt> </tt>
<a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">item</tt><tt class="py-op">.</tt><tt class="py-name">tag</tt> <tt class="py-op">==</tt> <tt class="py-string">'APPEND'</tt><tt class="py-op">:</tt> </tt>
<a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line">            <tt class="py-name">children</tt> <tt class="py-op">=</tt> <tt class="py-name">item</tt><tt class="py-op">.</tt><tt class="py-name">getchildren</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">child</tt> <tt class="py-keyword">in</tt> <tt class="py-name">children</tt><tt class="py-op">:</tt> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">                <tt class="py-name">overrideItems</tt><tt class="py-op">.</tt><tt class="py-name">insert</tt><tt class="py-op">(</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">,</tt> <tt class="py-name">child</tt><tt class="py-op">)</tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">            <tt class="py-name">overrideItems</tt><tt class="py-op">.</tt><tt class="py-name">remove</tt><tt class="py-op">(</tt><tt class="py-name">item</tt><tt class="py-op">)</tt> </tt>
<a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">overridingTree</tt> </tt>
</div><a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line"> </tt>
<a name="findElementsByTag"></a><div id="findElementsByTag-def"><a name="L82"></a><tt class="py-lineno"> 82</tt> <a class="py-toggle" href="#" id="findElementsByTag-toggle" onclick="return toggle('findElementsByTag');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="SmootLight.util.Config-module.html#findElementsByTag">findElementsByTag</a><tt class="py-op">(</tt><tt class="py-param">tag</tt><tt class="py-op">,</tt> <tt class="py-param">eList</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="findElementsByTag-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="findElementsByTag-expanded"><a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-op">[</tt><tt class="py-name">el</tt> <tt class="py-keyword">for</tt> <tt class="py-name">el</tt> <tt class="py-keyword">in</tt> <tt class="py-name">eList</tt> <tt class="py-keyword">if</tt> <tt class="py-name">el</tt><tt class="py-op">.</tt><tt class="py-name">tag</tt> <tt class="py-op">==</tt> <tt class="py-name">tag</tt><tt class="py-op">]</tt> </tt>
</div><a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line"> </tt>
<a name="fileToDict"></a><div id="fileToDict-def"><a name="L85"></a><tt class="py-lineno"> 85</tt> <a class="py-toggle" href="#" id="fileToDict-toggle" onclick="return toggle('fileToDict');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="SmootLight.util.Config-module.html#fileToDict">fileToDict</a><tt class="py-op">(</tt><tt class="py-param">fileName</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="fileToDict-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="fileToDict-expanded"><a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line">    <tt class="py-name">fileText</tt> <tt class="py-op">=</tt> <tt class="py-string">''</tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line">    <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line">        <tt class="py-keyword">with</tt> <tt class="py-name">open</tt><tt class="py-op">(</tt><tt class="py-name">fileName</tt><tt class="py-op">)</tt> <tt class="py-keyword">as</tt> <tt class="py-name">f</tt><tt class="py-op">:</tt> </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">line</tt> <tt class="py-keyword">in</tt> <tt class="py-name">f</tt><tt class="py-op">:</tt> </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line">                <tt class="py-name">fileText</tt> <tt class="py-op">+=</tt> <tt class="py-name">line</tt><tt class="py-op">.</tt><tt class="py-name">rstrip</tt><tt class="py-op">(</tt><tt class="py-string">'\n'</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">lstrip</tt><tt class="py-op">(</tt><tt class="py-string">'\t'</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-string">' '</tt>  </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line">    <tt class="py-keyword">except</tt> <tt class="py-name">IOError</tt><tt class="py-op">:</tt> </tt>
<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line">        <tt id="link-36" class="py-name"><a title="SmootLight.behaviors.AllPixels.main_log
SmootLight.behaviors.AllPixelsLeft.main_log
SmootLight.behaviors.Circle.main_log
SmootLight.behaviors.ColorChangerBehavior.main_log
SmootLight.behaviors.ColorShift.main_log
SmootLight.behaviors.DecayBehavior.main_log
SmootLight.behaviors.EchoBehavior.main_log
SmootLight.behaviors.Expand.main_log
SmootLight.behaviors.Flasher.main_log
SmootLight.behaviors.MITDoors.main_log
SmootLight.behaviors.MobileShakeBehavior.main_log
SmootLight.behaviors.ModifyParam.main_log
SmootLight.behaviors.ModulateColor.main_log
SmootLight.behaviors.MoveBehavior.main_log
SmootLight.behaviors.Oval.main_log
SmootLight.behaviors.RandomSetBrightColorBehavior.main_log
SmootLight.behaviors.RandomWalk.main_log
SmootLight.behaviors.RecursiveDecay.main_log
SmootLight.behaviors.ResponseMover.main_log
SmootLight.behaviors.RestrictLocation.main_log
SmootLight.behaviors.RiseFall.main_log
SmootLight.behaviors.RunningBehavior.main_log
SmootLight.behaviors.Sink.main_log
SmootLight.behaviors.SmootWind.main_log
SmootLight.behaviors.Square.main_log
SmootLight.behaviors.SwitchBehavior.main_log
SmootLight.behaviors.SynchTest.main_log
SmootLight.behaviors.TimedDie.main_log
SmootLight.behaviors.Timeout.main_log
SmootLight.behaviors.VerticalBar.main_log
SmootLight.behaviors.XYMove.main_log
SmootLight.inputs.ContinuousCenterInput.main_log
SmootLight.inputs.ContinuousLocationInput.main_log
SmootLight.inputs.HTMLInput.main_log
SmootLight.inputs.PygameInput.main_log
SmootLight.inputs.RandomLocs.main_log
SmootLight.inputs.UDPInput.main_log
SmootLight.logger.Logger.main_log
SmootLight.pixelcore.PixelStrip.main_log
SmootLight.pixelmappers.C5SignMapper.main_log
SmootLight.pixelmappers.GaussianMapper.main_log
SmootLight.pixelmappers.SimpleMapper.main_log
SmootLight.pixelmappers.WindGaussianMapper.main_log
SmootLight.tests.TestBQS'.main_log" class="py-name" href="#" onclick="return doclink('link-36', 'main_log', 'link-7');">main_log</a></tt><tt class="py-op">.</tt><tt class="py-name">info</tt><tt class="py-op">(</tt><tt class="py-string">'Failure reading '</tt> <tt class="py-op">+</tt> <tt class="py-name">fileName</tt><tt class="py-op">)</tt> </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">fileText</tt> <tt class="py-op">==</tt> <tt class="py-string">''</tt><tt class="py-op">:</tt> </tt>
<a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line">    <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line">        <tt class="py-name">resultDict</tt> <tt class="py-op">=</tt> <tt class="py-name">eval</tt><tt class="py-op">(</tt><tt class="py-name">fileText</tt><tt class="py-op">)</tt> </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line">        <tt id="link-37" class="py-name"><a title="SmootLight.behaviors.AllPixels.main_log
SmootLight.behaviors.AllPixelsLeft.main_log
SmootLight.behaviors.Circle.main_log
SmootLight.behaviors.ColorChangerBehavior.main_log
SmootLight.behaviors.ColorShift.main_log
SmootLight.behaviors.DecayBehavior.main_log
SmootLight.behaviors.EchoBehavior.main_log
SmootLight.behaviors.Expand.main_log
SmootLight.behaviors.Flasher.main_log
SmootLight.behaviors.MITDoors.main_log
SmootLight.behaviors.MobileShakeBehavior.main_log
SmootLight.behaviors.ModifyParam.main_log
SmootLight.behaviors.ModulateColor.main_log
SmootLight.behaviors.MoveBehavior.main_log
SmootLight.behaviors.Oval.main_log
SmootLight.behaviors.RandomSetBrightColorBehavior.main_log
SmootLight.behaviors.RandomWalk.main_log
SmootLight.behaviors.RecursiveDecay.main_log
SmootLight.behaviors.ResponseMover.main_log
SmootLight.behaviors.RestrictLocation.main_log
SmootLight.behaviors.RiseFall.main_log
SmootLight.behaviors.RunningBehavior.main_log
SmootLight.behaviors.Sink.main_log
SmootLight.behaviors.SmootWind.main_log
SmootLight.behaviors.Square.main_log
SmootLight.behaviors.SwitchBehavior.main_log
SmootLight.behaviors.SynchTest.main_log
SmootLight.behaviors.TimedDie.main_log
SmootLight.behaviors.Timeout.main_log
SmootLight.behaviors.VerticalBar.main_log
SmootLight.behaviors.XYMove.main_log
SmootLight.inputs.ContinuousCenterInput.main_log
SmootLight.inputs.ContinuousLocationInput.main_log
SmootLight.inputs.HTMLInput.main_log
SmootLight.inputs.PygameInput.main_log
SmootLight.inputs.RandomLocs.main_log
SmootLight.inputs.UDPInput.main_log
SmootLight.logger.Logger.main_log
SmootLight.pixelcore.PixelStrip.main_log
SmootLight.pixelmappers.C5SignMapper.main_log
SmootLight.pixelmappers.GaussianMapper.main_log
SmootLight.pixelmappers.SimpleMapper.main_log
SmootLight.pixelmappers.WindGaussianMapper.main_log
SmootLight.tests.TestBQS'.main_log" class="py-name" href="#" onclick="return doclink('link-37', 'main_log', 'link-7');">main_log</a></tt><tt class="py-op">.</tt><tt class="py-name">info</tt><tt class="py-op">(</tt><tt class="py-name">fileName</tt> <tt class="py-op">+</tt> <tt class="py-string">' read and parsed'</tt><tt class="py-op">)</tt> </tt>
<a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">resultDict</tt> </tt>
<a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line">    <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line">        <tt id="link-38" class="py-name"><a title="SmootLight.behaviors.AllPixels.main_log
SmootLight.behaviors.AllPixelsLeft.main_log
SmootLight.behaviors.Circle.main_log
SmootLight.behaviors.ColorChangerBehavior.main_log
SmootLight.behaviors.ColorShift.main_log
SmootLight.behaviors.DecayBehavior.main_log
SmootLight.behaviors.EchoBehavior.main_log
SmootLight.behaviors.Expand.main_log
SmootLight.behaviors.Flasher.main_log
SmootLight.behaviors.MITDoors.main_log
SmootLight.behaviors.MobileShakeBehavior.main_log
SmootLight.behaviors.ModifyParam.main_log
SmootLight.behaviors.ModulateColor.main_log
SmootLight.behaviors.MoveBehavior.main_log
SmootLight.behaviors.Oval.main_log
SmootLight.behaviors.RandomSetBrightColorBehavior.main_log
SmootLight.behaviors.RandomWalk.main_log
SmootLight.behaviors.RecursiveDecay.main_log
SmootLight.behaviors.ResponseMover.main_log
SmootLight.behaviors.RestrictLocation.main_log
SmootLight.behaviors.RiseFall.main_log
SmootLight.behaviors.RunningBehavior.main_log
SmootLight.behaviors.Sink.main_log
SmootLight.behaviors.SmootWind.main_log
SmootLight.behaviors.Square.main_log
SmootLight.behaviors.SwitchBehavior.main_log
SmootLight.behaviors.SynchTest.main_log
SmootLight.behaviors.TimedDie.main_log
SmootLight.behaviors.Timeout.main_log
SmootLight.behaviors.VerticalBar.main_log
SmootLight.behaviors.XYMove.main_log
SmootLight.inputs.ContinuousCenterInput.main_log
SmootLight.inputs.ContinuousLocationInput.main_log
SmootLight.inputs.HTMLInput.main_log
SmootLight.inputs.PygameInput.main_log
SmootLight.inputs.RandomLocs.main_log
SmootLight.inputs.UDPInput.main_log
SmootLight.logger.Logger.main_log
SmootLight.pixelcore.PixelStrip.main_log
SmootLight.pixelmappers.C5SignMapper.main_log
SmootLight.pixelmappers.GaussianMapper.main_log
SmootLight.pixelmappers.SimpleMapper.main_log
SmootLight.pixelmappers.WindGaussianMapper.main_log
SmootLight.tests.TestBQS'.main_log" class="py-name" href="#" onclick="return doclink('link-38', 'main_log', 'link-7');">main_log</a></tt><tt class="py-op">.</tt><tt class="py-name">exception</tt><tt class="py-op">(</tt><tt class="py-name">fileName</tt> <tt class="py-op">+</tt> <tt class="py-string">' is not a well formed python dict.  Parsing failed'</tt><tt class="py-op">)</tt>  </tt>
<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">eval</tt><tt class="py-op">(</tt><tt class="py-name">fileText</tt><tt class="py-op">)</tt> </tt>
</div><a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line"> </tt>
<a name="pullArgsFromItem"></a><div id="pullArgsFromItem-def"><a name="L104"></a><tt class="py-lineno">104</tt> <a class="py-toggle" href="#" id="pullArgsFromItem-toggle" onclick="return toggle('pullArgsFromItem');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="SmootLight.util.Config-module.html#pullArgsFromItem">pullArgsFromItem</a><tt class="py-op">(</tt><tt class="py-param">parentNode</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="pullArgsFromItem-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="pullArgsFromItem-expanded"><a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">    <tt class="py-docstring">"""Parses arguments into python objects if possible, otherwise leaves as strings"""</tt> </tt>
<a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line">    <tt class="py-name">attribArgs</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt class="py-name">arg</tt> <tt class="py-keyword">in</tt> <tt class="py-name">parentNode</tt><tt class="py-op">.</tt><tt class="py-name">attrib</tt><tt class="py-op">:</tt> <tt class="py-comment">#automatically pull attributes into the argdict</tt> </tt>
<a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line">        <tt class="py-name">attribArgs</tt><tt class="py-op">[</tt><tt class="py-name">arg</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt id="link-39" class="py-name" targets="Function SmootLight.util.Config.attemptEval()=SmootLight.util.Config-module.html#attemptEval"><a title="SmootLight.util.Config.attemptEval" class="py-name" href="#" onclick="return doclink('link-39', 'attemptEval', 'link-39');">attemptEval</a></tt><tt class="py-op">(</tt><tt class="py-name">parentNode</tt><tt class="py-op">.</tt><tt class="py-name">attrib</tt><tt class="py-op">[</tt><tt class="py-name">arg</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line">    <tt class="py-name">argNode</tt> <tt class="py-op">=</tt> <tt class="py-name">parentNode</tt><tt class="py-op">.</tt><tt class="py-name">find</tt><tt class="py-op">(</tt><tt class="py-string">'Args'</tt><tt class="py-op">)</tt> </tt>
<a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line">    <tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt id="link-40" class="py-name" targets="Function SmootLight.util.Config.generateArgDict()=SmootLight.util.Config-module.html#generateArgDict"><a title="SmootLight.util.Config.generateArgDict" class="py-name" href="#" onclick="return doclink('link-40', 'generateArgDict', 'link-40');">generateArgDict</a></tt><tt class="py-op">(</tt><tt class="py-name">argNode</tt><tt class="py-op">)</tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt class="py-name">key</tt> <tt class="py-keyword">in</tt> <tt class="py-name">attribArgs</tt><tt class="py-op">:</tt> </tt>
<a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line">        <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-name">key</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">attribArgs</tt><tt class="py-op">[</tt><tt class="py-name">key</tt><tt class="py-op">]</tt> </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">args</tt> </tt>
</div><a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line"> </tt>
<a name="attemptEval"></a><div id="attemptEval-def"><a name="L115"></a><tt class="py-lineno">115</tt> <a class="py-toggle" href="#" id="attemptEval-toggle" onclick="return toggle('attemptEval');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="SmootLight.util.Config-module.html#attemptEval">attemptEval</a><tt class="py-op">(</tt><tt class="py-param">val</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="attemptEval-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="attemptEval-expanded"><a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line">    <tt class="py-docstring">"""Runs an eval if possible, or converts into a lambda expression if indicated.  Otherwise,</tt> </tt>
<a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line"><tt class="py-docstring">    leaves as a string."""</tt> </tt>
<a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line">    <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-string">'${'</tt> <tt class="py-keyword">in</tt> <tt class="py-name">val</tt> <tt class="py-keyword">and</tt> <tt class="py-string">'}$'</tt> <tt class="py-keyword">in</tt> <tt class="py-name">val</tt><tt class="py-op">:</tt> <tt class="py-comment">#TODO: this could be a little cleaner</tt> </tt>
<a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line">            <tt class="py-name">dictVal</tt> <tt class="py-op">=</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">sub</tt><tt class="py-op">(</tt><tt class="py-string">"'\$\{(.+?)\}\$'"</tt><tt class="py-op">,</tt> <tt class="py-string">"b['\\1']"</tt><tt class="py-op">,</tt> <tt class="py-name">val</tt><tt class="py-op">)</tt> <tt class="py-comment">#replace expressions '${blah}$' with b['blah']</tt> </tt>
<a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line">            <tt class="py-name">dictVal</tt> <tt class="py-op">=</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">sub</tt><tt class="py-op">(</tt><tt class="py-string">"\$\{(.+?)\}\$"</tt><tt class="py-op">,</tt> <tt class="py-string">"a['\\1']"</tt><tt class="py-op">,</tt> <tt class="py-name">dictVal</tt><tt class="py-op">)</tt> <tt class="py-comment">#replace all expressions like {blah} with a['blah']</tt> </tt>
<a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-string">"'${"</tt> <tt class="py-keyword">and</tt> <tt class="py-string">"}$'"</tt> <tt class="py-keyword">in</tt> <tt class="py-name">val</tt><tt class="py-op">:</tt> <tt class="py-comment">#nested lambda madness</tt> </tt>
<a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line">                <tt class="py-name">lambdaVal</tt> <tt class="py-op">=</tt> <tt class="py-name">eval</tt><tt class="py-op">(</tt><tt class="py-string">'lambda a: lambda b: '</tt> <tt class="py-op">+</tt> <tt class="py-name">dictVal</tt><tt class="py-op">)</tt> </tt>
<a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line">                <tt class="py-name">lambdaVal</tt> <tt class="py-op">=</tt> <tt class="py-name">eval</tt><tt class="py-op">(</tt><tt class="py-string">'lambda a:'</tt><tt class="py-op">+</tt><tt class="py-name">dictVal</tt><tt class="py-op">)</tt> <tt class="py-comment">#TODO: nested lambdas</tt> </tt>
<a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">lambdaVal</tt>  <tt class="py-comment">#convert referential objects to lambda expressions which can be</tt> </tt>
<a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line">            <tt class="py-comment">#resolved dynamically.</tt> </tt>
<a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line">            <tt class="py-name">val</tt> <tt class="py-op">=</tt> <tt class="py-name">eval</tt><tt class="py-op">(</tt><tt class="py-name">val</tt><tt class="py-op">)</tt> </tt>
<a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line">    <tt class="py-keyword">except</tt> <tt class="py-op">(</tt><tt class="py-name">NameError</tt><tt class="py-op">,</tt> <tt class="py-name">SyntaxError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line">        <tt class="py-name">val</tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">val</tt><tt class="py-op">)</tt> </tt>
<a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">val</tt> </tt>
</div><a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line"> </tt>
<a name="generateArgDict"></a><div id="generateArgDict-def"><a name="L134"></a><tt class="py-lineno">134</tt> <a class="py-toggle" href="#" id="generateArgDict-toggle" onclick="return toggle('generateArgDict');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="SmootLight.util.Config-module.html#generateArgDict">generateArgDict</a><tt class="py-op">(</tt><tt class="py-param">parentNode</tt><tt class="py-op">,</tt> <tt class="py-param">recurse</tt><tt class="py-op">=</tt><tt class="py-name">False</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="generateArgDict-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="generateArgDict-expanded"><a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line">    <tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt class="py-name">arg</tt> <tt class="py-keyword">in</tt> <tt class="py-name">parentNode</tt><tt class="py-op">.</tt><tt class="py-name">getchildren</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line">        <tt class="py-name">key</tt> <tt class="py-op">=</tt> <tt class="py-name">arg</tt><tt class="py-op">.</tt><tt class="py-name">tag</tt> </tt>
<a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">arg</tt><tt class="py-op">.</tt><tt class="py-name">getchildren</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">!=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L139"></a><tt class="py-lineno">139</tt>  <tt class="py-line">            <tt class="py-name">value</tt> <tt class="py-op">=</tt> <tt id="link-41" class="py-name"><a title="SmootLight.util.Config.generateArgDict" class="py-name" href="#" onclick="return doclink('link-41', 'generateArgDict', 'link-40');">generateArgDict</a></tt><tt class="py-op">(</tt><tt class="py-name">arg</tt><tt class="py-op">,</tt> <tt class="py-name">True</tt><tt class="py-op">)</tt> </tt>
<a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L141"></a><tt class="py-lineno">141</tt>  <tt class="py-line">            <tt class="py-comment">#convert into python if possible, otherwise don't</tt> </tt>
<a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line">            <tt class="py-name">value</tt> <tt class="py-op">=</tt> <tt id="link-42" class="py-name"><a title="SmootLight.util.Config.attemptEval" class="py-name" href="#" onclick="return doclink('link-42', 'attemptEval', 'link-39');">attemptEval</a></tt><tt class="py-op">(</tt><tt class="py-name">arg</tt><tt class="py-op">.</tt><tt class="py-name">text</tt><tt class="py-op">)</tt> </tt>
<a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">key</tt> <tt class="py-keyword">in</tt> <tt class="py-name">args</tt><tt class="py-op">:</tt> <tt class="py-comment">#build of lists of like-elements</tt> </tt>
<a name="L144"></a><tt class="py-lineno">144</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-name">key</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-op">!=</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line">                <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-name">key</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-name">key</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> </tt>
<a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line">            <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-name">key</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt> </tt>
<a name="L147"></a><tt class="py-lineno">147</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L148"></a><tt class="py-lineno">148</tt>  <tt class="py-line">            <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-name">key</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">value</tt> </tt>
<a name="L149"></a><tt class="py-lineno">149</tt>  <tt class="py-line">    <tt class="py-comment">#if we should be a list but we aren't:</tt> </tt>
<a name="L150"></a><tt class="py-lineno">150</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">.</tt><tt class="py-name">keys</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt> <tt class="py-keyword">and</tt> <tt class="py-name">recurse</tt><tt class="py-op">:</tt> </tt>
<a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-name">args</tt><tt class="py-op">.</tt><tt class="py-name">keys</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> </tt>
<a name="L152"></a><tt class="py-lineno">152</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">args</tt> </tt>
</div><a name="resolveDocumentInheritances"></a><div id="resolveDocumentInheritances-def"><a name="L153"></a><tt class="py-lineno">153</tt> <a class="py-toggle" href="#" id="resolveDocumentInheritances-toggle" onclick="return toggle('resolveDocumentInheritances');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="SmootLight.util.Config-module.html#resolveDocumentInheritances">resolveDocumentInheritances</a><tt class="py-op">(</tt><tt class="py-param">el</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="resolveDocumentInheritances-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="resolveDocumentInheritances-expanded"><a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line">    <tt class="py-docstring">"""In place resolution of document inheritances.  Doesn't return anything."""</tt> </tt>
<a name="L155"></a><tt class="py-lineno">155</tt>  <tt class="py-line">    <tt class="py-name">abstractMembers</tt> <tt class="py-op">=</tt> <tt id="link-43" class="py-name"><a title="SmootLight.util.Search" class="py-name" href="#" onclick="return doclink('link-43', 'Search', 'link-4');">Search</a></tt><tt class="py-op">.</tt><tt id="link-44" class="py-name" targets="Function SmootLight.util.Search.parental_tree_search()=SmootLight.util.Search-module.html#parental_tree_search"><a title="SmootLight.util.Search.parental_tree_search" class="py-name" href="#" onclick="return doclink('link-44', 'parental_tree_search', 'link-44');">parental_tree_search</a></tt><tt class="py-op">(</tt><tt class="py-name">el</tt><tt class="py-op">,</tt> <tt class="py-string">'.getchildren()'</tt><tt class="py-op">,</tt> <tt class="py-string">'.tag==\'InheritsFrom\''</tt><tt class="py-op">)</tt> </tt>
<a name="L156"></a><tt class="py-lineno">156</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt class="py-name">subel</tt> <tt class="py-keyword">in</tt> <tt class="py-name">abstractMembers</tt><tt class="py-op">:</tt> </tt>
<a name="L157"></a><tt class="py-lineno">157</tt>  <tt class="py-line">        <tt class="py-name">subel</tt> <tt class="py-op">=</tt> <tt id="link-45" class="py-name" targets="Function SmootLight.util.Config.resolveInheritance()=SmootLight.util.Config-module.html#resolveInheritance"><a title="SmootLight.util.Config.resolveInheritance" class="py-name" href="#" onclick="return doclink('link-45', 'resolveInheritance', 'link-45');">resolveInheritance</a></tt><tt class="py-op">(</tt><tt class="py-name">subel</tt><tt class="py-op">)</tt> </tt>
</div><a name="resolveInheritance"></a><div id="resolveInheritance-def"><a name="L158"></a><tt class="py-lineno">158</tt> <a class="py-toggle" href="#" id="resolveInheritance-toggle" onclick="return toggle('resolveInheritance');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="SmootLight.util.Config-module.html#resolveInheritance">resolveInheritance</a><tt class="py-op">(</tt><tt class="py-param">el</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="resolveInheritance-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="resolveInheritance-expanded"><a name="L159"></a><tt class="py-lineno">159</tt>  <tt class="py-line">    <tt class="py-docstring">"""In place resolution of inheritence.  Doesn't return anything."""</tt> </tt>
<a name="L160"></a><tt class="py-lineno">160</tt>  <tt class="py-line">    <tt class="py-name">parentClass</tt> <tt class="py-op">=</tt> <tt class="py-name">el</tt><tt class="py-op">.</tt><tt class="py-name">find</tt><tt class="py-op">(</tt><tt class="py-string">'InheritsFrom'</tt><tt class="py-op">)</tt> </tt>
<a name="L161"></a><tt class="py-lineno">161</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">parentClass</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L162"></a><tt class="py-lineno">162</tt>  <tt class="py-line">        <tt class="py-name">parentTree</tt> <tt class="py-op">=</tt> <tt id="link-46" class="py-name" targets="Function SmootLight.util.Config.loadConfigFile()=SmootLight.util.Config-module.html#loadConfigFile"><a title="SmootLight.util.Config.loadConfigFile" class="py-name" href="#" onclick="return doclink('link-46', 'loadConfigFile', 'link-46');">loadConfigFile</a></tt><tt class="py-op">(</tt><tt class="py-name">parentClass</tt><tt class="py-op">.</tt><tt class="py-name">text</tt><tt class="py-op">)</tt> </tt>
<a name="L163"></a><tt class="py-lineno">163</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">parentTree</tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L164"></a><tt class="py-lineno">164</tt>  <tt class="py-line">            <tt id="link-47" class="py-name"><a title="SmootLight.behaviors.AllPixels.main_log
SmootLight.behaviors.AllPixelsLeft.main_log
SmootLight.behaviors.Circle.main_log
SmootLight.behaviors.ColorChangerBehavior.main_log
SmootLight.behaviors.ColorShift.main_log
SmootLight.behaviors.DecayBehavior.main_log
SmootLight.behaviors.EchoBehavior.main_log
SmootLight.behaviors.Expand.main_log
SmootLight.behaviors.Flasher.main_log
SmootLight.behaviors.MITDoors.main_log
SmootLight.behaviors.MobileShakeBehavior.main_log
SmootLight.behaviors.ModifyParam.main_log
SmootLight.behaviors.ModulateColor.main_log
SmootLight.behaviors.MoveBehavior.main_log
SmootLight.behaviors.Oval.main_log
SmootLight.behaviors.RandomSetBrightColorBehavior.main_log
SmootLight.behaviors.RandomWalk.main_log
SmootLight.behaviors.RecursiveDecay.main_log
SmootLight.behaviors.ResponseMover.main_log
SmootLight.behaviors.RestrictLocation.main_log
SmootLight.behaviors.RiseFall.main_log
SmootLight.behaviors.RunningBehavior.main_log
SmootLight.behaviors.Sink.main_log
SmootLight.behaviors.SmootWind.main_log
SmootLight.behaviors.Square.main_log
SmootLight.behaviors.SwitchBehavior.main_log
SmootLight.behaviors.SynchTest.main_log
SmootLight.behaviors.TimedDie.main_log
SmootLight.behaviors.Timeout.main_log
SmootLight.behaviors.VerticalBar.main_log
SmootLight.behaviors.XYMove.main_log
SmootLight.inputs.ContinuousCenterInput.main_log
SmootLight.inputs.ContinuousLocationInput.main_log
SmootLight.inputs.HTMLInput.main_log
SmootLight.inputs.PygameInput.main_log
SmootLight.inputs.RandomLocs.main_log
SmootLight.inputs.UDPInput.main_log
SmootLight.logger.Logger.main_log
SmootLight.pixelcore.PixelStrip.main_log
SmootLight.pixelmappers.C5SignMapper.main_log
SmootLight.pixelmappers.GaussianMapper.main_log
SmootLight.pixelmappers.SimpleMapper.main_log
SmootLight.pixelmappers.WindGaussianMapper.main_log
SmootLight.tests.TestBQS'.main_log" class="py-name" href="#" onclick="return doclink('link-47', 'main_log', 'link-7');">main_log</a></tt><tt class="py-op">.</tt><tt class="py-name">warn</tt><tt class="py-op">(</tt><tt class="py-string">'Inheritance Failed.  '</tt> <tt class="py-op">+</tt> <tt class="py-name">parentClass</tt><tt class="py-op">.</tt><tt class="py-name">text</tt> <tt class="py-op">+</tt> <tt class="py-string">'does not exist'</tt><tt class="py-op">)</tt> </tt>
<a name="L165"></a><tt class="py-lineno">165</tt>  <tt class="py-line">            <tt id="link-48" class="py-name"><a title="SmootLight.behaviors.AllPixels.main_log
SmootLight.behaviors.AllPixelsLeft.main_log
SmootLight.behaviors.Circle.main_log
SmootLight.behaviors.ColorChangerBehavior.main_log
SmootLight.behaviors.ColorShift.main_log
SmootLight.behaviors.DecayBehavior.main_log
SmootLight.behaviors.EchoBehavior.main_log
SmootLight.behaviors.Expand.main_log
SmootLight.behaviors.Flasher.main_log
SmootLight.behaviors.MITDoors.main_log
SmootLight.behaviors.MobileShakeBehavior.main_log
SmootLight.behaviors.ModifyParam.main_log
SmootLight.behaviors.ModulateColor.main_log
SmootLight.behaviors.MoveBehavior.main_log
SmootLight.behaviors.Oval.main_log
SmootLight.behaviors.RandomSetBrightColorBehavior.main_log
SmootLight.behaviors.RandomWalk.main_log
SmootLight.behaviors.RecursiveDecay.main_log
SmootLight.behaviors.ResponseMover.main_log
SmootLight.behaviors.RestrictLocation.main_log
SmootLight.behaviors.RiseFall.main_log
SmootLight.behaviors.RunningBehavior.main_log
SmootLight.behaviors.Sink.main_log
SmootLight.behaviors.SmootWind.main_log
SmootLight.behaviors.Square.main_log
SmootLight.behaviors.SwitchBehavior.main_log
SmootLight.behaviors.SynchTest.main_log
SmootLight.behaviors.TimedDie.main_log
SmootLight.behaviors.Timeout.main_log
SmootLight.behaviors.VerticalBar.main_log
SmootLight.behaviors.XYMove.main_log
SmootLight.inputs.ContinuousCenterInput.main_log
SmootLight.inputs.ContinuousLocationInput.main_log
SmootLight.inputs.HTMLInput.main_log
SmootLight.inputs.PygameInput.main_log
SmootLight.inputs.RandomLocs.main_log
SmootLight.inputs.UDPInput.main_log
SmootLight.logger.Logger.main_log
SmootLight.pixelcore.PixelStrip.main_log
SmootLight.pixelmappers.C5SignMapper.main_log
SmootLight.pixelmappers.GaussianMapper.main_log
SmootLight.pixelmappers.SimpleMapper.main_log
SmootLight.pixelmappers.WindGaussianMapper.main_log
SmootLight.tests.TestBQS'.main_log" class="py-name" href="#" onclick="return doclink('link-48', 'main_log', 'link-7');">main_log</a></tt><tt class="py-op">.</tt><tt class="py-name">error</tt><tt class="py-op">(</tt><tt class="py-string">'Inheritance Failed.  '</tt> <tt class="py-op">+</tt> <tt class="py-name">parentClass</tt><tt class="py-op">.</tt><tt class="py-name">text</tt> <tt class="py-op">+</tt> <tt class="py-string">'does not exist'</tt><tt class="py-op">)</tt> </tt>
<a name="L166"></a><tt class="py-lineno">166</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">el</tt> </tt>
<a name="L167"></a><tt class="py-lineno">167</tt>  <tt class="py-line">        <tt class="py-name">el</tt> <tt class="py-op">=</tt> <tt id="link-49" class="py-name"><a title="SmootLight.util.Config.compositeXMLTrees" class="py-name" href="#" onclick="return doclink('link-49', 'compositeXMLTrees', 'link-35');">compositeXMLTrees</a></tt><tt class="py-op">(</tt><tt class="py-name">parentTree</tt><tt class="py-op">,</tt> <tt class="py-name">el</tt><tt class="py-op">)</tt>  </tt>
<a name="L168"></a><tt class="py-lineno">168</tt>  <tt class="py-line">        <tt class="py-name">el</tt><tt class="py-op">.</tt><tt class="py-name">remove</tt><tt class="py-op">(</tt><tt class="py-name">parentClass</tt><tt class="py-op">)</tt> <tt class="py-comment">#get rid of the inheritance flag</tt> </tt>
</div><a name="L169"></a><tt class="py-lineno">169</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="SmootLight-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Fri Feb 18 16:55:26 2011
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>