[00:00:55] opka: напишу, а что дальше? :)
[00:01:21] fuzzy: дальше этот алгоритм будет легко переложить на твой квадрат
[00:01:38] fuzzy: твой алгоритм будет считать координаты i и j в матрице, которые вывести
[00:01:59] fuzzy: это же могут быть новые координаты для твоего квадрата, если ты их умножишь на размер клетки
[00:02:15] fuzzy: и соответственно там, где твой матричный алгоритм остановится - там же остановится и квадратный
[00:02:34] opka: а, ну в принципе да, вариант
[00:04:52] opka: так, сперва разберусь с jq и сделаю это на чистом js, потом серединка. спс fuzzy!
[00:08:04] gigimon is now online
[00:11:33] emese is now offline
[00:21:08] Tony is now xa
[00:21:34] opka is now offline
[00:23:54] levsha is now away
[00:23:57] AlexZenon is now offline
[00:25:31] ambush is now offline
[00:28:02] levsha is now offline
[00:29:23] levsha is now online
[00:31:54] fuzzy is now away
[00:42:13] fuzzy is now online
[00:47:53] огыешсук is now online
[00:47:56] levsha is now offline
[01:05:10] opka is now online
[01:05:16] opka is now offline
[01:33:20] gigimon is now offline
[01:35:00] fuzzy is now away
[01:36:01] огыешсук is now online
[01:36:29] огыешсук is now away
[01:39:10] огыешсук is now offline
[01:49:26] fuzzy is now away
[02:19:36] blw0rm is now xa
[02:19:36] Сволота is now online
[02:19:36] Tony is now xa
[02:19:36] magister is now online
[02:19:36] vaal is now online
[02:19:36] yugo-salem is now online
[02:19:36] ds.tihonov is now дома! :)
[02:19:36] bliznezz is now away
[02:19:36] fuzzy is now away
[02:19:36] remo is now online
[02:19:36] metall1c is now xa
[02:19:36] magic_pony is now online
[02:19:36] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[02:35:39] remo is now offline
[02:37:34] remo is now online
[02:48:09] vaal is now away
[02:48:09] vaal is now away
[03:00:32] remo is now offline
[03:02:32] remo is now online
[03:10:06] fuzzy is now away
[03:24:43] vaal is now online
[03:24:46] vaal is now offline
[03:54:51] blw0rm is now xa
[03:54:51] Сволота is now online
[03:54:51] Tony is now xa
[03:54:51] magister is now online
[03:54:51] bliznezz is now away
[03:54:51] yugo-salem is now online
[03:54:51] ds.tihonov is now дома! :)
[03:54:51] remo is now online
[03:54:51] fuzzy is now away
[03:54:51] metall1c is now xa
[03:54:51] magic_pony is now online
[03:54:51] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[04:00:59] remo is now offline
[04:31:02] blw0rm is now xa
[04:31:02] Сволота is now online
[04:31:02] Tony is now xa
[04:31:02] magister is now online
[04:31:02] bliznezz is now away
[04:31:02] yugo-salem is now online
[04:31:02] ds.tihonov is now дома! :)
[04:31:02] fuzzy is now away
[04:31:02] metall1c is now xa
[04:31:02] magic_pony is now online
[04:31:02] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[05:01:13] blw0rm is now xa
[05:01:13] Сволота is now online
[05:01:13] Tony is now xa
[05:01:13] magister is now online
[05:01:13] bliznezz is now away
[05:01:13] yugo-salem is now online
[05:01:13] ds.tihonov is now дома! :)
[05:01:13] fuzzy is now away
[05:01:13] metall1c is now xa
[05:01:13] magic_pony is now online
[05:01:13] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[05:31:24] blw0rm is now xa
[05:31:24] Сволота is now online
[05:31:24] Tony is now xa
[05:31:24] magister is now online
[05:31:24] bliznezz is now away
[05:31:24] yugo-salem is now online
[05:31:24] ds.tihonov is now дома! :)
[05:31:24] fuzzy is now away
[05:31:24] metall1c is now xa
[05:31:24] magic_pony is now online
[05:31:24] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[05:43:18] fuzzy is now away
[05:47:50] Magister Yoda is now online
[05:53:18] fuzzy is now away
[05:56:51] fuzzy is now away
[06:01:48] dicos is now online
[06:31:58] blw0rm is now xa
[06:31:58] Сволота is now online
[06:31:58] Tony is now xa
[06:31:58] magister is now online
[06:31:58] bliznezz is now away
[06:31:58] yugo-salem is now online
[06:31:58] ds.tihonov is now дома! :)
[06:31:58] fuzzy is now away
[06:31:58] metall1c is now xa
[06:31:58] Magister Yoda is now online
[06:31:58] dicos is now online
[06:31:58] magic_pony is now online
[06:31:58] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[06:38:22] Magister Yoda is now away
[06:43:02] dicos is now away
[06:43:03] dicos is now away
[06:45:33] Magister Yoda is now online
[06:45:41] dicos is now away
[06:45:42] dicos is now online
[06:56:46] Magister Yoda is now away
[06:58:40] Magister Yoda is now online
[07:00:15] Сволота is now away
[07:10:15] Сволота is now xa
[07:19:58] Magister Yoda is now offline
[07:27:53] dicos is now away
[07:27:54] dicos is now away
[07:32:20] dicos is now away
[07:32:21] dicos is now online
[07:56:31] dicos is now away
[07:56:32] dicos is now away
[07:58:38] dicos is now away
[07:58:39] dicos is now online
[08:13:19] Сволота is now online
[08:20:23] Сволота is now away
[08:24:32] Tony is now online
[08:25:58] dicos is now away
[08:25:59] dicos is now away
[08:28:19] dicos is now away
[08:28:20] dicos is now online
[08:30:23] Сволота is now xa
[08:31:45] Сволота is now online
[08:37:09] Сволота is now away
[08:37:55] VeeSot is now online
[08:47:09] Сволота is now xa
[09:05:41] Сволота is now online
[09:08:14] dicos is now away
[09:08:15] dicos is now away
[09:09:08] dicos is now away
[09:09:09] dicos is now online
[09:09:17] огыешсук is now online
[09:10:43] Сволота is now away
[09:11:43] Сволота is now online
[09:16:59] VeeSot: Добрый день.
Как создать задачу(просто принимаем от юзера строку) которая выполнится через определеное время и выведет эту строку в стандартный выход.
Крон использовать нерекомендуется,потоки(треды) - нельзя.
Причем программа не должна блокироваться после приема параметров,то бишь банальный timer.sleep - не подходит.
Я вижу это так - породить процесс и забыть про него,переключиться на ожиданние ввода от юзера.
Использовать только стадартную библиотеку.
[09:17:55] Сволота is now away
[09:19:13] VeeSot: может использовать subprocess?
[09:22:55] Сволота is now online
[09:28:03] Сволота is now away
[09:33:35] Сволота is now online
[09:40:12] огыешсук is now away
[09:40:55] yugo-salem is now offline
[09:40:57] yugo-salem is now online
[09:42:30] огыешсук is now online
[09:42:32] огыешсук is now online
[09:45:27] Сволота is now away
[09:48:07] Сволота is now online
[09:52:00] VeeSot is now away
[09:53:09] Сволота is now away
[10:02:00] VeeSot is now xa
[10:03:09] Сволота is now xa
[10:03:38] VeeSot is now online
[10:08:02] dicos is now away
[10:08:03] dicos is now away
[10:09:19] slav0nic is now online
[10:10:55] Сволота is now online
[10:12:17] огыешсук is now online
[10:12:19] огыешсук is now away
[10:12:46] VeeSot is now away
[10:13:59] огыешсук is now away
[10:16:01] Сволота is now away
[10:22:46] VeeSot is now xa
[10:24:21] Сволота is now online
[10:24:34] VeeSot is now online
[10:26:10] yugo-salem is now away
[10:30:26] VeeSot is now away
[10:32:59] yugo-salem is now online
[10:33:25] Сволота is now away
[10:33:33] Сволота is now online
[10:35:22] blw0rm is now online
[10:40:21] Сволота is now away
[10:40:26] VeeSot is now xa
[10:41:30] VeeSot is now online
[10:47:22] VeeSot is now away
[10:48:05] Сволота is now online
[10:53:07] Сволота is now away
[10:54:43] mishok13 is now online
[10:57:22] VeeSot is now xa
[10:58:47] dicos is now away
[10:58:48] dicos is now online
[10:59:33] AlexZenon is now online
[11:01:31] Сволота is now online
[11:02:54] opka is now online
[11:07:29] Сволота is now away
[11:11:14] VeeSot is now online
[11:12:59] levsha is now online
[11:14:16] gigimon is now online
[11:16:22] opka is now offline
[11:17:29] Сволота is now xa
[11:17:34] огыешсук is now away
[11:17:36] огыешсук is now online
[11:21:45] ambush is now away
[11:23:36] fuzzy is now away
[11:26:50] blw0rm is now away
[11:27:40] blw0rm is now online
[11:29:24] fuzzy is now away
[11:29:54] fuzzy is now online
[11:31:44] ambush is now xa
[11:33:37] Сволота is now online
[11:38:43] Сволота is now away
[11:39:55] Сволота is now online
[11:40:15] dicos is now away
[11:40:16] dicos is now away
[11:41:09] dicos is now away
[11:41:10] dicos is now online
[11:41:34] ambush is now online
[11:49:48] fuzzy: VeeSot: смотря насколько наркоманы задали задачу. если питон третий, то можно, например, tulip взять для асинхронности
[11:51:46] VeeSot: fuzzy, питоной второй
[11:52:20] VeeSot: *питоной = питон.Очепятка)
[11:53:00] fuzzy: ну можно subprocess, но это так себе….
[11:53:09] fuzzy: можно попробовать свой ивентлуп запилить
[11:53:43] singularity is now online
[11:53:54] fuzzy: что значит строка выполняется?
[11:55:10] VeeSot: неправильно озвучил.Строка не выполняется а выводтся в стандартный вывод.
[11:55:13] Сволота is now away
[11:57:18] VeeSot: принцип эха.
[11:57:26] VeeSot: но с задержкой.
[11:59:27] Сволота is now online
[12:00:45] fuzzy: ну можно или subprocess, или неблокирующий терминал через select
[12:04:06] emese is now online
[12:06:45] Сволота is now away
[12:11:29] metall1c is now online
[12:11:59] gigimon is now online
[12:15:45] Сволота is now online
[12:16:56] gigimon is now away
[12:20:57] Сволота is now away
[12:21:30] огыешсук is now online
[12:23:14] огыешсук is now online
[12:23:19] ambush is now away
[12:23:21] ambush is now online
[12:29:29] огыешсук is now online
[12:30:57] Сволота is now xa
[12:35:15] Сволота is now online
[12:37:09] levsha is now offline
[12:39:31] огыешсук is now online
[12:40:19] Сволота is now away
[12:40:35] levsha is now online
[12:41:41] огыешсук is now online
[12:42:39] Сволота is now online
[12:43:53] dicos is now away
[12:43:54] dicos is now away
[12:45:37] yugo-salem is now away
[12:49:13] bliznezz is now online
[12:49:32] dicos is now away
[12:49:33] dicos is now online
[12:50:18] gigimon is now online
[12:51:21] ambush is now away
[12:52:11] Сволота is now away
[12:55:33] fuzzy is now away
[12:55:51] dicos is now offline
[12:58:16] yugo-salem is now online
[13:01:20] ambush is now xa
[13:02:11] Сволота is now xa
[13:12:09] ambush is now online
[13:13:09] opka is now online
[13:13:36] Сволота is now online
[13:14:20] opka is now offline
[13:14:21] opka is now online
[13:18:38] Сволота is now away
[13:18:51] ambush is now away
[13:19:37] VeeSot: Шо та нифига не выходит.
from subprocess import Popen, PIPE
child = Popen('print_user_string.py 3.333 efefsd', executable='python2', stdout=PIPE)
child.communicate()
и зависает ожидая сигнала от скрипта.Сам скрипт print_user_string http://dumpz.org/1101608/
[13:20:16] Сволота is now online
[13:22:51] VeeSot: Хотя есть другой вопрос.Предположим я знаю pid терминала в котором был запушен родоначальник всех этих мелких субпроцессов.Как мне вывести в том терминале нужную мне строку?
[13:27:46] Сволота is now away
[13:28:52] ambush is now xa
[13:29:46] Сволота is now online
[13:32:26] огыешсук is now online
[13:34:48] Сволота is now away
[13:34:57] singularity is now offline
[13:34:57] singularity is now online
[13:36:28] огыешсук is now offline
[13:40:57] ambush is now online
[13:42:30] blw0rm is now away
[13:42:50] gigimon: VeeSot: так а документацию кто читать будет? communicate ждет завершения процесса
[13:43:02] gigimon: не юзай communicate и все
[13:44:14] blw0rm is now online
[13:44:31] VeeSot: gigimon, не суть.Я в том скрипте пытался открыть и записать файл(а потом закрыть),чтобы хоть как то проявилось действие.В итоге никакого файла не создано.
[13:44:48] Сволота is now xa
[13:44:56] VeeSot: то бишь не хочет сам скрипт выполняться
[13:45:18] gigimon: скрипт я не смотрел)
[13:45:28] gigimon: а еще ты параметры не правильно ж передаешь
[13:45:44] VeeSot: тут может быть.А как правильно?
[13:45:45] gigimon: они ж списком передаются, либо если хочешь строкой, то shell=true надо
[13:46:35] gigimon: в доке ж все написано
[13:47:44] Сволота is now online
[13:49:28] blw0rm is now away
[13:50:14] blw0rm is now online
[13:50:40] vaal is now online
[13:51:49] VeeSot: Со списком тоже не всё так хорошо.
Popen(['print_user_string.py','3.333','efefsd'], executable='python2', stdout=PIPE)
<subprocess.Popen object at 0x90b7f2c>
print_user_string.py: can't open file '3.333': [Errno 2] No such file or directory
[13:52:46] Сволота is now away
[13:52:58] VeeSot: хотя...
[13:53:48] Сволота is now online
[13:54:35] VeeSot: хотя ничего хорошего даже с использованием переменных.
[13:55:16] blw0rm is now away
[13:55:41] levsha: наверное пора уже таки пойти читать документацию на Popen
[13:59:01] opka is now offline
[13:59:54] fuzzy is now online
[14:03:21] metall1c is now away
[14:05:16] blw0rm is now xa
[14:08:43] yugo-salem is now away
[14:08:58] metall1c is now online
[14:12:16] VeeSot is now away
[14:12:22] Сволота is now away
[14:12:48] VeeSot is now online
[14:14:22] yugo-salem is now online
[14:14:48] Сволота is now online
[14:16:34] blw0rm is now online
[14:19:27] dicos is now online
[14:19:52] Сволота is now away
[14:20:32] Сволота is now online
[14:21:01] slav0nic is now away
[14:21:34] levsha is now away
[14:21:51] slav0nic is now online
[14:22:05] levsha is now online
[14:35:41] slav0nic is now away
[14:39:35] singularity is now offline
[14:39:36] singularity is now online
[14:40:25] singularity is now offline
[14:40:25] singularity is now online
[14:43:50] singularity is now offline
[14:43:51] singularity is now online
[14:44:43] VeeSot: Ребята,посыпаю голову пеплом.Документация таки помогла продвинуться вперед.
Но как сейчас вернуть выхлоп из того скрипта в консоль с которой всё начиналось?
[14:45:41] slav0nic is now xa
[14:47:43] slav0nic is now online
[14:50:22] bliznezz is now away
[14:50:22] bliznezz is now away
[14:51:08] magister: VeeSot, исходники питона лучше
[14:51:21] magister: VeeSot, вместо тысячи книг
[14:51:45] dicos is now offline
[14:59:42] bliznezz is now online
[15:01:08] gigimon: VeeSot: stdout читать
[15:02:24] VeeSot is now offline
[15:03:08] emese is now offline
[15:07:21] slav0nic is now away
[15:07:53] remo is now online
[15:13:02] ambush is now away
[15:14:20] огыешсук is now online
[15:15:58] obivan is now online
[15:17:21] slav0nic is now xa
[15:23:02] ambush is now xa
[15:27:16] fuzzy: или перенаправить его stdout в свой stdout
[15:27:22] bliznezz is now away
[15:27:23] bliznezz is now away
[15:28:10] Tony: есть ли либа которая может автоматом по-человечески кропать изображения типа crop=top crop=center итд?
[15:28:15] Tony: ну и ресайзить пропорционально итд
[15:29:08] bliznezz is now online
[15:29:26] singularity is now online
[15:33:50] ambush is now online
[15:36:11] obivan: Пытаюсь произвести поиск с помощью vkontakte api, а он отдает мне такое.
{u'count': 6009153, u'items': [{u'first_name': u'\u041d\u044e\u0448\u0430', u'last_name': u'\u0428\u0443\u0440\u043e\u0447\u043a\u0438\u043d\u0430', u'id': 39377403}]}
Как сделать, чтобы все было в нормальной кодировке?
[15:36:25] obivan: уже придумал, но мой способ не очень
[15:36:33] obivan: есть идеи?
[15:36:47] remo: obivan: тут утф8
[15:36:59] remo: бери делай декод
[15:37:34] mrDoctorWho is now online
[15:43:03] slav0nic is now online
[15:43:35] fuzzy is now away
[15:53:33] bliznezz is now away
[15:53:34] bliznezz is now away
[15:57:46] bliznezz is now online
[15:58:58] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[16:02:50] VeeSot is now online
[16:06:06] gigimon is now online
[16:07:57] fuzzy is now away
[16:09:24] fuzzy is now away
[16:11:05] gigimon is now away
[16:12:14] fuzzy is now online
[16:13:40] magister: в питоне же есть в стандартной либе декод вроде
[16:18:17] gigimon is now away
[16:18:17] gigimon is now online
[16:27:43] emese is now online
[16:33:12] blw0rm is now away
[16:34:08] blw0rm is now online
[16:38:13] slav0nic is now away
[16:39:01] slav0nic is now online
[16:39:21] yugo-salem is now offline
[16:39:26] magister: в питоне есть развор юникода
[16:39:41] magister: разбор*
[16:40:03] obivan is now away
[16:40:32] obivan is now away
[16:40:32] obivan is now online
[16:46:43] MAVr is now offline
[16:49:14] slav0nic is now away
[16:51:58] gigimon: obivan: а чем тебе не нравится?
[16:52:01] gigimon: это самая нормальная кодировка
[16:54:11] slav0nic is now online
[16:55:26] mrDoctorWho is now offline
[16:57:48] VeeSot: obivan, отдает обычный json.Cделай словариком и проитерируйся по нему.
[17:06:49] VeeSot: >fuzzy: или перенаправить его stdout в свой stdout
Ога.Тогда приходится ждать его с помощью .communicate() что торомозит всю программу.Что запрещено условиями.
[17:07:35] fuzzy: не надо ждать
[17:07:42] fuzzy: ждать надо, если ты его перенаправил в PIPE
[17:08:10] VeeSot: Да.Я туда его направил.А какая альтернатива?
[17:08:14] fuzzy: obivan: для тебя же придумали json, в котором тебе не надо с кодировками париться. он за тебя всё раскодирует. нет, надо придумать себе проблем и другим мозг иметь
[17:08:33] dicos is now online
[17:08:55] fuzzy: VeeSot: https://docs.python.org/2/library/subprocess.html#frequently-used-arguments
[17:08:58] fuzzy: stdout
[17:09:05] fuzzy: Valid values are PIPE <https://docs.python.org/2/library/subprocess.html#subprocess.PIPE>, an existing file descriptor (a positive integer)
[17:09:27] mrDoctorWho is now online
[17:09:32] fuzzy: sys.stdout.fileno
[17:10:22] gigimon: подождите
[17:10:23] gigimon: с фигали надо ждать если pipe?
[17:10:40] gigimon: если перенаправил его в pipe, то ты в любое время можешь его оттуда вычитать (сколько надо)
[17:10:48] fuzzy: хотя subprocess по умолчанию и так пишет stdout в родительский stdout
[17:11:00] fuzzy: gigimon: надо чтобы оно сразу показалось
[17:11:03] fuzzy: как только появится
[17:11:10] gigimon: а, ну в этом случае да
[17:11:14] gigimon: направить в свой
[17:11:18] gigimon: но оно так по дефолту...
[17:11:48] fuzzy: python -c 'import subprocess; subprocess.Popen(["echo", "asd"])'
[17:11:54] fuzzy: выводит asd на ст. вывод
[17:13:36] VeeSot: а ничего что в скрипте который я запускаю через subprocess у меня стоит таймер и пока он не оттикает свои секунды и минуты - скрипт не отработает и вывода не будет?
[17:14:02] fuzzy: а попробуй
[17:14:05] VeeSot: то бишь скрипт может ждать вечность а потом что то печатать в вывод
[17:14:11] fuzzy: и...?
[17:14:30] VeeSot: попробую =)
[17:18:28] огыешсук is now away
[17:18:34] blw0rm is now away
[17:19:30] огыешсук is now online
[17:19:33] огыешсук is now online
[17:23:10] blw0rm is now online
[17:23:39] ambush is now away
[17:24:36] gigimon is now offline
[17:25:26] ambush is now online
[17:28:18] blw0rm is now away
[17:29:43] dicos is now offline
[17:29:46] blw0rm is now online
[17:33:37] slav0nic is now away
[17:34:49] singularity: а это
[17:35:35] singularity: а можно сделать что-бы на одну вьюху падало два url ?

[17:36:21] singularity: url(r'^profile/', profile, name='profile'),
url(r'^profile/(?P<pk>\d+)/$', profile, name='profile'),
я сейчас делаю так
[17:40:49] bliznezz is now away
[17:40:50] bliznezz is now away
[17:42:29] slav0nic is now online
[17:46:35] bliznezz is now online
[17:47:08] blw0rm is now away
[17:47:57] slav0nic is now away
[17:49:34] obivan is now away
[17:49:34] obivan is now away
[17:49:39] bliznezz is now offline
[17:50:26] obivan is now away
[17:50:27] obivan is now online
[17:51:40] blw0rm is now online
[17:52:01] Tony is now away
[17:52:59] slav0nic is now online
[17:56:17] bliznezz is now online
[18:00:27] slav0nic is now away
[18:06:55] slav0nic is now online
[18:11:28] VeeSot: fuzzy, ога.Отключил PIPE и прямо в вспомогательном скрипте сделал вывод в стандартный поток.Сработало.
[18:11:51] fuzzy: singularity: да, но с разными именами
[18:13:07] slav0nic is now away
[18:17:01] Tony is now xa
[18:19:49] slav0nic is now online
[18:25:09] ambush is now away
[18:27:30] metall1c is now away
[18:28:09] metall1c is now online
[18:29:40] bliznezz is now away
[18:29:41] bliznezz is now away
[18:31:30] VeeSot is now away
[18:33:41] ambush is now online
[18:38:40] blw0rm is now away
[18:38:46] remo is now offline
[18:41:13] slav0nic is now xa
[18:41:16] VeeSot is now online
[18:54:30] blw0rm is now xa
[18:55:45] ambush is now offline
[18:56:49] Tony is now online
[19:05:27] vaal is now away
[19:05:58] metall1c is now away
[19:07:47] VeeSot is now offline
[19:08:05] levsha is now offline
[19:08:34] fuzzy is now away
[19:12:21] vaal is now online
[19:24:23] singularity is now offline
[19:25:58] metall1c is now xa
[19:35:38] mrDoctorWho is now away
[19:35:47] singularity is now online
[19:42:05] mrDoctorWho is now online
[19:50:58] огыешсук is now online
[19:57:19] vaal is now away
[20:00:33] singularity: вот создаю я в ModelForm новый обжект
[20:01:01] singularity: и надо мне создать еще один обджект который имеет вк на тот что от ModelForm
[20:03:20] levsha is now online
[20:04:44] emese is now offline
[20:06:07] emese is now online
[20:06:07] fuzzy is now away
[20:07:51] fuzzy is now away
[20:08:28] singularity: во вьюхе надо же
[20:08:44] mrDoctorWho is now away
[20:12:19] огыешсук is now away
[20:15:48] obivan is now away
[20:15:48] obivan is now away
[20:15:59] singularity: а вот какая разница между render(request, 'edit.html', c) и render( 'edit.html', c) ?
[20:16:40] Tony: django?
[20:19:15] obivan is now away
[20:19:15] obivan is now online
[20:20:09] singularity: Tony: да
[20:20:41] Tony: в django request это горячая кортошка котороую перекидывают из одной руки в другую
[20:20:58] Tony: такой вот излишек архитектуры, код ради кода, инстанс ради инстанса
[20:21:51] singularity: Tony: и шо делать?
[20:22:04] Tony: ничего
[20:22:27] Tony: смириться и жить с этим
[20:22:37] obivan: >img = escape(u"<img src=\x22%s\x22>") % photo
>&lt;img src="http://cs540109.vk.me/c7008/v7008403/1c07b/GaIc32aOUdI.jpg"&gt;
С помощью cgi.escape пытаюсь преобразовать строку в html код и вывести картинку, а на веб-странице вместо нее на странице текст в таком виде
[20:23:31] levsha is now away
[20:26:20] mishok13 is now offline
[20:28:44] mrDoctorWho is now xa
[20:29:08] levsha is now offline
[20:38:58] levsha is now online
[20:39:12] levsha is now online
[20:40:26] remo is now online
[20:41:58] mrDoctorWho is now online
[20:45:32] remo is now offline
[20:51:35] levsha is now away
[20:55:21] emese is now offline
[20:56:53] levsha is now offline
[20:57:25] огыешсук is now away
[20:57:48] opka is now online
[21:03:36] vaal is now away
[21:03:36] vaal is now online
[21:07:13] огыешсук is now away
[21:07:16] огыешсук is now online
[21:12:12] opka is now offline
[21:12:13] opka is now online
[21:14:28] slav0nic is now offline
[21:22:55] singularity is now offline
[21:31:54] огыешсук is now online
[21:35:30] огыешсук is now online
[21:39:30] mrDoctorWho is now away
[21:42:22] opka is now offline
[21:46:13] mrDoctorWho is now online
[21:56:16] mrDoctorWho is now away
[21:57:29] ds.tihonov is now offline
[22:04:20] mrDoctorWho is now online
[22:11:58] obivan is now away
[22:11:58] obivan is now away
[22:12:52] obivan is now away
[22:12:52] obivan is now online
[22:15:28] opka is now online
[22:18:32] mrDoctorWho is now away
[22:19:51] vaal is now away
[22:25:30] vaal is now away
[22:25:30] vaal is now online
[22:26:01] mrDoctorWho is now online
[22:32:19] fuzzy is now away
[22:38:04] mrDoctorWho is now offline
[22:41:26] fuzzy is now away
[22:44:56] bliznezz is now online
[22:45:09] remo is now online
[22:45:27] obivan: чому wtforms не выводит ошибки?
[22:46:00] obivan: {% if form.errors %}
{% for error in form.errors.country %}
<span style="color: red;">{{ error }}</span>
{% endfor %}<br>

{% for error in form.errors.friends %}
<span style="color: red;">{{ error }}</span>
{% endfor %}<br>
{% else %}
<span style="color: green;">Okay</span>
{% endif %}
[22:49:23] obivan: черт
[22:49:26] obivan: message!
[22:51:26] fuzzy is now away
[22:59:01] fuzzy is now away
[23:04:48] opka is now offline
[23:04:50] opka is now online
[23:05:08] obivan: а не
[23:07:43] vaal is now away
[23:10:26] opka is now offline
[23:10:58] vaal is now away
[23:10:58] vaal is now online
[23:11:05] Tony is now away
[23:11:48] fuzzy is now away
[23:12:35] fuzzy is now away
[23:13:33] огыешсук is now offline
[23:16:40] vaal is now away
[23:16:40] vaal is now away
[23:19:02] vaal is now away
[23:19:02] vaal is now online
[23:22:35] fuzzy is now away
[23:28:29] fuzzy is now away
[23:36:05] Tony is now xa
[23:41:27] fuzzy is now online
[23:44:35] singularity is now online
[23:50:41] fuzzy is now away