[00:04:43] py_two is now xa
[00:06:40] Сволота is now away
[00:06:58] py_two is now offline
[00:11:23] deisler is now away
[00:11:24] py_two is now xa
[00:11:52] Сволота is now online
[00:13:13] bliznezz is now away
[00:15:52] py_two is now offline
[00:15:55] py_two is now xa
[00:19:39] py_two: xa4a: http://i3wm.org/
[00:20:15] py_two: xa4a: я не знаю кто ее писал, но у нее продуманность на голову выше xmonad and awesome
[00:20:58] py_two: xa4a: насколько она кастомизируемая хз
[00:21:37] xa4a: продуманность - это как?
[00:22:39] py_two: xa4a: заголовки окон. Отсутствие пустых тегов. Теги появляются как только в них что-то появилось. Целостный продукт. Сразу комплектуется панелькой. Манипулирование окнами супер
[00:23:10] py_two: Конфиг не на скриптовых яп. Текстовый
[00:23:19] slav0nic is now offline
[00:24:10] py_two: xa4a: манипуляция и группировака окон - просто супер
[00:26:45] py_two is now offline
[00:27:12] py_two is now xa
[00:27:45] nott is now online
[00:33:13] py_two is now offline
[00:33:43] py_two is now xa
[00:34:36] py_two: xa4a: конечно она не такая гибкая как авесом или xmonad, зато она видимо цельная и в ней есть всё что нужно. Именно это я и искал. Чтобы было стабильно и с функционалом того, что мне нужно
[00:35:06] py_two: xa4a: а вообще конечно еще посидеть на этом ГЭ надо. Рано еще что-то определенное говорить. Как посижу месяц - скажу ок иль не ок:)
[00:46:09] nott is now away
[00:51:00] Typhon is now offline
[00:53:20] Хороший человек is now away
[00:53:20] Хороший человек is now away
[00:55:10] Хороший человек is now away
[00:55:11] Хороший человек is now online
[00:56:05] nott is now xa
[00:56:49] Хороший человек is now offline
[00:57:15] py_two is now offline
[00:57:47] py_two is now xa
[01:01:37] Сволота is now away
[01:02:05] Сволота is now online
[01:03:39] py_two is now offline
[01:04:11] py_two is now xa
[01:05:49] py_two is now offline
[01:06:20] py_two is now xa
[01:08:56] py_two is now offline
[01:09:28] py_two is now xa
[01:15:40] py_two is now offline
[01:16:11] py_two is now xa
[01:18:17] py_two is now offline
[01:18:48] py_two is now xa
[01:21:32] Сволота is now away
[01:23:26] Сволота is now online
[01:26:53] gigimon is now offline
[01:28:55] py_two is now offline
[01:29:28] py_two is now xa
[01:29:47] obivan is now online
[01:30:24] py_two: xa4a: блин, ну что за натура такая. Надо обязательно что-то ковырять. Ну настроено же и работает awesome. Нет, надо пол вечера убить на xmonad, i3, dwm. Вот обязательно. Хоть убейся, но надо
[01:31:00] xa4a: это хорошо
[01:31:03] xa4a: это полезно
[01:31:12] obivan: Ui_Form.show()
AttributeError: 'Ui_Form' object has no attribute 'show'
[01:31:17] obivan: это еще почему
[01:46:59] livevil is now offline
[01:47:51] livevil is now online
[01:47:55] xa4a is now online
[01:48:23] xa4a is now online
[01:55:24] nott is now online
[01:58:54] xa4a is now online
[02:08:54] xa4a is now away
[02:09:25] nott is now offline
[02:14:42] livevil is now away
[02:14:50] livevil is now online
[02:17:08] livevil is now offline
[02:26:19] obivan: Ui_Form.show()
AttributeError: 'Ui_Form' object has no attribute 'show'
[02:26:23] obivan: как это?
[02:29:33] obivan: qt
[02:30:12] xa4a is now away
[02:30:12] xa4a is now online
[02:31:10] Сволота is now away
[02:34:15] gf is now online
[02:38:06] obivan: пытаюсь подключить gui
[02:40:47] xa4a is now online
[02:41:10] Сволота is now xa
[02:50:47] xa4a is now away
[02:54:49] xa4a is now away
[02:54:49] xa4a is now online
[02:58:28] obivan is now offline
[03:10:19] py_two is now offline
[03:16:19] py_two is now xa
[03:29:55] deisler is now offline
[03:33:25] py_two is now offline
[03:39:38] xa4a is now online
[03:44:39] xa4a is now away
[04:00:50] Сволота is now online
[04:19:02] livevil is now online
[04:27:25] best is now offline
[04:28:05] best is now xa
[04:29:07] xa4a is now away
[04:29:13] xa4a is now online
[04:37:30] livevil is now offline
[04:51:44] livevil is now online
[05:10:56] livevil is now offline
[05:16:29] xa4a is now online
[05:21:29] xa4a is now away
[05:25:19] livevil is now online
[05:26:44] levsha is now offline
[05:44:57] livevil is now offline
[05:58:17] livevil is now online
[06:11:28] Сволота is now away
[06:13:17] огыешсук is now online
[06:15:42] Сволота is now online
[06:20:49] xa4a is now away
[06:21:22] Сволота is now away
[06:24:12] livevil is now offline
[06:26:43] огыешсук is now offline
[06:29:34] Сволота is now online
[06:31:37] livevil is now online
[06:34:36] Сволота is now away
[06:42:02] Сволота is now online
[06:51:47] livevil is now offline
[07:01:32] gf is now offline
[07:04:56] livevil is now online
[07:24:46] livevil is now offline
[07:35:35] Tony is now online
[07:38:15] livevil is now online
[07:41:50] Сволота is now away
[07:51:50] Сволота is now xa
[07:57:16] livevil is now offline
[08:07:00] Сволота is now online
[08:07:17] mrDoctorWho is now online
[08:07:21] mrDoctorWho is now offline
[08:12:08] Сволота is now away
[08:12:42] Сволота is now online
[08:13:32] livevil is now online
[08:22:11] lollo is now online
[08:30:36] livevil is now offline
[08:41:26] lollo is now away
[08:41:33] lollo is now online
[08:46:48] livevil is now online
[08:53:44] lollo is now away
[08:56:17] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[09:03:22] огыешсук is now online
[09:06:37] best is now online
[09:08:19] lollo is now online
[09:09:55] livevil is now offline
[09:18:03] livevil is now online
[09:18:57] lollo is now away
[09:19:42] lollo is now online
[09:23:18] Сволота is now away
[09:27:37] lollo is now away
[09:29:01] lollo is now online
[09:32:42] py_two is now xa
[09:33:18] Сволота is now xa
[09:33:20] lollo is now away
[09:35:09] best is now offline
[09:37:42] lollo is now online
[09:38:03] py_two is now offline
[09:38:12] livevil is now offline
[09:39:08] Сволота is now online
[09:44:10] Сволота is now away
[09:51:14] livevil is now online
[09:54:10] Сволота is now xa
[09:56:14] Сволота is now online
[10:09:31] огыешсук is now away
[10:09:50] gf is now online
[10:10:05] py_two is now xa
[10:10:29] livevil is now offline
[10:14:28] McPherson is now online
[10:15:37] bliznezz is now away
[10:15:38] bliznezz is now online
[10:18:59] огыешсук is now online
[10:20:08] lollo is now away
[10:24:24] livevil is now online
[10:25:57] py_two is now offline
[10:30:57] огыешсук is now away
[10:32:06] огыешсук is now online
[10:33:08] levsha is now online
[10:35:08] lollo is now xa
[10:45:58] огыешсук is now away
[10:46:28] lollo is now online
[10:47:18] livevil is now offline
[10:48:38] огыешсук is now online
[10:54:16] lollo is now away
[10:57:50] livevil is now online
[11:03:53] aries.ua is now online
[11:03:53] aries.ua is now online
[11:03:54] aries.ua is now online
[11:06:02] aries.ua is now online
[11:06:49] lollo is now online
[11:08:09] levsha is now offline
[11:11:00] aries.ua is now online
[11:12:05] Typhon is now online
[11:12:31] Сволота is now away
[11:12:41] slav0nic is now xa
[11:15:27] Сволота is now online
[11:16:03] aries.ua is now online
[11:20:16] livevil is now offline
[11:20:27] Сволота is now away
[11:21:06] aries.ua is now online
[11:26:08] aries.ua is now online
[11:29:55] Сволота is now online
[11:31:11] aries.ua is now online
[11:32:02] огыешсук is now away
[11:32:32] огыешсук is now offline
[11:33:02] огыешсук is now away
[11:33:32] огыешсук is now online
[11:36:13] aries.ua is now online
[11:36:57] bliznezz is now away
[11:36:57] bliznezz is now away
[11:37:16] levsha is now online
[11:40:08] xa4a is now away
[11:41:16] aries.ua is now online
[11:46:18] aries.ua is now online
[11:46:19] obivan is now online
[11:46:30] mrDoctorWho is now online
[11:48:23] obivan: uiForm.show()
AttributeError: 'Ui_Form' object has no attribute 'show'
[11:48:34] obivan: это почему так?
[11:50:40] Typhon is now offline
[11:50:58] mrDoctorWho: show_all() не?
[11:51:20] aries.ua is now online
[11:51:42] mrDoctorWho: хотя это в gtk.
[11:52:10] obivan: object has no attribute 'show_all'
[11:52:15] obivan: это в qt
[11:53:49] obivan: http://pastebin.com/qEm2cgtv
[11:53:51] obivan: сам гуй
[11:54:49] obivan: файл запускающий
[11:54:52] obivan: http://pastebin.com/jYZcTK7j
[11:55:19] mrDoctorWho: ну так Ui_Form() у тебя класс без атрибута show
[11:55:45] obivan: понятно.
[11:56:03] mrDoctorWho: widget = QtGui.QWidget()
widget.resize(250, 150)
widget.setWindowTitle('simple')
widget.show()
// простейшая хрень на Qt
[11:56:22] aries.ua is now online
[12:01:24] aries.ua is now online
[12:03:04] deisler is now away
[12:06:27] aries.ua is now online
[12:10:01] lollo is now away
[12:11:14] nott is now online
[12:11:29] aries.ua is now online
[12:13:51] огыешсук is now offline
[12:14:00] огыешсук is now online
[12:16:31] aries.ua is now online
[12:21:33] aries.ua is now online
[12:22:14] obivan: сделал так
[12:22:17] obivan: app = QtGui.QApplication(sys.argv)
window = QtGui.QWidget()
ui = gui.Ui_Form()
ui.setupUi(window)
window.show()
sys.exit(app.exec_())
[12:25:08] lollo is now xa
[12:26:35] aries.ua is now online
[12:31:38] aries.ua is now online
[12:35:35] огыешсук is now away
[12:35:39] gigimon is now online
[12:36:40] aries.ua is now online
[12:40:10] огыешсук is now online
[12:41:06] tvorzasp is now сколько RoR на PHP не портируй, все равно Codeigniter получается
[12:41:43] aries.ua is now online
[12:46:45] aries.ua is now online
[12:51:13] lollo is now online
[12:51:46] aries.ua is now online
[12:53:10] lollo is now away
[12:53:36] lollo is now online
[12:56:49] aries.ua is now online
[12:57:31] lollo is now away
[12:58:49] lollo is now online
[13:00:39] xa4a is now away
[13:00:43] xa4a is now online
[13:01:51] aries.ua is now online
[13:02:53] gigimon is now online
[13:02:53] gigimon is now away
[13:03:38] gigimon is now away
[13:03:40] gigimon is now online
[13:04:54] Typhon is now online
[13:06:17] Typhon is now away
[13:06:53] aries.ua is now online
[13:09:30] Typhon is now online
[13:11:55] aries.ua is now online
[13:13:59] aries.ua is now away
[13:14:00] aries.ua is now away
[13:16:57] aries.ua is now away
[13:18:53] aries.ua is now away
[13:18:53] aries.ua is now online
[13:18:54] aries.ua is now online
[13:20:12] xa4a is now online
[13:22:00] aries.ua is now online
[13:23:46] bliznezz is now away
[13:24:33] xa4a is now online
[13:27:02] aries.ua is now online
[13:32:04] aries.ua is now online
[13:32:20] Сволота is now away
[13:36:14] Сволота is now online
[13:36:27] Typhon is now away
[13:36:35] Typhon is now online
[13:37:06] aries.ua is now online
[13:39:59] xa4a is now online
[13:40:57] Typhon is now away
[13:42:08] aries.ua is now online
[13:42:21] Typhon is now online
[13:44:21] mrDoctorWho: Отправляю пост-запрос с httplib на сайт. В ответ ничего не получаю, не подскажете, где косяк?
import httplib
h = httplib.HTTPConnection('site.ru')
req = h.request("POST", "http://site.ru/upload", data, headers)
resp = h.getresponse()
data = resp.read()
h.close()
print data

С теми же headers и data, но с urllib2 запрос отправлялся нормально.
[13:44:59] xa4a is now away
[13:45:35] Typhon is now away
[13:47:10] aries.ua is now online
[13:48:06] Typhon is now online
[13:52:12] aries.ua is now online
[13:52:13] xa4a is now online
[13:54:50] Typhon is now offline
[13:55:08] Typhon is now online
[13:56:05] Сволота is now away
[13:57:14] aries.ua is now online
[13:59:59] Сволота is now online
[14:01:58] mrDoctorWho is now away
[14:02:16] aries.ua is now online
[14:06:38] огыешсук is now away
[14:07:18] aries.ua is now online
[14:08:08] nott is now offline
[14:08:26] огыешсук is now online
[14:11:58] obivan is now away
[14:12:21] aries.ua is now online
[14:16:16] aries.ua is now away
[14:16:16] aries.ua is now away
[14:16:17] aries.ua is now away
[14:17:23] aries.ua is now away
[14:18:15] tvorzasp is now away
[14:18:15] tvorzasp is now away
[14:20:51] огыешсук is now offline
[14:21:41] огыешсук is now online
[14:21:57] mrDoctorWho is now xa
[14:21:58] obivan is now xa
[14:22:25] aries.ua is now away
[14:23:56] aries.ua is now online
[14:23:57] aries.ua is now online
[14:25:44] obivan is now online
[14:27:27] aries.ua is now online
[14:29:13] Typhon is now away
[14:29:16] aries.ua is now away
[14:29:16] aries.ua is now away
[14:29:17] aries.ua is now away
[14:30:08] огыешсук is now offline
[14:31:24] gigimon is now online
[14:31:24] gigimon is now away
[14:31:48] огыешсук is now online
[14:32:12] obivan is now away
[14:32:29] aries.ua is now away
[14:32:35] огыешсук is now offline
[14:32:37] lollo is now away
[14:33:55] gigimon is now away
[14:34:52] огыешсук is now online
[14:35:30] Typhon is now online
[14:37:31] aries.ua is now away
[14:39:24] obivan is now online
[14:39:30] lollo is now online
[14:42:34] aries.ua is now away
[14:44:54] Tony is now away
[14:46:09] Typhon is now away
[14:46:56] obivan is now away
[14:47:20] obivan is now online
[14:47:30] mrDoctorWho is now online
[14:47:36] aries.ua is now away
[14:47:46] огыешсук is now offline
[14:47:51] Typhon is now online
[14:49:24] огыешсук is now online
[14:52:38] aries.ua is now away
[14:52:55] огыешсук is now offline
[14:53:30] obivan is now away
[14:54:03] огыешсук is now online
[14:56:54] obivan is now online
[14:57:39] aries.ua is now away
[15:01:26] lollo is now away
[15:02:36] gigimon is now away
[15:02:37] gigimon is now online
[15:02:42] aries.ua is now away
[15:02:48] xa4a is now online
[15:02:50] xa4a is now online
[15:07:44] aries.ua is now away
[15:09:54] Tony is now xa
[15:12:46] aries.ua is now away
[15:13:10] obivan is now away
[15:14:28] tvorzasp is now сколько RoR на PHP не портируй, все равно Codeigniter получается
[15:15:39] xa4a is now online
[15:16:28] lollo is now xa
[15:16:42] огыешсук is now offline
[15:17:30] mishok13 is now online
[15:17:49] aries.ua is now away
[15:17:55] огыешсук is now online
[15:20:35] xa4a is now online
[15:21:33] Сволота is now away
[15:22:07] aries.ua is now online
[15:22:08] aries.ua is now online
[15:22:30] lollo is now online
[15:22:30] mishok13 is now away
[15:22:51] aries.ua is now online
[15:23:10] obivan is now xa
[15:27:08] Typhon is now away
[15:27:46] obivan is now online
[15:27:53] aries.ua is now online
[15:30:37] огыешсук is now offline
[15:30:54] огыешсук is now online
[15:31:20] Tony is now online
[15:31:33] Сволота is now xa
[15:32:30] mishok13 is now xa
[15:32:55] aries.ua is now online
[15:35:36] xa4a is now online
[15:36:47] Сволота is now online
[15:37:08] Typhon is now away
[15:37:57] aries.ua is now online
[15:38:34] obivan is now away
[15:41:06] lollo is now away
[15:43:00] aries.ua is now online
[15:45:24] obivan is now online
[15:46:40] Typhon is now away
[15:46:43] Typhon is now online
[15:46:59] Сволота is now away
[15:47:37] Сволота is now online
[15:48:02] aries.ua is now online
[15:48:48] nott is now online
[15:49:59] xa4a is now away
[15:50:40] xa4a is now online
[15:50:45] gigimon is now offline
[15:50:47] gigimon is now online
[15:51:50] xa4a is now away
[15:53:04] aries.ua is now online
[15:56:06] lollo is now xa
[15:57:20] огыешсук is now away
[15:57:39] tvorzasp is now away
[15:57:39] tvorzasp is now away
[15:57:55] Typhon is now away
[15:57:58] огыешсук is now online
[15:58:07] aries.ua is now online
[15:58:44] obivan is now away
[15:59:01] Typhon is now online
[16:00:45] Сволота is now away
[16:01:50] xa4a is now away
[16:03:09] aries.ua is now online
[16:05:35] xa4a is now away
[16:05:39] xa4a is now online
[16:06:06] tvorzasp is now сколько RoR на PHP не портируй, все равно Codeigniter получается
[16:07:56] obivan is now online
[16:08:11] aries.ua is now online
[16:10:45] Сволота is now xa
[16:12:45] MAVr is now offline
[16:13:13] aries.ua is now online
[16:13:20] obivan is now away
[16:15:48] obivan is now online
[16:18:05] xa4a is now away
[16:18:15] aries.ua is now online
[16:23:18] aries.ua is now online
[16:23:45] Сволота is now online
[16:26:00] mrDoctorWho is now away
[16:27:36] Typhon is now away
[16:28:05] xa4a is now away
[16:28:08] огыешсук is now offline
[16:28:20] aries.ua is now online
[16:28:30] огыешсук is now online
[16:33:10] obivan is now away
[16:33:22] aries.ua is now online
[16:33:52] obivan is now online
[16:34:55] mrDoctorWho is now online
[16:36:07] Typhon is now online
[16:38:24] aries.ua is now online
[16:38:49] lollo is now online
[16:38:58] obivan is now away
[16:43:27] aries.ua is now online
[16:44:09] огыешсук is now offline
[16:44:23] огыешсук is now online
[16:44:31] огыешсук is now offline
[16:46:26] obivan is now online
[16:48:29] aries.ua is now online
[16:53:06] obivan is now away
[16:53:31] aries.ua is now online
[16:58:07] dicos is now online
[16:58:33] aries.ua is now online
[17:03:06] obivan is now xa
[17:03:12] obivan is now online
[17:03:36] aries.ua is now online
[17:08:38] aries.ua is now online
[17:09:04] py_two is now xa
[17:09:23] Typhon is now away
[17:11:13] mrDoctorWho is now offline
[17:11:34] obivan is now away
[17:12:07] mrDoctorWho is now online
[17:12:32] McPherson is now offline
[17:13:40] aries.ua is now online
[17:13:42] xa4a is now away
[17:13:46] xa4a is now online
[17:18:42] aries.ua is now online
[17:19:23] Typhon is now away
[17:20:03] nott is now away
[17:20:53] nott is now online
[17:21:34] obivan is now xa
[17:23:44] aries.ua is now online
[17:25:16] obivan is now online
[17:25:29] py_two is now offline
[17:27:51] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[17:28:20] MAVr is now offline
[17:28:47] aries.ua is now online
[17:32:20] Хороший человек is now online
[17:33:49] aries.ua is now online
[17:35:56] dicos is now offline
[17:36:17] aries.ua is now offline
[17:36:36] obivan is now away
[17:39:07] Сволота is now away
[17:40:47] Сволота is now online
[17:41:20] obivan is now online
[17:46:20] obivan is now away
[17:47:12] obivan is now online
[17:50:18] obivan is now offline
[17:53:47] Сволота is now away
[17:56:29] Сволота is now online
[18:04:36] Хороший человек is now away
[18:05:51] Tony is now offline
[18:11:04] Typhon is now away
[18:11:08] Typhon is now online
[18:14:27] Tony is now online
[18:15:12] Хороший человек is now online
[18:17:24] Сволота is now away
[18:17:48] Сволота is now online
[18:20:14] Хороший человек is now online
[18:21:51] Typhon is now away
[18:22:25] mrDoctorWho: Отправка POST-запроса с httplib. В качестве информации для передачи используется file-подобный класс: http://pastebin.com/Wp1tVKui . Проблема в том, что где-то теряются начальные байты самого файла (171 байт) и в итоге на сервер приходит сломанный файл.
[18:27:06] Typhon is now online
[18:30:16] Typhon is now away
[18:31:01] Typhon is now online
[18:40:12] Typhon is now offline
[18:40:33] Typhon is now online
[18:42:17] xa4a: mrDoctorWho: у тебя read иногда возвращает меньше денных, чем надо
[18:42:28] mrDoctorWho: xa4a: это имеет значение?
[18:42:39] xa4a: ну, я не знаю, как ты его используешь..
[18:42:55] xa4a: но если там есть аргумент length, то было бы логично, чтобы ты возвращал столько, сколько надо)
[18:42:57] mrDoctorWho: xa4a: он используется в качестве data в httplib.HTTPConnection.send
[18:43:38] xa4a: ещё у тебя между Start и самим файлом и End нет \r\n. Это может быть проблемой
[18:43:50] xa4a: а, есть, ок
[18:44:21] xa4a: а то, что в "--" + Boundary + "--" в конце в boundary чёрточки приписываешь - это нормально?
[18:44:33] Хороший человек is now online
[18:44:52] xa4a: да, а иногда у тебя read() возвращает больше данных, чем надо, кстати
[18:44:53] mrDoctorWho: таков формат multipart/form-data же, не?
[18:45:01] xa4a: не помню, ща посмотрю
[18:45:26] mrDoctorWho: > <xa4a> да, а иногда у тебя read() возвращает больше данных, чем надо, кстати
В каком случае?
[18:45:36] xa4a: да, похоже, что так
[18:45:40] xa4a: с чёрточками
[18:45:48] xa4a: mrDoctorWho: на последнем вызове
[18:45:55] xa4a: когда End возвращает
[18:45:57] xa4a: целиком
[18:46:45] mrDoctorWho: ага, такое есть, да. Но, вроде, это не критично, httplib читает по 8192 байт
[18:48:54] xa4a: !pydoc httplib.HTTPConnection.send
[18:50:25] tvorzasp is now away
[18:50:25] tvorzasp is now away
[18:50:33] gf is now offline
[18:52:50] tvorzasp is now away
[18:52:50] tvorzasp is now сколько RoR на PHP не портируй, все равно Codeigniter получается
[18:53:13] Сволота is now away
[18:53:41] deisler is now offline
[18:54:27] xa4a: я бы посоветовал брать какой-то tcpdump или дебагер на сервере и смотреть, что тебе приходит
[18:54:37] xa4a: если интересно разобраться
[18:54:48] mrDoctorWho: у меня нет доступа к серверу, а свой поднимать лень.
[18:54:48] xa4a: а если надо сделать, чтобы работало - взять готовую библиотеку
[18:54:59] mrDoctorWho: у меня уже имеется вариант с twill
[18:55:03] xa4a: куйгуыеы
[18:55:05] xa4a: requests
[18:55:30] Сволота is now online
[18:55:36] mrDoctorWho: я придерживаюсь кодинга без использования сторонних библиотек без острой необходимости
[18:57:04] gigimon: ну и зря
[18:57:55] mrDoctorWho: gigimon: не зря. Порой, можно решить всё гораздо проще, чем реализовано в библиотеке. Да и зачем подключать целую библиотеку, если используешь только 1 её функцию?
[18:58:12] gigimon: чтобы не тратить неделю на реализацию этой функции
[18:58:21] gigimon: если это мелкое я согласен
[18:58:33] gigimon: если с этим трудности, можно и заюзать
[18:58:43] gigimon: mrDoctorWho: да и почему не юзать урллиб, а не httplib?
[18:58:50] gigimon: если с урллибом у тебя работало
[18:59:07] mrDoctorWho: gigimon: нельзя впихнуть тип file
[18:59:18] gigimon: ты отправляешь файл?
[18:59:23] mrDoctorWho: да
[19:00:01] gigimon: http://python.su/forum/topic/7182/
[19:00:03] gigimon: как минимум
[19:00:09] gigimon: + был для urllib хандлер
[19:00:32] gigimon: https://pypi.python.org/pypi/MultipartPostHandler/
[19:00:37] mrDoctorWho: это не то, что требуется.
[19:00:54] gigimon: как так?
[19:01:10] gigimon: ты хочешь отправить файл, эта штука добавляет такую возможность, что не так?
[19:01:10] xa4a: ему нужно читать файл по мере отправки
[19:01:26] mrDoctorWho: Если файл большой, то он может не поместиться в оперативной памяти, urllib не подходит для такой цели, потому что ему надо предоставить готовый стринг, а в httplib он читается по мере отправки
[19:01:28] xa4a: а, всё похоже так и делает
[19:02:01] gigimon: xa4a: ну вроде как то, что в pypi так и делает
[19:02:08] gigimon: по крайней мере буфер там присутствует)
[19:02:22] gigimon: хотя я не уверен
[19:02:32] xa4a: gigimon: buffer += '\r\n' + fd.read() + '\r\n'

[19:02:38] gigimon: угу, к сожалению
[19:03:13] xa4a: mrDoctorWho: мы посовещались, и решили, что тебе следует использовать requests
[19:03:29] gigimon: fuf
[19:03:56] xa4a: http://docs.python-requests.org/en/latest/user/advanced/#chunk-encoded-requests
[19:04:24] xa4a: точнее http://docs.python-requests.org/en/latest/user/advanced/#streaming-uploads
[19:05:08] xa4a: правда форм-енкодинг надо будет приделать, похоже
[19:05:27] Сволота is now away
[19:07:13] mrDoctorWho: Если так и не найду решение, придётся перейти на requests.
[19:12:05] Сволота is now online
[19:16:08] obivan is now online
[19:16:38] obivan: как в grab делать...get запросы?)С post все ясно.
[19:17:06] obivan: но...
[19:18:32] lollo is now online
[19:19:14] mrDoctorWho: g.go
[19:20:35] obivan: тогда...
[19:20:39] obivan:
An Error Was Encountered

Unable to process your request

[19:20:42] obivan: на сайие
[19:20:45] obivan: на сайте
[19:20:52] tvorzasp is now away
[19:20:56] obivan: через браузер все нормально
[19:25:13] obivan: может...
[19:25:16] obivan: <a href="https://www.onlive.com/account/update_billing" rel="#modal_overlay">
Edit Billing
</a>
[19:25:23] obivan: вот html код
[19:25:32] obivan: хз что делать.
[19:25:35] mrDoctorWho: у grab есть своя конфа.
[19:25:48] obivan: дай адрес
[19:25:49] obivan: плз
[19:26:18] mrDoctorWho: на сайте либы всё есть.
[19:27:08] obivan: уже нашел
[19:27:13] obivan: пару секунд гугла
[19:27:19] obivan: :-)
[19:27:23] obivan: спасибо!
[19:29:03] gigimon: никто случаем назнает, может ли софтина какая-то быть несовместимой с пайпами?
[19:29:05] Сволота is now away
[19:29:13] gigimon: а то есть код: http://dumpz.org/470752/
[19:29:30] gigimon: вот именно на этой софтине, он ждет пока софтина выполнится до конца и только потом читает stdout
[19:29:37] gigimon: хотя сам софтина исправно в него пишет
[19:29:54] gigimon: вставляю любую другую, все ок, читает из стдаута пока софтина работает и что-то пишет
[19:32:21] gf is now online
[19:34:05] Сволота is now online
[19:34:40] xa4a: а если меньше 4096 делать?
[19:34:47] xa4a: например, 1
[19:34:52] lollo is now away
[19:36:25] gigimon: тоже самое
[19:36:50] gigimon: по исходникам софтины, она в консоль выводит через sys.stdout.write(line)
[19:36:56] gigimon: т.е. вроде нормально
[19:37:03] Typhon is now away
[19:37:23] mrDoctorWho: а stdout.flush?
[19:38:17] Typhon is now online
[19:38:28] gigimon: зачем мне его очищать?
[19:38:32] lollo is now online
[19:38:56] gigimon: да и я ж в него не пишу
[19:39:35] obivan: указал headers, все получилось спасибо вам!!!
[19:43:25] tvorzasp is now сколько RoR на PHP не портируй, все равно Codeigniter получается
[19:46:34] gigimon is now offline
[19:46:54] Typhon: флаш
[19:47:06] Typhon: той софтине
[19:55:52] xa4a is now away
[19:59:08] xa4a is now online
[20:09:32] bliznezz is now away
[20:09:33] bliznezz is now online
[20:17:53] Typhon is now away
[20:19:20] Typhon is now online
[20:20:22] bliznezz is now away
[20:20:22] bliznezz is now away
[20:20:52] bliznezz is now away
[20:20:53] bliznezz is now online
[20:28:44] bliznezz is now away
[20:28:46] bliznezz is now away
[20:30:11] Сволота is now away
[20:31:02] Сволота is now online
[20:37:37] Хороший человек is now offline
[20:44:23] mrDoctorWho is now away
[20:44:45] Typhon is now away
[20:45:11] obivan: Location: https://www.onlive.com/account/billing/eyJzdGF0dXMiOiJmYWlsZWQiLCJleGNlcHRpb24iOiJUcmFuc2FjdGlvbkZhaWx1cmUiLCJtZXNzYWdlIjoiVHJhbnNhY3Rpb24gRmFpbHVyZSBPY2N1cnJlZDogIFRoZSBwYXltZW50IGluc3RydW1lbnQgcHJvdmlkZWQgZmFpbGVkIHBheW1lbnQgcHJvY2Vzc2luZy5cciIsImZpZWxkcyI6W10sImRhdGEiOnsic3Vic2NyaWJlcmlkIjoiNjczMjU5OSIsImFkZHJlc3MxIjoiMTM5IHBldGVyYm9yb3VnaCBkciIsImFkZHJlc3MyIjoiIiwiY2l0eSI6Im1vb3Jlc3ZpbGxlIiwic3RhdGUiOiJOQyIsImNvdW50cnkiOiJVU0EiLCJ6aXAiOiIyODExNSIsInBob25lIjoiMTY2NTY1NjU3IiwiZXh0IjpudWxsLCJjYXJkbmFtZSI6InJ5YW4gbWVhZGUiLCJjYXJkdHlwZSI6IlZpc2EiLCJleHBpcnltb250aCI6IjExIiwiZXhwaXJ5eWVhciI6IjIwMTUifX0= тут генерируется url для сообщения, как передать это в граб?

[20:45:13] Typhon is now online
[20:45:50] mrDoctorWho is now online
[20:47:35] Сволота is now away
[20:47:59] lollo is now away
[20:48:14] lollo is now online
[20:48:59] Сволота is now online
[20:54:15] xa4a is now online
[20:56:31] Сволота is now away
[20:56:54] xa4a: выше ж написали, что у граба своя конференция
[20:59:07] Сволота is now online
[20:59:46] lollo is now away
[21:00:31] lollo is now online
[21:00:45] nott is now offline
[21:01:28] tvorzasp is now away
[21:01:28] tvorzasp is now away
[21:02:24] obivan: никто не отвечает
[21:03:27] Typhon is now away
[21:13:28] Typhon is now away
[21:17:44] tvorzasp is now сколько RoR на PHP не портируй, все равно Codeigniter получается
[21:22:07] Сволота is now away
[21:23:17] Сволота is now online
[21:24:06] tvorzasp is now away
[21:28:35] lollo is now away
[21:32:39] Сволота is now away
[21:34:19] lollo is now online
[21:34:19] livevil is now online
[21:34:32] tvorzasp is now сколько RoR на PHP не портируй, все равно Codeigniter получается
[21:37:43] Сволота is now online
[21:39:02] livevil is now away
[21:41:03] livevil is now online
[21:43:32] mrDoctorWho is now offline
[21:46:26] tvorzasp is now away
[21:46:35] xa4a is now away
[21:46:35] livevil is now offline
[21:48:53] lollo is now away
[21:49:48] xa4a is now online
[21:51:02] Tony is now away
[21:51:18] livevil is now online
[21:52:23] tvorzasp is now сколько RoR на PHP не портируй, все равно Codeigniter получается
[21:52:53] slav0nic is now online
[21:58:03] tvorzasp is now away
[22:00:26] lollo is now online
[22:00:32] tvorzasp is now сколько RoR на PHP не портируй, все равно Codeigniter получается
[22:05:44] tvorzasp is now away
[22:10:48] py_two is now xa
[22:13:23] tvorzasp is now сколько RoR на PHP не портируй, все равно Codeigniter получается
[22:14:04] obivan: Как получить заголовки отсюда
HTTP/1.1 302 Found
Content-Type: text/html; charset=UTF-8
Date: Fri, 15 Mar 2013 17:47:12 GMT
Location: https://www.onlive.com/account/billing/eyJzdGF0dXMiOiJmYWlsZWQiLCJleGNlcHRpb24iOiJJbnZhbGlkUHJvcGVydHkiLCJtZXNzYWdlIjoiVGhlIGZvbGxvd2luZyB2YWxpZGF0ZWQgcHJvcGVydGllcyB3ZXJlIG5vdCBjb3JyZWN0bHkgc3VwcGxpZWQ6IFByb3BlcnR5PVBheW1lbnRJbnN0cnVtZW50Q3JlZGl0Q2FyZC5BY2NvdW50TnVtYmVyLCBGYWlsdXJlIFJlYXNvbj1WYWx1ZVdhc051bGwsIEZhaWxlZCBDb25zdHJhaW50PSIsImZpZWxkcyI6W10sImRhdGEiOnsic3Vic2NyaWJlcmlkIjoiNjY0NjgyNyIsImFkZHJlc3MxIjoiNzA4IEN1cnJpdHVjayBEcml2ZSIsImFkZHJlc3MyIjoiIiwiY2l0eSI6IlJBTEVJR0giLCJzdGF0ZSI6Ik5DIiwiY291bnRyeSI6IlVTQSIsInppcCI6IjI3NjA5IiwicGhvbmUiOiI5MTkzOTUyNzM3IiwiZXh0IjpudWxsLCJjYXJkbmFtZSI6IkVsaXphYmV0aCBQaGlsbGlwcyIsImNhcmR0eXBlIjoiVmlzYSIsImV4cGlyeW1vbnRoIjoiMTIiLCJleHBpcnl5ZWFyIjoiMjAxNCJ9fQ==
[22:14:22] livevil is now away
[22:15:49] livevil is now online
[22:16:02] Tony is now xa
[22:16:50] obivan: получаю только из POST /secure/billing HTTP/1.1 а из 302 не могу
[22:16:58] py_two is now offline
[22:17:42] xa4a: obivan: ты читал документацию?
[22:17:54] obivan: да
[22:18:09] xa4a: и что там написано?
[22:18:44] obivan: http://grablib.org/docs/grab/response.html
[22:18:46] tvorzasp is now away
[22:18:47] tvorzasp is now away
[22:19:04] obivan: там написано как получить определенный заголовок
[22:19:37] obivan: а из 302 я не могу получить ничего
[22:19:46] xa4a: http://grablib.org/docs/grab/misc.html#id4
[22:19:50] obivan: только из http://grablib.org/docs/grab/response.html
[22:19:51] xa4a: это может?
[22:20:07] xa4a: http://grablib.org/docs/grab/options.html#option-follow-location
[22:20:34] livevil is now away
[22:21:25] livevil is now online
[22:21:31] obivan: но у меня не переходит по адресу в location
[22:21:57] xa4a: поставить опцию в True?
[22:22:52] obivan: автоматом же переходит
[22:23:00] obivan: ну ладно попробуем
[22:23:23] xa4a: значит документация врёт :(
[22:23:24] obivan: точнее по умолчанию
[22:23:31] obivan: стоит тру
[22:23:56] deisler is now away
[22:24:42] obivan: ладно что-нибудь придумаю
[22:24:52] obivan: вот зачем делать такие сложные мерчанты
[22:24:57] obivan: :-)
[22:25:38] xa4a: чтобы их руками обрабатывали
[22:25:48] xa4a: а может там есть просто API?
[22:26:34] obivan: нету
[22:26:38] obivan: там API
[22:27:03] obivan: тут что-то не чисто
[22:27:39] obivan: откуда-то взялся post
[22:28:45] obivan: ага там редирект
[22:28:57] obivan: но почему-то не переходит по нему
[22:29:51] obivan: вообщем я запутался, отойду.
[22:31:32] xa4a: ну вставь дебагер, посмотри, почему не переходит
[22:35:15] slav0nic is now online
[22:43:40] tvorzasp is now сколько RoR на PHP не портируй, все равно Codeigniter получается
[22:46:01] tvorzasp is now offline
[22:49:25] py_two is now xa
[22:56:56] py_two is now offline
[22:58:53] py_two is now xa
[23:01:19] lollo is now away
[23:13:12] lollo is now xa
[23:16:48] obivan: теперь форму разнесло вообще
[23:17:49] obivan: http://pastebin.com/hfhpW8K6
[23:19:19] py_two is now offline
[23:19:52] py_two is now xa
[23:22:50] obivan is now xa
[23:22:54] obivan is now online
[23:26:36] lollo is now online
[23:27:11] livevil is now away
[23:27:13] livevil is now online
[23:30:16] Typhon is now away
[23:30:16] Typhon is now offline
[23:40:50] Сволота is now away
[23:41:03] Сволота is now online
[23:46:57] lollo is now away
[23:51:04] obivan is now offline
[23:55:51] xa4a is now away
[23:55:54] xa4a is now online
[23:58:19] slav0nic is now away
[23:58:48] lollo is now xa