[00:00:45] jolits is now xa
[00:00:51] jolits is now xa
[00:01:54] klichuk is now offline
[00:04:15] jolits is now offline
[00:05:03] klichuk is now online
[00:07:52] Александp is now away
[00:17:52] Александp is now xa
[00:24:58] lievil is now away
[00:26:48] lievil is now online
[00:35:06] Мозгошредер is now offline
[00:35:16] jedgar is now offline
[00:35:26] gigimon is now offline
[00:35:27] gigimon is now online
[00:35:55] gigimon: хм, товарищи, подскажите, пишу:
{% if user.is_authenticated() %}
Привет {{ user.login }} {% if perms.blog.can_add %} <a href="/blogs/add">Добавить пост</a> {% endif %}{% endif %}
А говорит что perms perms' is undefined
[00:37:13] sevenov: gigimon, а скобки там зачем? Или теперь так можно?
[00:37:25] gigimon: sevenov: jinja
[00:37:28] sevenov: а
[00:37:46] sevenov: значит undefined, чо )
[00:38:14] gigimon: дык, а как его определить? чет в доке в разделе права, нету упоминаний
[00:38:25] gigimon: только что django.contrib.auth включить, а оно включено)
[00:41:48] sevenov: ну хз.
[00:44:24] gigimon: вот черт (
[00:47:18] _lorien: спать хочу
[00:48:45] gigimon: _lorien: ложись)
[00:48:55] gigimon: _lorien: по проблеме незнаешь случаем? :(
[00:49:37] _lorien: нет, даже не пойму чо это, я с пермсами не работал
[00:49:45] _lorien: ну, дебагай типа :)
[00:50:19] gigimon: черт =(
[00:55:43] red-agent is now away
[00:55:59] red-agent is now online
[01:01:01] red-agent is now away
[01:06:08] _lorien: пробил час - не остановишь нас
свыше контролю не бывать
делай то что по душе
на своём стальном коне
мы здесь, чтобы на джанго писать!
[01:06:19] gigimon: такс
[01:06:20] _lorien: чуть-чуть переделанная ария :)
[01:06:26] gigimon: проблема нашлась :)
[01:06:38] gigimon: в jinja2 не передавался perms
[01:06:48] gigimon: обошел юзая suer.has_perm()
[01:06:51] gigimon: user*
[01:07:00] gigimon: всеравно это оно и есть
[01:07:39] gigimon: _lorien: сам сочинил?
[01:07:46] gigimon: точнее переделал?)
[01:07:49] _lorien: нет же, говорю арию переделал )
[01:08:00] _lorien: мы здесь, чтоб полночь сорвать - в оригинале
[01:08:13] _lorien: Ария "Пробил час"
[01:08:33] _lorien: стальной конь можно расценивать как лэптоп :)
[01:09:49] gigimon: хых
[01:11:01] red-agent is now xa
[01:12:05] sevenov is now offline
[01:12:22] sevenov is now away
[01:12:35] _lorien: http://www.artlebedev.ru/kovodstvo/idioteka/2009/08/19/ :D
[01:19:05] klichuk is now away
[01:23:01] zulorflare is now online
[01:23:55] Typhon is now offline
[01:26:13] gigimon: хм, а django_debug_toolbar с jinja2 работает? никто ен пробовал? а то добавил все по мануалу, а панелька и не показывается
[01:31:54] lievil is now away
[01:32:40] _lorien is now away
[01:37:36] _lorien is now xa
[01:39:05] klichuk is now xa
[01:41:54] lievil is now xa
[01:49:36] klichuk is now offline
[01:49:38] klichuk is now xa
[01:51:32] klichuk is now xa
[01:51:36] klichuk is now offline
[02:01:14] Александp is now online
[02:06:18] Александp is now away
[02:16:33] Александp is now xa
[02:31:51] denz is now offline
[02:44:18] sevenov is now offline
[02:44:39] sevenov is now away
[03:32:18] sevenov is now offline
[03:32:53] sevenov is now away
[04:10:42] xa4a_ is now away
[04:10:42] red-agent is now xa
[04:10:42] sevenov is now away
[04:10:42] plus is now xa
[04:10:42] mishok13 is now xa
[04:10:42] zulorflare is now online
[04:10:42] gigimon is now online
[04:10:42] tilarids is now online
[04:10:42] lievil is now xa
[04:10:42] cutwater is now xa
[04:10:42] Александp is now xa
[04:10:42] _lorien is now xa
[04:10:42] wiz is now away
[04:10:42] magic_pony is now online
[04:10:42] : _lorien установил(а) тему: Python.SU | Сначала поищи ответ на docs.python.org | Теперь поищи на google.com | За голосом - в приват к модераторам | Код постить в dumpz.org | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://➡.ws/pu | Хочешь задать вопрос - просто *задай* его! | Третий тупой вопрос за сутки — на http://throwcatch.me | Ещё рано использовать py3k
[04:40:39] red-agent is now offline
[04:40:51] red-agent is now xa
[04:49:57] cutwater is now online
[04:50:17] cutwater is now offline
[05:09:22] sevenov is now offline
[05:09:26] sevenov is now away
[05:18:59] sevenov is now offline
[05:19:16] sevenov is now away
[05:27:14] red-agent is now offline
[05:27:34] red-agent is now xa
[05:54:28] zulorflare is now offline
[06:16:06] sevenov is now offline
[06:53:12] red-agent is now offline
[06:54:10] red-agent is now xa
[06:54:16] zulorflare is now online
[06:59:23] plus is now online
[07:09:37] plus is now away
[07:12:47] Александp is now offline
[07:13:02] Александp is now xa
[07:29:36] plus is now xa
[07:33:20] _lorien is now online
[07:46:26] _lorien is now away
[07:51:22] _lorien is now xa
[07:53:28] mdn is now online
[07:53:29] mdn is now online
[07:53:52] _lorien is now online
[07:54:02] _lorien is now xa
[08:11:34] klichuk is now online
[08:22:32] wiz_ is now online
[08:23:28] klichuk is now away
[08:29:23] klichuk is now online
[08:29:47] Typhon is now online
[08:33:01] kryklia is now online
[08:33:02] kryklia is now online
[08:33:07] kryklia is now online
[08:33:08] kryklia is now online
[08:33:32] kryklia is now online
[08:37:54] kryklia is now away
[08:37:55] kryklia is now away
[08:38:32] kryklia is now away
[08:43:32] kryklia is now away
[08:48:33] kryklia is now away
[08:52:09] klichuk is now away
[08:53:34] kryklia is now away
[08:55:02] Portnov is now online
[08:55:06] Portnov is now online
[08:58:34] kryklia is now away
[09:01:53] Большой Лис is now online
[09:03:34] kryklia is now away
[09:07:18] mishok13 is now online
[09:08:34] kryklia is now away
[09:12:09] klichuk is now xa
[09:12:38] zulorflare is now offline
[09:13:34] kryklia is now away
[09:15:03] erraen is now online
[09:15:04] erraen is now online
[09:15:11] erraen is now online
[09:17:33] erraen is now online
[09:18:35] kryklia is now away
[09:22:32] erraen is now online
[09:23:35] kryklia is now away
[09:26:03] StormChild is now away
[09:26:37] zulorflare is now online
[09:27:06] _lorien: мм, как рисовать контуры стран в gogle maps, кто-нить делал? Надо страны подсвечивать по красивому.
[09:27:33] erraen is now online
[09:28:36] kryklia is now away
[09:30:38] jedgar is now online
[09:30:41] jedgar is now online
[09:32:33] erraen is now online
[09:33:36] kryklia is now away
[09:34:50] wiz_ is now offline
[09:37:34] erraen is now online
[09:37:43] RaD is now online
[09:37:44] RaD is now online
[09:37:54] Portnov is now away
[09:38:01] wiz_ is now online
[09:38:03] RaD is now online
[09:38:37] kryklia is now away
[09:38:38] poltergeist is now online
[09:38:39] poltergeist is now online
[09:40:51] Portnov is now online
[09:41:50] MAVr is now Да, я тут
[09:41:51] MAVr is now Да, я тут
[09:42:34] erraen is now online
[09:43:04] RaD is now online
[09:43:37] kryklia is now away
[09:45:20] kryklia is now online
[09:45:21] kryklia is now online
[09:47:33] Portnov is now away
[09:47:34] erraen is now online
[09:48:05] RaD is now online
[09:48:18] Portnov is now online
[09:48:37] kryklia is now online
[09:50:24] Lolka is now online
[09:50:25] Lolka is now offline
[09:50:31] wonderfulll is now online
[09:50:32] wonderfulll is now online
[09:50:33] Lolka is now online
[09:51:39] kryklia is now away
[09:51:40] kryklia is now away
[09:52:34] erraen is now online
[09:53:05] RaD is now online
[09:53:37] kryklia is now away
[09:54:04] wonderfulll is now online
[09:54:41] kryklia is now online
[09:54:42] kryklia is now online
[09:56:13] RaD is now away
[09:56:14] RaD is now away
[09:56:52] RaD is now online
[09:56:53] RaD is now online
[09:57:35] erraen is now online
[09:58:05] RaD is now online
[09:58:38] kryklia is now online
[09:59:05] wonderfulll is now online
[09:59:57] MAVr is now away
[10:00:03] MAVr is now away
[10:01:05] plus is now online
[10:01:07] MAVr is now Да, я тут
[10:02:35] erraen is now online
[10:03:05] RaD is now online
[10:03:38] kryklia is now online
[10:04:05] wonderfulll is now online
[10:05:36] kryklia is now away
[10:05:37] kryklia is now away
[10:07:36] erraen is now online
[10:07:45] zulorflare is now offline
[10:08:05] RaD is now online
[10:08:38] kryklia is now away
[10:09:04] wonderfulll is now online
[10:12:36] erraen is now online
[10:13:06] RaD is now online
[10:13:38] kryklia is now away
[10:14:05] wonderfulll is now online
[10:14:08] PC is now online
[10:15:37] 0lejka is now I'm not here right now
[10:17:36] erraen is now online
[10:18:06] RaD is now online
[10:18:39] kryklia is now away
[10:19:05] wonderfulll is now online
[10:22:37] erraen is now online
[10:22:40] nmk is now online
[10:23:06] RaD is now online
[10:23:39] kryklia is now away
[10:24:05] wonderfulll is now online
[10:25:06] kryklia is now online
[10:25:07] kryklia is now online
[10:25:34] RaD is now offline
[10:27:37] erraen is now online
[10:28:39] kryklia is now online
[10:29:05] wonderfulll is now online
[10:29:38] denz is now online
[10:29:58] Portnov is now away
[10:30:14] kryklia is now away
[10:30:15] kryklia is now away
[10:32:37] erraen is now online
[10:33:40] kryklia is now away
[10:34:05] wonderfulll is now online
[10:37:23] denz is now away
[10:37:37] erraen is now online
[10:37:59] n0vus is now online
[10:38:06] n0vus is now offline
[10:38:40] kryklia is now away
[10:39:05] wonderfulll is now online
[10:39:52] Большой Лис is now away
[10:39:53] Большой Лис is now online
[10:40:03] denz is now online
[10:40:08] MAVr is now away
[10:41:22] MAVr is now Да, я тут
[10:42:28] Александp is now online
[10:42:37] erraen is now online
[10:43:40] kryklia is now away
[10:44:07] wonderfulll is now online
[10:44:27] nmk: народ, кто с нгинксом дружит хорошо? почему он _иногда_ может не отдавать Content-length ? потому что еще не успел получить весь ответ от бэкенда и начинает отдавать контент?
[10:44:43] Большой Лис is now away
[10:44:59] wiz_: на одном и том же запросе?
[10:45:03] nmk: да
[10:45:29] nmk: я сначала в логах разницу 10-11 байт увидел, потом начал пробовать воспроизводить со сниферром и увидел что иногда нету content-length
[10:45:43] denz is now away
[10:45:56] RaD is now online
[10:45:57] RaD is now online
[10:46:21] nmk: или может джанга не всегда как-то отдает content-length
[10:46:24] nmk: даже уже не знаю куда думать
[10:46:52] Portnov is now online
[10:47:37] erraen is now online
[10:47:52] Мозгошредер is now dnd
[10:48:40] kryklia is now away
[10:49:01] Lolka is now offline
[10:49:02] Lolka is now online
[10:49:06] wonderfulll is now online
[10:49:45] jedgar is now away
[10:49:58] kryklia is now online
[10:50:00] kryklia is now online
[10:50:33] RaD is now online
[10:50:45] nmk: точнее не в content-length дело, иногда появляется Transfer-Encoding: chunked, т.е. как я понимаю nginx не весь ответ получает
[10:51:39] Большой Лис is now online
[10:52:38] erraen is now online
[10:53:40] kryklia is now online
[10:54:06] wonderfulll is now online
[10:55:34] RaD is now online
[10:55:43] denz is now xa
[10:56:30] poltergeist is now away
[10:56:31] poltergeist is now away
[10:57:38] erraen is now online
[10:57:53] denz is now online
[10:58:40] kryklia is now online
[10:59:07] wonderfulll is now online
[11:00:35] RaD is now online
[11:00:45] poltergeist is now online
[11:01:02] kryklia is now away
[11:01:03] kryklia is now away
[11:02:38] erraen is now online
[11:03:24] PC is now away
[11:03:40] kryklia is now away
[11:03:40] PC is now online
[11:04:08] wonderfulll is now online
[11:05:36] RaD is now online
[11:06:07] kryklia is now online
[11:06:08] kryklia is now online
[11:07:39] erraen is now online
[11:08:40] kryklia is now online
[11:09:08] wonderfulll is now online
[11:10:04] plus is now away
[11:10:29] Александp is now away
[11:10:36] RaD is now online
[11:11:02] xa4a_ is now online
[11:11:15] Александp is now online
[11:11:37] StormChild is now offline
[11:12:06] lievil is now online
[11:12:14] kryklia is now away
[11:12:15] kryklia is now away
[11:12:39] erraen is now online
[11:12:40] plus is now offline
[11:13:41] kryklia is now away
[11:14:09] wonderfulll is now online
[11:14:38] RaD is now offline
[11:17:21] RaD is now online
[11:17:22] RaD is now online
[11:17:39] erraen is now online
[11:18:18] RaD is now online
[11:18:21] n0vus is now online
[11:18:27] mishok13 is now away
[11:18:41] kryklia is now away
[11:18:49] n0vus is now offline
[11:19:09] wonderfulll is now online
[11:20:21] mishok13 is now online
[11:22:40] erraen is now online
[11:23:17] RaD is now online
[11:23:41] kryklia is now away
[11:23:57] SV0L0CH is now online
[11:24:10] wonderfulll is now online
[11:24:44] mdn is now offline
[11:26:19] mishok13 is now away
[11:27:40] erraen is now online
[11:27:52] MAVr is now away
[11:28:17] MAVr is now Да, я тут
[11:28:18] RaD is now online
[11:28:42] kryklia is now away
[11:29:10] wonderfulll is now online
[11:30:00] Typhon is now away
[11:30:03] mishok13 is now online
[11:31:16] plus is now online
[11:32:39] erraen is now online
[11:32:52] MAVr is now away
[11:33:14] RaD is now online
[11:33:42] kryklia is now away
[11:34:10] wonderfulll is now online
[11:34:18] RaD is now away
[11:34:19] RaD is now away
[11:34:52] MAVr is now xa
[11:34:54] MAVr is now xa
[11:35:17] RaD is now online
[11:35:18] RaD is now online
[11:35:39] RaD is now offline
[11:37:09] plus is now offline
[11:37:39] erraen is now online
[11:38:42] kryklia is now away
[11:39:10] wonderfulll is now online
[11:39:59] Мозгошредер is now offline
[11:42:39] erraen is now online
[11:43:43] kryklia is now away
[11:44:10] wonderfulll is now online
[11:45:48] Typhon is now online
[11:46:52] MAVr is now away
[11:46:56] MAVr is now Да, я тут
[11:46:59] poltergeist is now away
[11:47:39] erraen is now online
[11:48:44] kryklia is now away
[11:49:10] wonderfulll is now online
[11:50:14] poltergeist is now online
[11:52:40] erraen is now online
[11:53:44] kryklia is now away
[11:54:10] wonderfulll is now online
[11:54:12] xa4a_ is now away
[11:55:05] denz is now away
[11:55:12] xa4a_ is now online
[11:55:35] denz is now online
[11:57:40] erraen is now online
[11:58:07] MAVr is now away
[11:58:45] kryklia is now away
[11:59:10] wonderfulll is now online
[12:00:07] MAVr is now xa
[12:02:40] erraen is now online
[12:03:23] slav0nic is now online
[12:03:33] slav0nic is now away
[12:03:45] kryklia is now away
[12:04:10] wonderfulll is now online
[12:04:32] MAVr is now Да, я тут
[12:07:08] jedgar is now online
[12:07:24] kryklia is now online
[12:07:25] kryklia is now online
[12:07:31] огыешсук is now dnd
[12:07:40] erraen is now online
[12:07:56] Lolka is now offline
[12:08:05] denz is now away
[12:08:46] kryklia is now online
[12:09:10] wonderfulll is now online
[12:09:55] denz is now online
[12:12:40] erraen is now online
[12:12:47] unk2k is now online
[12:13:45] kryklia is now online
[12:13:52] unk2k: всем привет, вопрос по джанге
использую http://www.djangosnippets.org/snippets/821/
в таг передается request, но в нем нет request.path почему ? (есть META)
[12:14:11] wonderfulll is now online
[12:15:05] denz is now away
[12:15:16] kryklia is now away
[12:15:16] kryklia is now away
[12:15:41] Александp: unk2k, uri у страницы какой?
[12:15:51] unk2k: /test/alfa
[12:17:40] erraen is now online
[12:17:54] wiz_: странно.. может контекст перезаписывает что-нибудь?
[12:17:55] lievil is now away
[12:18:05] denz is now online
[12:18:45] kryklia is now away
[12:18:47] MAVr is now away
[12:18:55] unk2k: def render(self, context):
req = template.resolve_variable('request', context)
Failed lookup for key [request] in ....
[12:18:55] MAVr is now Да, я тут
[12:19:10] wiz_: а его по дефолту и нету
[12:19:12] wonderfulll is now online
[12:19:47] unk2k: а как тогда ?
[12:20:00] wiz_: ну дык тегу в рендер реквест передаётся, не?
[12:20:10] wiz_: а.. фиг..
[12:20:25] wiz_: что ты вообще сделать хочешь?
[12:20:28] unk2k: угу
[12:20:31] unk2k: вот я по этому делал http://www.djangosnippets.org/snippets/821/
[12:20:38] unk2k: я передаю декоратором
[12:20:41] mishok13 is now away
[12:21:09] wiz_: так это ж не тег, а декоратор для вида
[12:21:18] wiz_: тебе тег нужен или что?
[12:22:19] unk2k: блин, что бы тег увидел request он должен быть в context а что бы попал туда нужно
render_to_response(...., context_instance=RequestContext(request))
[12:22:30] lievil is now online
[12:22:36] wiz_: ненене
[12:22:40] unk2k: декоратор у меня передает request в шаблон
[12:22:41] erraen is now online
[12:22:46] unk2k: как не ? в доке так написано
[12:23:04] wiz_: хм. ну допустим
[12:23:05] unk2k: (для передачи статическиъ переменныъ используйте RequestContext)
[12:23:11] wiz_: чочо?
[12:23:33] Александp: декоратору ты передаешь шаблон
[12:23:39] unk2k: http://docs.djangoproject.com/en/dev/ref/templates/api/#id1
[12:23:45] kryklia is now away
[12:24:12] wonderfulll is now online
[12:24:15] unk2k: угу, а декоратор уже сам делает рендер_то_респонс(..., \context_instance=RequestContext(request))
[12:24:39] poltergeist is now away
[12:24:45] unk2k: из этого я посмел предположить что я могу юзать request в шаблоне и тегах
[12:24:49] wiz_: def my_view(request):
return render_to_response('foo.html', {'request': request}, RequestContext(request))
[12:24:54] poltergeist is now online
[12:25:09] wiz_: так - сможешь, но лучше так не делать.
[12:25:39] xa4a_: /me потыкал wiz_
[12:25:44] poltergeist is now away
[12:25:49] xa4a_: {'request': request}?
[12:25:49] wiz_: фф?
[12:25:56] wiz_: ну если ему реквест надо передать
[12:26:04] xa4a_: requestcontext что делает?
[12:26:14] xa4a_: кладёт реквест в контекст (К.О.)
[12:26:18] wiz_: ХЕРъ
[12:26:38] xa4a_: да?
[12:26:40] wiz_: да
[12:26:42] xa4a_: а, гм. юзера кладёт
[12:26:48] wiz_: неа
[12:26:51] xa4a_: /me пошёл читать доку
[12:26:58] wiz_: юзера кладёт мидлварь, а потом контекст-процессор
[12:27:24] xa4a_: да. my fault
[12:27:40] xa4a_: django.core.context_processors.request¶
[12:27:40] wiz_: а RequestContext(request)(my_context) пополняет my_context барахлом из этих контекст-процессоров
[12:27:41] erraen is now online
[12:27:58] xa4a_: unk2k: django.core.context_processors.request¶
[12:28:01] xa4a_: в сеттингсах
[12:28:41] unk2k: да
[12:28:46] kryklia is now away
[12:28:50] unk2k: в мидлваре
[12:29:05] unk2k: первым идет
[12:29:12] wonderfulll is now online
[12:29:15] wiz_: мидлварь нужна чтобы к request прицепить результат обработки этого самого request
[12:29:33] wiz_: а контекст-процессоры уже для того чтобы из request выудить нужный стафф и положить его в контекст шаблона
[12:30:00] unk2k: а че он тогда path в context не кладет ?
[12:30:09] wiz_: а кто его просил?
[12:30:19] unk2k: а кто его просит META класть ?
[12:30:25] unk2k: или LANGUAGE
[12:30:40] wiz_: кто-то просит наверно
[12:30:41] mishok13 is now xa
[12:30:43] wiz_: раз кладёт
[12:31:07] unk2k: ну вот же. http://docs.djangoproject.com/en/dev/ref/templates/api/#django-core-context-processors-request
[12:31:10] wiz_: что-то с трудом верится, что он прям так META кладёт в каждый контекст... там же гамна немеряно
[12:31:18] unk2k: RequestContext will contain a variable request
[12:31:23] cutwater is now online
[12:31:41] unk2k: за рание сорри.
[12:31:49] unk2k: вот что он вносит в контекст
[12:31:54] wiz_: Note that this processor is not enabled by default; you'll have to activate it.
[12:32:01] wiz_: читай до конца абзацы (=
[12:32:09] unk2k: Caught an exception while rendering: Failed lookup for key [request] in u"[{}, {'MEDIA_URL': 'http://local:8000/'}, {'LANGUAGES': (('ar', 'Arabic'), ('bn', 'Bengali'), ('bg', 'Bulgarian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('es', 'Spanish'), ('et', 'Estonian'), ('es-ar', 'Argentinean Spanish'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('ga', 'Irish'), ('gl', 'Galician'), ('hu', 'Hungarian'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('ko', 'Korean'), ('km', 'Khmer'), ('kn', 'Kannada'), ('lv', 'Latvian'), ('lt', 'Lithuanian'), ('mk', 'Macedonian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sr', 'Serbian'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru-ru'}, {}, {'perms': <django.core.context_processors.PermWrapper object at 0x8ec060c>, 'messages': [], 'user': <django.contrib.auth.models.AnonymousUser object at 0x8ec0c4c>}, {}]"
[12:32:20] unk2k: wiz_, угу так я ж его в мидлваре то активировал
[12:32:33] wiz_: в какой-такой мидлвари??
[12:32:37] wiz_: это в сеттингсах делается
[12:32:40] erraen is now online
[12:32:52] xa4a_: TEMPLATE_CONTEXT_PROCESSORS
[12:32:54] wiz_: угу
[12:32:55] unk2k: MIDDLEWARE_CLASSES = (
'django.core.context_processors.request',
)
[12:33:00] wiz_: бял
[12:33:07] unk2k: бля
[12:33:07] xa4a_: не попал
[12:33:10] unk2k: я такой лох =_
[12:33:12] wiz_: мидлварь != процессор
[12:33:12] unk2k: )))
[12:33:24] unk2k: сижу как лох читать учусь -))))
[12:33:34] xa4a_: middleware - в MIDDLEWARE, context_processors - в CONTEXT_PROCESSORS
[12:33:44] poltergeist is now xa
[12:33:45] poltergeist is now xa
[12:33:45] kryklia is now away
[12:33:47] unk2k: все спасибо -)))
[12:33:59] unk2k: поставил, работает
[12:34:10] wiz_: вот
[12:34:12] wonderfulll is now online
[12:34:38] wiz_ is now xa
[12:34:58] unk2k: а я вот сижу и думаю, мол давай я буду читать, не буду на канал с вопросами лесть.
тырк тырк и вариантов уже нет -) да и в любом случае вывод - не умею читать
[12:35:04] unk2k: спасибо еще раз
[12:37:03] wonderfulll is now away
[12:37:04] wonderfulll is now online
[12:37:40] erraen is now online
[12:38:17] Александp is now away
[12:38:44] MAVr is now away
[12:38:45] kryklia is now away
[12:39:13] wonderfulll is now online
[12:39:14] wonderfulll is now away
[12:39:18] MAVr is now Да, я тут
[12:42:41] erraen is now online
[12:43:45] kryklia is now away
[12:44:13] wonderfulll is now away
[12:44:14] wonderfulll is now online
[12:45:16] GrimbleGromble is now online
[12:47:42] erraen is now online
[12:48:15] Александp is now xa
[12:48:46] kryklia is now away
[12:49:13] wonderfulll is now away
[12:49:14] wonderfulll is now online
[12:49:20] MAVr is now away
[12:49:44] MAVr is now Да, я тут
[12:50:01] slav0nic is now dnd
[12:52:42] erraen is now online
[12:53:45] kryklia is now away
[12:54:05] Александp is now online
[12:54:06] Portnov is now away
[12:54:13] wonderfulll is now away
[12:54:14] wonderfulll is now online
[12:54:30] Portnov is now online
[12:54:55] mishok13 is now online
[12:57:33] wonderfulll is now online
[12:57:34] wonderfulll is now online
[12:57:42] erraen is now online
[12:58:45] kryklia is now away
[12:58:48] MAVr is now away
[12:59:13] wonderfulll is now online
[12:59:14] wonderfulll is now online
[13:00:12] xa4a_ is now away
[13:00:28] grabber is now Да, я здесь.
[13:02:42] erraen is now online
[13:03:46] kryklia is now away
[13:03:48] MAVr is now xa
[13:04:13] wonderfulll is now online
[13:04:14] wonderfulll is now online
[13:06:30] lpfan is now online
[13:07:42] erraen is now online
[13:08:46] kryklia is now away
[13:09:09] lpfan is now online
[13:09:13] wonderfulll is now online
[13:09:14] wonderfulll is now online
[13:09:48] lpfan: уважаемое сообщество, помогите разобратся с моделью ... а то что-то не доходит
[13:11:20] unk2k: ребят, я вот тут таг меню для джанги закончил делать. пожалуйста посмотрите, скажите свое мнение.
[13:11:30] unk2k: http://dumpz.org/11610/
[13:11:49] unk2k: lpfan, какая у тебя проблема ?
[13:11:55] Большой Лис: lpfan, дак в чём проблема то?
[13:12:15] lpfan: вот модель - http://dumpz.org/11611/ ... как мне обратиться к полям ph1 ???
[13:12:42] erraen is now online
[13:12:52] Большой Лис: p = Photo()
p.ph1
[13:13:12] lpfan: так просто ...
[13:13:20] unk2k: p = Photo.objects.all()
[13:13:39] Большой Лис: unk2k, и получишь QuerySet
[13:13:40] unk2k: Большой Лис, это на редактирование
[13:13:46] Большой Лис: а не объект
[13:13:47] kryklia is now away
[13:13:52] unk2k: Большой Лис, а в твоем случае что получишь ?
[13:14:14] wonderfulll is now online
[13:14:15] wonderfulll is now online
[13:14:16] Большой Лис: lpfan,
p = Photo.objects.get(pk=1) #из базы вытаскиваешь
p.ph1
[13:14:31] lpfan: unk2k: а ... я может сейчас спрошу глупость ....
[13:14:32] unk2k: pk = primary key => ID
[13:14:45] unk2k: lpfan, очень веронятно, знаю по себе\
[13:18:58] unk2k: Большой Лис, http://dumpz.org/11610/
[13:24:58] Большой Лис: unk2k, мне лень втыкать чо там %)
[13:24:58] MAVr is now away
[13:24:58] MAVr is now Да, я тут
[13:24:58] mishok13 is now offline
[13:24:58] mishok13 is now online
[13:24:58] erraen is now online
[13:24:58] slav0nic is now offline
[13:24:58] Portnov is now offline
[13:24:58] cutwater is now offline
[13:24:58] mishok13 is now offline
[13:24:58] slav0nic is now dnd
[13:24:58] cutwater is now online
[13:24:58] lpfan: unk2k: а ph1 будет привязан к нужной галерее ?
[13:24:58] Portnov is now online
[13:24:58] mishok13 is now online
[13:24:58] Portnov is now online
[13:24:58] kryklia is now away
[13:24:58] Typhon is now away
[13:24:58] wonderfulll is now online
[13:24:58] wonderfulll is now online
[13:24:58] slav0nic is now offline
[13:24:58] wonderfulll is now away
[13:24:58] wonderfulll is now away
[13:24:59] slav0nic is now dnd
[13:24:59] denz is now offline
[13:24:59] unk2k is now away
[13:24:59] red-agent is now online
[13:24:59] unk2k is now online
[13:24:59] ilnur.soft is now online
[13:24:59] ilnur.soft is now offline
[13:24:59] erraen is now online
[13:24:59] grabber is now offline
[13:24:59] wonderfulll is now online
[13:24:59] wonderfulll is now online
[13:24:59] kryklia is now offline
[13:24:59] PC is now online
[13:24:59] Typhon is now online
[13:24:59] wonderfulll is now online
[13:24:59] wonderfulll is now online
[13:24:59] jedgar is now away
[13:25:28] poltergeist is now online
[13:26:32] kryklia is now away
[13:26:33] kryklia is now away
[13:26:36] kryklia is now away
[13:26:37] kryklia is now away
[13:27:42] erraen is now online
[13:27:58] PC is now offline
[13:28:06] PC is now online
[13:28:31] kryklia is now away
[13:29:14] wonderfulll is now online
[13:29:15] wonderfulll is now online
[13:30:04] mishok13 is now away
[13:30:53] PC is now offline
[13:32:39] red-agent is now away
[13:32:43] erraen is now online
[13:33:31] kryklia is now away
[13:34:14] wonderfulll is now online
[13:34:15] wonderfulll is now online
[13:34:22] denplis is now online
[13:34:23] denplis is now online
[13:34:25] PC is now online
[13:34:44] Typhon is now away
[13:34:47] denplis is now online
[13:35:14] GrimbleGromble is now away
[13:35:49] unk2k: lpfan, не изобретай велосипед, посмотри что уже есть в интере
[13:35:57] unk2k: lpfan, там галерей полно
[13:36:12] lpfan: unk2k: так не интересно
[13:36:16] pymonk is now online
[13:36:19] unk2k: lpfan, так правильно
[13:36:30] unk2k: lpfan, скачай 10 вариантов галерей, посмотри как они сделаны.
[13:36:50] unk2k: lpfan, смотри до тех пор пока не поймешь каждый символ в коде
[13:37:05] mishok13 is now online
[13:37:09] jedgar is now online
[13:37:13] unk2k: lpfan, потом если захочешь свое делать, делай, но тебе будет уже легче в разы
[13:37:14] PC is now offline
[13:37:21] pymonk: Приветствую ,а никто не знает что с http://python.su/ ??
[13:37:37] PC is now online
[13:37:43] erraen is now online
[13:38:30] kryklia is now away
[13:38:41] denplis is now offline
[13:38:48] unk2k: pymonk, сайт
[13:38:55] unk2k: pymonk, лег
[13:39:02] PC is now offline
[13:39:15] wonderfulll is now online
[13:39:19] wonderfulll is now online
[13:39:47] Typhon is now online
[13:39:59] pymonk: Понятно, просто смотрю сколько времени уже сайт в дауне , думал уже переехали куда то они)
[13:40:41] PC is now online
[13:41:32] PC is now offline
[13:42:15] PC is now online
[13:42:40] red-agent is now xa
[13:42:43] erraen is now online
[13:42:50] poltergeist is now dnd
[13:42:52] poltergeist is now dnd
[13:43:30] kryklia is now away
[13:43:53] wonderfulll is now away
[13:43:54] wonderfulll is now online
[13:44:15] wonderfulll is now away
[13:44:16] wonderfulll is now online
[13:44:36] unk2k: а где их сервак стоял ?
[13:45:02] PC is now offline
[13:45:04] GrimbleGromble is now xa
[13:45:20] unk2k: вау Атланта
[13:45:24] PC is now online
[13:45:47] _lorien: они переехали в даун
[13:46:43] pymonk: ))
[13:47:17] denz is now away
[13:47:36] unk2k: не -) у нас в МГТС ремонт стоек был. нас переносили с этажа на другой этад
[13:47:43] erraen is now online
[13:47:46] unk2k: так после переноса один сервер умер =(((
[13:47:55] Большой Лис: http://vimeo.com/6170479
[13:48:17] denz is now online
[13:48:30] kryklia is now away
[13:48:54] GrimbleGromble is now online
[13:49:15] wonderfulll is now online
[13:49:16] wonderfulll is now away
[13:49:51] wiz_ is now online
[13:52:28] unk2k: Большой Лис, есть 10 страниц и два меню. одно меню показывается с 1-6 страници) второе с (4-6 страници) как такое сделать ?
[13:52:39] unk2k: агрых с 4-10
[13:52:43] erraen is now online
[13:52:58] 0lejka is now away
[13:53:31] kryklia is now away
[13:53:49] unk2k: в urls.py присваивать каждой страници маркер, а потом в base.html по ifequal сравнивать ?
[13:54:15] wonderfulll is now away
[13:54:16] wonderfulll is now online
[13:54:24] kryklia is now offline
[13:54:41] kryklia is now away
[13:54:42] kryklia is now away
[13:54:46] kryklia is now away
[13:54:47] kryklia is now away
[13:55:59] wonderfulll is now online
[13:56:00] wonderfulll is now online
[13:57:06] jedgar: unk2k: можно скачать 10 вариантов галерей и посмотреть как там сделано)
[13:57:44] erraen is now online
[13:57:46] unk2k: jedgar, остряк, я прежде чем тут спросить хорошо работаю с гуглом
[13:58:11] unk2k: jedgar,а ему было в тему сказано
[13:58:39] kryklia is now away
[13:59:15] wonderfulll is now online
[13:59:16] wonderfulll is now online
[13:59:37] jedgar: unk2k: имхо, ты неправильно вопрос задал
[13:59:51] unk2k: jedgar, согласен, у меня есть такие проблемы -)))
[14:00:05] jedgar: хз че тебе нужно, вариантов масса
[14:00:39] _lorien: unk2k, волшебный javascript выручит тебя
[14:00:43] red-agent is now online
[14:01:04] unk2k: _lorien, js тут причем ?
[14:01:13] _lorien: хорошо, не используй :)
[14:01:18] _lorien: я не настаиваю :)
[14:01:36] jedgar: кстати вариантов галлерей всего штук 5, и лично у меня заработало 1-2 штуки
[14:01:42] _lorien: используй волшебный html :-)
[14:02:05] _lorien: jedgar, больше велосипедов хороших и разных! :)
[14:02:22] SV0L0CH: *волшебный CSS
[14:02:43] erraen is now online
[14:03:10] _lorien: угу, или можно композитное заклинание сделать, бросить хвосты полуночных htmlей, корень трёхлетнего CSS, варить в крови девственницы :)
[14:03:28] unk2k: Есть меню
dict1 = {1,2,3,4}
dict2 = {1,4,5,6,7,8}
заходим на страницу 4 и у нас dict1 заменяется на dict2 заходим на страницу 1 dict2 => dict1
[14:03:36] jedgar: самая популярная photologue - тупо syncdb н работает, и разработчики знают, но походу им впадлу исправлять
[14:03:40] kryklia is now away
[14:03:43] jedgar: *не
[14:03:45] denplis is now online
[14:03:46] denplis is now online
[14:04:15] wonderfulll is now online
[14:04:16] wonderfulll is now online
[14:05:26] denplis is now online
[14:05:58] red-agent is now away
[14:06:57] lpfan: jedgar: и какие заработали ?
[14:07:03] jedgar: unk2k: ты ведь про {% include %} знаешь?
[14:07:43] erraen is now online
[14:08:41] kryklia is now away
[14:09:15] wonderfulll is now online
[14:09:16] wonderfulll is now online
[14:10:26] denplis is now online
[14:12:44] erraen is now online
[14:12:44] unk2k: угу
[14:13:40] kryklia is now away
[14:14:15] wonderfulll is now online
[14:14:16] wonderfulll is now online
[14:15:26] denplis is now online
[14:15:58] red-agent is now xa
[14:16:15] GrimbleGromble is now away
[14:17:15] GrimbleGromble is now online
[14:17:18] _lorien: {% include "magic.html" %}
:-))
[14:17:44] erraen is now online
[14:17:59] lpfan is now offline
[14:18:07] xa4a_ is now online
[14:18:41] kryklia is now away
[14:19:15] wonderfulll is now online
[14:19:16] wonderfulll is now online
[14:19:49] cutwater is now away
[14:20:14] MAVr is now away
[14:20:27] denplis is now online
[14:21:48] red-agent is now offline
[14:21:50] red-agent is now xa
[14:22:14] MAVr is now xa
[14:22:15] GrimbleGromble is now away
[14:22:40] Typhon is now offline
[14:22:43] erraen is now online
[14:22:48] MAVr is now Да, я тут
[14:23:41] kryklia is now away
[14:23:41] Typhon is now online
[14:23:45] Typhon is now online
[14:24:15] wonderfulll is now online
[14:24:16] wonderfulll is now online
[14:25:26] denplis is now online
[14:25:43] unk2k is now away
[14:26:28] unk2k is now online
[14:26:44] pymonk is now offline
[14:26:45] Typhon is now away
[14:27:44] erraen is now online
[14:28:41] kryklia is now away
[14:28:42] Typhon is now online
[14:29:15] wonderfulll is now online
[14:29:16] wonderfulll is now online
[14:29:49] cutwater is now xa
[14:30:27] denplis is now online
[14:32:15] GrimbleGromble is now xa
[14:32:44] erraen is now online
[14:33:41] kryklia is now away
[14:34:15] wonderfulll is now online
[14:34:16] wonderfulll is now online
[14:35:27] denplis is now online
[14:37:15] GrimbleGromble is now online
[14:37:44] erraen is now online
[14:38:41] kryklia is now away
[14:39:15] wonderfulll is now online
[14:39:16] wonderfulll is now online
[14:40:27] denplis is now online
[14:42:44] erraen is now online
[14:43:28] Мозгошредер is now dnd
[14:43:41] kryklia is now away
[14:44:08] red-agent is now online
[14:44:16] wonderfulll is now online
[14:44:18] wonderfulll is now online
[14:44:33] 0lejka is now I'm not here right now
[14:45:27] denplis is now online
[14:47:11] PC is now away
[14:47:44] erraen is now online
[14:48:41] kryklia is now away
[14:49:16] wonderfulll is now online
[14:49:17] wonderfulll is now online
[14:50:27] denplis is now online
[14:52:45] erraen is now online
[14:53:41] kryklia is now away
[14:54:16] wonderfulll is now online
[14:54:17] wonderfulll is now online
[14:54:48] cutwater is now online
[14:55:28] denplis is now online
[14:57:46] erraen is now online
[14:57:52] wonderfulll is now away
[14:57:53] wonderfulll is now online
[14:58:02] PC is now online
[14:58:41] kryklia is now away
[14:59:17] wonderfulll is now away
[14:59:18] wonderfulll is now online
[14:59:30] MAVr is now away
[14:59:48] cutwater is now away
[14:59:53] 0lejka is now offline
[15:00:01] feedbot is now online
[15:00:04] feedbot: Lurk - jQuery плугинчик http://anger.net.ua/blog/13/
Новая версия VideoSniffer 0.3 http://hlabs.spb.ru/news/videosniffer_0.3.html
Язык программирования Python / Ссылка Про книгу “Django. Разработка веб-приложений на Python” http://habrahabr.ru/blogs/python/67216/
[15:00:09] feedbot: PySide - Nokia-sponsored LGPL bindings to Qt http://www.reddit.com/r/Python/comments/9bzk8/pyside_nokiasponsored_lgpl_bindings_to_qt/
What is your favourite Python editor for Mac? http://www.reddit.com/r/Python/comments/9bvq0/what_is_your_favourite_python_editor_for_mac/
[15:00:11] feedbot is now offline
[15:00:28] denplis is now online
[15:01:26] Portnov is now away
[15:01:55] GrimbleGromble is now away
[15:02:46] erraen is now online
[15:03:41] kryklia is now away
[15:03:45] GrimbleGromble is now online
[15:04:01] sevenov is now away
[15:04:18] wonderfulll is now online
[15:04:19] wonderfulll is now away
[15:04:56] cutwater is now online
[15:05:14] 0lejka is now I'm not here right now
[15:05:19] 0lejka is now I'm not here right now
[15:05:28] denplis is now online
[15:07:17] Portnov is now online
[15:07:47] erraen is now online
[15:08:42] kryklia is now away
[15:08:46] GrimbleGromble is now away
[15:09:18] wonderfulll is now away
[15:09:19] wonderfulll is now online
[15:10:02] unk2k is now away
[15:10:17] bobry is now online
[15:10:30] denplis is now online
[15:10:57] bobry is now offline
[15:11:52] unk2k is now online
[15:12:48] erraen is now online
[15:13:42] kryklia is now away
[15:13:51] denplis is now offline
[15:14:18] wonderfulll is now online
[15:14:19] wonderfulll is now away
[15:14:58] sevenov is now offline
[15:15:00] sevenov is now away
[15:15:22] SV0L0CH is now away
[15:16:16] GrimbleGromble is now online
[15:17:47] wonderfulll is now online
[15:17:48] erraen is now online
[15:17:48] wonderfulll is now online
[15:18:43] kryklia is now away
[15:18:50] kryklia is now offline
[15:19:18] wonderfulll is now online
[15:19:19] wonderfulll is now online
[15:22:48] erraen is now online
[15:24:02] 0lejka is now offline
[15:24:19] wonderfulll is now online
[15:24:20] wonderfulll is now online
[15:24:55] cutwater is now offline
[15:25:21] SV0L0CH is now xa
[15:27:48] erraen is now online
[15:27:53] ilnur.soft is now online
[15:27:56] ilnur.soft is now offline
[15:29:19] wonderfulll is now online
[15:29:20] wonderfulll is now online
[15:30:21] SV0L0CH is now online
[15:32:49] erraen is now online
[15:32:58] lievil is now away
[15:33:16] lievil is now online
[15:34:19] wonderfulll is now online
[15:34:20] wonderfulll is now online
[15:35:49] mishok13 is now away
[15:36:17] mishok13 is now online
[15:36:29] xa4a_ is now away
[15:37:49] erraen is now online
[15:38:11] SV0L0CH is now away
[15:39:20] wonderfulll is now online
[15:39:21] wonderfulll is now online
[15:39:46] Portnov is now away
[15:40:12] cutwater is now online
[15:40:41] Typhon is now offline
[15:41:24] sicness is now online
[15:42:49] erraen is now online
[15:43:30] Typhon is now online
[15:44:20] wonderfulll is now online
[15:44:21] wonderfulll is now online
[15:46:16] PC is now away
[15:47:49] erraen is now online
[15:47:49] cutwater is now away
[15:48:12] SV0L0CH is now xa
[15:48:41] cutwater is now online
[15:49:20] wonderfulll is now online
[15:49:21] wonderfulll is now online
[15:52:19] Portnov is now online
[15:52:48] erraen is now online
[15:53:09] SV0L0CH is now online
[15:53:30] MAVr is now Да, я тут
[15:53:59] cutwater is now away
[15:54:20] wonderfulll is now online
[15:54:21] wonderfulll is now online
[15:54:53] mishok13 is now away
[15:55:16] PC is now online
[15:55:49] sevenov is now offline
[15:55:53] sevenov is now away
[15:57:31] red-agent is now away
[15:57:36] GrimbleGromble is now away
[15:57:49] erraen is now online
[15:58:11] SV0L0CH is now away
[15:58:40] _lorien is now offline
[15:59:21] wonderfulll is now online
[15:59:21] wonderfulll is now online
[15:59:37] _lorien is now xa
[15:59:38] _lorien is now offline
[16:00:02] feedbot is now online
[16:00:03] feedbot: Django aggregation tutorial http://www.reddit.com/r/Python/comments/9bss4/django_aggregation_tutorial/
[16:00:07] feedbot is now offline
[16:01:02] _lorien is now xa
[16:02:49] erraen is now online
[16:03:15] red-agent is now online
[16:03:59] cutwater is now xa
[16:04:14] MAVr is now away
[16:04:20] wonderfulll is now online
[16:04:21] wonderfulll is now online
[16:04:39] SV0L0CH is now online
[16:04:53] mishok13 is now xa
[16:05:48] MAVr is now Да, я тут
[16:07:36] GrimbleGromble is now xa
[16:07:49] erraen is now online
[16:07:56] GrimbleGromble is now online
[16:09:11] unk2k is now away
[16:09:20] wonderfulll is now online
[16:09:21] wonderfulll is now online
[16:11:13] unk2k is now online
[16:12:48] erraen is now online
[16:13:10] sicness is now offline
[16:14:19] wonderfulll is now online
[16:14:20] wonderfulll is now online
[16:15:39] _lorien is now offline
[16:17:05] pzskc383 is now online
[16:17:06] pzskc383 is now online
[16:17:48] erraen is now online
[16:17:54] wonderfulll is now away
[16:17:55] wonderfulll is now online
[16:18:32] xa4a_ is now online
[16:18:34] _lorien is now online
[16:19:20] wonderfulll is now online
[16:19:21] wonderfulll is now away
[16:20:12] Ferroman is now online
[16:20:27] Ferroman is now offline
[16:20:41] Ferroman is now online
[16:20:42] Ferroman is now offline
[16:22:49] erraen is now online
[16:22:57] Александp is now away
[16:24:20] wonderfulll is now online
[16:24:21] wonderfulll is now online
[16:24:21] SV0L0CH is now away
[16:27:49] erraen is now online
[16:28:33] Александp is now online
[16:29:20] wonderfulll is now online
[16:29:21] wonderfulll is now online
[16:30:57] SV0L0CH is now online
[16:31:35] unk2k: вопрос, я делаю проверку формы через clean если кондишн сроботал то делаю raise forms.ValidationError(u'Ошибка'), но в шаблоне {{ form.fieldname.errors }} это не выводится. хотя если сделать {{ form.as_p }} то там будет
[16:32:49] erraen is now online
[16:32:55] xa4a_: !g django forms template
[16:33:20] xa4a_: {{ form.message.errors }}
[16:33:26] xa4a_: должно работать
[16:33:27] unk2k: угу -) так и делаю
[16:33:28] unk2k: неа
[16:33:36] _lorien: нет
[16:33:43] _lorien: из clean метода попадает в "Общие" ошибки
[16:33:45] unk2k: т.е. если поле required=True то там будет что обязательно для заполнение
[16:33:48] xa4a_: а
[16:33:48] _lorien: я не помню, как их достать
[16:33:49] unk2k: а вот raise не ловит
[16:33:51] xa4a_: clean_fieldname
[16:33:54] xa4a_: тчона
[16:33:59] xa4a_: form.errors
[16:34:18] unk2k: хех, а если у меня два филда надо сравнить (пароль еще пароль)
[16:34:21] wonderfulll is now online
[16:34:22] wonderfulll is now online
[16:34:27] _lorien: есть, хак, можно даже из clean пихать ошибки в нужное поле
self._errors['foobar'] = ['Fuck']
[16:34:29] red-agent is now away
[16:35:07] Александp is now away
[16:35:13] red-agent is now online
[16:35:23] xa4a_: unk2k: мне кажется, ты хочешь django-registration
[16:35:26] sevenov: _lorien, это очень и очень грядный хак.
[16:35:33] _lorien: мне нравится, я юзаю
[16:35:49] xa4a_: _lorien: за это ты будешь гореть в аду
[16:35:50] _lorien: это даже в документации описано, если не ошибаюсь )
[16:35:53] unk2k: ну -) я его переделал под себя
[16:35:58] unk2k: мне очень нравится
[16:36:06] sevenov: _lorien, они тоже будут гореть )
[16:36:09] SV0L0CH is now away
[16:36:20] xa4a_: unk2k: выше написали как правильно
[16:36:29] cutwater is now online
[16:36:29] xa4a_: тоесть в валидации повтора, например
[16:37:04] _lorien: sevenov, они горели, кто-то облил их керосином, чиркнул спичкой, народы, континенты, вся земля, мы горим уже две тысячи лет, наш мир это и есть ад, теперь вы знаете это, я не могу больше молчать
[16:37:25] mishok13 is now online
[16:37:27] sevenov: _lorien, ггг =)
[16:37:50] erraen is now online
[16:37:59] xa4a_: а ад, кстати, совсем не обязателно ггорит
[16:38:15] _lorien: http://docs.djangoproject.com/en/dev/ref/forms/validation/
смотрим пример в самом низу :)
[16:38:23] xa4a_: тоесть в аду просто мёртвые ждут
[16:38:29] xa4a_: на лоре это обсуждали :)
[16:38:51] red-agent: [16:37:10] _lorien: sevenov, они горели, кто-то облил их керосином, чиркнул спичкой, народы, континенты, вся земля, мы горим уже две тысячи лет, наш мир это и есть ад, теперь вы знаете это, я не могу больше молчать
[16:39:04] jedgar is now offline
[16:39:05] jedgar is now online
[16:39:15] red-agent: /me вильнул хвостом, перестал точить рога и отложил напильник в сторону...
[16:39:21] wonderfulll is now online
[16:39:22] wonderfulll is now online
[16:39:44] _lorien: чертовщина :)
[16:39:48] red-agent: _lorien, Тебе сколько раз говорить? Клюв защелкни, а то опять будешь у меня внизу полы драят.
[16:39:54] sevenov: xa4a_, я точно знаю, что сотона - гей. а кенни выгнали из ада.
[16:40:05] _lorien: red-agent опять возбудился ))
[16:40:10] _lorien: активизировался )
[16:40:23] SV0L0CH is now online
[16:40:35] Александp is now online
[16:41:40] denz is now away
[16:41:43] Мозгошредер is now offline
[16:41:45] Мозгошредер is now online
[16:42:25] mishok13 is now away
[16:42:50] unk2k: что делать если столкнулся с проблемой и не знаешь как ее решить, но описывать ее где либо очень долго и необходимо что бы человек вник?
[16:42:50] erraen is now online
[16:42:51] cutwater is now away
[16:44:22] wonderfulll is now online
[16:44:23] wonderfulll is now online
[16:45:46] red-agent: Апстена?
[16:46:04] xa4a_: +1
[16:46:23] unk2k: -10
[16:46:56] xa4a_: тогда вычленять из проблемы несущественные детали
[16:47:02] xa4a_: пока она не станет маленькой, или простой
[16:47:10] xa4a_: если вычленил, а она простой не стала..
[16:47:25] xa4a_: то нанимать работника и платить $$ за решение
[16:47:51] erraen is now online
[16:47:57] GrimbleGromble is now away
[16:48:03] Typhon is now offline
[16:48:05] Typhon is now online
[16:48:09] xa4a_: всё просто
[16:49:22] wonderfulll is now online
[16:49:23] wonderfulll is now online
[16:50:01] denz is now online
[16:50:37] GrimbleGromble is now online
[16:51:48] unk2k: есть форма два поля Country City типа select, при выборе Country ajaxoм подгружается данные в City. При субмите этой формы если есть ошибка заполнения то Country остается выбранное а City пустой. Вот кусок из forms.Form
country = forms.ModelChoiceField(queryset=Country.objects.all(), label=u'Страна')
city = forms.CharField(widget=forms.Select, label=u'Город')
[16:52:01] unk2k: Какиеми путями иожно решить эту проблему ?
[16:52:25] mishok13 is now xa
[16:52:51] cutwater is now xa
[16:52:51] erraen is now online
[16:52:57] mishok13 is now online
[16:52:57] xa4a_: например такой путь:
[16:52:59] sevenov: наверное подумав над проблемой, а не над вопросом.
[16:53:06] xa4a_: найти, кто заполняет country
[16:53:20] xa4a_: и посмотреть, почему city не заполняется таким же образом
[16:53:42] xa4a_: , что на практике значит втыкнуть дебагер
[16:53:48] unk2k: верно =) у мнгя City вообще не заполняется (т.е. пустой селект)
[16:53:56] xa4a_: ну так..
[16:54:06] jedgar is now away
[16:54:09] unk2k: И я не знаю как его можно заполнить т.к. если форма без субмита => country = 0 => error
[16:54:10] xa4a_: первое, что приходит в голову - костыль
[16:54:16] Portnov is now away
[16:54:22] wonderfulll is now online
[16:54:23] wonderfulll is now online
[16:54:31] Portnov is now online
[16:54:35] xa4a_: селект - не поле формы, а чисто декоративный
[16:54:36] unk2k: угу, мне то же это пришло в голову, но больше названия я нечего не придумал ;(
[16:54:54] xa4a_: тоесть при возвращении формы на доработку у тебя есть country_id, city_id
[16:54:58] unk2k: поставить что то в def clean(self):
[16:55:01] xa4a_: ты city_id запоминаешь
[16:55:21] xa4a_: по country_id у тебя подгружаются города, после чего ты выбираешь из запомненного city_id
[16:55:27] xa4a_: если я правильно понял проблему
[16:55:32] unk2k: угу все верно
[16:55:34] xa4a_: тоесть ключевое слово js
[16:55:44] unk2k: а можно воткнуть что то в def clean??
[16:55:50] xa4a_: э..
[16:55:54] xa4a_: втыкай
[16:55:55] xa4a_: ладно
[16:55:57] unk2k: ;)
[16:56:12] xa4a_: $10
[16:56:14] xa4a_: ;)
[16:56:14] unk2k: вопрос как =)
[16:56:25] unk2k: давай как до 1000 дойдет обсудим этот вопрос
[16:56:36] unk2k: ;)
[16:56:44] xa4a_: как что?
[16:57:12] xa4a_: как воткнуть дебагер?
[16:57:20] Typhon is now offline
[16:57:42] xa4a_: import pdb; pdb.set_trace()
[16:57:43] xa4a_: $110
[16:57:51] erraen is now online
[16:57:57] mishok13 is now away
[16:59:22] wonderfulll is now online
[16:59:23] wonderfulll is now online
[16:59:24] unk2k: yt
[16:59:30] _lorien: http://cs4315.vkontakte.ru/u39962428/95401724/x_4a6bf68a.jpg - прикольно получилось :)
[16:59:32] unk2k: как воткнуть то что я хочу в def clean
[16:59:50] xa4a_: судя по тому, что выше - ты не знаешь, чего хочешь
[16:59:58] xa4a_: чтобы это воткнуть - это сразу больше 1000 будет
[17:00:09] unk2k: )))
[17:01:35] xa4a_: могу начало рассказать бесплатно
[17:01:39] Portnov is now away
[17:01:47] xa4a_: def clean(self): make_zaebis()
[17:01:51] _lorien: Жили были..
[17:01:57] wiz_ is now offline
[17:02:10] xa4a_: > zaebis loading ...
[17:02:14] xa4a_: > Жили были..
[17:02:25] xa4a_: ну, ты понел :)
[17:02:27] GrimbleGromble is now away
[17:02:35] red-agent is now away
[17:02:51] erraen is now online
[17:03:12] Portnov is now online
[17:03:15] xa4a-m is now online
[17:04:23] wonderfulll is now online
[17:04:24] wonderfulll is now online
[17:07:13] red-agent is now online
[17:07:19] jedgar is now online
[17:07:47] GrimbleGromble is now online
[17:07:52] erraen is now online
[17:07:57] mishok13 is now xa
[17:09:24] wonderfulll is now online
[17:09:25] wonderfulll is now online
[17:10:41] denz is now away
[17:10:43] unk2k is now away
[17:11:51] denz is now online
[17:12:53] erraen is now online
[17:13:01] unk2k is now online
[17:13:29] mishok13 is now online
[17:13:50] xa4a_ is now away
[17:14:09] xa4a-m is now offline
[17:14:12] xa4a-m is now online
[17:14:25] wonderfulll is now online
[17:14:26] wonderfulll is now online
[17:15:30] Большой Лис: ну плять замичательно
[17:15:50] Большой Лис:
О порядке въезда на территорию Украины иностранцев и лиц без гражданства, а также иностранцев и лиц без гражданства, следующих транзитом" от 29 декабря 1995 года, граждане Молдовы, въезжающие в страну на срок не более месяца, впрочем, как и граждане еще 89 стран мира, должны иметь при себе 12620 гривен. Эта сумма не зависит от времени пребывания на Украине - день-два, неделя...
[17:16:21] огыешсук: а малиновых штанов ещё не надо?
[17:17:11] cutwater is now online
[17:17:22] _lorien: Это чо такое?
[17:17:53] erraen is now online
[17:18:50] red-agent: Зокончег новый.
[17:18:52] red-agent: Нравицо?
[17:18:53] xa4a-m: Похоже на фейк
[17:19:08] red-agent: xa4a-m, Не-а. Вроде как не фейк.
[17:19:25] wonderfulll is now online
[17:19:26] wonderfulll is now online
[17:19:28] sevenov: Большой Лис, зачем? о_О
[17:19:32] sevenov: столько бабла
[17:19:52] Большой Лис: xa4a-m, ничо не фейк
[17:19:57] Большой Лис: вполе себе реальный
[17:19:58] _lorien: Это чо, мне уже не ехать в Киев, значит? )
[17:20:01] xa4a-m: 14 лет уже как должно работать, первый раз слышу
[17:20:08] _lorien: У меня вообще 300 рублей осталось наличных ща ))
[17:20:15] _lorien: это чо, пять гривен ))
[17:20:32] xa4a-m: 70
[17:20:45] _lorien: ну всё равно меньше 12к ))
[17:20:54] Большой Лис: _lorien, Что касается перечня государств, граждане которых должны подтверждать наличие финансового обеспечения, сюда вошли 5 стран постсоветского пространства: Кыргызская Республика, Республика Молдова, Республика Таджикистан, Туркменистан и Республика Узбекистан, а также 85 стран Африки, Азии и Ближнего Востока.
[17:21:07] Большой Лис: РФ тут нет
[17:21:21] _lorien: а, ну ладно )
[17:21:38] _lorien: Большой Лис, это, типа, тебя завернули?
[17:21:56] Большой Лис: работать эта хрень начнёт с 25-го автуста
[17:21:59] Большой Лис: для молдовы
[17:22:00] xa4a-m: А, гм
[17:22:04] огыешсук: а 12620 это в баксах скока?
[17:22:05] Большой Лис: а я 22-го проеду :D
[17:22:25] _lorien: Большой Лис, не выпустят потом :D
[17:22:26] xa4a-m: 1.5к
[17:22:28] GrimbleGromble is now away
[17:22:37] Большой Лис: _lorien, да нужен я им там очень
[17:22:54] erraen is now online
[17:23:37] red-agent: На стройку завербуют.
[17:24:09] xa4a-m: На стройках сейчас, вроде акуенна
[17:24:17] xa4a-m: Которые работают
[17:24:26] wonderfulll is now online
[17:24:27] wonderfulll is now online
[17:24:32] xa4a-m: Судя по той, что под окном
[17:24:52] red-agent: У меня тут недавно была стройка.
[17:24:54] _lorien: а что, в украине переизбыток негров? )
[17:25:01] red-agent: Молдоване, разумеется.
[17:25:02] xa4a-m: Пока ментов не стали вызывать они почти круглые сутки строили
[17:25:10] red-agent: 3 раза плитку перекладывали и бровку.
[17:25:58] red-agent: xa4a-m, Но это хуйня. Видел бы ты глаза чувака, владельца стройки, когда эти клоуны забор вверх ногами поставили...
[17:26:14] xa4a-m: Гг
[17:26:32] red-agent: Бегал, папкой из пиздил.
[17:26:36] red-agent: *х
[17:26:57] Большой Лис: :D
[17:27:04] sevenov: Хм. А как у молдованина-рабочего найдутся $1,5, если он итак на зароботки едет.
[17:27:06] xa4a-m: Тут чуваки серьезные вроде. За неделю по полтора этажа собирают/заливают
[17:27:28] xa4a-m: Здоровой многоэтажки
[17:27:28] red-agent: xa4a-m, Угу, помнишь, как серьезные чуваки ЖД вокзал строили?
[17:27:32] Большой Лис: sevenov, в том то и прикил, никак
[17:27:34] red-agent: Ну, реставрировали.
[17:27:34] Большой Лис: прикол*
[17:27:39] red-agent: Не помню в каком году то было.
[17:27:40] wonderfulll is now away
[17:27:41] wonderfulll is now away
[17:27:42] огыешсук: в кредит ;o)
[17:27:45] red-agent: А потом платформа нахуй провалилась.
[17:27:53] erraen is now online
[17:28:25] sevenov: Рабочих выпиливают, русский язык выпиливают. Что у вас там на украине происходит? Жопа какая-то.
[17:28:45] red-agent: У нас тут своих рабочих хватает.
[17:28:49] огыешсук: берёшь кредит пять килобаксов, 3 отдаёшь семье а на 2 едешь в украину работать, там отрабатываешь, отдаёшь кредит и возвертываешься домой без денег но и без долгов
[17:28:56] red-agent: А насчет русского языка, вы господа уже заебали.
[17:29:10] red-agent: У вас в РФ ведь на украинском не разговаривают?
[17:29:26] wonderfulll is now away
[17:29:27] wonderfulll is now online
[17:29:29] sevenov: red-agent, кто хочет, тот говорит.
[17:29:35] red-agent: Да, и много хотят?
[17:29:42] red-agent: Или ты думаешь тут на русском запрещают говорить?
[17:29:54] red-agent: Речь идет о массовых вещай. Тв, документация и т.п.
[17:30:07] red-agent: sevenov, Много у вас там русских каналов, вещающих на украинском языке?
[17:30:35] SV0L0CH: red-agent: больше половины населения одного из районов курской области.... это не много?
[17:30:38] red-agent: Или школ, с программой на украинском?
[17:31:09] Portnov is now away
[17:31:11] red-agent: SV0L0CH, У нас вон половина Киева на русском говорит, и что?
[17:31:15] SV0L0CH: телевизоры ловят каналы в основном с територии сумской области
[17:31:30] Portnov is now online
[17:31:38] red-agent: Уже заебали с этим воздеванием рук в небо со словами -- "о, у них там русский язык запрещают".
[17:31:43] sevenov: red-agent, хз, я телек вообще не смотрю, вряд ли ТВ есть. А есть ли украинские ТВ, которые готовы тут вещать сами. Думаю вряд ли их выпиливают. Да и если я захочу купить книгу на украинском, я это сделаю.
[17:31:49] red-agent: Разберитесь сначала в теме, господа, а потом уже несите свой словесный понос.
[17:31:55] SV0L0CH: короче, нам хохлам в России нормально живётся
[17:32:18] GrimbleGromble is now online
[17:32:18] _lorien: ой, только отвернёшься, уже срач разведут, ща почитаем ))
[17:32:33] sevenov: _lorien, это все ты, сотона-гей, виноват :D
[17:32:50] Большой Лис: :D
[17:32:50] red-agent: sevenov, Как будто тебе тут книги запрещают покупать не русском.
[17:32:52] sevenov: red-agent, в любом случае, мне насрать. Меня больше убили эти $1.5
[17:32:54] erraen is now online
[17:33:13] red-agent: Речь идет о том, чтобы их печаталось больше на украинском бля.
[17:33:23] red-agent: Это вам не РФ, в конце-концов, а Украина.
[17:33:31] Большой Лис: sevenov, "как в эуросаюзе" :D
[17:33:40] red-agent: sevenov, Ну а ты как хотел?
[17:34:03] red-agent: На большей половине строек -- молдоване да дети гор.
[17:34:05] Большой Лис: sevenov, РФ кстати в список стран подлежащих проверне не входит
[17:34:11] red-agent: Это когда в стране кризис и безработица.
[17:34:15] Большой Лис: проверке*
[17:34:22] sevenov: Большой Лис, эуросаюз же модная штука, че. Там даже партии пиратов есть.
[17:34:27] wonderfulll is now away
[17:34:28] wonderfulll is now online
[17:34:33] sevenov: Большой Лис, да я понял, я о другом.
[17:34:36] SV0L0CH: книги вообще не надо печатать, а библиотеки перепрофилировать
[17:35:09] sevenov: /me потыкал силовой перчаткой red-agent
[17:35:11] Большой Лис: sevenov, этот список называется "список стран миграционного риска"
[17:35:29] red-agent: Че тыкаешь-то? Как в том анекдоте.
[17:35:39] Большой Лис: т.е. молдова, в глазах кабинета министров, представляет миграционную угрозу
[17:36:20] SV0L0CH: Молдова это фактически два государства
[17:36:25] _lorien: книги надо печатать!
[17:36:29] _lorien: их читать приятно :)
[17:36:44] Большой Лис: молдова в которой 3.5KK офицального населения, половина из которого в EU и РФ
[17:36:57] Большой Лис: 2КК населения МАКСИМУМ тут есть
[17:37:11] Большой Лис: это блять угроза ниибаццо
[17:37:13] red-agent:
Сидит мужик в баре, тут в бар заходит инопланетянин, садиться рядом с мужиком и начинает тыкать его пальцем в плече. Мужик поворачивается, оглядывает инопланетянина и смотрит, что в районе промежности -- ничего нет. Задумался, и говорит -- "А как вы ебетесь!?". Инопланетянин улыбнулся, продолжая тыкать мужика пальцем в плече...
[17:37:15] unk2k is now away
[17:37:17] _lorien: Большой Лис, сам считал? )
[17:37:54] erraen is now online
[17:38:25] Большой Лис: в украине скока?
[17:38:38] xa4a-m: 45
[17:38:46] Большой Лис: 45 офицально, - скока у вас гастриков
[17:38:48] Большой Лис: ?
[17:38:52] MAVr is now away
[17:38:58] Большой Лис: гастарбайтеров
[17:39:02] red-agent: ну еще 5 накинь.
[17:39:10] Большой Лис: red-agent, я бы вычитал
[17:39:28] wonderfulll is now online
[17:39:29] wonderfulll is now away
[17:39:32] red-agent: Тут нелегалов -- больше, чем ты думаешь.
[17:39:59] Большой Лис: по моему кто-то лоббирует острую ссору украины и молдовы
[17:40:03] mdn is now online
[17:40:04] mdn is now online
[17:40:07] Большой Лис: только бы понять, нахуя ему это
[17:40:24] Большой Лис: я уже видел сообщения в молд прессе о том что "кишинёв адекватно отреагирует"
[17:40:31] Большой Лис: т.е. тоже введёт какую нибудь хуйню
[17:40:43] Большой Лис: именно этого этот кто то и добивается
[17:40:47] Большой Лис: обострения
[17:41:54] mishok13: угу, жидомасоны
[17:42:54] erraen is now online
[17:43:03] sevenov: Ох, вспоминается старый, неудылый pythonua@ :-)
[17:43:10] sevenov: Больше! Больше какашек!
[17:43:15] sevenov: *неунылый
[17:43:33] sevenov is now offline
[17:43:38] GrimbleGromble is now away
[17:43:45] mishok13: давно я не кикал ;)
[17:44:05] sevenov is now away
[17:44:15] sevenov: mishok13, гад )
[17:44:28] wonderfulll is now away
[17:44:29] wonderfulll is now online
[17:46:32] denz is now away
[17:47:15] unk2k is now xa
[17:47:54] erraen is now online
[17:49:29] wonderfulll is now away
[17:49:30] wonderfulll is now online
[17:49:55] jolits is now dnd
[17:49:58] GrimbleGromble is now online
[17:51:18] jolits is now xa
[17:51:21] jolits is now offline
[17:52:31] unk2k is now online
[17:52:54] erraen is now online
[17:54:07] MAVr is now Да, я тут
[17:54:28] wonderfulll is now away
[17:54:29] wonderfulll is now online
[17:56:19] xa4a-m is now away
[17:56:32] denz is now xa
[17:56:39] Effgen is now online
[17:57:43] xa4a-m is now online
[17:57:54] erraen is now online
[17:58:57] Portnov is now away
[17:59:29] wonderfulll is now away
[17:59:30] wonderfulll is now online
[17:59:43] Effgen is now offline
[17:59:48] GrimbleGromble is now away
[18:00:18] GrimbleGromble is now online
[18:01:12] denz is now online
[18:02:44] xa4a-m is now away
[18:02:46] Effgen is now online
[18:02:55] erraen is now online
[18:04:30] wonderfulll is now online
[18:04:31] wonderfulll is now away
[18:04:31] xa4a-m is now online
[18:04:32] xa4a-m is now offline
[18:04:42] Portnov is now online
[18:06:42] denz is now away
[18:07:02] denz is now online
[18:07:11] poltergeist is now offline
[18:07:56] erraen is now online
[18:09:16] Большой Лис is now offline
[18:09:31] wonderfulll is now online
[18:09:32] wonderfulll is now away
[18:12:56] erraen is now online
[18:14:31] wonderfulll is now away
[18:14:32] wonderfulll is now online
[18:17:43] cutwater is now away
[18:17:56] erraen is now online
[18:18:44] unk2k: "bumping" a thread. - красивое слово
[18:19:31] wonderfulll is now online
[18:19:32] wonderfulll is now away
[18:21:28] _lorien: подскажите, полёт из A в B с пересадкой в C по деньгам дешевле стоит, чем если просто купить билеты A-->C, C-->B ?
[18:22:11] огыешсук: когда как
[18:22:13] mishok13: если билеты одной авиакомпании -- то зачастую да
[18:22:57] erraen is now online
[18:23:59] GrimbleGromble is now offline
[18:24:31] wonderfulll is now away
[18:24:32] wonderfulll is now online
[18:25:01] red-agent is now away
[18:26:49] cutwater is now online
[18:27:03] denz is now away
[18:27:57] erraen is now online
[18:29:31] wonderfulll is now online
[18:29:32] wonderfulll is now away
[18:29:33] SV0L0CH: _lorien: почему не поездом?
[18:29:53] denz is now online
[18:30:17] unk2k is now away
[18:30:46] _lorien: Не знаю, я ни тем, ни тем не ездил :) Самолётом - раз и всё. А поезд - это долго.
[18:30:55] _lorien: До москвы только полтора-два дня пути.
[18:32:27] unk2k is now online
[18:32:58] erraen is now online
[18:34:28] slav0nic is now offline
[18:34:31] wonderfulll is now away
[18:34:32] wonderfulll is now online
[18:35:01] red-agent is now xa
[18:37:05] jolits is now dnd
[18:37:59] erraen is now online
[18:39:32] wonderfulll is now online
[18:39:33] wonderfulll is now away
[18:40:09] lievil is now away
[18:40:56] nmk is now offline
[18:41:55] red-agent is now online
[18:42:28] Effgen is now away
[18:42:59] erraen is now online
[18:43:30] ilnur.soft is now online
[18:43:33] ilnur.soft is now offline
[18:44:32] wonderfulll is now away
[18:44:33] cutwater is now away
[18:44:33] wonderfulll is now online
[18:46:19] lievil is now online
[18:48:00] erraen is now online
[18:49:32] wonderfulll is now away
[18:49:33] wonderfulll is now online
[18:51:19] lievil is now away
[18:52:28] Effgen is now xa
[18:53:01] erraen is now online
[18:54:33] cutwater is now xa
[18:54:33] wonderfulll is now away
[18:54:34] wonderfulll is now online
[18:55:03] Большой Лис is now online
[18:55:14] Effgen is now online
[18:55:53] Мозгошредер: hg up без параметров скинет на последнюю ревизию?
[18:56:47] Portnov is now away
[18:56:59] Portnov is now online
[18:57:28] _lorien: а я правильно понимаю, шо замыкания в javascript хранят ссылки на объекты и потом при следующей отаботке кода из замыкания эти объекты могут быть уже с другими свойствами, изменёнными вовне?
[18:57:57] _lorien: Update the repository's working directory to the specified revision,
or the tip of the current branch if none is specified.
[18:57:58] red-agent: Мозгошредер, нет блин, на предпоследнюю...
[18:58:01] erraen is now online
[18:59:33] wonderfulll is now online
[18:59:34] wonderfulll is now away
[18:59:46] Optik is now online
[18:59:48] Optik is now online
[18:59:57] feedbot is now online
[18:59:58] pymonk is now online
[18:59:59] feedbot: Big discount on Resolver One today http://www.reddit.com/r/Python/comments/9c3zf/big_discount_on_resolver_one_today/
[19:00:02] feedbot is now offline
[19:01:18] lievil is now xa
[19:01:52] mishok13 is now away
[19:03:01] erraen is now online
[19:03:43] Optik is now away
[19:03:44] Optik is now away
[19:04:06] Большой Лис: http://www.bsd.md/uploads/media/nosmoking.jpg
[19:04:34] wonderfulll is now away
[19:04:35] wonderfulll is now online
[19:06:11] Ляпатяпа is now online
[19:07:47] _lorien: что самое кошерное в jquery мире для рисования popup слоя?
[19:08:02] erraen is now online
[19:08:31] Большой Лис is now offline
[19:09:35] wonderfulll is now away
[19:09:36] wonderfulll is now online
[19:11:52] mishok13 is now xa
[19:12:11] SV0L0CH is now away
[19:13:02] erraen is now online
[19:14:36] wonderfulll is now away
[19:14:36] wonderfulll is now online
[19:16:31] unk2k is now away
[19:17:06] Мозгошредер is now dnd
[19:17:39] lievil is now online
[19:18:03] erraen is now online
[19:18:03] unk2k is now online
[19:19:35] wonderfulll is now online
[19:19:37] wonderfulll is now away
[19:19:50] огыешсук: /me пользуется jquery.tools
[19:19:59] Portnov is now away
[19:20:14] Portnov is now online
[19:20:30] _lorien: ага, забыл их проверить
[19:21:03] sevenov: http://anger.net.ua/blog/13/ -- Аааа, разрыв.
[19:21:51] jolits is now offline
[19:22:11] SV0L0CH is now xa
[19:22:18] Ляпатяпа is now offline
[19:22:18] огыешсук: баян ;o)
[19:22:45] sevenov: огыешсук, но это не отменяет факта, что мозг разрывается :)
[19:22:54] огыешсук: отчего?
[19:23:04] erraen is now online
[19:23:48] Optik is now xa
[19:23:50] Optik is now xa
[19:23:52] sevenov: >Плугинчик- потому что он настолько маленький я что я осмелился его назвать плугином :)
[19:23:54] sevenov: аааа
[19:23:55] SV0L0CH is now online
[19:23:58] sevenov: Ааа!
[19:24:00] sevenov: ААААА
[19:24:34] PC is now offline
[19:24:36] wonderfulll is now online
[19:24:37] wonderfulll is now away
[19:25:53] Portnov is now away
[19:26:02] Portnov is now online
[19:26:55] MAVr is now away
[19:27:34] MAVr is now Да, я тут
[19:27:47] cutwater is now offline
[19:28:05] erraen is now online
[19:29:24] Portnov is now away
[19:29:37] wonderfulll is now away
[19:29:38] wonderfulll is now online
[19:29:46] огыешсук is now offline
[19:30:48] Portnov is now online
[19:31:41] jedgar: _lorien: да, насколько помню, в js именно так
[19:33:05] erraen is now online
[19:33:33] SV0L0CH is now away
[19:34:37] wonderfulll is now away
[19:34:38] wonderfulll is now online
[19:35:15] erraen is now offline
[19:35:52] red-agent is now =(
[19:35:59] pymonk is now away
[19:36:57] SV0L0CH is now online
[19:38:53] unk2k: проблема в том что гугловодство не дало мне результатов по следующему вопросу:
как изменить формат принимаемых данных в -> models.DateFields() ?
[19:39:05] Effgen is now away
[19:39:37] wonderfulll is now online
[19:39:38] wonderfulll is now away
[19:39:40] pymonk is now online
[19:40:11] klichuk is now online
[19:40:14] cutwater is now online
[19:40:55] cutwater is now offline
[19:40:56] mishok13 is now online
[19:41:03] cutwater is now online
[19:41:19] cutwater is now offline
[19:41:40] cutwater is now online
[19:41:55] cutwater is now offline
[19:42:12] cutwater is now online
[19:42:39] cutwater is now offline
[19:43:07] cutwater is now online
[19:43:13] Effgen is now online
[19:44:17] unk2k: залез в сорцы, видимо только костылем можно...
[19:44:37] wonderfulll is now away
[19:44:38] wonderfulll is now online
[19:45:03] Александp: unk2k, а написать своё поле не судьба?
[19:45:06] _lorien: Takes one optional argument:
DateField.input_formats¶
A list of formats used to attempt to convert a string to a valid datetime.date object.
[19:45:14] _lorien: доки пробовал читать? :D
[19:45:18] unk2k: да
[19:45:42] unk2k: Александp, нуб я еще
[19:45:57] mishok13 is now away
[19:46:23] unk2k: _lorien, а вот хрен там
[19:46:34] unk2k: if not ansi_date_re.search(value):
raise exceptions.ValidationError(
_('Enter a valid date in YYYY-MM-DD format.'))
# Now that we have the date string in YYYY-MM-DD format, check to make
# sure it's a valid date.
# We could use time.strptime here and catch errors, but datetime.date
# produces much friendlier error messages.
year, month, day = map(int, value.split('-'))
[19:47:35] unk2k: _lorien, что скажешь гуру ?
[19:48:00] _lorien: forms.DateField
[19:49:37] wonderfulll is now away
[19:49:38] wonderfulll is now online
[19:52:34] denz is now away
[19:52:46] unk2k is now away
[19:53:02] unk2k is now online
[19:53:15] unk2k: нуууу
[19:53:27] unk2k: у меня как раз от туда идет неверные данные (то есть моего формата)
[19:53:36] unk2k: birthday = forms.DateField(input_formats=['%d.%m.%Y'], label=u'Дата рождения')
[19:53:41] Effgen is now away
[19:54:03] unk2k: а вот потом в этом классе формы
def save(self):
return UserProfile.objects.create_inactive_user(userdata=self.data)
[19:54:11] _lorien: я верю, что в доках всё правильно :)
[19:54:24] denz is now online
[19:54:30] unk2k: def create_inactive_user(self, *argv, **kwargs):
p = PrivetaUserProfileForms(obj)
p.save()
[19:54:38] wonderfulll is now online
[19:54:39] wonderfulll is now away
[19:54:40] unk2k: class PrivetaUserProfileForms(ModelForm):
class Meta:
model = UserProfile
[19:54:49] unk2k: class UserProfile(models.Model):
user = models.ForeignKey(User, unique=True)
birthday = models.DateField(default=datetime.date.today())
[19:54:49] _lorien: spamm )
[19:55:05] unk2k: _lorien, подсоби пжста ;)
[19:55:19] _lorien: спасибо, у меня своя работа есть )
[19:55:25] _lorien: ты вообщекакой-то назойливый тип )
[19:55:30] _lorien: спамишь и спамишь тут :)
[19:55:48] unk2k: _lorien, ну где я не правильно сделал то ?
[19:55:57] mishok13 is now xa
[19:56:01] _lorien: не знаю, мне неинтересная твоя проблема вданный момент:)
[19:56:51] unk2k: _lorien, ладно, напишу через пару лет, может поможешь
[19:57:50] _lorien: через пару лет вроде нубиру прилетит и ухуяит всё на этой земле
[19:58:12] MAVr is now offline
[19:58:15] Effgen is now online
[19:59:38] wonderfulll is now online
[19:59:39] wonderfulll is now away
[19:59:58] feedbot is now online
[20:00:00] feedbot: Язык программирования Python / Сравнение эффективности способов запуска веб-приложений на языке Python http://habrahabr.ru/blogs/python/67475/
[20:00:03] feedbot is now offline
[20:01:44] denz is now away
[20:04:10] klichuk is now away
[20:04:39] wonderfulll is now away
[20:04:40] wonderfulll is now online
[20:05:04] denz is now online
[20:05:10] pymonk is now away
[20:09:39] wonderfulll is now away
[20:09:40] wonderfulll is now online
[20:10:45] denz is now away
[20:11:55] denz is now online
[20:14:39] wonderfulll is now away
[20:14:40] wonderfulll is now online
[20:15:05] Мозгошредер is now offline
[20:15:10] pymonk is now xa
[20:23:19] Большой Лис is now online
[20:23:19] pymonk is now online
[20:23:19] denz is now away
[20:23:19] sintetico is now Доступен
[20:23:19] pzskc383 is now offline
[20:23:19] wonderfulll is now online
[20:23:19] wonderfulll is now away
[20:23:19] pymonk is now away
[20:24:10] klichuk is now xa
[20:24:39] wonderfulll is now away
[20:24:40] wonderfulll is now online
[20:26:20] denplis is now online
[20:26:21] denplis is now online
[20:27:25] denz is now xa
[20:27:35] denplis is now online
[20:28:07] slav0nic is now online
[20:28:26] Portnov is now away
[20:29:39] wonderfulll is now away
[20:29:40] wonderfulll is now online
[20:30:51] slav0nic is now offline
[20:31:11] slav0nic is now online
[20:31:38] Мозгошредер is now online
[20:31:40] pymonk is now xa
[20:32:23] Portnov is now online
[20:32:37] denplis is now online
[20:33:55] Большой Лис is now offline
[20:34:40] wonderfulll is now online
[20:34:41] wonderfulll is now away
[20:34:47] Мозгошредер is now offline
[20:34:56] Мозгошредер is now online
[20:37:33] slav0nic is now away
[20:37:37] denplis is now online
[20:37:51] Portnov is now away
[20:39:41] wonderfulll is now away
[20:39:42] wonderfulll is now online
[20:40:00] Мозгошредер is now offline
[20:40:55] erraen is now online
[20:40:55] mishok13 is now online
[20:40:56] erraen is now online
[20:41:08] erraen is now online
[20:42:07] Мозгошредер is now online
[20:42:38] denplis is now online
[20:43:00] pymonk is now online
[20:44:41] wonderfulll is now away
[20:44:42] wonderfulll is now online
[20:44:49] erraen is now online
[20:45:07] jedgar is now away
[20:45:10] jedgar is now online
[20:45:31] slav0nic is now online
[20:45:57] mishok13 is now away
[20:45:58] pymonk: feedbot, щас глянемс)
[20:46:28] klichuk is now online
[20:46:43] SV0L0CH is now offline
[20:47:39] denplis is now online
[20:47:43] Effgen is now away
[20:48:57] Effgen is now online
[20:49:21] lievil is now away
[20:49:42] wonderfulll is now away
[20:49:43] wonderfulll is now online
[20:49:49] erraen is now online
[20:50:33] slav0nic is now away
[20:52:25] denz is now online
[20:52:40] denplis is now online
[20:53:16] red-agent is now away
[20:53:30] denplis is now offline
[20:53:57] red-agent is now =(
[20:54:42] wonderfulll is now away
[20:54:43] wonderfulll is now online
[20:54:49] erraen is now online
[20:54:51] Portnov is now online
[20:55:57] mishok13 is now xa
[20:56:02] Большой Лис is now online
[20:56:18] _lorien: вкалывают роботы - счастлив человек
[20:57:26] denz is now away
[20:58:13] slav0nic is now online
[20:58:22] lievil is now online
[20:59:43] wonderfulll is now online
[20:59:44] wonderfulll is now away
[20:59:50] erraen is now online
[20:59:59] feedbot is now online
[21:00:00] feedbot: What's the best python xmpp library? http://www.reddit.com/r/Python/comments/9c5xy/whats_the_best_python_xmpp_library/
[21:00:04] feedbot is now offline
[21:02:00] Portnov is now away
[21:02:48] unk2k is now away
[21:02:48] Portnov is now online
[21:02:56] denz is now online
[21:03:15] slav0nic is now away
[21:03:25] unk2k is now online
[21:04:43] wonderfulll is now online
[21:04:44] wonderfulll is now away
[21:04:50] erraen is now online
[21:07:41] pymonk is now away
[21:08:14] Effgen is now away
[21:08:21] pymonk is now online
[21:09:43] wonderfulll is now online
[21:09:44] wonderfulll is now away
[21:09:51] erraen is now online
[21:11:27] Portnov is now away
[21:12:19] mdn is now offline
[21:12:54] Portnov is now online
[21:13:15] slav0nic is now xa
[21:14:44] wonderfulll is now online
[21:14:45] wonderfulll is now away
[21:14:51] erraen is now online
[21:17:44] Effgen is now online
[21:19:45] wonderfulll is now online
[21:19:46] wonderfulll is now away
[21:19:52] erraen is now online
[21:20:27] red-agent is now away
[21:22:27] unk2k: Ребят я запутался.
[21:22:37] _lorien: уф, ну усё, полечу 3-го в Киев :D
[21:23:31] wiz: _lorien, а что там?
[21:23:32] unk2k: в модель приходет QueryDict я меню в нем значени (value) и передаю на сохранение в БД в ответ мне выходит ошибка
File "/var/lib/python-support/python2.6/django/middleware/common.py", line 83, in process_response
if response.status_code == 404:
[21:23:54] unk2k: ошибка (белый экран, не django debug)
[21:23:57] _lorien: wiz, просто так :D
[21:24:02] wiz: круто
[21:24:10] Effgen is now away
[21:24:13] _lorien: меня друг туда заманил )
[21:24:45] wonderfulll is now away
[21:24:46] wonderfulll is now online
[21:24:52] erraen is now online
[21:24:53] unk2k: подскажите в чем проблема, весь гугл перерыл
[21:24:55] red-agent is now =(
[21:25:56] denz is now away
[21:26:26] denz is now online
[21:26:35] denz is now offline
[21:27:29] sintetico is now offline
[21:27:47] _lorien: ошибка днк :D (чёрный юмор)
[21:29:13] wiz: unk2k, похоже, что бинарный код не соответствует исходникам и показывает фигню.
[21:29:21] wiz: какой класс ошибки?
[21:29:41] unk2k: Traceback (most recent call last):
File "/var/lib/python-support/python2.6/django/core/servers/basehttp.py", line 279, in run
self.result = application(self.environ, self.start_response)
File "/var/lib/python-support/python2.6/django/core/servers/basehttp.py", line 650, in __call__
return self.application(environ, start_response)
File "/var/lib/python-support/python2.6/django/core/handlers/wsgi.py", line 243, in __call__
response = middleware_method(request, response)
File "/var/lib/python-support/python2.6/django/middleware/common.py", line 83, in process_response
if response.status_code == 404:
AttributeError: 'str' object has no attribute 'status_code'
[21:29:46] wonderfulll is now away
[21:29:47] wonderfulll is now online
[21:29:52] erraen is now online
[21:32:40] Effgen is now online
[21:32:51] Ferroman is now online
[21:33:04] Ferroman is now offline
[21:33:45] _lorien: такое бывает, когда возвращаешь не HttpResponse, а какую-нить херь :)
[21:34:08] unk2k: _lorien, я похож на дебила ? я возвращаю все как надо\
[21:34:24] _lorien: unk2k, простите, ваше высочество
[21:34:28] Optik is now offline
[21:34:33] unk2k: _lorien, принято
[21:34:35] _lorien: что я невольно бросилтень на ваши умственные способности :D
[21:34:37] unk2k: _lorien, =)
[21:34:46] wonderfulll is now away
[21:34:47] wonderfulll is now online
[21:34:53] erraen is now online
[21:35:37] red-agent: unk2k, вьюху покажи.
[21:35:55] unk2k: _lorien, все благодаря тебя =)
[21:36:00] unk2k: _lorien, pdb рулит, нашел ошибку
[21:36:15] unk2k: red-agent, если я выложу код то его будет очень нудно и долго искать
[21:36:17] red-agent: И в чем же она была?
[21:36:48] unk2k: Ошбка была в неверном юзании вот этого
http://www.djangosnippets.org/snippets/821/
return 'mytemplate.html'
вместо
return {}, 'mytem.html'
[21:37:04] unk2k: ВСЕМ СПАСИБО, Я ПРИДУ ЗАВТРА +) Агрых
[21:37:11] _lorien: yep, какая-то херь
[21:37:12] unk2k: ВСЕМ ПОКА
[21:37:14] red-agent:
[21:33:53] _lorien: такое бывает, когда возвращаешь не HttpResponse, а какую-нить херь :)
[21:34:16] unk2k: _lorien, я похож на дебила ? я возвращаю все как надо\
[21:37:19] red-agent: ....
[21:37:19] _lorien: :D
[21:37:38] unk2k: _lorien, да я че ипу что ли что туда надо отдавать -) делал как догадывался
[21:37:46] unk2k: _lorien, я сам же респонс не отдавал
[21:37:53] red-agent: unk2k, Теперь ты, если честно не просто похож -- ты и есть дибил.
[21:38:03] red-agent: Потому, что вменяем человек такую хуету капсом не пишет...
[21:38:26] red-agent: это тебе не "чят" знакомств с блондинками
[21:38:30] unk2k: red-agent, купи себе монитор по больше, видмо у тебя капс на пол экрана
[21:38:47] slav0nic is now online
[21:38:49] unk2k: red-agent, я ипался 4 часа с этим, после этого можно и капсом пописать
[21:39:02] unk2k: red-agent, а с волосатыми агентами
[21:39:04] unk2k: всем пока
[21:39:08] unk2k is now away
[21:39:09] unk2k is now online
[21:39:30] lievil is now away
[21:39:44] lievil is now online
[21:39:47] wonderfulll is now away
[21:39:48] wonderfulll is now online
[21:39:53] erraen is now online
[21:40:44] Portnov is now away
[21:43:29] red-agent is now away
[21:44:17] unk2k is now away
[21:44:25] red-agent is now =(
[21:44:44] lievil is now away
[21:44:47] wonderfulll is now away
[21:44:48] wonderfulll is now online
[21:44:54] erraen is now online
[21:44:57] jedgar: интересная штука http://code.google.com/p/ebcode/
[21:45:28] lievil is now online
[21:45:40] jedgar: а какие есть еще большие опенсорсы, посмотреть как делают что-нить сложное?
[21:48:24] _lorien: ебкод, круто :)
[21:48:34] red-agent: ебикод
[21:48:38] Александp: jedgar, джайку
[21:49:11] Portnov is now online
[21:49:42] _lorien: jedgar, сложное? Посмотри pinax, там, говорят, чёрт рога сломит
[21:49:47] wonderfulll is now away
[21:49:48] wonderfulll is now online
[21:49:54] erraen is now online
[21:50:34] jedgar: Александp: ага, оно же кстати на ГАЕ переехало
[21:50:56] _lorien: а на gae уже сделали xmpp поддержку?
[21:50:57] jedgar: _lorien: пинах этож просто набор джанго-апсов
[21:51:08] wiz: _lorien, а должны были?
[21:51:12] _lorien: я там хотел сделать feedbot, но тогда не было xmpp support (месяца два назад)
[21:51:20] _lorien: да, я читал, там это в планируемых улучшениях
[21:51:52] jedgar: !g appengine jaiku
[21:51:53] Александp: jedgar, или EveryBlock.com
[21:52:18] Александp: хм
[21:52:24] jedgar: Александp: =) eb = every block
[21:52:32] Александp: ebcode и является исходниками
[21:52:37] Александp: хм
[21:52:51] _lorien: jedgar, satchmo
[21:53:16] Александp: а я то думаю откуда у меня всякие eblogи и epubы в директориях
[21:54:17] unk2k is now xa
[21:54:47] wonderfulll is now online
[21:54:48] wonderfulll is now away
[21:54:55] erraen is now online
[21:56:47] jedgar: да, satchmo это ппц, большой
[21:59:47] wonderfulll is now online
[21:59:48] wonderfulll is now away
[21:59:55] erraen is now online
[21:59:57] feedbot is now online
[21:59:58] feedbot: Wokkel http://www.reddit.com/r/Python/comments/9c689/wokkel/
[22:00:02] feedbot is now offline
[22:04:47] wonderfulll is now online
[22:04:48] wonderfulll is now away
[22:04:56] erraen is now online
[22:09:17] unk2k is now online
[22:09:48] wonderfulll is now online
[22:09:49] wonderfulll is now away
[22:09:56] erraen is now online
[22:10:10] Большой Лис is now away
[22:13:41] pymonk is now away
[22:14:17] unk2k is now away
[22:14:28] Большой Лис is now online
[22:14:48] wonderfulll is now online
[22:14:49] wonderfulll is now away
[22:14:56] erraen is now online
[22:19:49] wonderfulll is now online
[22:19:50] wonderfulll is now away
[22:19:57] erraen is now online
[22:23:42] pymonk is now xa
[22:24:01] slav0nic is now away
[22:24:17] unk2k is now xa
[22:24:50] wonderfulll is now online
[22:24:51] wonderfulll is now away
[22:24:58] erraen is now online
[22:28:53] pzskc383 is now online
[22:28:54] pzskc383 is now online
[22:29:50] wonderfulll is now online
[22:29:51] wonderfulll is now away
[22:29:59] erraen is now online
[22:33:11] pymonk is now offline
[22:34:26] _lorien is now away
[22:34:51] wonderfulll is now online
[22:34:52] wonderfulll is now away
[22:35:00] erraen is now online
[22:36:56] _lorien is now online
[22:39:52] wonderfulll is now online
[22:39:53] wonderfulll is now away
[22:40:01] erraen is now online
[22:40:15] cutwater is now away
[22:44:07] cutwater is now online
[22:44:53] wonderfulll is now away
[22:44:54] wonderfulll is now online
[22:45:01] erraen is now online
[22:49:53] wonderfulll is now online
[22:49:54] wonderfulll is now away
[22:50:02] erraen is now online
[22:54:53] wonderfulll is now online
[22:54:54] wonderfulll is now away
[22:55:02] erraen is now online
[22:55:31] _lorien is now xa
[22:56:42] Effgen is now away
[22:57:29] mdn is now online
[22:57:30] mdn is now online
[22:58:59] slav0nic is now offline
[22:59:15] slav0nic is now away
[22:59:38] cutwater is now xa
[22:59:54] wonderfulll is now online
[22:59:55] wonderfulll is now away
[22:59:58] feedbot is now online
[22:59:59] feedbot: Pyjamas 0.6 Web Widget Set and python-to-javascript Compiler released http://www.reddit.com/r/Python/comments/9c609/pyjamas_06_web_widget_set_and_pythontojavascript/
[23:00:03] erraen is now online
[23:00:03] feedbot is now offline
[23:02:12] Большой Лис: python-to-javascript
[23:02:15] Большой Лис: ымм
[23:03:23] Большой Лис: Pyjamas is a port of Google Web Toolkit.
[23:03:25] Большой Лис: хохо
[23:03:29] Большой Лис: долой жабу
[23:04:21] Effgen is now online
[23:04:53] wonderfulll is now online
[23:04:54] wonderfulll is now away
[23:05:03] erraen is now online
[23:09:16] unk2k is now online
[23:09:37] klichuk is now offline
[23:09:54] wonderfulll is now online
[23:09:55] wonderfulll is now away
[23:09:57] klichuk is now online
[23:10:03] erraen is now online
[23:14:16] unk2k is now away
[23:14:19] _lorien: http://www.s7.ru/ru/special_programs/special_offers/google_chrome.html, гм, нафиг сайт s7 рекламирует гуглхром :) Денег им шо ли дали
[23:14:54] wonderfulll is now online
[23:14:55] wonderfulll is now away
[23:15:04] erraen is now online
[23:15:45] denplis is now online
[23:15:46] denplis is now online
[23:17:05] denplis is now online
[23:19:55] wonderfulll is now online
[23:19:56] wonderfulll is now away
[23:20:04] erraen is now online
[23:22:05] denplis is now online
[23:24:16] unk2k is now xa
[23:24:56] wonderfulll is now online
[23:24:57] wonderfulll is now away
[23:25:04] erraen is now online
[23:25:20] denplis is now offline
[23:29:56] wonderfulll is now online
[23:29:57] wonderfulll is now away
[23:30:05] erraen is now online
[23:30:42] slav0nic is now offline
[23:30:54] slav0nic is now away
[23:31:26] jedgar: эта пижама в IE глючит :)
[23:32:00] sevenov is now offline
[23:32:04] sevenov is now away
[23:34:56] wonderfulll is now online
[23:34:57] wonderfulll is now away
[23:35:06] erraen is now online
[23:35:31] xa4a_ is now online
[23:39:57] wonderfulll is now away
[23:39:58] wonderfulll is now online
[23:40:06] erraen is now online
[23:44:57] wonderfulll is now away
[23:44:57] wonderfulll is now online
[23:45:06] erraen is now online
[23:49:57] wonderfulll is now online
[23:49:58] wonderfulll is now away
[23:50:06] erraen is now online
[23:51:31] Effgen is now offline
[23:54:59] wonderfulll is now online
[23:55:00] wonderfulll is now away
[23:55:07] erraen is now online
[23:57:56] cutwater is now offline
[23:59:32] Большой Лис is now offline
[23:59:59] wonderfulll is now online