[00:03:19] deisler is now away
[00:04:33] bobry is now online
[00:05:22] Joes is now offline
[00:09:20] py_two is now Automatically away due to idle
[00:09:36] bobry is now online
[00:14:32] Сволота is now away
[00:14:38] bobry is now online
[00:15:06] Сволота is now online
[00:16:03] cutwater is now offline
[00:17:06] Typhon is now online
[00:19:09] Typhon is now away
[00:19:41] bobry is now online
[00:24:44] bobry is now online
[00:26:10] Typhon is now away
[00:27:26] noobik is now online
[00:28:08] noobik: как с помощью beautifulsoup удалить все теги <script> и их содержимое?
[00:28:34] Typhon is now away
[00:28:37] Typhon is now online
[00:29:04] noobik: !g remove tag beautifulsoup
[00:29:30] noobik: !g remove all tags but first beautifulsoup
[00:29:46] bobry is now online
[00:34:48] bobry is now online
[00:39:51] bobry is now online
[00:44:54] bobry is now online
[00:49:56] bobry is now online
[00:50:45] Сволота is now away
[00:54:58] bobry is now online
[00:55:18] noobik: так, забудем про beautifulsoup. обраимся к регуляркам:))
[00:55:41] noobik: мне надо удалить все <script>, кроме первого (первый я меняюб на свой)
[00:55:53] noobik: как найти все я знаю, как поменять один знаю
[00:57:25] Сволота is now online
[00:57:35] noobik: а как поменять первый и удалит ьдругие?
[00:57:47] noobik: re.findall я найду
[00:58:50] noobik: пройтись как-то в цикле от 1 до последнего и делать re.sub ?
[00:59:15] levsha is now offline
[00:59:26] mishok13 is now offline
[01:00:01] bobry is now online
[01:05:05] bobry is now online
[01:05:10] gigimon is now online
[01:05:11] noobik: не. re.sub меняет все сразу
[01:07:50] Сволота is now away
[01:09:28] py_two is now away
[01:09:38] Сволота is now online
[01:10:07] bobry is now online
[01:15:09] bobry is now online
[01:16:52] gigimon is now online
[01:17:25] py_two is now Automatically away due to idle
[01:18:01] Мозгошредер is now offline
[01:20:13] bobry is now online
[01:21:06] xa4a: нет-нет-нет
[01:21:24] xa4a: http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags первый комент
[01:22:55] xa4a: возьми красивый суп
[01:23:04] xa4a: там же должен быть какой-то sax-парсер
[01:23:49] xa4a: или не sax
[01:23:58] noobik: я пока сделал так:
p = re.findall()
for i in xrange(len(p)-1):
data = re.sub()
[01:24:17] noobik: т.о. у меня сабятся все вхождения, кроме последнего, с которым я раьотаю отдельно
[01:25:11] noobik: re.sub(p[i], '', real_data)
[01:25:14] bobry is now online
[01:25:49] noobik: с точки зрения питона, наверное криво. Но на си я бы сделал так)
[01:27:55] noobik: xa4a: сильно криво?:))
[01:30:15] xa4a: да
[01:30:16] bobry is now online
[01:30:22] xa4a: s = bs.BeautifulSoup('<a>a</a><b><a>b</a><a>c</a>d</b>')
[01:30:29] xa4a: [t.replaceWith('') for t in s.findAll('a')[1:]]
[01:30:42] xa4a: уберёт все теги <a> кроме первого
[01:31:02] xa4a: соотв s.findAll('a')[0].replaceWith('my_new_conten') исправит первый таг
[01:31:11] Сволота is now offline
[01:31:18] Сволота is now online
[01:32:41] noobik: а вот эти [] в которых t.replace...[1:] это что такое?
[01:34:49] noobik: у меня еще тонкость есть такая, что в тэгах могут идти значения или аттрибуты. И если аттрибуты нужные, то удалять, иначе пусть живет
[01:35:18] bobry is now online
[01:35:38] noobik: <a href=1>ONE!</a>
<a href=2>TWO!</a>
то из них останется только первый например
[01:36:11] xa4a: скобки - list comprehension
[01:36:41] xa4a: а если надо как-то выбирать хитро - можно же в findAll хитрые запросы писать?
[01:36:45] noobik: а, а параметры в findAll в виде РЕ можно вроде
[01:37:06] Сволота is now offline
[01:37:07] xa4a: вот же..
[01:37:11] py_two is now away
[01:37:15] xa4a: noobik: зачем тебе re?
[01:37:26] noobik: я люблю ре %)))
[01:37:53] xa4a: норкоман..
[01:38:53] noobik: я не знаю как findall обхитрить. у меня должны выполниться такие условия:
если нужные параметры = 1 или 5, то это наш тэг(и) и мы с ним(и) работает
[01:40:21] bobry is now online
[01:40:28] noobik: s = BeautifulSoup('<a>a</a><b><a>b</a><a>c</a>d</b>')
[t.replaceWith('') for t in s.findAll('a',attrs={'param1': '1 or 5'})[1:]]
но так, понятное дело, не прокатит

[01:40:46] xa4a: почитал бы ты документацию
[01:41:02] xa4a: там черным по белому написано
[01:41:17] xa4a: http://www.crummy.com/software/BeautifulSoup/bs3/documentation.html#The%20basic%20find%20method:%20findAll(name,%20attrs,%20recursive,%20text,%20limit,%20**kwargs)
[01:41:30] xa4a: soup.findAll(align=["center", "blah"])
[01:41:56] noobik: о как
[01:42:48] noobik: ооо xa4a, спаисбо!
[01:43:01] noobik: хотя ре уже работали ) передалем ща
[01:45:24] bobry is now online
[01:45:26] xa4a is now away
[01:46:42] noobik: я б без вас наговнокодил бы :)))
[01:47:11] py_two is now xa
[01:48:20] py_two is now Automatically away due to idle
[01:50:03] xa4a is now online
[01:50:26] bobry is now online
[01:52:42] gigimon is now offline
[01:55:28] bobry is now online
[02:00:30] bobry is now online
[02:05:32] bobry is now online
[02:08:44] py_two is now offline
[02:10:34] bobry is now online
[02:15:38] bobry is now online
[02:20:40] bobry is now online
[02:22:53] noobik is now offline
[02:25:42] bobry is now online
[02:30:45] bobry is now online
[02:35:48] bobry is now online
[02:40:50] bobry is now online
[02:45:38] webninja is now online
[02:45:51] bobry is now online
[02:50:53] bobry is now online
[02:55:56] bobry is now online
[02:59:37] deisler is now offline
[03:00:27] bobry is now away
[03:00:27] bobry is now away
[03:00:27] bobry is now away
[03:00:58] bobry is now away
[03:04:45] bobry is now away
[03:04:45] bobry is now online
[03:04:45] bobry is now online
[03:06:01] bobry is now online
[03:11:04] bobry is now online
[03:13:35] bobry is now offline
[03:19:48] Typhon is now offline
[03:48:08] deepwalker is now offline
[04:18:18] gf is now online
[04:18:18] alexey-grom is now online
[04:18:18] metall1c is now xa
[04:18:18] pc_ is now xa
[04:18:18] Tony is now online
[04:18:18] webninja is now online
[04:18:18] xa4a is now online
[04:18:18] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[04:18:18] magic_pony is now online
[04:33:46] xa4a is now away
[04:42:21] xa4a is now online
[05:02:48] xa4a is now away
[05:02:55] alex-bulgakov is now online
[05:04:40] xa4a is now online
[05:08:32] xa4a is now offline
[05:38:42] gf is now online
[05:38:42] alex-bulgakov is now online
[05:38:42] alexey-grom is now online
[05:38:42] metall1c is now xa
[05:38:42] Tony is now online
[05:38:42] webninja is now online
[05:38:42] magic_pony is now online
[05:38:42] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[05:38:42] pc_ is now xa
[05:45:51] webninja is now away
[05:45:51] webninja is now away
[05:46:13] webninja is now away
[05:46:13] webninja is now online
[05:49:22] xa4a is now online
[05:51:20] evch26 is now online
[05:52:16] xa4a is now offline
[05:52:33] xa4a is now online
[05:57:37] Tony is now offline
[06:02:30] Tony is now online
[06:05:49] alex-bulgakov is now away
[06:09:54] dicos is now online
[06:12:37] alex-bulgakov is now online
[06:15:08] Ляпатяпа is now online
[06:17:27] webninja is now offline
[06:18:59] alexey-grom is now offline
[06:19:46] webninja is now online
[06:33:05] alex-bulgakov is now offline
[06:44:31] webninja is now offline
[06:44:43] webninja is now online
[06:44:51] webninja is now away
[06:44:53] webninja is now away
[06:47:34] webninja is now away
[06:47:35] webninja is now online
[06:59:11] dicos is now away
[06:59:12] dicos is now away
[06:59:18] dicos is now away
[06:59:19] dicos is now online
[07:06:55] evch26: Подскажите, можно ли настроить ограничительную полосу на 80 зн. в emacs?
[07:07:45] xa4a: в виме точно можно
[07:08:39] evch26: vim мне кажется сложнее освоить
[07:13:33] xa4a is now away
[07:13:38] xa4a is now online
[07:13:56] Ляпатяпа: почему?
[07:16:43] webninja is now offline
[07:17:24] gf is now online
[07:17:45] webninja is now online
[07:25:22] xa4a: evch26: вим можно осваивать постепенно же
[07:25:31] xa4a: сначала - как блокнот использовать
[07:25:42] xa4a: потом по-немногу команды редактирования выучить
[07:25:50] xa4a: поставить плагины
[07:25:52] xa4a: и всё
[07:25:54] xa4a: ты знаешь вим
[07:26:41] evch26: а какой версией лучше пользоваться: консольной или gvim
[07:27:08] xa4a: как тебе удобнее
[07:27:24] xa4a: с гвимом нет проблем с 256-цветностью терминала
[07:31:04] Ляпатяпа: мне консольная нравится
[07:32:09] evch26: попробовал я консольный vi, непривично
[07:34:58] evch26: сейчас использую geany
[07:38:14] Ляпатяпа: я на вим с geany перелез
[07:38:34] Ляпатяпа: сейчас ни на что другое перейти уже видимо не смогу
[07:39:04] Ляпатяпа: ибо в виме я легко могу творить чудеса, а в обычном редакторе я тоже самое буду вручную делать
[07:39:37] Ляпатяпа: а то что непривычно - а ты хотел вим и привычно?
[07:40:22] evch26: какие чудеса в vim творишь?
[07:40:40] Ляпатяпа: всякие, не хочу объяснять
[07:40:58] Ляпатяпа: типа хитрых выделений с клавиатуры, навигация
[07:41:39] evch26: а, понял, типа выделения блока текста и последующая его вставка
[07:51:00] xa4a: да.. не в каждом редакторе такое заделаешь!
[07:58:52] webninja is now offline
[08:09:03] Ляпатяпа is now offline
[08:09:14] Ляпатяпа is now online
[08:09:24] evch26 is now offline
[08:10:17] dicos is now away
[08:10:18] dicos is now away
[08:10:19] dicos is now away
[08:10:20] dicos is now online
[08:15:00] dicos is now away
[08:15:01] dicos is now away
[08:16:24] dicos is now away
[08:16:25] dicos is now online
[08:19:59] Tony is now offline
[08:20:26] Tony is now online
[08:21:24] dicos is now away
[08:21:25] dicos is now away
[08:22:51] dicos is now away
[08:22:52] dicos is now online
[08:23:30] Tony is now offline
[08:23:49] Tony is now online
[08:34:55] metall1c is now offline
[08:34:56] metall1c is now xa
[08:38:35] Ляпатяпа is now away
[08:48:35] Ляпатяпа is now xa
[08:50:19] webninja is now away
[08:51:36] webninja is now away
[08:51:37] webninja is now online
[08:56:09] Ляпатяпа is now online
[09:03:39] mrDoctorWho. is now online
[09:30:28] Ляпатяпа is now offline
[09:30:39] Ляпатяпа is now online
[09:32:22] mrDoctorWho. is now offline
[09:35:01] aries.ua is now online
[09:35:02] aries.ua is now online
[09:35:02] aries.ua is now online
[09:36:23] aries.ua is now online
[09:41:25] aries.ua is now online
[09:42:44] levsha is now xa
[09:44:57] dicos is now away
[09:44:58] dicos is now away
[09:45:00] dicos is now away
[09:45:02] dicos is now online
[09:46:27] aries.ua is now online
[09:48:14] xa4a is now away
[09:48:14] xa4a is now away
[09:51:28] aries.ua is now online
[09:53:25] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[09:56:31] aries.ua is now online
[09:58:24] dicos is now away
[09:58:25] dicos is now away
[10:01:32] aries.ua is now online
[10:02:16] mishok13 is now online
[10:06:34] aries.ua is now online
[10:07:50] огыешсук is now online
[10:08:13] erraen is now online
[10:09:06] dicos is now away
[10:09:07] dicos is now online
[10:09:22] maxim.zemlyakov is now online
[10:09:23] maxim.zemlyakov is now online
[10:09:23] maxim.zemlyakov is now online
[10:10:51] maxim.zemlyakov is now online
[10:11:35] aries.ua is now online
[10:13:01] erraen is now online
[10:15:53] maxim.zemlyakov is now online
[10:16:09] maxim.zemlyakov is now online
[10:16:37] aries.ua is now online
[10:18:03] erraen is now online
[10:18:32] огыешсук is now offline
[10:18:44] огыешсук is now online
[10:20:55] maxim.zemlyakov is now online
[10:21:03] metall1c is now online
[10:21:40] aries.ua is now online
[10:23:05] erraen is now online
[10:24:18] webninja is now away
[10:24:18] webninja is now away
[10:25:56] maxim.zemlyakov is now online
[10:26:21] dicos: >хитрых выделений с клавиатуры
vim настолько суров, что клавиатура мироточит)
[10:26:35] webninja is now away
[10:26:36] webninja is now online
[10:26:41] aries.ua is now online
[10:28:06] erraen is now online
[10:30:59] maxim.zemlyakov is now online
[10:31:44] aries.ua is now online
[10:33:08] erraen is now online
[10:33:35] cutwater is now online
[10:34:02] cutwater is now offline
[10:34:19] cutwater is now online
[10:35:35] cutwater: утро друзья
[10:36:01] maxim.zemlyakov is now online
[10:36:46] aries.ua is now online
[10:38:10] erraen is now online
[10:38:58] mishok13 is now offline
[10:40:18] webninja: привет )
[10:40:19] webninja: бро
[10:41:04] maxim.zemlyakov is now online
[10:41:48] aries.ua is now online
[10:43:12] erraen is now online
[10:46:03] deisler is now away
[10:46:06] maxim.zemlyakov is now online
[10:46:49] aries.ua is now online
[10:48:13] erraen is now online
[10:48:25] Ляпатяпа is now away
[10:51:07] maxim.zemlyakov is now online
[10:51:52] aries.ua is now online
[10:53:15] erraen is now online
[10:56:09] maxim.zemlyakov is now online
[10:56:54] aries.ua is now online
[10:58:16] erraen is now online
[10:58:24] Ляпатяпа is now xa
[10:59:32] Сволота is now online
[11:01:12] maxim.zemlyakov is now online
[11:01:56] aries.ua is now online
[11:03:18] erraen is now online
[11:04:39] mishok13 is now online
[11:06:14] maxim.zemlyakov is now online
[11:06:58] aries.ua is now online
[11:08:20] erraen is now online
[11:11:13] cutwater is now away
[11:11:15] maxim.zemlyakov is now online
[11:12:00] aries.ua is now online
[11:13:21] erraen is now online
[11:13:33] Ляпатяпа is now online
[11:16:18] maxim.zemlyakov is now online
[11:17:01] aries.ua is now online
[11:17:33] cutwater is now online
[11:17:37] levsha is now offline
[11:18:23] erraen is now online
[11:20:46] Сволота is now offline
[11:20:48] Сволота is now online
[11:21:20] maxim.zemlyakov is now online
[11:22:03] aries.ua is now online
[11:23:24] erraen is now online
[11:24:44] metall1c: привет всем, вопрос по джанге
[11:25:11] metall1c: есть две модели, одна с другой связаны ForeignKey
[11:25:28] metall1c: прописаны в admin.py для редактирования через админку
[11:26:07] metall1c: проще говоря вот http://dumpz.org/194417/
[11:26:21] maxim.zemlyakov is now online
[11:26:22] slav0nic is now away
[11:27:03] metall1c: вопрос в следующем: при добавлении ответа у меня есть раскрывающийся список с вопросами, мне его надо отфильтровать
[11:27:05] aries.ua is now online
[11:27:16] metall1c: надо сделать так, чтобы в списке были только вопросы без ответов, возможно?
[11:28:27] erraen is now online
[11:31:24] maxim.zemlyakov is now online
[11:32:06] aries.ua is now online
[11:33:28] erraen is now online
[11:36:26] maxim.zemlyakov is now online
[11:37:07] aries.ua is now online
[11:38:30] erraen is now online
[11:39:09] Ляпатяпа is now away
[11:39:16] nott is now online
[11:40:04] Ляпатяпа is now online
[11:41:29] maxim.zemlyakov is now online
[11:42:10] aries.ua is now online
[11:43:31] erraen is now online
[11:45:01] Tony is now away
[11:46:31] maxim.zemlyakov is now online
[11:46:45] Tony is now online
[11:47:11] aries.ua is now online
[11:48:33] erraen is now online
[11:51:33] maxim.zemlyakov is now online
[11:52:13] aries.ua is now online
[11:53:09] xa4a is now away
[11:53:35] erraen is now online
[11:56:35] maxim.zemlyakov is now online
[11:57:14] aries.ua is now online
[11:58:37] erraen is now online
[12:00:46] metall1c: не могу сообразить, как сделать запрос ,который вернет queryset, в котором будут вопросы без ответов?
[12:01:37] maxim.zemlyakov is now online
[12:01:40] metall1c: вот есть две модели http://dumpz.org/194429/
[12:01:51] webninja is now away
[12:01:51] webninja is now away
[12:02:12] metall1c: как вытащить все Question, на которые нет ссылок от Answer ?
[12:02:16] aries.ua is now online
[12:03:02] Сволота: зачем фильтровать модель? можно отфильтровать на уровне въюшки
[12:03:39] erraen is now online
[12:03:54] metall1c: мне надо модель, мне нужен queryset в котором будут вопросы, на которые нет ссылок(ответов)
[12:05:07] zandr_dw is now online
[12:05:47] zandr_dw is now offline
[12:06:00] Сволота: /me помнит как это делается на sql, а как на жданге хз
[12:06:39] maxim.zemlyakov is now online
[12:07:17] aries.ua is now online
[12:07:34] metall1c: вытащить вопросы с ответами легко Question.objects.filter(answer__gte=0)
[12:08:41] erraen is now online
[12:10:22] gigimon is now online
[12:11:41] maxim.zemlyakov is now online
[12:12:19] aries.ua is now online
[12:13:43] erraen is now online
[12:14:58] nott is now away
[12:15:13] nott is now online
[12:16:43] maxim.zemlyakov is now online
[12:17:20] aries.ua is now online
[12:18:44] erraen is now online
[12:20:15] nott is now away
[12:21:41] levsha is now xa
[12:21:45] maxim.zemlyakov is now online
[12:22:22] aries.ua is now online
[12:23:46] erraen is now online
[12:26:48] maxim.zemlyakov is now online
[12:27:24] aries.ua is now online
[12:28:46] erraen is now online
[12:29:55] nott is now online
[12:30:03] xa4a is now away
[12:31:33] webninja is now away
[12:31:33] webninja is now online
[12:31:45] pc_ is now online
[12:31:51] maxim.zemlyakov is now online
[12:32:25] aries.ua is now online
[12:33:48] erraen is now online
[12:36:39] webninja is now away
[12:36:40] webninja is now away
[12:36:52] maxim.zemlyakov is now online
[12:37:27] aries.ua is now online
[12:37:55] webninja is now away
[12:37:55] webninja is now online
[12:38:51] erraen is now online
[12:41:54] maxim.zemlyakov is now online
[12:42:28] aries.ua is now online
[12:43:52] erraen is now online
[12:45:29] metall1c is now away
[12:46:55] xa4a is now away
[12:46:57] maxim.zemlyakov is now online
[12:47:30] aries.ua is now online
[12:48:54] erraen is now online
[12:48:57] metall1c is now online
[12:49:33] mrDoctorWho. is now online
[12:51:59] maxim.zemlyakov is now online
[12:52:32] aries.ua is now online
[12:53:24] xa4a is now away
[12:53:56] erraen is now online
[12:55:23] cutwater is now away
[12:57:02] maxim.zemlyakov is now online
[12:57:34] aries.ua is now online
[12:58:58] erraen is now online
[13:02:04] maxim.zemlyakov is now online
[13:02:35] aries.ua is now online
[13:03:34] metall1c: объекты модели можно фильтровать так Entry.objects.filter(id__in=[1, 3, 4])
[13:03:56] gigimon is now offline
[13:03:57] metall1c: а как сделать наборот, как отфильтровать объекты, которые не в [1, 3, 4]
[13:04:00] erraen is now online
[13:07:07] maxim.zemlyakov is now online
[13:07:24] dicos is now away
[13:07:25] dicos is now away
[13:07:27] dicos is now away
[13:07:29] dicos is now online
[13:07:31] Сволота is now offline
[13:07:37] aries.ua is now online
[13:08:42] bobry is now online
[13:08:42] bobry is now online
[13:09:01] erraen is now online
[13:10:24] bobry is now online
[13:11:25] nott: metall1c Entry.objects.exclude
это есть в доках
[13:12:09] maxim.zemlyakov is now online
[13:12:39] aries.ua is now online
[13:13:10] xa4a is now away
[13:14:02] erraen is now online
[13:15:22] webninja: хочу статью запостить на хабр а кармы не хватает. что делать? до этого ниче не писал вообще.
[13:15:23] cutwater is now xa
[13:15:27] bobry is now online
[13:15:37] webninja: я вижу 2а варианта. попросить кого-то чтобы запостили. или запостить в песочницу
[13:15:40] огыешсук: Пости в песочницу.
[13:15:41] webninja: как лучше сделать?
[13:17:11] maxim.zemlyakov is now online
[13:17:40] aries.ua is now online
[13:19:04] erraen is now online
[13:20:00] metall1c is now away
[13:20:27] bobry is now online
[13:22:14] maxim.zemlyakov is now online
[13:22:14] py_two is now Automatically away due to idle
[13:22:42] aries.ua is now online
[13:24:06] erraen is now online
[13:25:29] bobry is now online
[13:27:14] metall1c is now online
[13:27:16] maxim.zemlyakov is now online
[13:27:39] bobry is now away
[13:27:39] bobry is now away
[13:27:39] bobry is now away
[13:27:44] aries.ua is now online
[13:27:45] bobry is now away
[13:27:45] bobry is now online
[13:27:45] bobry is now online
[13:29:06] mrDoctorWho. is now offline
[13:29:07] erraen is now online
[13:30:31] bobry is now online
[13:32:18] maxim.zemlyakov is now online
[13:32:30] xa4a is now away
[13:32:45] aries.ua is now online
[13:33:17] mrDoctorWho. is now online
[13:34:09] erraen is now online
[13:35:33] bobry is now online
[13:37:15] metall1c: nott: да, спс, уже догадался :)
[13:37:21] maxim.zemlyakov is now online
[13:37:47] aries.ua is now online
[13:37:48] metall1c: получается все это не нужно
[13:37:58] metall1c: совсем просто достать вопросы без ответов: Question.objects.exclude(answer__gte=0)
[13:38:39] gigimon is now online
[13:39:08] Typhon is now online
[13:39:11] erraen is now online
[13:39:28] cutwater is now online
[13:39:32] bobry is now away
[13:39:32] bobry is now away
[13:39:32] bobry is now away
[13:40:12] Ляпатяпа is now dnd
[13:40:35] bobry is now away
[13:42:23] maxim.zemlyakov is now online
[13:42:49] aries.ua is now online
[13:44:13] erraen is now online
[13:44:30] metall1c: блин, как все просто было, а я пол дня убил
[13:45:08] slav0nic: webninja, пости на питон су В)
[13:45:20] webninja: там не про пятон )
[13:45:36] bobry is now away
[13:46:23] gigimon: webninja: про пхп?)
[13:46:33] webninja: нет )
[13:46:37] webninja: про звук
[13:47:27] maxim.zemlyakov is now online
[13:47:51] aries.ua is now online
[13:49:14] erraen is now online
[13:50:39] bobry is now away
[13:52:27] maxim.zemlyakov is now online
[13:52:52] aries.ua is now online
[13:54:16] erraen is now online
[13:55:41] bobry is now away
[13:57:29] maxim.zemlyakov is now online
[13:57:53] aries.ua is now online
[13:59:17] erraen is now online
[13:59:49] py_two is now offline
[14:00:43] bobry is now away
[14:01:21] nott is now away
[14:02:31] dicos is now offline
[14:02:31] maxim.zemlyakov is now online
[14:02:55] aries.ua is now online
[14:03:11] webninja: бля лол
[14:03:17] webninja: я даже в песочницу не могу
[14:03:21] deepwalker is now online
[14:04:18] erraen is now online
[14:04:49] bobry is now offline
[14:07:33] maxim.zemlyakov is now online
[14:07:57] aries.ua is now online
[14:09:20] erraen is now online
[14:12:36] maxim.zemlyakov is now online
[14:12:49] nott is now online
[14:12:58] aries.ua is now online
[14:13:37] cutwater is now away
[14:13:42] mrDoctorWho. is now away
[14:14:22] erraen is now online
[14:16:55] xa4a is now away
[14:17:38] maxim.zemlyakov is now online
[14:18:00] aries.ua is now online
[14:19:09] nott is now away
[14:19:24] erraen is now online
[14:22:40] maxim.zemlyakov is now online
[14:22:50] aries.ua is now online
[14:23:17] Typhon is now away
[14:24:26] erraen is now online
[14:26:55] xa4a is now away
[14:27:15] огыешсук: тогда регай себе новый акк, как лориен
[14:27:42] maxim.zemlyakov is now online
[14:27:52] aries.ua is now online
[14:28:28] огыешсук is now offline
[14:28:54] огыешсук is now online
[14:29:27] erraen is now online
[14:32:31] огыешсук is now away
[14:32:44] maxim.zemlyakov is now online
[14:32:54] aries.ua is now online
[14:33:17] Typhon is now away
[14:33:37] cutwater is now xa
[14:33:43] mrDoctorWho. is now xa
[14:34:29] erraen is now online
[14:34:35] xa4a is now away
[14:35:00] webninja: не )
[14:35:08] webninja: с 2008 акк, далко
[14:35:28] огыешсук is now online
[14:36:41] webninja: опубликовать новый хабратопик <http://habrahabr.ru/info/help/blogs/#habratopics> в коллективный хаб <http://habrahabr.ru/info/help/blogs/#blogs> — карма ≥5
[14:37:00] webninja: хм. т.е. даже в песочницу нужно чтобы 5 было?
[14:37:45] maxim.zemlyakov is now online
[14:37:56] aries.ua is now online
[14:39:30] erraen is now online
[14:41:33] webninja: да, точно
[14:41:34] webninja: точно =(
[14:42:47] maxim.zemlyakov is now online
[14:42:58] aries.ua is now online
[14:44:32] erraen is now online
[14:44:35] xa4a is now away
[14:45:13] огыешсук is now away
[14:46:17] огыешсук is now online
[14:47:51] maxim.zemlyakov is now online
[14:47:59] aries.ua is now online
[14:49:10] огыешсук: Начни хватить айпады ;o)
[14:49:33] erraen is now online
[14:49:48] webninja: да ну чо ждать чтоли. у меня щаз -5, слили сцуки за неудачный коммент про мицгола.
[14:50:36] mrDoctorWho. is now online
[14:52:00] cutwater is now online
[14:52:52] maxim.zemlyakov is now online
[14:53:01] aries.ua is now online
[14:54:35] erraen is now online
[14:57:54] maxim.zemlyakov is now online
[14:58:02] aries.ua is now online
[14:59:37] erraen is now online
[15:00:59] mrDoctorWho. is now offline
[15:02:56] maxim.zemlyakov is now online
[15:02:57] xa4a is now away
[15:03:04] aries.ua is now online
[15:04:37] Typhon is now away
[15:04:39] erraen is now online
[15:04:39] Typhon is now online
[15:06:07] aries.ua: А у мя нету ваще инвайта на хабр и не парюсь :)
[15:07:58] maxim.zemlyakov is now online
[15:08:06] aries.ua is now online
[15:09:40] erraen is now online
[15:10:20] deepwalker: webninja, прозрей и пиши в свой
[15:10:28] deepwalker: там можно банить хомячков
[15:10:37] deepwalker: свобода :)
[15:10:44] nott is now online
[15:11:38] Typhon is now away
[15:11:50] webninja: на хабре траф можно собирать
[15:12:27] bobry is now online
[15:12:27] bobry is now online
[15:12:28] bobry is now online
[15:12:32] pc_ is now away
[15:12:51] webninja: а если кто-то запостит статью за меня? с пометкой вот типа такой-то не может. это не запрещено правилами?
[15:13:00] maxim.zemlyakov is now online
[15:13:08] aries.ua is now online
[15:14:29] bobry is now online
[15:14:42] erraen is now online
[15:15:07] Typhon is now online
[15:15:57] Typhon is now away
[15:18:04] maxim.zemlyakov is now online
[15:18:09] aries.ua is now online
[15:18:38] xa4a is now away
[15:18:57] levsha is now offline
[15:19:00] Typhon is now online
[15:19:30] bobry is now online
[15:19:43] erraen is now online
[15:21:59] огыешсук is now away
[15:22:17] огыешсук is now online
[15:22:31] pc_ is now xa
[15:23:05] maxim.zemlyakov is now online
[15:23:11] aries.ua is now online
[15:24:33] bobry is now online
[15:24:45] erraen is now online
[15:28:08] maxim.zemlyakov is now online
[15:28:14] aries.ua is now online
[15:29:34] bobry is now online
[15:29:38] xa4a is now away
[15:29:47] erraen is now online
[15:31:08] gigimon: webninja: не запрещено
[15:31:12] gigimon: так делают
[15:33:09] maxim.zemlyakov is now online
[15:33:15] aries.ua is now online
[15:33:16] огыешсук is now away
[15:33:20] огыешсук is now online
[15:34:36] bobry is now online
[15:34:41] aries.ua: Народ, какой можно использовать фреймворк в котором надо юзать СкульАлхимию
[15:34:48] erraen is now online
[15:36:14] bobry is now away
[15:36:14] bobry is now away
[15:36:14] bobry is now away
[15:36:14] bobry is now away
[15:36:19] aries.ua: В котором можно юзать СкульАлхимию - так правильнее
[15:36:24] aries.ua: :)
[15:37:26] pc_ is now online
[15:38:11] maxim.zemlyakov is now online
[15:38:17] aries.ua is now online
[15:39:08] webninja is now away
[15:39:09] webninja is now away
[15:39:38] bobry is now away
[15:39:50] erraen is now online
[15:41:14] bobry is now away
[15:41:14] bobry is now online
[15:41:14] bobry is now online
[15:41:14] bobry is now online
[15:41:47] webninja is now away
[15:41:48] webninja is now online
[15:43:11] Ляпатяпа is now offline
[15:43:13] maxim.zemlyakov is now online
[15:43:19] aries.ua is now online
[15:43:22] webninja: Flask
[15:43:28] webninja: Pyramids
[15:43:33] webninja: или как его
[15:44:40] bobry is now online
[15:44:52] erraen is now online
[15:45:10] maxim.zemlyakov is now offline
[15:48:20] aries.ua is now online
[15:49:22] bobry is now away
[15:49:23] bobry is now away
[15:49:23] bobry is now away
[15:49:23] bobry is now away
[15:49:43] bobry is now away
[15:49:54] erraen is now online
[15:53:22] aries.ua is now online
[15:53:49] mrDoctorWho. is now online
[15:53:59] cutwater is now away
[15:54:31] bobry is now away
[15:54:32] bobry is now online
[15:54:32] bobry is now online
[15:54:32] bobry is now online
[15:54:44] bobry is now online
[15:54:55] erraen is now online
[15:56:45] Typhon is now away
[15:57:44] Typhon is now online
[15:58:23] aries.ua is now online
[15:59:31] Tony is now away
[15:59:45] bobry is now online
[15:59:57] erraen is now online
[16:00:29] levsha is now xa
[16:00:37] bobry is now away
[16:00:38] bobry is now away
[16:00:38] bobry is now away
[16:00:38] bobry is now away
[16:03:26] aries.ua is now online
[16:04:48] bobry is now away
[16:05:00] erraen is now online
[16:07:27] xa4a is now away
[16:08:27] aries.ua is now online
[16:09:01] levsha is now offline
[16:09:49] bobry is now away
[16:10:01] erraen is now online
[16:13:29] aries.ua is now online
[16:13:58] cutwater is now xa
[16:14:51] bobry is now away
[16:15:03] erraen is now online
[16:15:29] slav0nic: aries.ua, любой не джанго
[16:16:39] pc_ is now away
[16:17:26] xa4a is now away
[16:18:00] pc_ is now online
[16:18:31] aries.ua is now online
[16:18:53] bobry is now away
[16:18:53] bobry is now online
[16:18:53] bobry is now online
[16:18:53] bobry is now online
[16:19:49] alex-bulgakov is now online
[16:19:54] bobry is now online
[16:20:05] erraen is now online
[16:21:10] cutwater is now online
[16:21:16] metall1c: в ModelAdmin можно вставить ф-ию formfield_for_foreignkey для изменения списка для удаленного ключа
[16:21:28] nott is now away
[16:21:36] metall1c: как-то можно из этой ф-ии получить данные о редактируемой записи?
[16:21:51] metall1c: т.е. при редактировании записей модели в админке
[16:22:18] nott is now online
[16:22:49] metall1c: при редактировании урл такого вида /admin/cons/answer/7/
[16:22:59] metall1c: вот как бы мне 7-ку выдернуть из урла?
[16:23:33] aries.ua is now online
[16:24:31] Tony is now xa
[16:24:56] bobry is now online
[16:25:06] erraen is now online
[16:25:12] bobry is now away
[16:25:12] bobry is now away
[16:25:12] bobry is now away
[16:28:35] aries.ua is now online
[16:29:59] bobry is now away
[16:30:08] erraen is now online
[16:32:17] levsha is now xa
[16:33:37] aries.ua is now online
[16:35:01] bobry is now away
[16:35:09] erraen is now online
[16:36:27] bobry is now away
[16:36:27] bobry is now online
[16:36:27] bobry is now online
[16:37:29] noobik is now online
[16:38:00] noobik is now offline
[16:38:38] aries.ua is now online
[16:40:02] bobry is now online
[16:40:11] erraen is now online
[16:40:24] mrDoctorWho. is now offline
[16:40:37] mrDoctorWho. is now online
[16:43:40] noobik is now online
[16:43:40] aries.ua is now online
[16:44:28] noobik is now offline
[16:44:45] noobik is now online
[16:45:04] bobry is now online
[16:45:13] erraen is now online
[16:46:06] nott is now away
[16:47:24] noobik: У меня есть хтмл файл, в котором етсть texarea с хтмл кодом.
Я охраняю старый код таким образом (одновременно с анэскейпом):
old_data = HTMLParser.HTMLParser().unescape(BeautifulSoup(data).textarea.contents[0].strip())
Далее мне надо в этом новом коде кое-что найти-убрать-изменить, т.е. я делаю
soup = BeautifulSoup(old_data)
и дальше работаю с супом.
Но вот если сделать print old_data и print soup,
то первый выдаст код нормальный, а второй с &gt; &lt; вместо <>.
ПОЧЕМУ?!
[16:47:43] webninja is now away
[16:47:44] webninja is now away
[16:47:52] nott is now online
[16:47:58] noobik: xa4a
[16:48:07] Typhon is now away
[16:48:42] aries.ua is now online
[16:49:14] огыешсук is now away
[16:49:41] Tony is now online
[16:49:53] noobik is now offline
[16:50:03] огыешсук is now online
[16:50:05] noobik is now online
[16:50:07] bobry is now online
[16:50:10] Typhon is now online
[16:50:14] erraen is now online
[16:52:52] webninja is now away
[16:52:52] webninja is now online
[16:53:44] aries.ua is now online
[16:55:09] bobry is now online
[16:55:16] erraen is now online
[16:55:21] noobik is now offline
[16:55:55] bobry is now away
[16:55:55] bobry is now away
[16:55:55] bobry is now away
[16:57:55] alex-bulgakov is now offline
[16:58:45] aries.ua is now online
[17:00:11] bobry is now away
[17:00:18] erraen is now online
[17:02:13] noobik is now online
[17:02:43] webninja is now away
[17:02:43] webninja is now away
[17:03:00] noobik: metall1c: попробуй
url = '/admin/cons/answer/7/'
print os.path.basename(url[:-1])

[17:03:07] webninja is now away
[17:03:07] webninja is now online
[17:03:47] aries.ua is now online
[17:03:57] metall1c: спс, уже решил вот так: urlPath = request.META['PATH_INFO'].split('/')[-2]
[17:05:00] noobik is now offline
[17:05:13] bobry is now away
[17:05:20] erraen is now online
[17:05:23] gigimon is now online
[17:07:25] Typhon is now away
[17:07:26] Typhon is now away
[17:08:48] aries.ua is now online
[17:08:58] Typhon is now away
[17:09:01] Typhon is now online
[17:10:15] bobry is now away
[17:10:22] erraen is now online
[17:10:39] alexander.danilov is now online
[17:10:40] alexander.danilov is now online
[17:11:15] alexander.danilov: Друзья, привет, кто-нить писал на werkzeug?
[17:11:29] cutwater is now away
[17:13:50] aries.ua is now online
[17:14:00] alexander.danilov is now online
[17:14:23] Typhon is now away
[17:14:23] огыешсук: Это flask что ли?
[17:15:07] bobry is now away
[17:15:07] bobry is now online
[17:15:07] bobry is now online
[17:15:11] alexander.danilov: и да и нет, фласк написан с использованием веркцога
[17:15:16] bobry is now online
[17:15:23] erraen is now online
[17:15:40] cutwater is now online
[17:16:27] webninja: фласк использует веркцойг как WSGI
[17:17:29] xa4a is now away
[17:18:37] alexander.danilov: да, но вопрос про сам веркцог, а точнее про его ContextLocal не могу понять, как проектировать приложение, где больше чем 1 файл view
[17:18:52] aries.ua is now online
[17:18:56] alexander.danilov: где хранить ту же сессию алхимии?
[17:19:01] alexander.danilov is now online
[17:19:18] webninja: ух жостко, глубоко копаешь )
[17:19:30] webninja: а смысл это делать? фласк возьми ) и проектируй там приложение
[17:19:41] Tony is now away
[17:20:19] bobry is now online
[17:20:25] erraen is now online
[17:21:08] alexander.danilov: хорошо, тогда как во фласке проектировать большое приложение?
[17:23:24] alexander.danilov: и еще вопрос , как алхимия работает со схемами в постгресе? можно ли как-то управлять несколькими схемами, через MetaData например?
[17:23:53] aries.ua is now online
[17:24:03] alexander.danilov is now online
[17:24:23] Typhon is now away
[17:25:21] bobry is now online
[17:25:27] erraen is now online
[17:25:46] noobik is now online
[17:28:55] aries.ua is now online
[17:29:06] alexander.danilov is now online
[17:30:07] noobik: у меня новый вопрос по beautifulsoup :)
[17:30:22] bobry is now online
[17:30:29] erraen is now online
[17:31:04] Typhon is now away
[17:31:07] Typhon is now online
[17:33:57] aries.ua is now online
[17:33:58] xa4a is now away
[17:34:07] alexander.danilov is now online
[17:35:06] gigimon is now online
[17:35:24] bobry is now online
[17:35:30] erraen is now online
[17:35:40] cutwater is now away
[17:37:06] xa4a is now away
[17:38:03] bobry is now away
[17:38:03] bobry is now away
[17:38:03] bobry is now away
[17:38:59] aries.ua is now online
[17:39:09] alexander.danilov is now online
[17:40:26] bobry is now away
[17:40:32] erraen is now online
[17:44:00] aries.ua is now online
[17:44:11] alexander.danilov is now online
[17:44:41] Tony is now xa
[17:45:28] nott is now away
[17:45:29] bobry is now away
[17:45:34] erraen is now online
[17:46:14] nott is now online
[17:46:50] dicos is now online
[17:49:02] aries.ua is now online
[17:49:12] alexander.danilov is now online
[17:49:36] mrDoctorWho. is now offline
[17:49:38] mrDoctorWho. is now online
[17:50:32] bobry is now away
[17:50:36] erraen is now online
[17:51:33] metall1c: никто ckeditor к джанге не прикручивал?
[17:52:02] gigimon: knife client list
[17:54:03] aries.ua is now online
[17:54:14] alexander.danilov is now online
[17:55:34] bobry is now away
[17:55:38] erraen is now online
[17:55:40] cutwater is now xa
[17:56:39] webninja: я прикручивал
[17:56:54] webninja: вот только седня это делал )))
[17:59:06] aries.ua is now online
[17:59:16] alexander.danilov is now online
[18:00:37] bobry is now away
[18:00:39] erraen is now online
[18:02:06] Typhon is now away
[18:02:06] Typhon is now online
[18:02:10] alexander.danilov is now away
[18:02:10] alexander.danilov is now away
[18:02:10] alexander.danilov is now away
[18:02:19] alexander.danilov is now away
[18:02:19] alexander.danilov is now online
[18:02:19] alexander.danilov is now online
[18:03:19] bobry is now offline
[18:04:08] aries.ua is now online
[18:04:18] alexander.danilov is now online
[18:05:40] erraen is now online
[18:07:01] metall1c: webninja: есть мануал или пример?
[18:07:48] metall1c: я так понимаю, там можно нужный textarea сделать вот так: CKEDITOR.replace( 'textarea_id' );
[18:08:07] metall1c: только тарболе куча файлов всяких, в т.ч. пхп, что там нужно, а что нет, не поймешь
[18:08:28] webninja: какой мануал там 3и строчки
[18:09:01] webninja: django-ckeditor
[18:09:09] aries.ua is now online
[18:09:20] alexander.danilov is now online
[18:09:30] deepwalker: а зачем?
[18:10:02] metall1c: пробовал django-ckeditor, не получилось по инструкции на сайте, плюс, как я понял, django-ckeditor уже два года не обновляется
[18:10:14] slav0nic is now offline
[18:10:16] Joes is now Yep, I'm here.
[18:10:19] metall1c: deepwalker: типа щас будешь рассказывать что рич текст едиторы не нужны?
[18:10:43] erraen is now online
[18:10:45] deepwalker: я могу только рассказать, что ставят их для балбесов, а балбесам их в руки давать нельзя
[18:11:05] cutwater is now online
[18:11:13] deepwalker: достаточно посмотреть на то что они в ворде делают
[18:11:52] Trec is now online
[18:11:54] metall1c: ты предлагаешь редактору сайта учить хтмл?
[18:12:00] deepwalker: макрдаун
[18:12:03] deepwalker: rest
[18:12:15] metall1c: ?
[18:12:31] deepwalker: пля, а ты думаешь если он редактор, то ему не надо учиться грамотно оформлять на сайте тексты?
[18:12:57] deepwalker: а оформлять их надо никак
[18:13:05] dicos is now offline
[18:13:09] deepwalker: надо структуру описывать, а оформление не их забота
[18:13:29] deepwalker: и вот тут маркдаун блистает
[18:13:54] Trec: уважаемые, возможно ли вмешаться в iframe с помощью JS? Есть обычные комментарии от Вконтакта, нужно средствами JS скрыть коментарии, оставить только лишь форму, возможно ли это как-то?
[18:14:11] aries.ua is now online
[18:14:21] metall1c: а жирный текст, курсив, заголовки, такие базовые вещи не надо редактору делать? а если я скажу заказчику, что ему для этого надо учить хтмл, меня отправят в пешую экскурсию и отдадут заказ другому человеку
[18:14:22] alexander.danilov is now online
[18:14:38] deepwalker: markdown
[18:14:45] deepwalker: еще пять раз написать? :)
[18:14:53] deepwalker: и жирный текст, и заголовки
[18:14:57] deepwalker: и курсив
[18:15:16] deepwalker: и все просто и наглядно
[18:15:45] erraen is now online
[18:17:23] andreyjkee is now online
[18:18:52] metall1c: ок, погуглю, но с картинками в тексте и удобным файловым менеджером не понятно
[18:19:13] aries.ua is now online
[18:19:23] alexander.danilov is now online
[18:19:25] metall1c: блин, markdown это типа вики-языка? да тоже для определенного типа заказчиков будет трудно
[18:20:25] andreyjkee is now online
[18:20:34] andreyjkee is now offline
[18:20:38] andreyjkee is now online
[18:20:47] erraen is now online
[18:24:15] aries.ua is now online
[18:24:26] alexander.danilov is now online
[18:25:49] erraen is now online
[18:26:29] cutwater is now away
[18:27:36] nott is now away
[18:28:51] noobik is now offline
[18:29:17] aries.ua is now online
[18:29:28] alexander.danilov is now online
[18:30:45] noobik is now online
[18:30:51] erraen is now online
[18:32:04] nott is now online
[18:32:22] gigimon: metall1c: ставь обычный wysiwyg
[18:33:04] metall1c: в ckeditor есть встроенный файловый броузер, это в нем понравилось
[18:34:19] aries.ua is now online
[18:34:29] alexander.danilov is now online
[18:35:53] erraen is now online
[18:36:21] cutwater is now online
[18:37:24] deepwalker: metall1c, я просто могу поработать провидцем - сайт будет как адское говно
[18:37:35] deepwalker: потому что учиться надо
[18:37:54] deepwalker: это наивный подход, что ворду не надо учиться - надо, и еще как
[18:37:59] metall1c: не знаю, несколько штук сделал уже с визульными редакторами, все прилично выглядит
[18:38:11] deepwalker: не верю
[18:38:19] metall1c: не доказываю
[18:38:55] deepwalker: с разметкой и той начинается - стописят выделений и тому подобное
[18:39:21] aries.ua is now online
[18:39:31] alexander.danilov is now online
[18:40:48] metall1c: да нормально все там, если не очень сложные страницы делать, обычному юзеру гораздо проще использовать визуальный редактор
[18:40:55] erraen is now online
[18:42:43] Typhon is now away
[18:42:44] Typhon is now away
[18:43:05] webninja: да
[18:43:07] webninja: редактор рулит
[18:43:14] webninja: поотрубать там шрифты цвета
[18:43:17] webninja: и все чотко будет
[18:43:39] gigimon is now offline
[18:43:43] webninja: так это metall1c обнови сам там просто тупо качает новый ckeditor и заливаешь себе в static/ckeditor/ckeditor
[18:43:55] webninja: и все работает. нечего там обновлять на самом деле
[18:44:23] aries.ua is now online
[18:44:33] alexander.danilov is now online
[18:44:51] metall1c: ясно, попробую еще
[18:45:31] andreyjkee is now offline
[18:45:56] erraen is now online
[18:46:46] MAVr is now away
[18:46:48] MAVr is now away
[18:46:52] xa4a is now online
[18:49:25] aries.ua is now online
[18:49:35] alexander.danilov is now online
[18:49:52] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[18:49:57] Typhon is now away
[18:49:59] Typhon is now online
[18:50:59] erraen is now online
[18:51:43] mrDoctorWho. is now away
[18:53:03] noobik: пипл
[18:53:06] deisler is now offline
[18:53:12] noobik: нубский вопрос от нуба
[18:54:26] aries.ua is now online
[18:54:36] alexander.danilov is now online
[18:55:31] noobik: new_file.html.insert(len(new_file.html.contents), Tag(new_file, 'TESTTAG'))
вставит мне в код <TESTTAG></TESTTAG> перед </html>.
у меня уже есть готовая строка вида:
testtag = '<TESTTAG>Hi test me!</TESTTAG>'. Как вставить ее?
[18:55:44] mrDoctorWho. is now online
[18:55:58] noobik: если сделать Tag(new_file, 'TESTTAG')) то в коде будет <<TESTTAG></TESTTAG>>
[18:56:00] erraen is now online
[18:57:23] noobik: даже так :
<<TESTTAG>Hello!</TESTTAG>></<TESTTAG>Hello!</TESTTAG>></html>
[18:57:47] xa4a: прочитать документацию
[18:59:12] noobik: если вообще убрать Tag(...) то будет &lt;TESTTAG&gt;Hello!&lt;/TESTTAG&gt;</html>
[18:59:29] aries.ua is now online
[18:59:38] alexander.danilov is now online
[19:00:53] aries.ua is now offline
[19:01:02] erraen is now online
[19:01:31] noobik: xa4a: добрый день ж)
[19:02:14] xa4a: ы
[19:02:16] xa4a: утро
[19:02:18] xa4a: *
[19:02:52] mrDoctorWho. is now offline
[19:03:07] Trec is now offline
[19:03:09] mrDoctorWho. is now online
[19:03:59] noobik: xa4a: мож ткнете носом?:)
[19:04:40] noobik: у меня есть
testtag = '<TST>hello</TST>'
и я ее перед </html> пытаюсь всучить
[19:04:41] alexander.danilov is now online
[19:04:44] xa4a: я бы посмотрел в описание метода .insert()
[19:04:49] noobik: ага
[19:04:55] xa4a: какие типы ему можно передавать кроме строки
[19:06:03] erraen is now online
[19:06:54] erraen is now offline
[19:08:04] noobik: тэг
[19:08:16] noobik: еще там лист можно, но мне не подходит
[19:08:26] noobik: или я не знаю. что подходит
[19:09:00] noobik: а лист не ему двже, а Tag %)
[19:09:43] alexander.danilov is now online
[19:11:54] noobik: самый примитивный вариант это у
TESTTAG = '<TESTTAG>Hello!</TESTTAG>'
поубирать < в начале и >в конце и сделать
soup.html.insert(len(soup.html.contents), Tag(new_file, TESTTAG)) ;))))))))))))))))))))
[19:12:35] webninja is now offline
[19:13:41] noobik: только в результате дважды вставит, от шайтан
[19:13:42] mrDoctorWho. is now away
[19:14:25] metall1c is now away
[19:14:45] alexander.danilov is now online
[19:17:29] xa4a: попробуй передать аргументом Tag
[19:17:50] noobik: делал
[19:18:48] noobik: Tag(soup, TESTTAG))
[19:19:47] alexander.danilov is now online
[19:22:00] alexander.danilov is now away
[19:22:00] alexander.danilov is now away
[19:22:00] alexander.danilov is now away
[19:23:09] noobik: если делать
TESTTAG = '<TESTTAG id=15></TESTTAG>'
new_file.html.insert(-1, TESTTAG), то на выходе
</body>&lt;TESTTAG id=15&gt;&lt;/TESTTAG&gt;
</html>
[19:23:10] alexey-grom is now online
[19:24:50] alexander.danilov is now away
[19:25:10] огыешсук is now offline
[19:25:22] огыешсук is now online
[19:26:43] noobik: xa4a: помогите )
[19:27:00] xa4a: попробуй передать аргументом Tag
[19:27:04] xa4a: а не строку
[19:29:50] noobik: т.е. new_file.html.insert(-1, Tag(new_file, 'TESTTAG')) ?
[19:29:51] alexander.danilov is now away
[19:29:53] alex-bulgakov is now online
[19:32:35] noobik: если да, то он создает пустой тэг. А у меня там еще много всякой всячины может оказаться
[19:33:30] noobik: т.е. я получу
</body><TESTTAG></TESTTAG>
</html>
а мне надо
</body><TESTTAG rand=1, rand=rnd...></TESTTAG>
</html>
[19:33:42] mrDoctorWho. is now xa
[19:34:09] alexander.danilov is now away
[19:34:09] alexander.danilov is now online
[19:34:09] alexander.danilov is now online
[19:34:26] metall1c is now xa
[19:34:30] alexander.danilov is now offline
[19:37:18] noobik: xa4a: :)
[19:38:03] Tony is now online
[19:41:17] xa4a is now online
[19:41:17] xa4a is now away
[19:42:45] MAVr is now offline
[19:43:33] mrDoctorWho. is now online
[19:43:59] xa4a is now away
[19:44:03] xa4a is now online
[19:44:26] xa4a: создай не пустой тег
[19:45:34] noobik: new_file.html.insert(-1, Tag(new_file, 'TESTTAG rand=1, rand=rnd'))
[19:45:35] noobik: ?
[19:47:52] bobry is now online
[19:47:52] bobry is now online
[19:47:56] xa4a: я без понятия
[19:47:59] xa4a: никогда не делал этого
[19:48:04] xa4a: это у документации спрашивай
[19:48:06] noobik: ааа ок ж))
[19:48:07] xa4a: или у интерпретатора
[19:48:27] noobik: а то я думал вы меня на мысль пытаетесь навести, а я не пойму на какую %)
[19:48:41] xa4a: постараюсь выразиться яснее
[19:48:46] xa4a: "ЧИТАЙ ДОКУМЕНТАЦИЮ"
[19:48:53] noobik: читаю
[19:48:56] bobry is now online
[19:53:59] bobry is now online
[19:57:44] огыешсук is now offline
[19:58:57] xa4a is now offline
[19:59:01] bobry is now online
[20:00:09] Typhon is now away
[20:04:03] bobry is now online
[20:04:26] noobik is now offline
[20:04:41] Typhon is now online
[20:08:05] Tony is now away
[20:09:05] bobry is now online
[20:10:25] bobry is now away
[20:10:25] bobry is now away
[20:10:25] bobry is now away
[20:11:35] pc_ is now away
[20:14:08] bobry is now away
[20:17:35] Typhon is now away
[20:17:49] Typhon is now offline
[20:19:11] bobry is now away
[20:21:34] pc_ is now xa
[20:24:14] bobry is now away
[20:27:17] nott is now away
[20:28:25] levsha is now offline
[20:28:44] nott is now online
[20:29:16] bobry is now away
[20:33:05] Tony is now xa
[20:34:19] bobry is now away
[20:36:05] bobry is now offline
[20:38:51] Tony is now online
[20:41:39] bobry is now online
[20:41:53] cutwater is now offline
[20:45:24] bobry is now online
[20:47:35] slav0nic is now online
[20:50:24] bobry is now online
[20:55:25] bobry is now online
[20:59:54] levsha is now xa
[21:00:25] bobry is now online
[21:05:27] bobry is now online
[21:08:57] bobry is now away
[21:08:57] bobry is now away
[21:08:57] bobry is now away
[21:10:30] bobry is now away
[21:11:05] Tony is now away
[21:13:36] bobry is now away
[21:13:36] bobry is now away
[21:13:36] bobry is now online
[21:13:36] bobry is now online
[21:15:28] bobry is now online
[21:18:41] bobry is now away
[21:18:41] bobry is now away
[21:18:59] alexey-grom is now offline
[21:19:00] alexey-grom is now online
[21:19:39] slav0nic is now away
[21:20:22] mishok13 is now offline
[21:20:30] bobry is now away
[21:20:36] deisler is now away
[21:25:32] bobry is now away
[21:29:06] gigimon is now online
[21:29:39] slav0nic is now xa
[21:30:33] bobry is now away
[21:30:35] slav0nic is now online
[21:34:04] cutwater is now online
[21:35:35] bobry is now away
[21:36:05] Tony is now xa
[21:40:38] bobry is now away
[21:44:01] bobry is now offline
[21:45:57] mishok13 is now online
[21:45:58] cutwater is now offline
[21:46:08] cutwater is now online
[21:50:14] bobry is now online
[21:50:15] bobry is now online
[21:50:53] gigimon is now online
[21:52:14] gigimon is now online
[21:52:45] cutwater: Господа, а давайте еще раз пообсуждаем собеседования
[21:52:56] cutwater: Ну вот с какого этапа можно считать человека джуниором
[21:53:54] bobry is now online
[21:54:17] levsha: давайте уж формалистов обсуждаем
[21:55:50] cutwater: давайте =)
[21:58:39] Tony is now online
[21:58:57] bobry is now online
[21:59:12] py_two is now Automatically away due to idle
[22:03:59] bobry is now online
[22:08:52] nott is now offline
[22:09:02] bobry is now online
[22:12:51] mishok13 is now offline
[22:14:05] bobry is now online
[22:15:46] mishok13 is now online
[22:19:07] bobry is now online
[22:20:00] cutwater is now offline
[22:21:57] mrDoctorWho. is now offline
[22:24:09] bobry is now online
[22:26:27] xa4a is now online
[22:28:21] xa4a is now offline
[22:29:11] bobry is now online
[22:29:17] bobry is now away
[22:29:17] bobry is now away
[22:29:17] bobry is now away
[22:29:19] noobik is now online
[22:30:20] bobry is now away
[22:30:20] bobry is now online
[22:30:20] bobry is now online
[22:33:34] slav0nic is now away
[22:33:53] deisler is now offline
[22:34:15] bobry is now online
[22:34:53] py_two is now offline
[22:39:16] bobry is now online
[22:39:25] bobry is now away
[22:39:25] bobry is now away
[22:39:25] bobry is now away
[22:39:44] slav0nic is now online
[22:42:09] Сволота is now online
[22:43:00] alex-bulgakov is now away
[22:43:50] _lorien is now online
[22:44:12] deisler is now away
[22:44:20] bobry is now away
[22:44:33] _lorien: парни а как правильно при использовании мускуля и алхимии сделать автоматом высылку команды set sql_mode=traditional, а то мускуль по-умолчанию не генерит exception, когда данные обрезает
[22:44:52] _lorien: чё-то надо при каждом session = Session() эту комнаду высылать, херь какая-то
[22:49:23] bobry is now away
[22:51:04] py_two is now Automatically away due to idle
[22:51:42] deisler is now offline
[22:53:34] slav0nic is now away
[22:54:25] bobry is now away
[22:54:40] slav0nic is now online
[22:55:44] noobik is now away
[22:55:53] py_two is now offline
[22:58:59] noobik is now online
[22:59:28] bobry is now away
[23:03:00] alex-bulgakov is now xa
[23:04:30] bobry is now away
[23:04:46] bobry is now offline
[23:04:53] py_two is now Automatically away due to idle
[23:05:16] bobry is now online
[23:05:16] bobry is now online
[23:06:38] bobry is now online
[23:06:53] py_two is now offline
[23:06:57] py_two is now Automatically away due to idle
[23:07:41] py_two is now Automatically away due to idle
[23:07:53] py_two is now offline
[23:11:41] bobry is now online
[23:13:44] py_two is now Automatically away due to idle
[23:13:50] alexey-grom is now offline
[23:13:52] alexey-grom is now online
[23:16:43] bobry is now online
[23:17:24] bobry is now away
[23:17:25] bobry is now away
[23:17:25] bobry is now away
[23:21:45] bobry is now away
[23:26:47] bobry is now away
[23:29:25] slav0nic is now offline
[23:30:57] noobik: xa4a: моя проблема решилась откатом до версии 3.2.0 вместо 3.2.1
[23:31:50] bobry is now away
[23:35:03] bobry is now away
[23:35:04] bobry is now online
[23:35:04] bobry is now online
[23:37:05] bobry is now online
[23:41:55] bobry is now online
[23:43:41] noobik is now away
[23:45:24] py_two is now offline
[23:45:29] py_two is now Automatically away due to idle
[23:46:57] bobry is now online
[23:52:00] bobry is now online
[23:52:13] noobik is now online
[23:52:27] bobry is now away
[23:52:27] bobry is now away
[23:52:27] bobry is now away
[23:56:33] noobik: или переходом на 4 версию с использованием prettify(formatter=None)
[23:57:02] bobry is now away
[23:58:35] _lorien is now away