[00:01:35] erraen is now online
[00:01:53] kostafey is now Доступен
[00:02:54] kostafey is now offline
[00:06:22] slav0nic is now away
[00:06:37] erraen is now online
[00:10:58] d1ffuz0r is now offline
[00:11:38] erraen is now online
[00:16:21] slav0nic is now xa
[00:16:38] erraen is now online
[00:19:53] slav0nic is now online
[00:21:40] erraen is now online
[00:26:43] erraen is now online
[00:28:17] Typhon_ is now online
[00:31:45] erraen is now online
[00:36:45] erraen is now online
[00:41:47] erraen is now online
[00:45:20] Typhon_ is now offline
[00:46:48] erraen is now online
[00:49:20] slav0nic is now away
[00:51:21] Typhon is now online
[00:51:51] erraen is now online
[00:52:27] kwis is now offline
[00:54:24] e1maker is now offline
[00:54:55] slav0nic is now online
[00:56:53] erraen is now online
[01:00:56] Joes is now offline
[01:01:55] erraen is now online
[01:06:56] erraen is now online
[01:09:36] slav0nic is now away
[01:11:57] erraen is now online
[01:16:59] erraen is now online
[01:17:07] erraen is now offline
[01:19:35] slav0nic is now xa
[01:19:50] xa4a is now online
[01:19:51] xa4a is now away
[01:29:56] slav0nic is now online
[01:30:57] pc_ is now offline
[01:30:58] pc_ is now xa
[01:48:40] slav0nic is now offline
[01:49:40] pc_ is now offline
[01:49:42] pc_ is now xa
[01:54:23] Typhon is now xa
[01:54:24] Typhon is now online
[02:06:50] kwis is now online
[02:07:51] pc_ is now offline
[02:07:52] pc_ is now xa
[02:37:56] levsha is now xa
[02:37:56] pc_ is now xa
[02:37:56] Tony is now online
[02:37:56] kwis is now online
[02:37:56] deepwalker is now online
[02:37:56] xa4a is now away
[02:37:56] Typhon is now online
[02:37:56] mishok13 is now xa
[02:37:56] magic_pony is now online
[02:37:56] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[02:38:56] pc_ is now offline
[02:38:57] pc_ is now xa
[02:43:38] Typhon is now offline
[02:52:22] gigimon is now online
[03:22:28] levsha is now xa
[03:22:28] Tony is now online
[03:22:28] xa4a is now away
[03:22:28] pc_ is now xa
[03:22:28] kwis is now online
[03:22:28] deepwalker is now online
[03:22:28] gigimon is now online
[03:22:28] mishok13 is now xa
[03:22:28] magic_pony is now online
[03:22:28] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[03:23:28] pc_ is now offline
[03:23:29] pc_ is now xa
[03:39:32] gigimon is now offline
[04:09:40] levsha is now xa
[04:09:40] Tony is now online
[04:09:40] xa4a is now away
[04:09:40] pc_ is now xa
[04:09:40] kwis is now online
[04:09:40] deepwalker is now online
[04:09:40] mishok13 is now xa
[04:09:40] magic_pony is now online
[04:09:40] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[04:10:40] pc_ is now offline
[04:10:41] pc_ is now xa
[04:15:51] deepwalker is now offline
[04:46:03] levsha is now xa
[04:46:03] Tony is now online
[04:46:03] xa4a is now away
[04:46:03] pc_ is now xa
[04:46:03] kwis is now online
[04:46:03] mishok13 is now xa
[04:46:03] magic_pony is now online
[04:46:03] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[05:16:14] levsha is now xa
[05:16:14] Tony is now online
[05:16:14] xa4a is now away
[05:16:14] pc_ is now xa
[05:16:14] kwis is now online
[05:16:14] mishok13 is now xa
[05:16:15] magic_pony is now online
[05:16:15] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[05:32:31] Tony is now away
[05:33:32] pc_ is now offline
[05:33:33] pc_ is now xa
[05:57:31] Tony is now xa
[05:58:31] pc_ is now offline
[05:58:32] pc_ is now xa
[06:27:05] kwis is now offline
[06:27:07] kwis is now online
[06:27:09] kwis is now online
[06:28:05] pc_ is now offline
[06:28:07] pc_ is now xa
[06:58:09] levsha is now xa
[06:58:09] Tony is now xa
[06:58:09] xa4a is now away
[06:58:09] pc_ is now xa
[06:58:09] kwis is now online
[06:58:09] mishok13 is now xa
[06:58:09] magic_pony is now online
[06:58:09] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[07:22:01] dicos is now online
[07:25:09] maxim.zemlyakov is now online
[07:25:09] maxim.zemlyakov is now online
[07:25:19] maxim.zemlyakov is now online
[07:25:20] maxim.zemlyakov is now online
[07:29:11] maxim.zemlyakov is now online
[07:34:12] maxim.zemlyakov is now online
[07:39:13] maxim.zemlyakov is now online
[07:40:55] maxim.zemlyakov is now offline
[07:43:19] maxim.zemlyakov is now online
[07:43:19] maxim.zemlyakov is now online
[07:43:30] maxim.zemlyakov is now online
[07:43:30] maxim.zemlyakov is now online
[07:47:24] maxim.zemlyakov is now online
[07:52:25] maxim.zemlyakov is now online
[07:55:16] dicos is now away
[07:55:18] dicos is now away
[07:57:26] maxim.zemlyakov is now online
[08:02:27] maxim.zemlyakov is now online
[08:05:28] dicos is now away
[08:05:29] dicos is now online
[08:07:26] maxim.zemlyakov is now online
[08:12:28] maxim.zemlyakov is now online
[08:12:50] maxim.zemlyakov is now offline
[08:35:08] kwis is now away
[08:36:09] pc_ is now offline
[08:36:11] pc_ is now xa
[08:41:17] kostafey is now Доступен
[08:44:57] Tony is now online
[08:45:08] kwis is now xa
[08:46:04] kostafey is now Доступен
[08:51:07] kostafey is now Доступен
[08:56:07] kostafey is now Доступен
[09:01:09] kostafey is now Доступен
[09:03:42] d1ffuz0r is now online
[09:06:12] kostafey is now Доступен
[09:11:13] kostafey is now Доступен
[09:16:16] kostafey is now Доступен
[09:17:01] pc_ is now online
[09:21:17] kostafey is now Доступен
[09:22:05] pc_ is now away
[09:26:18] kostafey is now Доступен
[09:27:17] d1ffuz0r is now away
[09:30:18] d1ffuz0r is now online
[09:31:20] kostafey is now Доступен
[09:32:05] pc_ is now xa
[09:35:17] xa4a is now away
[09:35:17] xa4a is now online
[09:36:00] kostafey is now away
[09:36:01] kostafey is now away
[09:36:23] kostafey is now away
[09:41:24] kostafey is now away
[09:46:26] kostafey is now away
[09:51:28] kostafey is now away
[09:55:27] dicos is now online
[09:55:30] dicos is now away
[09:56:01] xa4a: DJ упал. http://www.google.com//finance?chdnp=1&chdd=1&chds=1&chdv=1&chvs=maximized&chdeh=0&chfdeh=0&chdet=1312523605091&chddm=25024&chls=IntervalBasedLine&q=INDEXDJX:.DJI&ntsp=0 что бы это значило?
[09:56:29] kostafey is now away
[09:56:29] xa4a: а, кто-то тут вчера hft ковырял...
[09:58:06] alecs is now online
[09:58:06] alecs is now online
[09:58:17] alecs is now online
[09:58:17] alecs is now online
[09:58:56] kostafey is now Доступен
[09:58:57] kostafey is now Доступен
[10:00:26] alecs is now online
[10:01:30] kostafey is now Доступен
[10:05:25] alecs is now online
[10:06:34] kostafey is now Доступен
[10:10:27] alecs is now online
[10:11:02] Сволота is now online
[10:11:35] kostafey is now Доступен
[10:11:37] Tony is now away
[10:14:08] d1ffuz0r is now offline
[10:14:09] d1ffuz0r is now online
[10:15:29] alecs is now online
[10:16:37] kostafey is now Доступен
[10:18:43] dicos is now away
[10:18:44] dicos is now online
[10:20:30] alecs is now online
[10:21:36] kostafey is now Доступен
[10:25:32] alecs is now online
[10:26:39] kostafey is now Доступен
[10:28:56] d1ffuz0r is now offline
[10:29:39] d1ffuz0r is now online
[10:30:33] alecs is now online
[10:31:41] kostafey is now Доступен
[10:35:34] alecs is now online
[10:36:37] Tony is now xa
[10:36:43] kostafey is now Доступен
[10:40:35] alecs is now online
[10:41:45] kostafey is now Доступен
[10:42:31] dicos is now away
[10:42:33] dicos is now away
[10:43:39] ds.tihonov is now дома! :)
[10:45:18] alafin is now online
[10:45:37] alecs is now online
[10:46:01] erraen is now online
[10:46:01] erraen is now online
[10:46:44] kostafey is now Доступен
[10:49:31] Сволота is now offline
[10:49:49] kostafey is now away
[10:49:50] kostafey is now away
[10:50:19] Сволота is now online
[10:50:38] alecs is now online
[10:50:41] gigimon is now online
[10:50:54] erraen is now online
[10:51:45] kostafey is now away
[10:53:42] alafin is now away
[10:53:47] gigimon is now offline
[10:53:47] gigimon is now online
[10:55:40] alecs is now online
[10:55:57] erraen is now online
[10:56:46] kostafey is now away
[11:00:42] alecs is now online
[11:00:58] erraen is now online
[11:01:47] kostafey is now away
[11:02:27] alafin is now online
[11:03:52] alecs is now offline
[11:05:59] erraen is now online
[11:06:49] kostafey is now away
[11:09:32] dicos is now away
[11:09:34] dicos is now online
[11:10:39] alafin is now away
[11:11:02] erraen is now online
[11:11:49] kostafey is now away
[11:13:15] alafin is now online
[11:16:03] erraen is now online
[11:16:21] cheshirecat is now online
[11:16:51] kostafey is now away
[11:21:05] erraen is now online
[11:21:52] kostafey is now away
[11:24:19] kwis is now online
[11:24:27] mishok13 is now offline
[11:24:38] mishok13 is now xa
[11:26:06] erraen is now online
[11:26:54] kostafey is now away
[11:29:21] kwis is now away
[11:31:07] erraen is now online
[11:31:55] kostafey is now away
[11:36:09] erraen is now online
[11:36:54] kostafey is now away
[11:39:21] kwis is now xa
[11:41:11] erraen is now online
[11:41:56] kostafey is now away
[11:45:46] alafin is now away
[11:46:12] erraen is now online
[11:46:57] kostafey is now away
[11:48:48] alafin is now online
[11:51:15] erraen is now online
[11:51:59] kostafey is now away
[11:56:16] erraen is now online
[11:56:30] cutwater is now online
[11:56:41] mishok13 is now online
[11:57:00] kostafey is now away
[11:59:47] dicos is now away
[11:59:49] dicos is now away
[12:01:16] erraen is now online
[12:01:18] dicos is now away
[12:01:20] dicos is now online
[12:01:51] kwis is now online
[12:02:01] kostafey is now away
[12:03:19] erraen is now offline
[12:03:23] kostafey is now Доступен
[12:03:24] kostafey is now Доступен
[12:04:41] pc_ is now online
[12:06:52] slav0nic is now online
[12:06:57] slav0nic is now away
[12:07:03] kostafey is now Доступен
[12:10:17] dicos is now offline
[12:11:27] mishok13 is now away
[12:12:05] kostafey is now Доступен
[12:14:17] mishok13 is now online
[12:14:55] pc_ is now away
[12:15:05] pc_ is now online
[12:17:07] kostafey is now Доступен
[12:18:17] Joes is now Yep, I'm here.
[12:18:30] kostafey is now away
[12:18:31] kostafey is now away
[12:18:39] nmk is now online
[12:22:08] kostafey is now away
[12:22:18] d1ffuz0r is now offline
[12:22:19] d1ffuz0r is now online
[12:23:43] erraen is now online
[12:23:43] erraen is now online
[12:23:44] erraen is now online
[12:23:50] erraen is now online
[12:27:09] kostafey is now away
[12:28:51] erraen is now online
[12:32:10] kostafey is now away
[12:33:51] erraen is now online
[12:37:09] kostafey is now away
[12:38:52] erraen is now online
[12:39:38] kwis is now offline
[12:42:05] alafin is now away
[12:42:10] kostafey is now away
[12:43:00] alafin is now online
[12:43:53] erraen is now online
[12:47:12] kostafey is now away
[12:48:10] Typhon is now online
[12:48:19] deepwalker is now online
[12:48:54] erraen is now online
[12:52:14] kostafey is now away
[12:53:55] erraen is now online
[12:57:14] kostafey is now away
[12:58:56] erraen is now online
[13:02:14] kostafey is now away
[13:03:56] erraen is now online
[13:07:16] kostafey is now away
[13:08:57] erraen is now online
[13:10:04] kostafey is now Доступен
[13:10:04] kostafey is now Доступен
[13:11:22] Сволота is now away
[13:12:18] kostafey is now Доступен
[13:13:22] Сволота is now online
[13:13:59] erraen is now online
[13:15:04] Typhon is now offline
[13:17:22] kostafey is now Доступен
[13:19:01] erraen is now online
[13:20:19] cutwater is now away
[13:22:23] kostafey is now Доступен
[13:23:44] tilarids is now online
[13:24:02] erraen is now online
[13:27:23] kostafey is now Доступен
[13:28:56] Сволота is now away
[13:29:05] erraen is now online
[13:30:29] alafin is now away
[13:32:23] kostafey is now Доступен
[13:32:24] Сволота is now online
[13:33:09] ds.tihonov is now offline
[13:34:05] erraen is now online
[13:37:23] kostafey is now Доступен
[13:39:08] erraen is now online
[13:40:19] cutwater is now xa
[13:42:24] kostafey is now Доступен
[13:44:10] erraen is now online
[13:45:31] alafin is now xa
[13:47:26] kostafey is now Доступен
[13:49:12] erraen is now online
[13:51:35] cheshirecat is now away
[13:51:39] cheshirecat is now away
[13:52:26] kostafey is now Доступен
[13:53:58] tilarids is now away
[13:54:13] erraen is now online
[13:55:53] cheshirecat is now away
[13:55:56] cheshirecat is now online
[13:57:27] kostafey is now Доступен
[13:57:57] kostafey is now away
[13:57:58] kostafey is now away
[13:59:14] erraen is now online
[14:00:12] cutwater is now online
[14:00:54] cheshirecat is now away
[14:00:58] cheshirecat is now away
[14:01:41] Typhon is now online
[14:01:55] kostafey is now Доступен
[14:01:56] kostafey is now Доступен
[14:02:29] kostafey is now Доступен
[14:03:57] tilarids is now xa
[14:04:16] erraen is now online
[14:04:25] pc_ is now away
[14:07:30] kostafey is now Доступен
[14:08:56] mishok13 is now away
[14:09:17] erraen is now online
[14:10:10] alecs is now online
[14:10:10] alecs is now online
[14:10:10] alecs is now online
[14:10:20] alecs is now online
[14:10:20] alecs is now online
[14:10:53] gigimon is now online
[14:11:41] alafin is now online
[14:12:32] kostafey is now Доступен
[14:14:18] erraen is now online
[14:14:25] pc_ is now xa
[14:14:51] cheshirecat is now away
[14:14:54] cheshirecat is now online
[14:15:13] alecs is now online
[14:15:37] alafin is now away
[14:16:25] pc_ is now online
[14:17:33] kostafey is now Доступен
[14:18:56] mishok13 is now xa
[14:19:20] erraen is now online
[14:19:33] d1ffuz0r is now away
[14:19:40] gigimon is now online
[14:20:15] alecs is now online
[14:21:19] alafin is now online
[14:21:22] denplis is now online
[14:21:23] denplis is now online
[14:22:34] kostafey is now Доступен
[14:24:22] erraen is now online
[14:25:18] alecs is now online
[14:26:03] denplis is now online
[14:27:37] kostafey is now Доступен
[14:29:25] erraen is now online
[14:30:20] alecs is now online
[14:31:04] denplis is now online
[14:32:38] kostafey is now Доступен
[14:34:28] erraen is now online
[14:35:20] alecs is now online
[14:36:05] denplis is now online
[14:37:38] kostafey is now Доступен
[14:39:30] erraen is now online
[14:40:19] tilarids is now online
[14:40:22] alecs is now online
[14:40:36] denplis is now offline
[14:40:52] alecs is now offline
[14:41:08] kostafey is now away
[14:41:08] kostafey is now away
[14:42:40] kostafey is now away
[14:42:57] denplis is now online
[14:42:57] denplis is now online
[14:43:43] alafin is now away
[14:43:59] alafin is now online
[14:44:32] erraen is now online
[14:46:35] denplis is now online
[14:47:14] alafin is now away
[14:47:27] tilarids is now away
[14:47:41] kostafey is now away
[14:49:34] erraen is now online
[14:50:01] tilarids is now online
[14:51:02] cutwater is now away
[14:51:37] denplis is now online
[14:52:29] kostafey is now Доступен
[14:52:30] kostafey is now Доступен
[14:52:41] kostafey is now Доступен
[14:52:53] cutwater is now online
[14:53:20] alafin is now online
[14:54:35] erraen is now online
[14:56:38] denplis is now online
[14:57:04] cheshirecat is now away
[14:57:08] cheshirecat is now away
[14:57:41] kostafey is now Доступен
[14:57:56] cheshirecat is now away
[14:57:58] cheshirecat is now online
[14:59:37] erraen is now online
[15:01:00] d1ffuz0r is now online
[15:01:39] denplis is now online
[15:02:41] kostafey is now Доступен
[15:04:30] mishok13 is now online
[15:04:38] erraen is now online
[15:06:41] denplis is now online
[15:07:42] kostafey is now Доступен
[15:09:40] erraen is now online
[15:09:52] mishok13 is now away
[15:10:30] alafin is now away
[15:10:58] denplis: кто-то использовал ghettoq?
[15:11:44] denplis is now online
[15:12:47] kostafey is now Доступен
[15:14:41] erraen is now online
[15:16:46] denplis is now online
[15:17:47] kostafey is now Доступен
[15:19:13] tilarids is now away
[15:19:43] erraen is now online
[15:19:52] mishok13 is now xa
[15:20:59] tilarids is now online
[15:21:48] denplis is now online
[15:22:48] kostafey is now Доступен
[15:23:33] cheshirecat is now away
[15:23:37] cheshirecat is now away
[15:24:45] erraen is now online
[15:24:51] pc_ is now away
[15:25:33] alafin is now xa
[15:26:29] alafin is now online
[15:26:50] denplis is now online
[15:27:49] kostafey is now Доступен
[15:29:46] erraen is now online
[15:30:21] cheshirecat is now away
[15:30:24] cheshirecat is now online
[15:30:35] tilarids is now away
[15:31:16] Typhon is now away
[15:31:37] Paradoxx is now chat
[15:31:52] denplis is now online
[15:32:31] nmk is now xa
[15:32:50] kostafey is now Доступен
[15:33:35] Paradoxx: джанго админка, есть таблица, 3 поля, хочу на лету делать вычисления и выводить в отдельную колонку в админке, как?
[15:34:19] tilarids is now online
[15:34:48] erraen is now online
[15:34:51] pc_ is now xa
[15:34:57] slav0nic: добавь метод в модель, добавь в рид онли поля в админке и добавь в выводимые поля (про последнйи пункт не уверен что необходим)
[15:35:47] kostafey is now away
[15:35:47] kostafey is now away
[15:36:54] denplis is now online
[15:37:51] kostafey is now away
[15:38:40] Paradoxx: спасибо
[15:39:50] erraen is now online
[15:40:35] tilarids is now away
[15:41:05] pc_ is now online
[15:41:55] denplis is now online
[15:42:53] kostafey is now away
[15:44:50] erraen is now online
[15:45:15] nmk is now online
[15:46:57] denplis is now online
[15:47:54] kostafey is now away
[15:48:21] alafin is now away
[15:49:51] erraen is now online
[15:50:35] tilarids is now xa
[15:51:17] Typhon is now away
[15:51:37] alafin is now online
[15:51:58] denplis is now online
[15:52:11] Paradoxx: чето туплю, как свой метод из модели прикрутить в admin.py )
[15:52:22] Typhon is now away
[15:52:26] Typhon is now online
[15:52:56] kostafey is now away
[15:54:52] erraen is now online
[15:55:32] gigimon: также как обычное поле
[15:57:00] denplis is now online
[15:57:57] kostafey is now away
[15:59:53] erraen is now online
[16:01:23] Paradoxx: в модели создал функцию, в list_display добавил новое поле(ридонли), как сделать чтобы в это новое поле вставлялись данные которые возвращает функция?
[16:02:00] denplis is now online
[16:02:01] alafin is now away
[16:02:57] kostafey is now away
[16:04:44] Joes is now Yep, I'm here.
[16:04:54] Joes is now offline
[16:04:54] Joes is now Yep, I'm here.
[16:04:55] erraen is now online
[16:05:13] Joes is now offline
[16:05:13] Joes is now Yep, I'm here.
[16:05:24] Joes is now offline
[16:05:24] Joes is now Yep, I'm here.
[16:05:55] Joes is now offline
[16:05:55] Joes is now Yep, I'm here.
[16:06:24] Joes is now offline
[16:06:24] Joes is now Yep, I'm here.
[16:06:55] Joes is now offline
[16:06:55] Joes is now Yep, I'm here.
[16:07:03] denplis is now online
[16:07:10] Joes is now offline
[16:07:11] огыешсук is now online
[16:07:24] Joes is now Yep, I'm here.
[16:07:58] kostafey is now away
[16:09:18] alafin is now online
[16:09:56] erraen is now online
[16:11:26] Paradoxx: разобрался
[16:11:44] kostafey is now Доступен
[16:11:45] kostafey is now Доступен
[16:12:05] denplis is now online
[16:13:00] kostafey is now Доступен
[16:13:36] cutwater is now away
[16:14:58] erraen is now online
[16:17:07] denplis is now online
[16:18:01] kostafey is now Доступен
[16:19:06] Paradoxx: еще вопрос, пытаюсь значение из таблицы умножить например на 2, т.е.
[16:19:09] Paradoxx: def new(self):
return (self.mask)*2
[16:19:22] Paradoxx: получаю Caught TypeError while rendering: unsupported operand type(s) for *: 'NoneType' and 'int'
[16:19:38] Paradoxx: NoneType?
[16:20:01] erraen is now online
[16:21:39] Paradoxx: как преобразвать NoneType в int?
[16:22:09] denplis is now online
[16:23:02] kostafey is now Доступен
[16:23:21] pc_ is now away
[16:24:03] Typhon is now away
[16:24:55] cheshirecat is now away
[16:24:59] cheshirecat is now away
[16:25:03] erraen is now online
[16:27:10] denplis is now online
[16:28:05] kostafey is now Доступен
[16:30:00] Paradoxx: странно, делаю str(self.mask)*2 - удваивает строку, делаю int(str(self.mask))*2 и ополучаю ошибку Caught ValueError while rendering: invalid literal for int() with base 10: 'None'. Поле mask типа IntegerField, NoneType в строку переделать можно, в int нельзя
[16:30:05] erraen is now online
[16:30:10] Сволота is now away
[16:30:42] Сволота is now online
[16:30:53] gigimon: Paradoxx: нахрена ты в скобки берешь?
[16:31:57] Paradoxx: а как еще?
[16:32:11] pc_ is now online
[16:32:12] denplis is now online
[16:32:13] gigimon: ты с сей пришел?
[16:32:19] gigimon: скобки - делаешь тупл
[16:32:25] cheshirecat is now away
[16:32:28] cheshirecat is now online
[16:32:33] gigimon: да и у тебя похоже в sel.mask ничего
[16:32:43] gigimon: просто self.mask * 2
[16:33:07] kostafey is now Доступен
[16:33:24] Paradoxx: Caught TypeError while rendering: unsupported operand type(s) for *: 'NoneType' and 'int'
[16:33:32] Paradoxx: если return self.mask * 2
[16:33:36] cutwater is now xa
[16:33:38] Paradoxx: mask не пустой
[16:34:02] Paradoxx: т.е. с базы приходит NoneType, как его побороть то
[16:34:13] gigimon: ну значит из базы что-то не так достаешь)
[16:34:21] gigimon: или пусто в ней
[16:34:58] Paradoxx: ну если сделать return str(self.mask)*2, то получаю 2424, в базе 24
[16:35:07] erraen is now online
[16:35:26] mishok13 is now online
[16:36:48] Typhon is now online
[16:37:14] denplis is now online
[16:37:58] Paradoxx: есть мысли?
[16:38:08] kostafey is now Доступен
[16:40:09] erraen is now online
[16:42:14] denplis is now online
[16:43:10] kostafey is now Доступен
[16:43:53] cutwater is now online
[16:45:11] erraen is now online
[16:46:15] Paradoxx: похоже нет
[16:47:15] denplis is now online
[16:48:12] kostafey is now Доступен
[16:48:30] cheshirecat is now offline
[16:50:13] erraen is now online
[16:52:17] denplis is now online
[16:52:51] gigimon: перед ретурном сделай print self.mask
[16:52:54] gigimon: и посмотри что выведет
[16:53:13] kostafey is now Доступен
[16:54:03] Paradoxx: в консоле выводит маски
[16:54:19] Paradoxx: если просто self.mask то в поле выводит маски
[16:54:27] Paradoxx: т.е. таблица наполнена
[16:54:52] Paradoxx: если сделать str(self.mask) * 2, то получается 2424
[16:55:04] Paradoxx: а так 24
[16:55:15] erraen is now online
[16:55:47] tilarids is now online
[16:57:18] denplis is now online
[16:57:18] gigimon: ну должно умножать
[16:57:29] gigimon: думаю не везде инт
[16:57:44] Paradoxx: mask = models.IntegerField(u"Маска", max_length=4)
[16:58:15] kostafey is now Доступен
[16:59:53] TheGodfather is now online
[17:00:03] TheGodfather: аллоха
[17:00:12] Paradoxx: гавайййи
[17:00:15] erraen is now online
[17:00:34] Paradoxx: нид хелп
[17:00:39] TheGodfather: мне тоже
[17:01:26] mishok13: что значит, как побороть None?
[17:01:31] tilarids is now away
[17:01:33] slav0nic: http://ibash.org.ru/quote.php?id=14609
[17:01:35] mishok13: if self.mask is not None не?
[17:02:13] TheGodfather: бляха грёбаный Qt4
[17:02:13] mishok13: None никак в int нельзя и главное, не надо, преобразовывать
[17:02:19] denplis is now online
[17:02:24] Paradoxx: как None умножить?
[17:02:40] Paradoxx: Caught TypeError while rendering: unsupported operand type(s) for *: 'NoneType' and 'int'
[17:02:44] Typhon: ЗАЧЕМ? oO
[17:02:45] Paradoxx: если умножаю
[17:02:46] TheGodfather: как считать строку написаную в lineEdit в Qt - интерфейсе
[17:03:05] mishok13: Paradoxx, ты до питона программировал вообще?
[17:03:14] Paradoxx: на бейсике
[17:03:16] kostafey is now Доступен
[17:03:17] Paradoxx: )
[17:03:49] Paradoxx: джанго админка, есть таблица, 3 поля, хочу на лету делать вычисления и выводить в отдельную колонку в админке
[17:04:03] mishok13: в бейсике же есть Null
[17:04:14] TheGodfather: как считать строку написаную в lineEdit в Qt - интерфейсе?
[17:04:40] Paradoxx: у модели метод, который должен умножить значение таблицы mask на 2
[17:05:00] Paradoxx: Null и None одно и тоже?
[17:05:01] Paradoxx: )
[17:05:01] mishok13: TheGodfather, небось как и во всех гуе-библиотеках -- повесить обработчик
[17:05:14] mishok13: Null в бейсике эквивалентен None в питоне
[17:05:17] erraen is now online
[17:05:30] Paradoxx: хорошо, тогда почему return str(self.mask) * 2, то получается 2424
[17:05:34] mishok13: прочитай для начала http://docs.python.org/tutorial/
[17:05:39] mishok13: потому что так работает питон
[17:05:54] mishok13: когда умножаешь строку на число, получаешь просто строку повторенную столько раз
[17:05:56] Paradoxx: а return self.mask дает 24
[17:06:09] mishok13: чочо
[17:06:10] Paradoxx: значит значение из базы не нулл?
[17:06:15] mishok13: мне почему-то тебе очень не верится
[17:06:29] Paradoxx: хаха
[17:06:34] mishok13: покажи код на paste.in.ua
[17:06:41] Paradoxx: база не пустая
[17:06:49] mishok13: магии в питоне не бывает
[17:07:20] denplis is now online
[17:07:29] TheGodfather: нифига не получаетсо считать текст
[17:07:47] Paradoxx: http://pastebin.com/tEpBR3WL
[17:07:54] mishok13: TheGodfather, сейчас я достану свой кристальный шар и найду причину твоих проблем...
[17:08:06] TheGodfather: mishok13: ненад, ибо напишу сча
[17:08:18] kostafey is now Доступен
[17:08:32] TheGodfather: r = QtGui.QInputDialog.getText(self)
[17:08:37] TheGodfather: print r
[17:09:00] TheGodfather: строка ввода - lineEdit lineEdit_2
[17:09:05] mishok13: Paradoxx, и, этот код не работает?
[17:09:13] Paradoxx: нет )
[17:09:24] mishok13: при этом если заменить int на str, то получаешь 2424?
[17:09:37] Paradoxx: да
[17:09:39] Paradoxx: TemplateSyntaxError at /admin/ip_base/table/
Caught TypeError while rendering: int() argument must be a string or a number, not 'NoneType'
[17:09:50] Paradoxx: я сам в шоке
[17:10:11] Paradoxx: а если просто self.mask то 24
[17:10:18] erraen is now online
[17:10:39] alecs is now online
[17:10:50] alecs is now online
[17:11:31] tilarids is now xa
[17:12:03] mishok13: уф, знал бы я еще эту вашу джангу, может хоть какие-то предположения были
[17:12:13] mishok13: но я искренне не представляю почему так может быть
[17:12:21] denplis is now online
[17:13:06] cutwater is now away
[17:13:10] TheGodfather: :(
[17:13:17] xa4a: очевидно же, что в базе несколько записей
[17:13:21] kostafey is now Доступен
[17:13:24] alecs is now online
[17:13:25] xa4a: некоторые - None, а некоторые работают
[17:13:32] xa4a: так?
[17:13:34] cutwater is now online
[17:13:39] tilarids is now online
[17:14:09] mishok13: TheGodfather, мне всё таки кажется, что ты как-то неправильно работаешь с кюти
[17:14:23] gigimon: xa4a: такое предположение я сделал, человек не верит
[17:14:35] mishok13: там есть сигналы, для которых ты пишешь хендлеры, которые обрабатывают события
[17:14:50] mishok13: например http://doc.qt.nokia.com/latest/qinputdialog.html#textValueChanged
[17:15:18] gigimon: mishok13: ну, может он хочет считать 1 раз по нажатию кнопки, а не при изменении значения
[17:15:22] erraen is now online
[17:15:33] TheGodfather: gigimon: правильно
[17:15:40] TheGodfather: 1 раз по нажатию кнопки
[17:15:50] gigimon: бр
[17:16:03] gigimon: QtGui.QInputDialog.getText(self) — ты должен getText делать у поля
[17:16:04] xa4a: определись, у тебя значение от inputDialog, или lineEdit?
[17:16:08] gigimon: а не у класса передавая ему self
[17:16:26] TheGodfather: lineEdit
[17:16:44] gigimon: InputDialog тут причем?
[17:16:53] xa4a: QString text <http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qlineedit.html#text> (self)
[17:17:10] TheGodfather: да да это я читал
[17:17:13] xa4a: TheGodfather: 1. открываешь http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/classes.html, добавляешь в закладки
[17:17:19] xa4a: 2. находишь QLineEdit
[17:17:22] denplis is now online
[17:17:34] xa4a: читаешь до просветления
[17:17:38] TheGodfather: меня интиресует одно
[17:17:46] TheGodfather: если я имею несколько lineEdit
[17:18:12] TheGodfather: как считывать с определенной lineEdit
[17:18:22] kostafey is now Доступен
[17:18:22] gigimon: мне кажется ты неправильно и с 1 считываешь
[17:18:24] xa4a: вызывать его метод
[17:18:27] alecs is now online
[17:18:40] Typhon: есть мнение, что прежде чем читать доку по куте надо почитать туториал
[17:18:40] tilarids is now away
[17:18:42] xa4a: метод конкретного lineEdit'a
[17:18:48] Typhon: чтобы хотя бы понять различия меджу инстансом и классом
[17:18:55] gigimon: Typhon: это справедливо и для джанги :D
[17:19:17] gigimon: особенно людям с бейсика
[17:19:22] gigimon: кстати, в бейсике есть ООП?
[17:20:08] Paradoxx: пелядь, Хача ты меня спас, вина - невнимательность, в одном месте закралось Null!
[17:20:23] erraen is now online
[17:20:29] kwis is now online
[17:21:45] TheGodfather: xa4a: а можно на примере?
[17:22:24] denplis is now online
[17:22:41] Tony is now online
[17:23:16] gigimon: TheGodfather: код покажи
[17:23:24] kostafey is now Доступен
[17:23:29] alecs is now online
[17:23:54] kostafey is now away
[17:23:54] kostafey is now away
[17:24:41] TheGodfather: #!/usr/bin/python
import sys
from PyQt4 import QtCore, QtGui, uic
from PyQt4.QtGui import QLineEdit
class MainWindow(QtGui.QMainWindow):
def __init__(self):
QtGui.QMainWindow.__init__(self)
uic.loadUi('untitled.ui', self)
self.setWindowTitle('Pensioner')
self.pushButton2.clicked.connect(pushButton2_Click)
self.pushButton1.clicked.connect(pushButton1_Click)
def pushButton2_Click(self):
sys.exit(app.exec_())
app = QtGui.QApplication(sys.argv)
w = MainWindow()
w.show()
sys.exit(app.exec_())
[17:25:06] TheGodfather: тут фигня...
[17:25:16] gigimon: юзай пастебины
[17:25:21] TheGodfather: ой
[17:25:25] erraen is now online
[17:25:25] TheGodfather: забыл
[17:26:01] Сволота is now away
[17:26:05] TheGodfather: по 1й кнопке должно считаное в поле вывести на print
[17:26:28] TheGodfather: но у меня никак не считывало... как не пытался
[17:26:32] Сволота is now online
[17:27:26] denplis is now online
[17:28:25] kostafey is now away
[17:28:30] alecs is now online
[17:28:40] tilarids is now xa
[17:30:27] erraen is now online
[17:31:52] cutwater is now away
[17:32:28] denplis is now online
[17:33:19] tilarids is now online
[17:33:26] kostafey is now away
[17:33:32] alecs is now online
[17:34:05] gigimon: где код с кнопкой?
[17:34:10] gigimon: ой, инпутом твоим
[17:34:51] TheGodfather: def __init__(self, QString):
QLineEdit.getText(lineEdit_2)
[17:35:10] kostafey is now Доступен
[17:35:11] kostafey is now Доступен
[17:35:27] TheGodfather: уже мозги ваше нифига не варят... вечно с этим инпутом проблемы
[17:35:30] erraen is now online
[17:35:54] gigimon: нет, где ты кнопку в интерфейс суешь
[17:36:10] gigimon: и ты должен доставать значение у твоего ИНПУТА
[17:36:25] kostafey: Кто-нибудь на регистрацию к ораклу может зайти?
https://login.oracle.com/pls/orasso/orasso.wwsso_app_admin.ls_login?
[17:37:29] denplis is now online
[17:37:31] gigimon: TheGodfather: и делать типа lineEdit_2.text(), он тебе вернет QString
[17:38:28] kostafey is now Доступен
[17:38:35] alecs is now online
[17:38:48] TheGodfather: задумался
[17:40:32] erraen is now online
[17:41:29] kostafey: /me долго старался освоить тулзы для батонокидательства, потом понял, что они не нужны.
[17:41:45] kostafey: Впрочем, говорят это вопрос вкуса.
[17:42:31] denplis is now online
[17:43:29] kostafey is now Доступен
[17:43:35] gigimon: kostafey: что за тулзы батонокидательства?
[17:43:37] alecs is now online
[17:43:43] gigimon: что такое батонокидательство)
[17:44:13] kostafey: Типа КутиДизайнера и иже с ним.
[17:44:47] gigimon: аа
[17:44:53] kostafey: Батонокидательство - способ построения грфического интерфейса пользователя посредством визуального моделирования.
[17:44:55] gigimon: я тоже пробовал
[17:45:07] gigimon: решил что самому писать проще (:
[17:45:22] kostafey: вот и я о том же
[17:45:29] gigimon: особенно пока поведение экспандеров сделаешь в дизайнере убить хочешь
[17:45:33] erraen is now online
[17:46:28] xa4a is now online
[17:46:28] xa4a is now away
[17:46:39] tilarids is now away
[17:47:32] denplis is now online
[17:47:59] огыешсук is now away
[17:48:31] kostafey is now Доступен
[17:48:40] alecs is now online
[17:49:20] огыешсук is now online
[17:50:36] erraen is now online
[17:51:52] cutwater is now xa
[17:52:35] denplis is now online
[17:52:51] xa4a is now away
[17:52:51] xa4a is now online
[17:53:32] kostafey is now Доступен
[17:53:40] alecs is now online
[17:55:39] erraen is now online
[17:56:38] tilarids is now xa
[17:57:37] denplis is now online
[17:58:33] kostafey is now Доступен
[17:58:42] alecs is now online
[17:59:56] alafin is now away
[18:00:09] Lispython is now online
[18:00:40] erraen is now online
[18:00:44] pc_ is now away
[18:01:39] alafin is now online
[18:02:39] denplis is now online
[18:03:30] pc_ is now online
[18:03:34] kostafey is now Доступен
[18:03:36] d1ffuz0r is now offline
[18:03:43] alecs is now online
[18:05:43] erraen is now online
[18:07:41] denplis is now online
[18:08:34] kostafey is now Доступен
[18:08:45] alecs is now online
[18:10:13] Paradoxx is now offline
[18:10:46] erraen is now online
[18:12:42] denplis is now online
[18:13:18] Typhon: configobj — гей со своей интерполяцией. если задать для валидации что-нибудь такое, для скармливания логгеру, то 'string(default="%(asctime)s")' конфигобж пытается интерполировать и обламывается. если передавать interpolation=None, или interpolation='template', при которых конфигобж по идее либо не должен интерполяцию делать, либо должен использовать синтаксис Template-совместимый, то всё равно падает, так как стандартным Интерполятором интерполирует. гейство какое-то.
винам "мойлоггинлучшевсех" сагип, в свою очередь, гей, потому что не вкрутил поддержку тью-стайл форматтинг в логгинг.
хотя возможно и я чота туплю, но мы ща с чуваком вдвоём по пдбжили, попробовали разные варианты, повтыкали в сорцы, и забили, отказавшись от дефолта
[18:13:37] kostafey is now Доступен
[18:13:48] alecs is now online
[18:15:48] erraen is now online
[18:17:43] denplis is now online
[18:18:37] kostafey is now Доступен
[18:18:49] alecs is now online
[18:19:47] dicos is now online
[18:20:49] erraen is now online
[18:21:17] denplis: есть инстанс треда, как понять, запушен ли тред? Проще говоря, тред должен быть singletone
[18:22:46] denplis is now online
[18:22:59] vw is now online
[18:22:59] vw is now online
[18:23:39] kostafey is now Доступен
[18:23:51] alecs is now online
[18:24:24] Lispython: denplis, is_alive()
[18:24:27] Lispython: не?
[18:24:41] kostafey is now away
[18:24:41] kostafey is now away
[18:25:16] kostafey is now Доступен
[18:25:17] kostafey is now Доступен
[18:25:50] erraen is now online
[18:26:52] vw is now online
[18:26:58] vw: салют всем, кто-нибудь использовал formalchemy? стоит использовать или нет? по докам вроде очень красиво и логично, но смущает что не так часто этот пакет обновляется, и это наводит на определенные мысли.
[18:27:48] denplis is now online
[18:28:08] Lispython: на какие мысли наводит?
[18:28:42] kostafey is now Доступен
[18:28:53] alecs is now online
[18:30:44] vw: то что возможно можно столкнуться с ситуацией когда придется лезть в исходники того же formalchemy чтобы поправить какую нибудь багу связанную с определенной версией sqlalchemy и тд и тп, возможно я все и преувеличиваю)
[18:30:52] erraen is now online
[18:31:52] myjid_anton is now online
[18:31:54] vw is now online
[18:32:50] denplis is now online
[18:33:43] kostafey is now Доступен
[18:33:51] огыешсук is now away
[18:33:54] alecs is now online
[18:34:42] alecs is now away
[18:34:42] alecs is now away
[18:34:43] alecs is now away
[18:35:01] slav0nic is now offline
[18:35:52] erraen is now online
[18:36:55] vw is now online
[18:37:52] denplis is now online
[18:38:45] kostafey is now Доступен
[18:38:58] alecs is now away
[18:39:04] огыешсук is now online
[18:40:43] kostafey is now offline
[18:40:55] erraen is now online
[18:41:55] vw is now online
[18:42:54] denplis is now online
[18:42:57] alecs is now away
[18:42:57] alecs is now online
[18:42:59] alecs is now online
[18:43:59] alecs is now online
[18:45:57] erraen is now online
[18:46:15] огыешсук is now away
[18:46:57] vw is now online
[18:47:07] огыешсук is now online
[18:47:45] denplis: конструктору Thread можно скормить функцию, которую нужно выполнять?
[18:47:54] denplis is now online
[18:49:01] alecs is now online
[18:49:32] xa4a: да
[18:49:50] Typhon: нужно скормить функцию, я бы так сказал
[18:50:10] TheGodfather is now offline
[18:50:12] xa4a: Typhon: как альтернатива - java-way, отнаследоваться и перегрузить run*(
[18:50:59] erraen is now online
[18:51:08] erraen is now offline
[18:51:21] kwis is now away
[18:51:34] denplis: а, нашел, target
[18:51:42] Typhon: да, я знаю, именно это "можно", а с функцией — "нужно" %)
[18:51:47] mishok13 is now offline
[18:51:58] vw is now online
[18:52:23] Lispython is now offline
[18:52:29] огыешсук is now away
[18:52:38] Lispython is now online
[18:52:53] kwis is now online
[18:52:55] Сволота: а объект с __call__ там подходит?
[18:52:57] denplis is now online
[18:54:03] alecs is now online
[18:54:50] Typhon: Сволота: а зачем? %) подходит, да
[18:54:54] Typhon: там же написано "коллабля"
[18:54:57] tilarids is now online
[18:56:59] vw is now online
[18:57:56] myjid_anton is now offline
[18:57:56] gigimon: подскажите, а что вызывается, когда объекту делают [0]?
[18:57:59] denplis is now online
[18:58:26] Typhon: __getitem__
[18:58:57] gigimon: спс
[18:59:06] alecs is now online
[18:59:18] огыешсук is now online
[19:02:02] vw is now online
[19:03:01] denplis is now online
[19:03:34] tilarids is now away
[19:04:08] alecs is now online
[19:04:30] огыешсук is now away
[19:05:33] kwis is now away
[19:06:13] alafin is now offline
[19:06:35] Сволота is now away
[19:06:59] Сволота is now online
[19:07:04] vw is now online
[19:08:03] denplis is now online
[19:09:10] alecs is now online
[19:11:39] maxim.zemlyakov is now online
[19:11:39] maxim.zemlyakov is now online
[19:11:50] maxim.zemlyakov is now online
[19:12:07] vw is now online
[19:13:04] denplis is now online
[19:13:10] pc_ is now away
[19:13:34] tilarids is now xa
[19:14:12] alecs is now online
[19:14:30] огыешсук is now xa
[19:15:33] kwis is now xa
[19:15:37] kwis is now online
[19:16:00] maxim.zemlyakov is now online
[19:17:11] vw is now online
[19:17:22] огыешсук is now online
[19:17:53] cutwater is now online
[19:18:05] denplis is now online
[19:19:14] alecs is now online
[19:21:02] maxim.zemlyakov is now online
[19:22:12] vw is now online
[19:23:07] denplis is now online
[19:23:10] pc_ is now xa
[19:23:10] tilarids is now online
[19:23:34] Typhon is now offline
[19:24:16] alecs is now online
[19:26:04] maxim.zemlyakov is now online
[19:27:14] vw is now online
[19:28:09] denplis is now online
[19:28:32] tilarids is now away
[19:28:36] огыешсук is now away
[19:28:52] tilarids is now online
[19:29:17] alecs is now online
[19:31:09] maxim.zemlyakov is now online
[19:31:30] огыешсук is now online
[19:32:15] vw is now online
[19:33:11] denplis is now online
[19:33:32] Lispython is now offline
[19:33:34] Lispython is now online
[19:33:35] Lispython is now online
[19:33:42] Lispython is now online
[19:33:43] Lispython is now online
[19:33:44] Lispython is now online
[19:34:20] alecs is now online
[19:35:32] pc_ is now online
[19:36:09] maxim.zemlyakov is now online
[19:36:34] огыешсук is now away
[19:37:17] vw is now online
[19:38:14] denplis is now online
[19:38:46] огыешсук is now online
[19:39:22] alecs is now online
[19:41:11] maxim.zemlyakov is now online
[19:41:50] tilarids is now away
[19:42:18] vw is now online
[19:43:15] denplis is now online
[19:43:29] alecs is now away
[19:43:29] alecs is now away
[19:43:29] alecs is now away
[19:44:16] pc_ is now away
[19:44:23] alecs is now away
[19:45:09] kwis is now away
[19:46:14] maxim.zemlyakov is now online
[19:47:04] denplis: а как-то можно получить все инстанцы класса?
[19:47:20] vw is now online
[19:47:26] pc_ is now online
[19:48:18] denplis is now online
[19:48:54] tilarids is now online
[19:49:28] alecs is now away
[19:49:32] xa4a: можешь попробовать через gc
[19:49:32] огыешсук is now away
[19:49:35] xa4a: но ты этого не хочешь
[19:49:36] огыешсук is now online
[19:49:47] xa4a: лучше пусть все инстансы складываются в classatribute
[19:50:48] tilarids is now offline
[19:51:15] maxim.zemlyakov is now online
[19:51:49] gigimon is now offline
[19:52:08] alecs is now away
[19:52:08] alecs is now online
[19:52:08] alecs is now online
[19:52:21] vw is now online
[19:52:30] dicos is now away
[19:52:31] dicos is now away
[19:52:49] denplis: такое чувство, что я пишу совсем не то (
[19:53:20] denplis is now online
[19:53:34] dicos is now away
[19:53:35] dicos is now online
[19:54:31] alecs is now online
[19:54:55] xa4a: может ты просто не умеешь писать
[19:55:09] kwis is now xa
[19:56:19] maxim.zemlyakov is now online
[19:57:15] kwis is now online
[19:57:23] vw is now online
[19:57:49] denplis: краткое описание того, что я пытаюсь сделать
[19:57:54] dicos is now offline
[19:58:09] denplis: Есть view, который генерирует csv.
Так как генерация csv превышает максимальное время на ответ сервера - пользователь получает no data received.
Что я хочу сделать:
В этом же view использовать тред, которые генерирует csv file и по окончанию, записывает в thread.result ссылку на него.
Если есть отработанный тред, забрать my_tread.result.
Если есть is_alive тред, ничего не делать.
Если нету отработанных и is_alive тредов, запустить тред.
[19:58:09] dicos is now online
[19:58:22] denplis is now online
[19:58:43] denplis: про асинхронные задачи знаю, нужно без них.
[19:59:28] denplis: и без очередей (
[19:59:31] alecs is now online
[20:01:20] maxim.zemlyakov is now online
[20:01:28] xa4a: почему?
[20:01:35] xa4a: у тебя же как раз асинхронная задача
[20:02:25] vw is now online
[20:03:19] огыешсук is now away
[20:03:25] denplis is now online
[20:03:29] огыешсук is now online
[20:04:30] denplis: мм, да, я имел ввиду без очеред
[20:04:32] alecs is now online
[20:05:28] denplis: основная проблема, получить инстанс треда, который был запущен при предыдущем запуске view
[20:06:23] maxim.zemlyakov is now online
[20:07:27] vw is now online
[20:08:13] Lispython: хохо
[20:08:14] vw: можно следить за контентом какого нибудь .lock файла, как только там появится абсолютный путь до csv, то отдавать его, зачем искать инстанс треда загадка
[20:08:16] Lispython: ой, не туда
[20:08:28] denplis is now online
[20:09:33] alecs is now online
[20:09:34] denplis: хм, а если в кэш писать?
[20:11:25] maxim.zemlyakov is now online
[20:11:43] erraen is now online
[20:11:44] erraen is now online
[20:12:29] vw is now online
[20:13:30] denplis is now online
[20:13:32] Lispython: denplis, а ты его не получишь
[20:13:44] vw: я не знаком с тредами и задач у меня не было с ними, но использовать треды при постановке такой задачи это лишнее. обычно если вьюха не успевает обработать контент то все решается кроном и подобными локами.
[20:13:50] vw: или даже без локов
[20:14:34] alecs is now online
[20:15:02] d1ffuz0r is now online
[20:15:22] denplis: vw: то есть, просто записать ответ в файл, а потом пробовать его считать?
[20:15:28] denplis: Lispython: почему нет?
[20:16:27] maxim.zemlyakov is now online
[20:16:31] erraen is now online
[20:16:33] gigimon is now online
[20:17:09] vw: denplis: ты можешь создать пустой файл, поставить задачу в очередь, как только csv сгенерится в файл запишется путь до csv все, при следующем открытии вьюхи ты просто получаешь нужный тебе csv.
[20:17:30] vw is now online
[20:18:15] denplis is now away
[20:18:15] denplis is now away
[20:18:16] denplis is now away
[20:18:16] denplis is now online
[20:18:16] denplis is now online
[20:18:32] denplis is now online
[20:19:03] denplis: vw: да, должно сработать
[20:19:33] gigimon is now offline
[20:19:37] alecs is now online
[20:19:40] gigimon is now online
[20:20:32] огыешсук is now away
[20:21:30] maxim.zemlyakov is now online
[20:21:33] erraen is now online
[20:22:31] vw is now online
[20:22:40] gigimon is now offline
[20:22:48] gigimon is now online
[20:23:20] vw is now online
[20:23:20] vw is now online
[20:23:21] kwis is now offline
[20:23:35] denplis is now online
[20:24:01] Lispython: а кто-нибудь проводил замеры трэды vs гринлеты/gevent с пропатченым socket и стандартным?
[20:24:23] nmk: глупые замеры, нет?
[20:24:39] alecs is now online
[20:25:22] Lispython: почему глупые?
[20:25:31] Lispython: там таймерами, использовани памяти
[20:25:42] Lispython: еще чего
[20:25:48] gigimon is now offline
[20:25:55] gigimon is now online
[20:25:58] nmk: задача то какая?
[20:26:01] denplis is now offline
[20:26:33] maxim.zemlyakov is now online
[20:26:35] erraen is now online
[20:26:39] dicos is now offline
[20:26:50] Lispython: ну вот допустим есть список протоколов, нужно обратиться к серверу и проверить
[20:26:52] nmk: Lispython: я тебе могу и такие и такие результаты сгенерировать. ;)
[20:27:03] Lispython: какие протоколы поддерживает
[20:27:04] Lispython: например
[20:27:34] vw is now online
[20:27:52] nmk: я не встречал таких замеров. но если есть задача, то можно ж проверить. благо писать там особо нечего.
[20:28:55] gigimon is now offline
[20:29:02] gigimon is now online
[20:29:19] Lispython: в том то и дело, что в моих тестах производительней оказались threading.Thread с пропатченым socket модулем
[20:29:35] nmk: насчет чего патч?
[20:29:40] alecs is now online
[20:29:54] cutwater is now away
[20:30:30] огыешсук is now xa
[20:31:10] vw is now online
[20:31:10] vw is now online
[20:31:35] maxim.zemlyakov is now online
[20:31:37] erraen is now online
[20:31:49] Lispython: nmk, вот такие результаты http://wrttn.me/a6ea15/
[20:32:02] gigimon is now offline
[20:32:09] gigimon is now online
[20:32:36] vw is now online
[20:32:48] Lispython: http://www.gevent.org/gevent.monkey.html#gevent.monkey.patch_all
[20:32:53] nmk: еще бы коды чекеров
[20:34:42] alecs is now online
[20:35:09] gigimon is now offline
[20:35:16] gigimon is now online
[20:35:21] nmk: напиши об этом пост на хабре ;)
[20:35:30] Lispython: о чем?
[20:35:39] nmk: о тестах
[20:35:40] nmk: :)
[20:36:01] Lispython: да ну
[20:36:12] Lispython: мне для себя понять, почему такой результат
[20:36:17] vw is now online
[20:36:17] vw is now online
[20:36:35] cutwater is now online
[20:36:38] erraen is now online
[20:36:39] maxim.zemlyakov is now online
[20:36:57] nmk: я думаю что бы оценивать результат надо хотя бы раз 5 запустить
[20:37:38] vw is now online
[20:37:58] gigimon is now online
[20:38:16] gigimon is now online
[20:38:16] gigimon is now offline
[20:38:23] gigimon is now online
[20:39:16] pc_ is now away
[20:39:27] Lispython: ну я вот пока прогоняю
[20:39:31] Lispython: не быстрое это дело
[20:39:42] alecs is now online
[20:40:47] огыешсук is now online
[20:41:23] gigimon is now online
[20:41:23] gigimon is now offline
[20:41:29] gigimon is now online
[20:41:39] erraen is now online
[20:41:39] maxim.zemlyakov is now online
[20:42:40] vw is now online
[20:43:07] Lispython: nmk, так тебе показыать классы?
[20:43:19] Lispython: или это так поговорить ? :-)
[20:43:28] nmk: да не. скорее поговорить. ;)
[20:44:29] gigimon is now online
[20:44:29] gigimon is now offline
[20:44:36] gigimon is now online
[20:44:42] Lispython: как бы еще замерить как ресурсы жрутся
[20:44:45] alecs is now online
[20:45:01] nmk: ps ?
[20:45:34] Lispython: ну и что мне ps покажет?
[20:46:04] огыешсук is now away
[20:46:11] nmk: сколько сожрало cpu и сколько сожрало памяти. нет?
[20:46:20] nmk: про cpu в смысле секунд
[20:46:33] nmk: можно еще atop запустить. и потом за нужный интервал посмотреть
[20:46:41] maxim.zemlyakov is now online
[20:46:41] erraen is now online
[20:46:55] огыешсук is now online
[20:47:42] vw is now online
[20:48:36] gigimon is now online
[20:48:36] gigimon is now offline
[20:48:43] gigimon is now online
[20:49:16] pc_ is now xa
[20:49:47] alecs is now online
[20:51:43] gigimon is now online
[20:51:43] gigimon is now offline
[20:51:43] erraen is now online
[20:51:45] maxim.zemlyakov is now online
[20:51:49] gigimon is now online
[20:52:45] vw is now online
[20:53:36] pc_ is now online
[20:54:50] gigimon is now online
[20:54:50] gigimon is now offline
[20:54:50] alecs is now online
[20:54:56] gigimon is now online
[20:55:09] cutwater is now offline
[20:56:46] erraen is now online
[20:56:48] maxim.zemlyakov is now online
[20:57:47] vw is now online
[20:57:56] gigimon is now online
[20:57:56] gigimon is now offline
[20:58:03] gigimon is now online
[20:59:08] Сволота is now offline
[20:59:53] alecs is now online
[21:01:03] gigimon is now online
[21:01:03] gigimon is now offline
[21:01:09] gigimon is now online
[21:01:48] erraen is now online
[21:01:49] maxim.zemlyakov is now online
[21:02:50] vw is now online
[21:04:10] gigimon is now online
[21:04:10] gigimon is now offline
[21:04:16] gigimon is now online
[21:04:56] alecs is now online
[21:06:04] gigimon is now online
[21:06:25] gigimon is now offline
[21:06:50] erraen is now online
[21:06:53] maxim.zemlyakov is now online
[21:07:33] maxim.zemlyakov is now online
[21:07:53] vw is now online
[21:09:58] alecs is now online
[21:11:53] erraen is now online
[21:11:56] maxim.zemlyakov is now online
[21:12:56] vw is now online
[21:15:01] alecs is now online
[21:16:55] erraen is now online
[21:16:58] maxim.zemlyakov is now online
[21:17:58] vw is now online
[21:18:03] огыешсук is now away
[21:18:13] огыешсук is now online
[21:20:03] alecs is now online
[21:20:47] deepwalker is now offline
[21:20:51] deepwalker is now online
[21:20:54] deepwalker is now online
[21:20:54] deepwalker is now online
[21:21:57] erraen is now online
[21:22:01] maxim.zemlyakov is now online
[21:23:01] vw is now online
[21:25:07] alecs is now online
[21:26:35] огыешсук is now away
[21:26:59] erraen is now online
[21:27:03] maxim.zemlyakov is now online
[21:28:04] vw is now online
[21:28:06] nmk is now offline
[21:28:40] gigimon is now online
[21:30:10] alecs is now online
[21:30:18] dicos is now online
[21:30:46] dicos is now offline
[21:32:00] erraen is now online
[21:32:05] maxim.zemlyakov is now online
[21:33:07] vw is now online
[21:34:30] Lispython: всплыл непонятный глюк
[21:34:53] огыешсук is now online
[21:34:59] Lispython: при socket.connect возникает time out
[21:35:04] Lispython: практически сразу
[21:35:12] alecs is now online
[21:36:02] vw is now online
[21:36:03] vw is now online
[21:37:04] erraen is now online
[21:37:07] maxim.zemlyakov is now online
[21:38:09] vw is now online
[21:40:14] alecs is now online
[21:42:06] erraen is now online
[21:42:11] maxim.zemlyakov is now online
[21:43:12] vw is now online
[21:45:15] alecs is now online
[21:47:08] erraen is now online
[21:47:12] maxim.zemlyakov is now online
[21:48:13] vw is now online
[21:48:18] Lispython is now offline
[21:48:34] Lispython is now online
[21:49:02] огыешсук is now offline
[21:50:17] alecs is now online
[21:50:38] pc_ is now away
[21:52:09] erraen is now online
[21:52:15] maxim.zemlyakov is now online
[21:53:15] vw is now online
[21:54:07] vw is now offline
[21:55:20] alecs is now online
[21:56:11] vw is now online
[21:57:12] erraen is now online
[21:57:17] maxim.zemlyakov is now online
[21:58:11] gigimon is now online
[21:58:24] vw is now online
[21:59:22] gigimon is now online
[22:00:21] alecs is now online
[22:00:38] pc_ is now xa
[22:01:12] denplis is now online
[22:01:16] denplis is now online
[22:01:22] denplis is now online
[22:01:22] denplis is now online
[22:02:14] erraen is now online
[22:02:21] maxim.zemlyakov is now online
[22:03:26] vw is now online
[22:05:25] alecs is now online
[22:06:07] denplis is now offline
[22:07:17] erraen is now online
[22:07:24] maxim.zemlyakov is now online
[22:08:27] vw is now online
[22:10:28] alecs is now online
[22:12:20] erraen is now online
[22:12:26] maxim.zemlyakov is now online
[22:13:03] Lispython is now offline
[22:13:30] vw is now online
[22:14:29] alecs is now offline
[22:17:22] erraen is now online
[22:17:27] maxim.zemlyakov is now online
[22:18:33] vw is now online
[22:22:24] erraen is now online
[22:22:29] maxim.zemlyakov is now online
[22:23:17] vw is now offline
[22:27:26] erraen is now online
[22:27:32] maxim.zemlyakov is now online
[22:32:28] erraen is now online
[22:32:33] maxim.zemlyakov is now online
[22:37:30] erraen is now online
[22:37:35] maxim.zemlyakov is now online
[22:42:32] erraen is now online
[22:42:37] maxim.zemlyakov is now online
[22:47:34] erraen is now online
[22:47:38] maxim.zemlyakov is now online
[22:52:34] erraen is now online
[22:52:40] maxim.zemlyakov is now online
[22:57:37] erraen is now online
[22:57:41] maxim.zemlyakov is now online
[22:59:43] vw is now online
[23:02:40] erraen is now online
[23:02:43] vw is now offline
[23:02:43] maxim.zemlyakov is now online
[23:04:45] vw is now online
[23:04:46] vw is now online
[23:07:07] vw is now online
[23:07:41] erraen is now online
[23:07:46] maxim.zemlyakov is now online
[23:12:09] vw is now online
[23:12:44] erraen is now online
[23:12:47] maxim.zemlyakov is now online
[23:17:10] vw is now online
[23:17:46] erraen is now online
[23:17:48] maxim.zemlyakov is now online
[23:22:13] vw is now online
[23:22:47] erraen is now online
[23:22:51] maxim.zemlyakov is now online
[23:26:48] vw is now offline
[23:27:51] erraen is now online
[23:27:52] maxim.zemlyakov is now online
[23:28:48] vw is now online
[23:28:48] vw is now online
[23:29:21] vw is now online
[23:30:47] vw is now offline
[23:30:50] vw is now online
[23:31:52] vw is now online
[23:32:52] erraen is now online
[23:32:55] maxim.zemlyakov is now online
[23:36:54] vw is now online
[23:37:54] erraen is now online
[23:37:56] maxim.zemlyakov is now online
[23:41:56] vw is now online
[23:42:56] erraen is now online
[23:42:59] maxim.zemlyakov is now online
[23:43:49] vw is now offline
[23:43:52] vw is now online
[23:43:52] vw is now online
[23:46:23] vw is now online
[23:46:53] vw is now offline
[23:47:58] erraen is now online
[23:48:01] maxim.zemlyakov is now online
[23:48:54] vw is now online
[23:48:54] vw is now online
[23:50:24] denplis is now online
[23:50:25] denplis is now online
[23:50:35] denplis is now online
[23:50:35] denplis is now online
[23:51:11] denplis is now online
[23:52:32] vw is now online
[23:52:59] erraen is now online
[23:53:03] maxim.zemlyakov is now online
[23:53:10] vw is now offline
[23:56:13] denplis is now online
[23:58:00] erraen is now online
[23:58:06] maxim.zemlyakov is now online