[00:00:34] bobry is now online
[00:04:31] kwis is now online
[00:05:37] bobry is now online
[00:10:39] bobry is now online
[00:15:41] bobry is now online
[00:16:02] Tony is now online
[00:16:26] some_user is now online
[00:17:33] Magister Yoda is now away
[00:18:29] some_user: а как сделать чтоб к примеру только скрипт запускаеться чтоб он тупо отправлял одно сообщение на один UIN и отключался
[00:20:13] some_user: в примере вначале есть входное сообщение и на него ответ идет sendMessage, и мне бы без входного запилить.
[00:20:17] kwis is now away
[00:20:45] bobry is now online
[00:22:45] some_user: я не понимаю как вызвать sendMessage то что внутри класса, создать функцию и вызвать ее типа так Bot.send(UIN, body) тоже не вышло Type.error
[00:25:49] bobry is now online
[00:26:41] xa4a: напиши алгоритм на бумажке
[00:26:45] xa4a: что ты хочешь, чтобы происходило
[00:26:46] xa4a: по порядку
[00:28:00] Vit@liy is now offline
[00:28:08] some_user: запускаеться скрипт-идет отправка сообщения, к примеру "hello world" на заранее заданный UIN.все
[00:28:50] xa4a: ты знаешь, что такое алгоритм?
[00:29:42] some_user: ты мне по теме поможешь?
[00:30:09] some_user: или я сложное что-то написал особо?
[00:30:17] kwis is now xa
[00:30:25] xa4a: я за тебя решать твою проблему не буду
[00:30:29] xa4a: стараюсь помочь, да
[00:30:49] xa4a: ну тебе соединиться надо с сервером
[00:30:52] bobry is now online
[00:30:55] xa4a: потом что-то сделать после соединения
[00:31:01] xa4a: вызвать функцию
[00:31:12] xa4a: у тебя ж уже есть пример вызова в документации
[00:34:03] Magister Yoda is now «Музыкальная дрожь» http://www.factroom.ru/facts/7967
[00:34:21] some_user: ен пойму как только ее вызвать не внутри класса
[00:35:54] bobry is now online
[00:35:55] bobry is now away
[00:35:55] bobry is now away
[00:35:55] bobry is now away
[00:37:26] Сволота is now away
[00:37:31] bobry is now away
[00:37:31] bobry is now online
[00:37:31] bobry is now online
[00:38:48] nmk is now offline
[00:39:45] some_user: self - объект в котором выполняется текущая функция, sendMessage - функция что выполняеться. Имя класа Bot. как все это собрать во что-то отправляющее сообщение?
[00:40:57] bobry is now online
[00:41:03] Сволота is now online
[00:41:05] some_user: если обращаешься к Bot() функция __int__ требует какихто два параметра
[00:41:09] kwis is now online
[00:41:50] xa4a: ну у тебя self есть
[00:42:01] xa4a: значит ты как-то Bot() уже вызвал с двумя параметрами
[00:42:21] xa4a: т.к. если у тебя метод в классе Bot вызывается, то self - это инстанс этого класса
[00:42:56] xa4a: и, очевидно, если у тебя self - объект класса Bot, а у класса Bot есть метод sendMessage, то можно вызвать self.sendMessage
[00:44:06] some_user: но глобально этого же self нет..тоесть опять все внутри
[00:44:59] Magister Yoda is now away
[00:46:00] bobry is now online
[00:46:27] Typhon: !wtf tutorial
[00:46:44] Magister Yoda is now «Музыкальная дрожь» http://www.factroom.ru/facts/7967
[00:47:59] some_user: exec Bot.sendMessage('123456','test')
00:46:01
<type 'exceptions.TypeError'> - unbound method sendMessage() must be called with Bot instance as first argument (got str instance instead)
[00:48:09] kwis is now away
[00:48:34] Сволота is now away
[00:48:48] bobry is now away
[00:48:48] bobry is now away
[00:48:48] bobry is now away
[00:50:20] some_user: должна быть вызвана с Bot например, в качестве первого аргумента..
[00:50:28] xa4a: нет
[00:50:32] xa4a: Bot - это класс
[00:50:39] xa4a: а должна быть вызвана с инстансом этого класса
[00:50:51] xa4a: у тебя не правильный скрипт, думаю
[00:50:59] xa4a: т.к. ты пытаешься сам что-то делать
[00:51:03] bobry is now away
[00:51:07] xa4a: но ты же используешь твистед - фреймворк
[00:51:24] xa4a: фреймворк значит, что ты делать не должен пытаться. он сам делает, а тебе только надо затычки заткнуть
[00:51:32] xa4a: (у тебя не правильный main)
[00:53:01] nmk is now online
[00:53:34] Сволота is now online
[00:53:54] nmk is now offline
[00:56:06] bobry is now away
[00:57:03] nmk is now online
[00:58:09] kwis is now xa
[01:01:09] bobry is now away
[01:03:50] nmk is now offline
[01:04:12] some_user: хоть бы какойто образец клиента в примерах был глобальный чтобы отправлять с него в любом месте,ато смахивает на какуюто опу для тех кто впервые работает с оскар через твистед
[01:05:10] some_user: типа cl.send(UIN, msg) - разве не мило
[01:05:54] some_user: к сожалению других либ для протокола на питон не нашел
[01:06:11] bobry is now away
[01:07:22] xa4a: твистед - асинхронный фреймворк
[01:07:32] xa4a: прежде чем использовать его - познакомился бы с ним хотя бы
[01:07:47] xa4a: почти всё, что он делает - реакция на какие-то события
[01:08:06] xa4a: об этом, должно быть написано в туториале
[01:08:08] xa4a: по нему
[01:09:30] Сволота is now away
[01:10:55] some_user is now away
[01:11:14] bobry is now away
[01:11:15] some_user is now online
[01:12:42] some_user: очень кратко о либе было на jrudevels.org,там что-то такое говорили.
[01:14:30] Сволота is now online
[01:16:16] bobry is now away
[01:16:41] some_user: на ней еще както транспорт PyICQt работает,правда очень криво и висит часто
[01:17:41] some_user is now offline
[01:19:42] Сволота is now away
[01:19:43] XIT is now online
[01:19:43] XIT is now online
[01:19:53] XIT is now online
[01:19:53] XIT is now online
[01:20:16] Сволота is now online
[01:21:19] bobry is now away
[01:21:25] xa4a: хм. а какой фреймворк для легкого такого асинхронного веб-приложения? flask, tornado?
[01:21:48] xa4a: (не node.js)
[01:22:25] Magister Yoda: Не могу понять, что не так - все формы построены на базе одного файла - http://dumpz.org/89385/ . Но одна форма почему-то не хочет загружаться и пишет ошибку 'NoneType' object has no attribute 'COOKIES'. Дамп - http://dumpz.org/89386/
[01:23:32] Typhon: xa4a, торнадо, или eventlet (с basehttpserver %) )
[01:23:58] XIT is now online
[01:24:11] xa4a: Magister Yoda: 890. form = MassNewsAdd(request.POST or None)
[01:25:06] xa4a: Magister Yoda: ну и вообще. 'NoneType' object has no attribute 'COOKIES' что не ясно? падает на request.COOKIES. возьми да вставь туда дебагер и посмотри, что там таки да None
[01:25:15] kwis is now online
[01:25:19] xa4a: Typhon: попробую торнаду
[01:26:23] bobry is now away
[01:29:01] XIT is now online
[01:30:17] kwis is now away
[01:30:17] levsha is now offline
[01:31:26] bobry is now away
[01:31:48] Сволота is now away
[01:32:26] Magister Yoda is now away
[01:34:04] XIT is now online
[01:34:18] Magister Yoda is now «Музыкальная дрожь» http://www.factroom.ru/facts/7967
[01:35:09] Typhon is now away
[01:36:15] XIT is now offline
[01:36:30] bobry is now away
[01:36:48] Сволота is now online
[01:38:53] kwis is now online
[01:41:25] d1ffuz0r is now offline
[01:41:34] bobry is now away
[01:42:17] Magister Yoda: xa4a: ну с другими то формами всё нормально. а вот с этой такая х-ня. ты мне предлагешь вставить принт в код джанги?
[01:42:37] xa4a: я вообще предлагаю вставить дебагер
[01:42:39] xa4a: но можно и принт
[01:42:47] xa4a: можешь в свой код вставить ,можешь в джангу
[01:43:04] xa4a: но проблема в твоём коде
[01:43:04] Сволота is now away
[01:43:10] xa4a: ты где-то вместо реквеста передаёшь None
[01:43:46] Сволота is now online
[01:44:07] Magister Yoda: xa4a: хммм.... все те же декораторы, что и ранее...
[01:45:04] Tony: Magister Yoda, у тебя же очевидно.
[01:45:09] Typhon is now xa
[01:45:09] Tony: Exception Value: 'NoneType' object has no attribute 'COOKIES'
[01:45:15] Tony: request.COOKIES[
[01:45:18] Magister Yoda: Tony: кэп???
[01:45:21] Tony: request у тебя None какого-то хуя
[01:45:45] kwis is now away
[01:46:34] Tony: Magister Yoda, осиль ipdb
[01:46:36] bobry is now away
[01:47:33] Magister Yoda: ну у меня декоратор expired почему-то пустой реквест передаёт видимо, если верить трэйсу
[01:47:48] Magister Yoda: хотя возврат идёт - return func(request, *args, **kwargs)
[01:48:03] Tony: естественно. у тебя только по этому дампу видно где косяк
[01:48:40] Tony: при чем косяк звездный
[01:48:42] Magister Yoda: Tony: дак у остальных функций таких проблем нет
[01:48:54] Tony: конечно.
[01:49:01] Magister Yoda: Tony: они так же используют этот декоратор
[01:49:04] Tony: я бы убил за такой косяк
[01:49:08] Tony: конечно
[01:49:36] Magister Yoda: Tony: видимо ты видишь косяк, но не скажешь в чём он...
[01:49:43] Tony: конечно нет
[01:50:28] Magister Yoda: пичально...
[01:50:32] Tony: form = MassNewsAdd(request.POST or None) # как у тебя view называется в которой это вызывается?
[01:50:41] Typhon is now online
[01:50:42] bobry is now away
[01:50:42] bobry is now online
[01:50:42] bobry is now online
[01:51:17] Magister Yoda: Tony: блееее.....
[01:51:24] Magister Yoda: спс)
[01:51:40] bobry is now online
[01:51:53] Magister Yoda: мда... пздц вот лоханулся то
[01:52:36] Сволота is now away
[01:52:44] Сволота is now online
[01:55:45] kwis is now xa
[01:56:43] bobry is now online
[01:57:20] Magister Yoda: у меня главно форма и импортирована была, но почему-то не написал Form в конце...
[02:00:21] bobry is now away
[02:00:21] bobry is now away
[02:00:21] bobry is now away
[02:01:34] Сволота is now away
[02:01:40] Сволота is now online
[02:01:47] bobry is now away
[02:01:53] Tony: с нотацией надо осторожнее
[02:06:50] bobry is now away
[02:06:54] Magister Yoda is now offline
[02:11:12] Typhon is now offline
[02:11:54] bobry is now away
[02:16:56] bobry is now away
[02:17:52] Сволота is now away
[02:22:00] bobry is now away
[02:23:02] Сволота is now online
[02:27:01] bobry is now away
[02:30:13] xa4a is now away
[02:30:14] xa4a is now online
[02:32:04] bobry is now away
[02:33:19] Sevenov is now offline
[02:35:20] Сволота is now away
[02:37:07] bobry is now away
[02:40:20] Сволота is now online
[02:42:09] bobry is now away
[02:46:02] Сволота is now away
[02:47:09] kwis is now online
[02:47:14] bobry is now away
[02:52:18] bobry is now away
[02:53:44] kwis is now away
[02:56:02] Сволота is now xa
[02:57:21] bobry is now away
[03:02:24] bobry is now away
[03:02:42] kwis is now online
[03:07:25] bobry is now away
[03:12:27] bobry is now away
[03:17:29] bobry is now away
[03:19:52] Tony is now away
[03:22:33] bobry is now away
[03:27:36] bobry is now away
[03:32:38] bobry is now away
[03:37:43] bobry is now away
[03:42:45] bobry is now away
[03:45:00] Tony is now xa
[03:47:47] bobry is now away
[03:52:49] bobry is now away
[03:57:54] bobry is now away
[04:02:57] bobry is now away
[04:08:00] bobry is now away
[04:13:02] bobry is now away
[04:13:32] Tony is now online
[04:18:05] bobry is now away
[04:20:28] kwis is now away
[04:23:08] bobry is now away
[04:24:34] gf is now online
[04:28:09] bobry is now away
[04:30:28] kwis is now xa
[04:33:12] bobry is now away
[04:38:16] bobry is now away
[04:43:19] bobry is now away
[04:48:22] bobry is now away
[04:51:00] kwis is now online
[04:53:24] bobry is now away
[04:56:44] kwis is now away
[04:58:28] bobry is now away
[05:03:22] xa4a is now online
[05:03:30] bobry is now away
[05:06:44] kwis is now xa
[05:08:22] xa4a is now away
[05:08:34] bobry is now away
[05:13:37] bobry is now away
[05:18:39] bobry is now away
[05:22:30] gf is now away
[05:23:41] bobry is now away
[05:25:48] gf is now online
[05:28:43] bobry is now away
[05:33:47] bobry is now away
[05:38:48] bobry is now away
[05:43:51] bobry is now away
[05:48:52] bobry is now away
[05:53:54] bobry is now away
[05:58:56] bobry is now away
[06:03:59] bobry is now away
[06:09:01] bobry is now away
[06:14:04] bobry is now away
[06:19:07] bobry is now away
[06:21:22] gf is now away
[06:24:10] bobry is now away
[06:25:43] d1ffuz0r is now online
[06:29:13] bobry is now away
[06:34:15] bobry is now away
[06:39:18] bobry is now away
[06:41:22] gf is now xa
[06:44:20] bobry is now away
[06:45:43] xa4a is now away
[06:49:22] bobry is now away
[06:54:26] bobry is now away
[06:55:36] Tony is now away
[06:59:28] bobry is now away
[07:04:30] bobry is now away
[07:09:31] bobry is now away
[07:14:34] bobry is now away
[07:19:36] bobry is now away
[07:20:36] Tony is now xa
[07:24:40] bobry is now away
[07:29:43] bobry is now away
[07:34:46] bobry is now away
[07:39:48] bobry is now away
[07:44:51] bobry is now away
[07:49:54] bobry is now away
[07:54:56] bobry is now away
[07:59:58] bobry is now away
[08:05:00] bobry is now away
[08:10:03] bobry is now away
[08:15:05] bobry is now away
[08:20:07] bobry is now away
[08:25:11] bobry is now away
[08:30:14] bobry is now away
[08:35:17] bobry is now away
[08:40:19] bobry is now away
[08:45:21] bobry is now away
[08:50:25] bobry is now away
[08:55:27] bobry is now away
[09:00:31] bobry is now away
[09:05:32] bobry is now away
[09:10:35] bobry is now away
[09:15:38] bobry is now away
[09:18:49] gf is now online
[09:20:42] bobry is now away
[09:25:43] bobry is now away
[09:30:46] bobry is now away
[09:35:47] bobry is now away
[09:40:51] bobry is now away
[09:45:54] bobry is now away
[09:51:00] bobry is now away
[09:56:02] bobry is now away
[09:58:13] gf is now away
[10:01:06] bobry is now away
[10:06:10] bobry is now away
[10:11:13] bobry is now away
[10:16:16] bobry is now away
[10:18:13] gf is now xa
[10:19:30] Tony is now online
[10:21:19] bobry is now away
[10:26:22] bobry is now away
[10:31:25] bobry is now away
[10:36:27] bobry is now away
[10:41:30] bobry is now away
[10:46:34] bobry is now away
[10:51:36] bobry is now away
[10:56:40] bobry is now away
[11:01:43] bobry is now away
[11:06:44] bobry is now away
[11:11:49] bobry is now away
[11:16:51] bobry is now away
[11:21:57] bobry is now away
[11:26:17] levsha is now online
[11:27:00] bobry is now away
[11:32:04] bobry is now away
[11:34:00] Сволота is now online
[11:37:08] bobry is now away
[11:37:21] some_user is now online
[11:38:13] some_user: вот это я вчера тупил, все что надо было сделать - объявить глобальным self и потом уже слать с него сообщения
[11:39:00] some_user: ща довольный шокапец
[11:39:44] some_user: тоня красавчик
[11:40:00] Сволота: self можно делать глобальным? и как это выглядит?
[11:40:45] some_user: в данном случае self выступает в роли образца клиента подключенного к аське
[11:41:41] kwis is now online
[11:41:42] some_user: global cl
cl=self
[11:42:12] bobry is now away
[11:42:19] some_user: eval cl
11:34:37
test_bot@jabber.ua
<__main__.Bot instance at 0x0145D3F0>
[11:42:31] Сволота: ну это не сам self
[11:42:47] some_user: но оно шлет мессаги
[11:42:58] Сволота: ато я уже начал думать что что-то не так
[11:43:18] some_user: exec cl.sendMessage('637005530','1')
[11:43:35] some_user: (11:35:04 2/10/2011)
1
[11:45:13] some_user is now offline
[11:45:23] Сволота: с другой стороны, если это синглтон, то зачем его создание пихать в метод какого-то класса?
[11:47:14] bobry is now away
[11:48:31] kwis is now away
[11:52:17] bobry is now away
[11:54:50] nmk is now online
[11:57:20] bobry is now away
[11:58:31] kwis is now xa
[12:00:14] xa4a is now away
[12:02:23] bobry is now away
[12:07:27] bobry is now away
[12:12:31] bobry is now away
[12:14:39] Vit@liy is now Tkabber - всё работает. Качай на tkabber.jabber.ru
[12:17:32] bobry is now away
[12:17:55] bobry is now away
[12:17:55] bobry is now online
[12:17:55] bobry is now online
[12:22:36] bobry is now online
[12:25:18] bobry is now away
[12:25:18] bobry is now away
[12:25:30] bobry is now away
[12:25:30] bobry is now online
[12:25:30] bobry is now online
[12:27:41] bobry is now online
[12:27:57] kwis is now online
[12:32:43] bobry is now online
[12:33:29] kwis is now away
[12:33:46] bobry is now away
[12:33:46] bobry is now away
[12:37:45] bobry is now away
[12:42:49] bobry is now away
[12:43:29] kwis is now xa
[12:44:26] Сволота is now away
[12:45:34] bobry is now away
[12:45:34] bobry is now online
[12:45:34] bobry is now online
[12:45:42] Сволота is now online
[12:45:47] d1ffuz0r is now offline
[12:45:48] d1ffuz0r is now online
[12:47:51] bobry is now online
[12:50:58] Сволота is now away
[12:51:05] bobry is now away
[12:51:05] bobry is now away
[12:51:05] bobry is now away
[12:51:05] bobry is now away
[12:52:35] bobry is now away
[12:52:35] bobry is now online
[12:52:35] bobry is now online
[12:52:54] bobry is now online
[12:54:20] Сволота is now online
[12:54:56] nmk is now offline
[12:56:24] nmk is now online
[12:57:57] bobry is now online
[12:58:33] gigimon is now online
[12:59:36] Сволота is now away
[13:00:58] Сволота is now online
[13:03:00] bobry is now online
[13:06:02] Сволота is now away
[13:07:17] nmk is now offline
[13:08:05] bobry is now online
[13:10:31] xa4a is now away
[13:10:34] xa4a is now online
[13:11:02] Сволота is now online
[13:13:08] bobry is now online
[13:13:25] kwis is now online
[13:13:26] gf is now offline
[13:16:06] Сволота is now away
[13:16:26] Сволота is now online
[13:17:34] d1ffuz0r is now offline
[13:17:35] d1ffuz0r is now online
[13:18:10] bobry is now online
[13:18:33] kwis is now away
[13:23:13] bobry is now online
[13:23:46] Сволота is now away
[13:25:22] bodrich is now chat
[13:25:29] nmk is now online
[13:25:54] bodrich: может кто дать ссылку на простой telnet-клиент на питоне ?)
[13:26:00] bodrich: с python.org немного глючный
[13:28:16] bobry is now online
[13:28:16] Сволота is now online
[13:28:33] kwis is now xa
[13:33:19] bobry is now online
[13:34:48] Vit@liy is now away
[13:35:52] nmk is now offline
[13:38:24] bobry is now online
[13:38:25] Vit@liy is now Tkabber - всё работает. Качай на tkabber.jabber.ru
[13:41:04] Сволота is now away
[13:41:14] Сволота is now online
[13:41:27] bobry is now away
[13:41:27] bobry is now away
[13:41:27] bobry is now away
[13:42:47] bodrich: а если быть точнее, то write(buffer) блокирует соединение, как его снова разблокировать ?)
[13:43:27] bobry is now away
[13:43:34] Vit@liy is now away
[13:44:18] Typhon is now online
[13:47:27] Vit@liy is now Tkabber - всё работает. Качай на tkabber.jabber.ru
[13:48:15] xa4a: bodrich: ты что-то делаешь не так
[13:48:29] bobry is now away
[13:48:30] xa4a: а если блокирует, то разблокировать - вычитать на сервере сокет
[13:49:44] bodrich: а полностью, весь текст от telnet-клиента как принять ? read_all() что-то не работает (
[13:53:03] bodrich: Read all data until EOF; block until connection closed.
[13:53:31] bobry is now away
[13:53:44] Typhon is now offline
[13:54:00] Tony is now away
[13:57:22] kwis is now online
[13:57:25] Sevenov is now online
[13:58:35] bobry is now away
[14:02:42] kwis is now away
[14:03:30] Сволота is now away
[14:03:36] Сволота is now online
[14:03:39] bobry is now away
[14:03:40] Typhon is now online
[14:06:44] bodrich is now away
[14:08:24] Vit@liy is now away
[14:08:41] bobry is now away
[14:09:02] Vit@liy is now Tkabber - всё работает. Качай на tkabber.jabber.ru
[14:10:33] bodrich is now chat
[14:12:42] kwis is now xa
[14:13:43] bobry is now away
[14:13:43] bobry is now online
[14:13:43] bobry is now online
[14:13:44] bobry is now online
[14:18:47] bobry is now online
[14:19:00] Tony is now xa
[14:21:11] vw is now online
[14:21:11] vw is now online
[14:22:02] vw is now online
[14:23:51] bobry is now online
[14:27:05] vw is now online
[14:28:55] bobry is now online
[14:30:38] Сволота is now away
[14:32:07] vw is now online
[14:33:59] bobry is now online
[14:36:42] Сволота is now online
[14:37:10] vw is now online
[14:39:04] bobry is now online
[14:41:44] Сволота is now away
[14:42:15] vw is now online
[14:44:09] bobry is now online
[14:44:36] Сволота is now online
[14:47:18] vw is now online
[14:48:22] gigimon is now offline
[14:48:33] Typhon is now offline
[14:49:12] bobry is now online
[14:49:50] Сволота is now away
[14:51:36] Typhon is now online
[14:51:37] bodrich: разве не у кого нету telnet-клиента, который поддерживает сразу ввод/вывод ?(
[14:52:22] vw is now online
[14:52:32] d1ffuz0r: видимо нет
[14:54:16] bobry is now online
[14:54:50] Сволота is now online
[14:57:09] xa4a: !g python telnet client
[14:57:25] vw is now online
[14:57:36] bodrich: не то(
[14:57:45] bodrich: я уже несколько раз туда заходил
[14:58:09] bodrich: там скрипт, который указан в примере, подключается, принимает данные, отправляет данные и отключается
[14:58:57] xa4a: там же целая страница разных функций
[14:59:03] xa4a: это же программирование
[14:59:13] xa4a: возьми библиотечные функции, расставь их как тебе нравится в коде
[14:59:16] bodrich: угу, только фиг поймешь как они работают
[14:59:20] bobry is now online
[14:59:24] xa4a: там же написано под каждой функцие
[14:59:25] xa4a: й
[14:59:37] bodrich: а я не понимаю что там написано Ж)
[14:59:59] bodrich: Read all data until EOF; block until connection closed. пишу tn.read_all() и скрипт виснет
[15:00:02] Сволота is now away
[15:00:08] xa4a: block until connection closed
[15:00:12] xa4a: там так и написано
[15:00:18] xa4a: что будет висеть, пока не закроется соединение
[15:00:23] xa4a: ты английский знаешь?
[15:00:50] bodrich: знаю, но если я правильно понял, то сначала должен выдаваться текст, который принялся, а потом уже висеть
[15:01:10] xa4a: э..
[15:01:14] xa4a: ты не правильно понял
[15:01:23] xa4a: висит = не возвращает результат, а висит
[15:01:25] xa4a: и ждёт
[15:01:29] xa4a: это называется блоировка
[15:01:33] xa4a: !g blocking io
[15:01:57] bodrich: а какая функция значит возвращает принятый текст, и не блокирует скрипт ?)
[15:02:30] vw is now online
[15:02:40] xa4a: там ещё 7 ф-ий read_* осталось
[15:02:46] xa4a: можешь попробовать по порядку
[15:02:52] xa4a: методом тыка. если читать описания не хочешь
[15:03:20] xa4a: а может ты сразу захочешь посмотреть на метод interact(
[15:03:35] xa4a: но ты этого не узнаешь, пока не попробуешь и не почитаешь документации
[15:04:23] bobry is now online
[15:04:29] Typhon is now offline
[15:05:04] Сволота is now online
[15:07:34] vw is now online
[15:09:29] bobry is now online
[15:11:56] bobry is now away
[15:11:56] bobry is now away
[15:11:56] bobry is now away
[15:12:37] vw is now online
[15:13:05] bobry is now away
[15:13:05] bobry is now online
[15:13:05] bobry is now online
[15:13:06] Сволота is now away
[15:14:32] bobry is now online
[15:16:09] bodrich is now away
[15:17:40] vw is now online
[15:18:06] Сволота is now online
[15:19:34] bobry is now online
[15:22:44] vw is now online
[15:23:05] bobry is now away
[15:23:05] bobry is now away
[15:23:06] Сволота is now away
[15:24:38] bobry is now away
[15:26:06] Сволота is now online
[15:27:48] vw is now online
[15:29:42] bobry is now away
[15:32:38] bobry is now away
[15:32:38] bobry is now online
[15:32:39] bobry is now online
[15:32:51] vw is now online
[15:32:58] Сволота is now away
[15:33:24] Сволота is now online
[15:34:46] bobry is now online
[15:36:09] bodrich is now xa
[15:37:52] Sevenov is now offline
[15:37:56] vw is now online
[15:38:18] kwis is now online
[15:39:25] bodrich is now chat
[15:39:51] bobry is now online
[15:40:14] Сволота is now away
[15:40:26] Сволота is now online
[15:41:14] xa4a: /me не понимает, почему бы, раз уже делать асинхронный http клиент, то не приделать ему колбеков на куски ответа, а оставить только один для обработки результата..
[15:41:17] xa4a: /me презирает tornado
[15:42:59] vw is now online
[15:43:19] kwis is now away
[15:44:54] bobry is now online
[15:45:20] bobry is now away
[15:45:20] bobry is now away
[15:45:20] bobry is now away
[15:45:27] kwis is now online
[15:46:29] bobry is now away
[15:46:29] bobry is now online
[15:46:30] bobry is now online
[15:48:02] vw is now online
[15:49:25] bodrich is now away
[15:49:31] xa4a: а, нет. можно.
[15:49:58] bobry is now online
[15:50:04] Сволота is now away
[15:50:37] kwis is now away
[15:53:07] vw is now online
[15:54:58] bobry is now away
[15:54:58] bobry is now away
[15:54:58] bobry is now away
[15:55:01] bobry is now away
[15:55:22] Сволота is now online
[15:58:10] vw is now online
[16:00:03] bobry is now away
[16:00:22] Сволота is now away
[16:00:37] kwis is now xa
[16:03:14] vw is now online
[16:03:56] Сволота is now online
[16:05:06] bobry is now away
[16:08:16] vw is now online
[16:09:25] bodrich is now xa
[16:10:11] bobry is now away
[16:13:19] vw is now online
[16:15:14] bobry is now away
[16:15:28] bodrich is now chat
[16:17:56] d1ffuz0r is now offline
[16:18:22] vw is now online
[16:20:17] bobry is now away
[16:23:26] vw is now online
[16:25:21] bobry is now away
[16:26:14] Сволота is now away
[16:27:03] kwis is now online
[16:28:30] vw is now online
[16:29:35] bodrich: write a string to the socket, doubling any IAC characters. Что значит любой удвоенный IAC символ ?:)
[16:30:25] bobry is now away
[16:32:55] kwis is now away
[16:33:17] kwis is now online
[16:33:33] vw is now online
[16:34:09] xa4a: не удвоенный, а удваивая, может?
[16:34:37] bodrich: мб
[16:34:43] bodrich: я плохо знаю анг.язык
[16:35:28] bobry is now away
[16:36:10] cutwater is now online
[16:36:14] Сволота is now xa
[16:36:28] Vit@liy: или "дублируя"
[16:38:36] vw is now online
[16:40:30] bobry is now away
[16:43:40] vw is now online
[16:44:53] kwis is now away
[16:44:59] kwis is now online
[16:45:33] bobry is now away
[16:48:42] vw is now online
[16:50:36] bobry is now away
[16:53:14] bodrich: вот так записывает tn.write(b'2\n'), а как сделать тоже самое но с переменной, т.е. s="2\n"
tn.write(s) не работает
[16:53:45] vw is now online
[16:54:46] Vit@liy: tn.write(byte(s))
[16:54:57] Vit@liy: или какая там функция для конвертирования?
[16:55:26] bodrich: bytes кажетца
[16:55:39] bobry is now away
[16:55:43] kwis is now away
[16:55:48] bodrich: string argument without an encoding
[16:55:57] bodrich: не хочет гад (
[16:56:15] kwis is now online
[16:58:15] bodrich: гм, функция bytes только числа конвертирует
[16:58:49] vw is now online
[17:00:43] bobry is now away
[17:01:21] kwis is now away
[17:02:05] kwis is now online
[17:03:52] vw is now online
[17:04:57] Сволота is now online
[17:05:00] Vit@liy is now away
[17:05:47] bobry is now away
[17:07:05] kwis is now away
[17:08:55] vw is now online
[17:09:16] bodrich: 'in <string>' requires string as left operand, not bytes
[17:09:21] bodrich: вот так то :)
[17:09:34] bodrich: как перевести строку в bytes ?
[17:10:52] bobry is now away
[17:11:21] kwis is now online
[17:13:45] Сволота is now away
[17:13:59] vw is now online
[17:14:58] Vit@liy is now xa
[17:15:55] bobry is now away
[17:17:11] Сволота is now online
[17:19:02] vw is now online
[17:19:21] kwis is now away
[17:21:00] bobry is now away
[17:21:33] kwis is now online
[17:23:36] bodrich: а функция неблокирующего ввода есть ?
[17:23:53] bodrich: т.е. функция input блокирует скрипт, пока не получит какой либо символ
[17:24:05] vw is now online
[17:26:05] bobry is now away
[17:26:33] kwis is now away
[17:27:47] Сволота is now away
[17:29:09] vw is now online
[17:31:09] bobry is now away
[17:31:37] kwis is now online
[17:32:21] Vit@liy is now Tkabber - всё работает. Качай на tkabber.jabber.ru
[17:32:47] Сволота is now online
[17:34:12] vw is now online
[17:35:05] xa4a: bodrich: что значит неблокирующего ввода?
[17:36:12] bobry is now away
[17:37:04] xa4a: bodrich: омжет ты хочешь запустить input() в отдельном треде
[17:37:13] xa4a: я снова не могу распарсить твой запрос
[17:37:59] xa4a: хм.. а можно как-то в pycurl убить запрос, который в процессе?
[17:39:03] bodrich is now away
[17:39:15] vw is now online
[17:41:15] bobry is now away
[17:44:18] vw is now online
[17:45:17] kwis is now away
[17:46:17] bobry is now away
[17:49:23] vw is now online
[17:51:21] bobry is now away
[17:53:53] kwis is now online
[17:54:26] vw is now online
[17:56:21] xa4a: эгм. вернуть из колбека какое-то левое чилсо и он сам сдохнет :\
[17:56:25] bobry is now away
[17:59:03] bodrich is now xa
[17:59:29] vw is now online
[18:00:13] kwis is now away
[18:01:30] bobry is now away
[18:04:32] vw is now online
[18:06:32] bobry is now away
[18:08:31] bobry is now away
[18:08:31] bobry is now online
[18:08:32] bobry is now online
[18:09:36] vw is now online
[18:10:13] kwis is now xa
[18:11:36] bobry is now online
[18:11:41] Vit@liy is now away
[18:14:40] vw is now online
[18:15:11] bobry is now away
[18:15:12] bobry is now away
[18:16:38] bobry is now away
[18:17:24] Vit@liy is now Tkabber - всё работает. Качай на tkabber.jabber.ru
[18:18:08] bobry is now away
[18:18:09] bobry is now online
[18:18:09] bobry is now online
[18:18:15] Сволота is now away
[18:19:44] vw is now online
[18:21:42] bobry is now online
[18:22:23] Vit@liy: bodrich: для конвертации строки вроде это тебе нужно http://docs.python.org/release/3.1.3/library/functions.html#bytearray
[18:23:15] Сволота is now online
[18:24:47] vw is now online
[18:26:44] Tony is now online
[18:26:47] bobry is now online
[18:28:17] Сволота is now away
[18:28:27] Сволота is now online
[18:29:51] vw is now online
[18:30:12] bobry is now away
[18:30:13] bobry is now away
[18:30:36] bobry is now away
[18:30:36] bobry is now online
[18:30:37] bobry is now online
[18:31:51] bobry is now online
[18:34:54] vw is now online
[18:35:44] bobry is now away
[18:35:45] bobry is now away
[18:36:47] Сволота is now away
[18:36:50] Сволота is now online
[18:36:54] bobry is now away
[18:39:58] vw is now online
[18:41:57] bobry is now away
[18:42:17] Сволота is now away
[18:44:31] Vit@liy is now away
[18:45:02] vw is now online
[18:46:42] Vit@liy is now Tkabber - всё работает. Качай на tkabber.jabber.ru
[18:47:00] bobry is now away
[18:47:19] Сволота is now online
[18:49:32] Typhon is now online
[18:50:06] vw is now online
[18:52:03] bobry is now away
[18:54:13] Vit@liy is now away
[18:54:29] dicos is now online
[18:55:11] vw is now online
[18:56:08] bodrich is now chat
[18:57:00] Vit@liy is now Tkabber - всё работает. Качай на tkabber.jabber.ru
[18:57:06] bobry is now away
[18:59:09] bodrich: xa4a: т.е. я хочу сделать, чтобы скрипт не останавливался, когда встречал ввод
[19:00:14] vw is now online
[19:02:09] bobry is now away
[19:03:04] rst is now Доступен
[19:04:14] bodrich: в си это функция getc
[19:05:18] vw is now online
[19:07:12] bobry is now away
[19:07:35] Сволота is now away
[19:10:21] vw is now online
[19:11:27] Сволота is now online
[19:12:17] bobry is now away
[19:15:24] vw is now online
[19:15:45] xa4a is now online
[19:17:19] bobry is now away
[19:19:05] bobry is now away
[19:19:06] bobry is now online
[19:19:06] bobry is now online
[19:19:57] rst is now offline
[19:20:28] vw is now online
[19:20:47] xa4a is now away
[19:20:47] xa4a is now away
[19:20:51] xa4a is now online
[19:22:14] Tony is now away
[19:22:21] bobry is now online
[19:25:31] vw is now online
[19:25:35] bobry is now away
[19:25:35] bobry is now away
[19:25:36] bobry is now away
[19:25:56] dicos is now away
[19:25:57] dicos is now away
[19:26:59] Vit@liy is now away
[19:27:05] dicos is now away
[19:27:06] dicos is now online
[19:27:08] Vit@liy is now Tkabber - всё работает. Качай на tkabber.jabber.ru
[19:27:25] bobry is now away
[19:30:31] Typhon is now away
[19:30:33] vw is now online
[19:31:17] xa4a: в си функция getc жд'т, пока ті не введ'шь символ
[19:31:55] xa4a: останавливается и жд'т
[19:31:58] xa4a: ждёт
[19:32:02] xa4a: я не пойму чего ты хочешь
[19:32:15] bodrich: чтобы скрипт не останавливался
[19:32:18] bodrich: при вводе
[19:32:27] xa4a: а что ему делать при вводе?
[19:32:29] bobry is now away
[19:32:35] bodrich: работать Ж)
[19:32:41] xa4a: конктретнее
[19:33:20] bodrich: т.е. я пишу telnet-клиент, с функцией input там проблемы, ибо она ждет ввода, и пока ты что нибудь не введешь в нее, то ответ от сервера не прочитается
[19:33:42] xa4a: вот как..
[19:33:53] xa4a: тебе нужно два потока
[19:34:09] xa4a: один читает данные с клавиатуры и отправляет серверу, а другой - читает с сервера и выводит на экран
[19:34:38] bodrich: а можно на простом примере показать ?
[19:34:56] bodrich: например один поток выводит на экран переменную S, а другой с клавиатуры вводит в нее данные
[19:35:39] vw is now online
[19:37:32] bobry is now away
[19:39:48] xa4a: http://paste.in.ua/3123/
[19:40:04] xa4a: http://www.ibm.com/developerworks/aix/library/au-threadingpython/
[19:40:31] Typhon is now xa
[19:40:42] vw is now online
[19:41:08] bodrich: спс
[19:41:21] cheshirecat is now online
[19:41:56] Vit@liy is now away
[19:42:35] bobry is now away
[19:43:17] Typhon is now online
[19:45:02] Vit@liy is now Tkabber - всё работает. Качай на tkabber.jabber.ru
[19:45:04] d1ffuz0r is now online
[19:45:46] vw is now online
[19:47:14] Tony is now xa
[19:47:39] bobry is now away
[19:49:32] ds.tihonov is now дома! :)
[19:50:49] vw is now online
[19:52:41] bobry is now away
[19:53:25] vw is now away
[19:53:26] vw is now away
[19:55:01] bodrich: гм,не работает :) т.е. все равно ввод ожидает, и только после него выводит принятый от сервера текст
[19:55:52] vw is now away
[19:56:34] vw is now online
[19:56:35] vw is now online
[19:57:43] bobry is now away
[19:59:58] bodrich: если судит по вашему примеру, то надо чтобы каждую секунду работала вот эта функция print 'S: %s' % S
[20:00:57] vw is now online
[20:01:53] Vit@liy is now away
[20:02:46] bobry is now away
[20:03:07] bodrich: возможно это бага 3.2 версии
[20:03:17] xa4a: это вряд ли бага
[20:03:52] bodrich: ведь судя по вашему коду, каждую секунду должно выводиться S ?
[20:05:43] Vit@liy is now Tkabber - всё работает. Качай на tkabber.jabber.ru
[20:05:59] vw is now online
[20:07:16] Сволота is now away
[20:07:27] Typhon is now away
[20:07:51] bobry is now away
[20:10:20] gigimon is now online
[20:10:57] Typhon is now online
[20:11:04] vw is now online
[20:12:16] Сволота is now online
[20:12:55] bobry is now away
[20:15:05] cheshirecat is now away
[20:15:08] bobry is now away
[20:15:09] bobry is now online
[20:15:09] bobry is now online
[20:15:09] cheshirecat is now away
[20:16:06] vw is now online
[20:17:33] bodrich is now away
[20:17:45] Vit@liy is now away
[20:18:00] bobry is now online
[20:19:12] Vit@liy is now Tkabber - всё работает. Качай на tkabber.jabber.ru
[20:19:35] cheshirecat is now away
[20:19:38] cheshirecat is now online
[20:20:27] bobry is now away
[20:20:27] bobry is now away
[20:20:27] bobry is now away
[20:21:09] gigimon is now offline
[20:21:09] gigimon is now online
[20:21:10] vw is now online
[20:23:03] bobry is now away
[20:24:36] cheshirecat is now away
[20:24:40] cheshirecat is now away
[20:24:50] deepwalker is now online
[20:25:27] xa4a: да
[20:26:14] vw is now online
[20:26:36] Сволота is now away
[20:28:04] bobry is now away
[20:30:55] bodrich is now chat
[20:30:59] kwis is now online
[20:31:13] bodrich: странно
[20:31:17] vw is now online
[20:31:26] bodrich: оно только после ввода S выдается
[20:31:30] bobry is now away
[20:31:30] bobry is now online
[20:31:30] bobry is now online
[20:31:36] Сволота is now online
[20:32:04] cheshirecat is now away
[20:32:07] cheshirecat is now online
[20:32:32] vw is now away
[20:32:33] vw is now away
[20:33:08] bobry is now online
[20:35:11] vw is now online
[20:35:12] vw is now online
[20:36:01] kwis is now away
[20:36:19] vw is now online
[20:37:04] cheshirecat is now away
[20:37:08] cheshirecat is now away
[20:37:49] cheshirecat is now away
[20:37:52] cheshirecat is now online
[20:38:11] bobry is now online
[20:38:21] kwis is now online
[20:38:33] bobry is now away
[20:38:34] bobry is now away
[20:38:34] bobry is now away
[20:40:45] bobry is now away
[20:40:46] bobry is now online
[20:40:46] bobry is now online
[20:41:02] Сволота is now away
[20:41:23] vw is now online
[20:41:32] Сволота is now online
[20:41:57] d1ffuz0r is now offline
[20:41:58] d1ffuz0r is now online
[20:42:22] nmk is now online
[20:43:14] bobry is now online
[20:45:59] bobry is now away
[20:46:00] bobry is now away
[20:46:00] bobry is now away
[20:46:26] vw is now online
[20:46:58] n0de@jabber.ru is now online
[20:47:04] Сволота is now away
[20:47:27] kwis is now away
[20:48:17] bobry is now away
[20:51:30] vw is now online
[20:52:04] Сволота is now online
[20:53:21] bobry is now away
[20:55:56] bodrich is now away
[20:56:34] vw is now online
[20:57:27] kwis is now xa
[20:57:40] Сволота is now away
[20:58:24] bobry is now away
[20:58:35] nmk is now offline
[21:00:24] xa4a: вряд ли
[21:01:31] d1ffuz0r is now offline
[21:01:32] d1ffuz0r is now online
[21:01:37] vw is now online
[21:02:40] Сволота is now online
[21:03:26] bobry is now away
[21:05:45] vw is now offline
[21:06:02] bobry is now away
[21:06:03] bobry is now online
[21:06:03] bobry is now online
[21:06:08] Typhon is now offline
[21:08:30] bobry is now online
[21:08:47] Typhon is now online
[21:13:33] bobry is now online
[21:13:48] Сволота is now away
[21:14:07] bobry is now away
[21:14:08] bobry is now away
[21:14:08] bobry is now away
[21:15:56] bodrich is now xa
[21:17:54] Сволота is now online
[21:18:36] bobry is now away
[21:23:29] Сволота is now away
[21:23:41] bobry is now away
[21:26:30] Сволота is now online
[21:26:56] dicos is now offline
[21:28:43] bobry is now away
[21:32:05] n0de@jabber.ru is now offline
[21:33:25] n0de@jabber.ru is now online
[21:33:46] bobry is now away
[21:36:50] Typhon is now away
[21:38:16] Typhon is now online
[21:38:30] Сволота is now away
[21:38:33] n0de@jabber.ru is now offline
[21:38:48] n0de@jabber.ru is now
[21:38:50] bobry is now away
[21:40:53] n0de@jabber.ru is now offline
[21:41:08] n0de@jabber.ru is now online
[21:43:03] ds.tihonov is now offline
[21:43:30] Сволота is now online
[21:43:53] bobry is now away
[21:45:50] Typhon is now away
[21:46:00] Typhon is now online
[21:48:37] Сволота is now away
[21:48:58] bobry is now away
[21:49:12] Сволота is now online
[21:50:58] n0de@jabber.ru is now offline
[21:51:19] n0de@jabber.ru is now
[21:54:01] bobry is now away
[21:54:41] n0de@jabber.ru is now offline
[21:55:47] n0de@jabber.ru is now
[21:58:37] kwis is now online
[21:59:05] bobry is now away
[22:00:32] Сволота is now away
[22:01:24] gf is now online
[22:01:39] xa4a is now online
[22:02:14] gf is now offline
[22:04:02] gf is now online
[22:04:08] bobry is now away
[22:05:33] Сволота is now online
[22:05:33] xa4a is now online
[22:09:13] bobry is now away
[22:14:15] bobry is now away
[22:15:32] n0de@jabber.ru is now offline
[22:17:06] Сволота is now away
[22:19:17] bobry is now away
[22:20:46] n0de@jabber.ru is now
[22:22:07] Сволота is now online
[22:22:56] kwis is now away
[22:24:06] kwis is now online
[22:24:21] bobry is now away
[22:28:09] Сволота is now away
[22:29:24] bobry is now away
[22:29:27] nmk is now online
[22:30:14] Сволота is now online
[22:30:52] n0de@jabber.ru is now offline
[22:31:08] n0de@jabber.ru is now
[22:33:32] nmk is now offline
[22:34:27] bobry is now away
[22:34:32] nmk is now online
[22:34:55] nmk is now offline
[22:36:47] n0de@jabber.ru is now offline
[22:37:37] bobry is now away
[22:37:37] bobry is now online
[22:37:37] bobry is now online
[22:38:08] kostafey is now Доступен
[22:38:08] kostafey is now Доступен
[22:39:30] bobry is now online
[22:41:52] kostafey is now Доступен
[22:42:22] n0de@jabber.ru is now Да, я здесь.
[22:44:34] bobry is now online
[22:46:55] kostafey is now Доступен
[22:49:36] bobry is now online
[22:51:58] kostafey is now Доступен
[22:54:39] bobry is now online
[22:54:43] gf is now offline
[22:57:00] kostafey is now Доступен
[22:57:22] Сволота is now away
[22:59:42] bobry is now online
[23:00:55] Vit@liy is now offline
[23:01:20] xa4a is now online
[23:01:49] bobry is now away
[23:01:49] bobry is now away
[23:01:49] bobry is now away
[23:02:03] kostafey is now Доступен
[23:02:24] Сволота is now online
[23:02:36] Typhon is now away
[23:04:34] bobry is now away
[23:04:34] bobry is now online
[23:04:34] bobry is now online
[23:04:37] Vit@liy is now Tkabber - всё работает. Качай на tkabber.jabber.ru
[23:04:45] bobry is now online
[23:06:22] xa4a is now away
[23:07:08] kostafey is now Доступен
[23:08:01] Сволота is now away
[23:08:03] Сволота is now online
[23:09:49] bobry is now online
[23:12:10] kostafey is now Доступен
[23:12:36] Typhon is now xa
[23:13:35] Сволота is now away
[23:14:53] bobry is now online
[23:17:13] kostafey is now Доступен
[23:18:34] Сволота is now online
[23:19:56] bobry is now online
[23:21:50] Typhon is now online
[23:22:16] kostafey is now Доступен
[23:23:51] Сволота is now away
[23:25:00] bobry is now online
[23:27:18] kostafey is now Доступен
[23:28:50] Сволота is now online
[23:30:01] bobry is now online
[23:32:22] kostafey is now Доступен
[23:35:05] bobry is now online
[23:37:24] kostafey is now Доступен
[23:37:48] Сволота is now away
[23:40:08] bobry is now online
[23:42:25] kostafey is now Доступен
[23:42:51] Сволота is now online
[23:44:21] n0de@jabber.ru is now offline
[23:45:12] bobry is now online
[23:47:28] kostafey is now Доступен
[23:47:29] xa4a is now away
[23:47:32] xa4a is now online
[23:48:07] Сволота is now away
[23:50:14] bobry is now online
[23:51:27] Сволота is now online
[23:52:31] kostafey is now Доступен
[23:55:17] bobry is now online
[23:55:39] cheshirecat is now away
[23:55:43] cheshirecat is now away
[23:57:33] kostafey is now Доступен
[23:57:39] cheshirecat is now away
[23:57:42] cheshirecat is now online
[23:57:50] Сволота is now away