tr

  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
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
C:\Program Files (x86)\Uris>start.bat
C:\Program Files (x86)\Uris>.\Scripts\python.exe .\Scripts\pserve-script.py .\ur
is\paste.ini
C:\Program Files (x86)\Uris\lib\site-packages\scss\__init__.py:86: RuntimeWarnin
g: Scanning acceleration disabled (_speedups not found)!
RuntimeWarning
Starting server in PID 560.
serving on http://0.0.0.0:6543
2014-11-06 10:34:33,671 DEBUG: rest resource: get collection <bound method Repai
rObject.collection_get of <uris.views.repair.repair.RepairObject object at 0x051
44390>>
2014-11-06 10:34:45,812 DEBUG: rest resource: get collection <bound method Repai
rContractsReport.collection_get of <uris.views.repair.reports.RepairContractsRep
ort object at 0x051BE870>>
Traceback (most recent call last):
File "C:\Program Files (x86)\Uris\src\wapy\wapy\app.py", line 149, in wsgi_han
dler
return self.router(environ, start_response)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\router.py", line 2
42, in __call__
response = self.invoke_subrequest(request, use_tweens=True)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\router.py", line 2
17, in invoke_subrequest
response = handle_request(request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\tweens.py", line 2
1, in excview_tween
response = handler(request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid_tm\__init__.py", l
ine 82, in tm_tween
reraise(*exc_info)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid_tm\__init__.py", l
ine 63, in tm_tween
response = handler(request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\router.py", line 1
63, in handle_request
response = view_callable(context, request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\config\views.py",
line 245, in _secured_view
return view(context, request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\config\views.py",
line 355, in rendered_view
result = view(context, request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\config\views.py",
line 475, in _class_requestonly_view
response = inst()
File "C:\Program Files (x86)\Uris\src\wapy\wapy\rest.py", line 43, in __call__
result = self.post_handler(result)
File "C:\Program Files (x86)\Uris\uris\uris\views\rest.py", line 91, in post_h
andler
count = store.count(self.request.filters)
File "C:\Program Files (x86)\Uris\src\wapy\wapy\entity\sqla.py", line 101, in
count
return query.count()
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\query.py",
line 2601, in count
return self.from_self(col).scalar()
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\query.py",
line 2400, in scalar
ret = self.one()
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\query.py",
line 2369, in one
ret = list(self)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\query.py",
line 2412, in __iter__
return self._execute_and_instances(context)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\query.py",
line 2427, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 729, in execute
return meth(self, multiparams, params)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\sql\elements.py
", line 321, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 826, in _execute_clauseelement
compiled_sql, distilled_params
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 958, in _execute_context
context)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 1160, in _handle_dbapi_exception
exc_info
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\util\compat.py"
, line 199, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 951, in _execute_context
context)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\default.
py", line 436, in do_execute
cursor.execute(statement, parameters)
File "pymssql.pyx", line 432, in pymssql.Cursor.execute (pymssql.c:6293)
ProgrammingError: (ProgrammingError) (207, "Invalid column name 'estimated_housi
ng'.DB-Lib error message 207, severity 16:\nGeneral SQL Server error: Check mess
ages from the SQL Server\nDB-Lib error message 207, severity 16:\nGeneral SQL Se
rver error: Check messages from the SQL Server\nDB-Lib error message 207, severi
ty 16:\nGeneral SQL Server error: Check messages from the SQL Server\nDB-Lib err
or message 207, severity 16:\nGeneral SQL Server error: Check messages from the
SQL Server\n") 'SELECT count(*) AS count_1 \nFROM (SELECT citizens.last_name AS
citizens_last_name, citizens.first_name AS citizens_first_name, citizens.patrony
mic_name AS citizens_patronymic_name, citizens.birthday AS citizens_birthday, ci
tizens.first_contract_date AS citizens_first_contract_date, citizens.graduation_
date AS citizens_graduation_date, citizens.long_service AS citizens_long_service
, citizens.personal_number AS citizens_personal_number, citizens.snils AS citize
ns_snils, citizens.birthplace AS citizens_birthplace, citizens.gender AS citizen
s_gender, citizens.military_unit_id AS citizens_military_unit_id, citizens.milit
ary_rank_id AS citizens_military_rank_id, citizens.citizen_id AS citizens_citize
n_id, citizens.extra_living_space AS citizens_extra_living_space, citizens.numbe
r_of_dismissal_decree AS citizens_number_of_dismissal_decree, citizens.obit AS c
itizens_obit, citizens.cause_of_death AS citizens_cause_of_death, citizens.size_
of_kin AS citizens_size_of_kin, citizens.date_of_housing_registration AS citizen
s_date_of_housing_registration, citizens.date_of_end_housing_registration AS cit
izens_date_of_end_housing_registration, citizens.characteristic_of_housing AS ci
tizens_characteristic_of_housing, citizens.floor_space AS citizens_floor_space,
citizens.living_space AS citizens_living_space, citizens.room_count AS citizens_
room_count, citizens.address AS citizens_address, citizens.total_area AS citizen
s_total_area, citizens.living_area AS citizens_living_area, citizens.housing_mar
k AS citizens_housing_mark, citizens.preferred_city AS citizens_preferred_city,
citizens.status AS citizens_status, citizens.benefit AS citizens_benefit, citize
ns.benefit_date AS citizens_benefit_date, citizens.job AS citizens_job, citizens
.source_note AS citizens_source_note, citizens.family_relationships AS citizens_
family_relationships, citizens.preferred_habitation_type AS citizens_preferred_h
abitation_type, citizens.preferred_number_rooms AS citizens_preferred_number_roo
ms, citizens.note AS citizens_note, citizens.estimated_housing AS citizens_estim
ated_housing, citizens.kes_military_unit_id AS citizens_kes_military_unit_id, ci
tizens.kes_name AS citizens_kes_name, citizens.kes_locality_id AS citizens_kes_l
ocality_id, citizens.id AS citizens_id \nFROM citizens) AS anon_1' {}
2014-11-06 10:34:53,467 DEBUG: rest resource: get collection <bound method Contr
actsSpendingReport.collection_get of <uris.views.repair.reports.ContractsSpendin
gReport object at 0x052D7F30>>
Traceback (most recent call last):
File "C:\Program Files (x86)\Uris\src\wapy\wapy\app.py", line 149, in wsgi_han
dler
return self.router(environ, start_response)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\router.py", line 2
42, in __call__
response = self.invoke_subrequest(request, use_tweens=True)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\router.py", line 2
17, in invoke_subrequest
response = handle_request(request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\tweens.py", line 2
1, in excview_tween
response = handler(request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid_tm\__init__.py", l
ine 82, in tm_tween
reraise(*exc_info)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid_tm\__init__.py", l
ine 63, in tm_tween
response = handler(request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\router.py", line 1
63, in handle_request
response = view_callable(context, request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\config\views.py",
line 245, in _secured_view
return view(context, request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\config\views.py",
line 355, in rendered_view
result = view(context, request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\config\views.py",
line 475, in _class_requestonly_view
response = inst()
File "C:\Program Files (x86)\Uris\src\wapy\wapy\rest.py", line 43, in __call__
result = self.post_handler(result)
File "C:\Program Files (x86)\Uris\uris\uris\views\rest.py", line 91, in post_h
andler
count = store.count(self.request.filters)
File "C:\Program Files (x86)\Uris\src\wapy\wapy\entity\sqla.py", line 101, in
count
return query.count()
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\query.py",
line 2601, in count
return self.from_self(col).scalar()
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\query.py",
line 2400, in scalar
ret = self.one()
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\query.py",
line 2369, in one
ret = list(self)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\query.py",
line 2412, in __iter__
return self._execute_and_instances(context)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\query.py",
line 2427, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 729, in execute
return meth(self, multiparams, params)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\sql\elements.py
", line 321, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 826, in _execute_clauseelement
compiled_sql, distilled_params
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 958, in _execute_context
context)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 1160, in _handle_dbapi_exception
exc_info
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\util\compat.py"
, line 199, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 951, in _execute_context
context)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\default.
py", line 436, in do_execute
cursor.execute(statement, parameters)
File "pymssql.pyx", line 432, in pymssql.Cursor.execute (pymssql.c:6293)
ProgrammingError: (ProgrammingError) (207, "Invalid column name 'estimated_housi
ng'.DB-Lib error message 207, severity 16:\nGeneral SQL Server error: Check mess
ages from the SQL Server\nDB-Lib error message 207, severity 16:\nGeneral SQL Se
rver error: Check messages from the SQL Server\nDB-Lib error message 207, severi
ty 16:\nGeneral SQL Server error: Check messages from the SQL Server\nDB-Lib err
or message 207, severity 16:\nGeneral SQL Server error: Check messages from the
SQL Server\n") 'SELECT count(*) AS count_1 \nFROM (SELECT citizens.last_name AS
citizens_last_name, citizens.first_name AS citizens_first_name, citizens.patrony
mic_name AS citizens_patronymic_name, citizens.birthday AS citizens_birthday, ci
tizens.first_contract_date AS citizens_first_contract_date, citizens.graduation_
date AS citizens_graduation_date, citizens.long_service AS citizens_long_service
, citizens.personal_number AS citizens_personal_number, citizens.snils AS citize
ns_snils, citizens.birthplace AS citizens_birthplace, citizens.gender AS citizen
s_gender, citizens.military_unit_id AS citizens_military_unit_id, citizens.milit
ary_rank_id AS citizens_military_rank_id, citizens.citizen_id AS citizens_citize
n_id, citizens.extra_living_space AS citizens_extra_living_space, citizens.numbe
r_of_dismissal_decree AS citizens_number_of_dismissal_decree, citizens.obit AS c
itizens_obit, citizens.cause_of_death AS citizens_cause_of_death, citizens.size_
of_kin AS citizens_size_of_kin, citizens.date_of_housing_registration AS citizen
s_date_of_housing_registration, citizens.date_of_end_housing_registration AS cit
izens_date_of_end_housing_registration, citizens.characteristic_of_housing AS ci
tizens_characteristic_of_housing, citizens.floor_space AS citizens_floor_space,
citizens.living_space AS citizens_living_space, citizens.room_count AS citizens_
room_count, citizens.address AS citizens_address, citizens.total_area AS citizen
s_total_area, citizens.living_area AS citizens_living_area, citizens.housing_mar
k AS citizens_housing_mark, citizens.preferred_city AS citizens_preferred_city,
citizens.status AS citizens_status, citizens.benefit AS citizens_benefit, citize
ns.benefit_date AS citizens_benefit_date, citizens.job AS citizens_job, citizens
.source_note AS citizens_source_note, citizens.family_relationships AS citizens_
family_relationships, citizens.preferred_habitation_type AS citizens_preferred_h
abitation_type, citizens.preferred_number_rooms AS citizens_preferred_number_roo
ms, citizens.note AS citizens_note, citizens.estimated_housing AS citizens_estim
ated_housing, citizens.kes_military_unit_id AS citizens_kes_military_unit_id, ci
tizens.kes_name AS citizens_kes_name, citizens.kes_locality_id AS citizens_kes_l
ocality_id, citizens.id AS citizens_id \nFROM citizens) AS anon_1' {}
2014-11-06 10:34:57,467 DEBUG: rest resource: get collection <bound method Viola
tionsView.collection_get of <uris.views.repair.reports.ViolationsView object at
0x05319F10>>
Traceback (most recent call last):
File "C:\Program Files (x86)\Uris\src\wapy\wapy\app.py", line 149, in wsgi_han
dler
return self.router(environ, start_response)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\router.py", line 2
42, in __call__
response = self.invoke_subrequest(request, use_tweens=True)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\router.py", line 2
17, in invoke_subrequest
response = handle_request(request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\tweens.py", line 2
1, in excview_tween
response = handler(request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid_tm\__init__.py", l
ine 82, in tm_tween
reraise(*exc_info)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid_tm\__init__.py", l
ine 63, in tm_tween
response = handler(request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\router.py", line 1
63, in handle_request
response = view_callable(context, request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\config\views.py",
line 245, in _secured_view
return view(context, request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\config\views.py",
line 355, in rendered_view
result = view(context, request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\config\views.py",
line 475, in _class_requestonly_view
response = inst()
File "C:\Program Files (x86)\Uris\src\wapy\wapy\rest.py", line 43, in __call__
result = self.post_handler(result)
File "C:\Program Files (x86)\Uris\uris\uris\views\rest.py", line 91, in post_h
andler
count = store.count(self.request.filters)
File "C:\Program Files (x86)\Uris\src\wapy\wapy\entity\sqla.py", line 101, in
count
return query.count()
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\query.py",
line 2601, in count
return self.from_self(col).scalar()
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\query.py",
line 2400, in scalar
ret = self.one()
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\query.py",
line 2369, in one
ret = list(self)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\query.py",
line 2412, in __iter__
return self._execute_and_instances(context)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\query.py",
line 2427, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 729, in execute
return meth(self, multiparams, params)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\sql\elements.py
", line 321, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 826, in _execute_clauseelement
compiled_sql, distilled_params
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 958, in _execute_context
context)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 1160, in _handle_dbapi_exception
exc_info
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\util\compat.py"
, line 199, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 951, in _execute_context
context)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\default.
py", line 436, in do_execute
cursor.execute(statement, parameters)
File "pymssql.pyx", line 432, in pymssql.Cursor.execute (pymssql.c:6293)
ProgrammingError: (ProgrammingError) (207, "Invalid column name 'estimated_housi
ng'.DB-Lib error message 207, severity 16:\nGeneral SQL Server error: Check mess
ages from the SQL Server\nDB-Lib error message 207, severity 16:\nGeneral SQL Se
rver error: Check messages from the SQL Server\nDB-Lib error message 207, severi
ty 16:\nGeneral SQL Server error: Check messages from the SQL Server\nDB-Lib err
or message 207, severity 16:\nGeneral SQL Server error: Check messages from the
SQL Server\n") 'SELECT count(*) AS count_1 \nFROM (SELECT citizens.last_name AS
citizens_last_name, citizens.first_name AS citizens_first_name, citizens.patrony
mic_name AS citizens_patronymic_name, citizens.birthday AS citizens_birthday, ci
tizens.first_contract_date AS citizens_first_contract_date, citizens.graduation_
date AS citizens_graduation_date, citizens.long_service AS citizens_long_service
, citizens.personal_number AS citizens_personal_number, citizens.snils AS citize
ns_snils, citizens.birthplace AS citizens_birthplace, citizens.gender AS citizen
s_gender, citizens.military_unit_id AS citizens_military_unit_id, citizens.milit
ary_rank_id AS citizens_military_rank_id, citizens.citizen_id AS citizens_citize
n_id, citizens.extra_living_space AS citizens_extra_living_space, citizens.numbe
r_of_dismissal_decree AS citizens_number_of_dismissal_decree, citizens.obit AS c
itizens_obit, citizens.cause_of_death AS citizens_cause_of_death, citizens.size_
of_kin AS citizens_size_of_kin, citizens.date_of_housing_registration AS citizen
s_date_of_housing_registration, citizens.date_of_end_housing_registration AS cit
izens_date_of_end_housing_registration, citizens.characteristic_of_housing AS ci
tizens_characteristic_of_housing, citizens.floor_space AS citizens_floor_space,
citizens.living_space AS citizens_living_space, citizens.room_count AS citizens_
room_count, citizens.address AS citizens_address, citizens.total_area AS citizen
s_total_area, citizens.living_area AS citizens_living_area, citizens.housing_mar
k AS citizens_housing_mark, citizens.preferred_city AS citizens_preferred_city,
citizens.status AS citizens_status, citizens.benefit AS citizens_benefit, citize
ns.benefit_date AS citizens_benefit_date, citizens.job AS citizens_job, citizens
.source_note AS citizens_source_note, citizens.family_relationships AS citizens_
family_relationships, citizens.preferred_habitation_type AS citizens_preferred_h
abitation_type, citizens.preferred_number_rooms AS citizens_preferred_number_roo
ms, citizens.note AS citizens_note, citizens.estimated_housing AS citizens_estim
ated_housing, citizens.kes_military_unit_id AS citizens_kes_military_unit_id, ci
tizens.kes_name AS citizens_kes_name, citizens.kes_locality_id AS citizens_kes_l
ocality_id, citizens.id AS citizens_id \nFROM citizens) AS anon_1' {}
2014-11-06 10:35:00,437 DEBUG: rest resource: get collection <bound method Repai
rObject.collection_get of <uris.views.repair.repair.RepairObject object at 0x053
4A930>>
2014-11-06 10:36:19,733 DEBUG: rest resource: get collection <bound method Suppl
yFuelView.collection_get of <uris.views.maintenance.fuel.SupplyFuelView object a
t 0x053DB890>>
2014-11-06 10:36:21,703 DEBUG: rest resource: get collection <bound method Milit
aryUnits.collection_get of <uris.views.common.classifiers.MilitaryUnits object a
t 0x05338590>>
2014-11-06 10:36:21,717 DEBUG: rest resource: get collection <bound method Contr
acts.collection_get of <uris.views.common.contracts.Contracts object at 0x053DB9
70>>
2014-11-06 10:36:40,328 DEBUG: rest resource: post collection <bound method Supp
lyFuelView.collection_post of <uris.views.maintenance.fuel.SupplyFuelView object
at 0x0532C670>>
Traceback (most recent call last):
File "C:\Program Files (x86)\Uris\src\wapy\wapy\app.py", line 149, in wsgi_han
dler
return self.router(environ, start_response)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\router.py", line 2
42, in __call__
response = self.invoke_subrequest(request, use_tweens=True)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\router.py", line 2
17, in invoke_subrequest
response = handle_request(request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\tweens.py", line 2
1, in excview_tween
response = handler(request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid_tm\__init__.py", l
ine 82, in tm_tween
reraise(*exc_info)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid_tm\__init__.py", l
ine 63, in tm_tween
response = handler(request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\router.py", line 1
63, in handle_request
response = view_callable(context, request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\config\views.py",
line 245, in _secured_view
return view(context, request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\config\views.py",
line 355, in rendered_view
result = view(context, request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\config\views.py",
line 475, in _class_requestonly_view
response = inst()
File "C:\Program Files (x86)\Uris\src\wapy\wapy\rest.py", line 42, in __call__
result = handler()
File "C:\Program Files (x86)\Uris\uris\uris\views\maintenance\fuel.py", line 6
7, in collection_post
rid = self.store.insert(self.request.json_body)
File "C:\Program Files (x86)\Uris\src\wapy\wapy\entity\sqla.py", line 203, in
insert
return self._insert_one(clauses)
File "C:\Program Files (x86)\Uris\src\wapy\wapy\entity\sqla.py", line 214, in
_insert_one
self.session.flush()
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\scoping.py"
, line 150, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\session.py"
, line 1919, in flush
self._flush(objects)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\session.py"
, line 2037, in _flush
transaction.rollback(_capture_exception=True)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\util\langhelper
s.py", line 60, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\session.py"
, line 2001, in _flush
flush_context.execute()
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\unitofwork.
py", line 372, in execute
rec.execute(self)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\unitofwork.
py", line 526, in execute
uow
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\persistence
.py", line 65, in save_obj
mapper, table, insert)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\persistence
.py", line 602, in _emit_insert_statements
execute(statement, params)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 729, in execute
return meth(self, multiparams, params)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\sql\elements.py
", line 321, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 826, in _execute_clauseelement
compiled_sql, distilled_params
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 893, in _execute_context
None, None)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 1160, in _handle_dbapi_exception
exc_info
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\util\compat.py"
, line 199, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 889, in _execute_context
context = constructor(dialect, self, conn, *args)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\default.
py", line 585, in _init_compiled
processors[key](compiled_params[key])
StatementError: could not convert string to float: (original cause: ValueError:
could not convert string to float:) u'INSERT INTO firewood_supply (military_uni
t_id, firewood_id, tariff_id, contracts_id, tariff_id2, residue_now, received, q
uantity, required_to_free, required_to_paid, plan_consumption, fact_consumption,
residue_next, note) OUTPUT inserted.id VALUES (%(military_unit_id)s, %(firewood
_id)s, %(tariff_id)s, %(contracts_id)s, %(tariff_id2)s, %(residue_now)s, %(recei
ved)s, %(quantity)s, %(required_to_free)s, %(required_to_paid)s, %(plan_consumpt
ion)s, %(fact_consumption)s, %(residue_next)s, %(note)s)' [{'residue_now': u'456
54', 'required_to_paid': u'45645', 'tariff_id': u'1', 'tariff_id2': u'', 'receiv
ed': u'6456', 'fact_consumption': u'45645', 'residue_next': u'', 'firewood_id':
u'1', 'note': u'6456', 'required_to_free': u'6456456', 'military_unit_id': u'',
'plan_consumption': u'6456', 'quantity': u'456', 'contracts_id': u''}]
2014-11-06 10:36:41,312 DEBUG: rest resource: post collection <bound method Supp
lyFuelView.collection_post of <uris.views.maintenance.fuel.SupplyFuelView object
at 0x0513BB30>>
Traceback (most recent call last):
File "C:\Program Files (x86)\Uris\src\wapy\wapy\app.py", line 149, in wsgi_han
dler
return self.router(environ, start_response)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\router.py", line 2
42, in __call__
response = self.invoke_subrequest(request, use_tweens=True)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\router.py", line 2
17, in invoke_subrequest
response = handle_request(request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\tweens.py", line 2
1, in excview_tween
response = handler(request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid_tm\__init__.py", l
ine 82, in tm_tween
reraise(*exc_info)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid_tm\__init__.py", l
ine 63, in tm_tween
response = handler(request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\router.py", line 1
63, in handle_request
response = view_callable(context, request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\config\views.py",
line 245, in _secured_view
return view(context, request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\config\views.py",
line 355, in rendered_view
result = view(context, request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\config\views.py",
line 475, in _class_requestonly_view
response = inst()
File "C:\Program Files (x86)\Uris\src\wapy\wapy\rest.py", line 42, in __call__
result = handler()
File "C:\Program Files (x86)\Uris\uris\uris\views\maintenance\fuel.py", line 6
7, in collection_post
rid = self.store.insert(self.request.json_body)
File "C:\Program Files (x86)\Uris\src\wapy\wapy\entity\sqla.py", line 203, in
insert
return self._insert_one(clauses)
File "C:\Program Files (x86)\Uris\src\wapy\wapy\entity\sqla.py", line 214, in
_insert_one
self.session.flush()
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\scoping.py"
, line 150, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\session.py"
, line 1919, in flush
self._flush(objects)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\session.py"
, line 2037, in _flush
transaction.rollback(_capture_exception=True)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\util\langhelper
s.py", line 60, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\session.py"
, line 2001, in _flush
flush_context.execute()
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\unitofwork.
py", line 372, in execute
rec.execute(self)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\unitofwork.
py", line 526, in execute
uow
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\persistence
.py", line 65, in save_obj
mapper, table, insert)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\persistence
.py", line 602, in _emit_insert_statements
execute(statement, params)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 729, in execute
return meth(self, multiparams, params)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\sql\elements.py
", line 321, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 826, in _execute_clauseelement
compiled_sql, distilled_params
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 893, in _execute_context
None, None)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 1160, in _handle_dbapi_exception
exc_info
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\util\compat.py"
, line 199, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 889, in _execute_context
context = constructor(dialect, self, conn, *args)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\default.
py", line 585, in _init_compiled
processors[key](compiled_params[key])
StatementError: could not convert string to float: (original cause: ValueError:
could not convert string to float:) u'INSERT INTO firewood_supply (military_uni
t_id, firewood_id, tariff_id, contracts_id, tariff_id2, residue_now, received, q
uantity, required_to_free, required_to_paid, plan_consumption, fact_consumption,
residue_next, note) OUTPUT inserted.id VALUES (%(military_unit_id)s, %(firewood
_id)s, %(tariff_id)s, %(contracts_id)s, %(tariff_id2)s, %(residue_now)s, %(recei
ved)s, %(quantity)s, %(required_to_free)s, %(required_to_paid)s, %(plan_consumpt
ion)s, %(fact_consumption)s, %(residue_next)s, %(note)s)' [{'residue_now': u'456
54', 'required_to_paid': u'45645', 'tariff_id': u'1', 'tariff_id2': u'', 'receiv
ed': u'6456', 'fact_consumption': u'45645', 'residue_next': u'', 'firewood_id':
u'1', 'note': u'6456', 'required_to_free': u'6456456', 'military_unit_id': u'',
'plan_consumption': u'6456', 'quantity': u'456', 'contracts_id': u''}]
2014-11-06 10:36:41,796 DEBUG: rest resource: post collection <bound method Supp
lyFuelView.collection_post of <uris.views.maintenance.fuel.SupplyFuelView object
at 0x051F8B90>>
Traceback (most recent call last):
File "C:\Program Files (x86)\Uris\src\wapy\wapy\app.py", line 149, in wsgi_han
dler
return self.router(environ, start_response)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\router.py", line 2
42, in __call__
response = self.invoke_subrequest(request, use_tweens=True)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\router.py", line 2
17, in invoke_subrequest
response = handle_request(request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\tweens.py", line 2
1, in excview_tween
response = handler(request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid_tm\__init__.py", l
ine 82, in tm_tween
reraise(*exc_info)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid_tm\__init__.py", l
ine 63, in tm_tween
response = handler(request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\router.py", line 1
63, in handle_request
response = view_callable(context, request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\config\views.py",
line 245, in _secured_view
return view(context, request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\config\views.py",
line 355, in rendered_view
result = view(context, request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\config\views.py",
line 475, in _class_requestonly_view
response = inst()
File "C:\Program Files (x86)\Uris\src\wapy\wapy\rest.py", line 42, in __call__
result = handler()
File "C:\Program Files (x86)\Uris\uris\uris\views\maintenance\fuel.py", line 6
7, in collection_post
rid = self.store.insert(self.request.json_body)
File "C:\Program Files (x86)\Uris\src\wapy\wapy\entity\sqla.py", line 203, in
insert
return self._insert_one(clauses)
File "C:\Program Files (x86)\Uris\src\wapy\wapy\entity\sqla.py", line 214, in
_insert_one
self.session.flush()
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\scoping.py"
, line 150, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\session.py"
, line 1919, in flush
self._flush(objects)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\session.py"
, line 2037, in _flush
transaction.rollback(_capture_exception=True)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\util\langhelper
s.py", line 60, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\session.py"
, line 2001, in _flush
flush_context.execute()
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\unitofwork.
py", line 372, in execute
rec.execute(self)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\unitofwork.
py", line 526, in execute
uow
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\persistence
.py", line 65, in save_obj
mapper, table, insert)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\persistence
.py", line 602, in _emit_insert_statements
execute(statement, params)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 729, in execute
return meth(self, multiparams, params)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\sql\elements.py
", line 321, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 826, in _execute_clauseelement
compiled_sql, distilled_params
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 893, in _execute_context
None, None)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 1160, in _handle_dbapi_exception
exc_info
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\util\compat.py"
, line 199, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 889, in _execute_context
context = constructor(dialect, self, conn, *args)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\default.
py", line 585, in _init_compiled
processors[key](compiled_params[key])
StatementError: could not convert string to float: (original cause: ValueError:
could not convert string to float:) u'INSERT INTO firewood_supply (military_uni
t_id, firewood_id, tariff_id, contracts_id, tariff_id2, residue_now, received, q
uantity, required_to_free, required_to_paid, plan_consumption, fact_consumption,
residue_next, note) OUTPUT inserted.id VALUES (%(military_unit_id)s, %(firewood
_id)s, %(tariff_id)s, %(contracts_id)s, %(tariff_id2)s, %(residue_now)s, %(recei
ved)s, %(quantity)s, %(required_to_free)s, %(required_to_paid)s, %(plan_consumpt
ion)s, %(fact_consumption)s, %(residue_next)s, %(note)s)' [{'residue_now': u'456
54', 'required_to_paid': u'45645', 'tariff_id': u'1', 'tariff_id2': u'', 'receiv
ed': u'6456', 'fact_consumption': u'45645', 'residue_next': u'', 'firewood_id':
u'1', 'note': u'6456', 'required_to_free': u'6456456', 'military_unit_id': u'',
'plan_consumption': u'6456', 'quantity': u'456', 'contracts_id': u''}]
2014-11-06 10:36:42,187 DEBUG: rest resource: post collection <bound method Supp
lyFuelView.collection_post of <uris.views.maintenance.fuel.SupplyFuelView object
at 0x051F2B10>>
Traceback (most recent call last):
File "C:\Program Files (x86)\Uris\src\wapy\wapy\app.py", line 149, in wsgi_han
dler
return self.router(environ, start_response)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\router.py", line 2
42, in __call__
response = self.invoke_subrequest(request, use_tweens=True)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\router.py", line 2
17, in invoke_subrequest
response = handle_request(request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\tweens.py", line 2
1, in excview_tween
response = handler(request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid_tm\__init__.py", l
ine 82, in tm_tween
reraise(*exc_info)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid_tm\__init__.py", l
ine 63, in tm_tween
response = handler(request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\router.py", line 1
63, in handle_request
response = view_callable(context, request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\config\views.py",
line 245, in _secured_view
return view(context, request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\config\views.py",
line 355, in rendered_view
result = view(context, request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\config\views.py",
line 475, in _class_requestonly_view
response = inst()
File "C:\Program Files (x86)\Uris\src\wapy\wapy\rest.py", line 42, in __call__
result = handler()
File "C:\Program Files (x86)\Uris\uris\uris\views\maintenance\fuel.py", line 6
7, in collection_post
rid = self.store.insert(self.request.json_body)
File "C:\Program Files (x86)\Uris\src\wapy\wapy\entity\sqla.py", line 203, in
insert
return self._insert_one(clauses)
File "C:\Program Files (x86)\Uris\src\wapy\wapy\entity\sqla.py", line 214, in
_insert_one
self.session.flush()
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\scoping.py"
, line 150, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\session.py"
, line 1919, in flush
self._flush(objects)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\session.py"
, line 2037, in _flush
transaction.rollback(_capture_exception=True)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\util\langhelper
s.py", line 60, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\session.py"
, line 2001, in _flush
flush_context.execute()
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\unitofwork.
py", line 372, in execute
rec.execute(self)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\unitofwork.
py", line 526, in execute
uow
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\persistence
.py", line 65, in save_obj
mapper, table, insert)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\persistence
.py", line 602, in _emit_insert_statements
execute(statement, params)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 729, in execute
return meth(self, multiparams, params)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\sql\elements.py
", line 321, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 826, in _execute_clauseelement
compiled_sql, distilled_params
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 893, in _execute_context
None, None)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 1160, in _handle_dbapi_exception
exc_info
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\util\compat.py"
, line 199, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 889, in _execute_context
context = constructor(dialect, self, conn, *args)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\default.
py", line 585, in _init_compiled
processors[key](compiled_params[key])
StatementError: could not convert string to float: (original cause: ValueError:
could not convert string to float:) u'INSERT INTO firewood_supply (military_uni
t_id, firewood_id, tariff_id, contracts_id, tariff_id2, residue_now, received, q
uantity, required_to_free, required_to_paid, plan_consumption, fact_consumption,
residue_next, note) OUTPUT inserted.id VALUES (%(military_unit_id)s, %(firewood
_id)s, %(tariff_id)s, %(contracts_id)s, %(tariff_id2)s, %(residue_now)s, %(recei
ved)s, %(quantity)s, %(required_to_free)s, %(required_to_paid)s, %(plan_consumpt
ion)s, %(fact_consumption)s, %(residue_next)s, %(note)s)' [{'residue_now': u'456
54', 'required_to_paid': u'45645', 'tariff_id': u'1', 'tariff_id2': u'', 'receiv
ed': u'6456', 'fact_consumption': u'45645', 'residue_next': u'', 'firewood_id':
u'1', 'note': u'6456', 'required_to_free': u'6456456', 'military_unit_id': u'',
'plan_consumption': u'6456', 'quantity': u'456', 'contracts_id': u''}]
2014-11-06 10:39:23,358 DEBUG: rest resource: get collection <bound method Milit
aryUnits.collection_get of <uris.views.common.classifiers.MilitaryUnits object a
t 0x051C7350>>
2014-11-06 10:39:23,358 DEBUG: rest resource: get collection <bound method Contr
acts.collection_get of <uris.views.common.contracts.Contracts object at 0x051BE9
90>>
2014-11-06 10:39:25,280 DEBUG: rest resource: post collection <bound method Supp
lyFuelView.collection_post of <uris.views.maintenance.fuel.SupplyFuelView object
at 0x051F8110>>
Traceback (most recent call last):
File "C:\Program Files (x86)\Uris\src\wapy\wapy\app.py", line 149, in wsgi_han
dler
return self.router(environ, start_response)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\router.py", line 2
42, in __call__
response = self.invoke_subrequest(request, use_tweens=True)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\router.py", line 2
17, in invoke_subrequest
response = handle_request(request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\tweens.py", line 2
1, in excview_tween
response = handler(request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid_tm\__init__.py", l
ine 82, in tm_tween
reraise(*exc_info)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid_tm\__init__.py", l
ine 63, in tm_tween
response = handler(request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\router.py", line 1
63, in handle_request
response = view_callable(context, request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\config\views.py",
line 245, in _secured_view
return view(context, request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\config\views.py",
line 355, in rendered_view
result = view(context, request)
File "C:\Program Files (x86)\Uris\lib\site-packages\pyramid\config\views.py",
line 475, in _class_requestonly_view
response = inst()
File "C:\Program Files (x86)\Uris\src\wapy\wapy\rest.py", line 42, in __call__
result = handler()
File "C:\Program Files (x86)\Uris\uris\uris\views\maintenance\fuel.py", line 6
7, in collection_post
rid = self.store.insert(self.request.json_body)
File "C:\Program Files (x86)\Uris\src\wapy\wapy\entity\sqla.py", line 203, in
insert
return self._insert_one(clauses)
File "C:\Program Files (x86)\Uris\src\wapy\wapy\entity\sqla.py", line 214, in
_insert_one
self.session.flush()
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\scoping.py"
, line 150, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\session.py"
, line 1919, in flush
self._flush(objects)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\session.py"
, line 2037, in _flush
transaction.rollback(_capture_exception=True)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\util\langhelper
s.py", line 60, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\session.py"
, line 2001, in _flush
flush_context.execute()
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\unitofwork.
py", line 372, in execute
rec.execute(self)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\unitofwork.
py", line 526, in execute
uow
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\persistence
.py", line 65, in save_obj
mapper, table, insert)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\orm\persistence
.py", line 602, in _emit_insert_statements
execute(statement, params)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 729, in execute
return meth(self, multiparams, params)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\sql\elements.py
", line 321, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 826, in _execute_clauseelement
compiled_sql, distilled_params
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 893, in _execute_context
None, None)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 1160, in _handle_dbapi_exception
exc_info
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\util\compat.py"
, line 199, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\base.py"
, line 889, in _execute_context
context = constructor(dialect, self, conn, *args)
File "C:\Program Files (x86)\Uris\lib\site-packages\sqlalchemy\engine\default.
py", line 585, in _init_compiled
processors[key](compiled_params[key])
StatementError: could not convert string to float: (original cause: ValueError:
could not convert string to float:) u'INSERT INTO firewood_supply (military_uni
t_id, firewood_id, tariff_id, contracts_id, tariff_id2, residue_now, received, q
uantity, required_to_free, required_to_paid, plan_consumption, fact_consumption,
residue_next, note) OUTPUT inserted.id VALUES (%(military_unit_id)s, %(firewood
_id)s, %(tariff_id)s, %(contracts_id)s, %(tariff_id2)s, %(residue_now)s, %(recei
ved)s, %(quantity)s, %(required_to_free)s, %(required_to_paid)s, %(plan_consumpt
ion)s, %(fact_consumption)s, %(residue_next)s, %(note)s)' [{'residue_now': u'',
'required_to_paid': u'', 'tariff_id': u'', 'tariff_id2': u'', 'received': u'', '
fact_consumption': u'', 'residue_next': u'', 'firewood_id': u'', 'note': u'', 'r
equired_to_free': u'', 'military_unit_id': u'', 'plan_consumption': u'', 'quanti
ty': u'', 'contracts_id': u''}]
2014-11-06 10:39:27,358 DEBUG: rest resource: get collection <bound method Milit
aryUnits.collection_get of <uris.views.common.classifiers.MilitaryUnits object a
t 0x052048D0>>
2014-11-06 10:39:27,375 DEBUG: rest resource: get collection <bound method Contr
acts.collection_get of <uris.views.common.contracts.Contracts object at 0x051448
B0>>