*** davisagli is now known as davisagli|mtg | 00:00 | |
*** J1m has quit IRC | 00:00 | |
*** robohak has quit IRC | 00:14 | |
*** Spanktar has joined #zope | 00:48 | |
*** tam7t has joined #zope | 01:12 | |
*** pjfd2 has quit IRC | 01:12 | |
*** Arfrever has quit IRC | 01:22 | |
*** ccomb has quit IRC | 01:41 | |
*** tam7t has left #zope | 01:45 | |
*** mr_jolly has left #zope | 01:47 | |
*** fredvd|away is now known as fredvd | 01:50 | |
*** davisagli|mtg is now known as davisagli | 02:07 | |
*** robohak has joined #zope | 02:08 | |
*** mr_jolly has joined #zope | 02:14 | |
*** pjfd2 has joined #zope | 02:15 | |
*** fredvd is now known as fredvd|sleep | 02:27 | |
*** mr_jolly has left #zope | 02:36 | |
*** daMaestro has quit IRC | 02:58 | |
*** robohak has quit IRC | 03:04 | |
*** runyaga has joined #zope | 03:23 | |
*** runyaga is now known as run|away | 03:32 | |
*** Spanktar has quit IRC | 03:42 | |
*** tiwula has quit IRC | 04:11 | |
*** menesis has quit IRC | 04:21 | |
*** run|away has quit IRC | 04:26 | |
*** davisagli has quit IRC | 05:25 | |
*** davisagli has joined #zope | 05:26 | |
*** sm has quit IRC | 06:33 | |
*** pjfd2 has quit IRC | 07:05 | |
*** webmaven has quit IRC | 07:08 | |
*** huajie has joined #zope | 07:25 | |
*** huajie has quit IRC | 07:29 | |
*** tiwula has joined #zope | 07:29 | |
*** tiwula has quit IRC | 07:50 | |
*** kleist has joined #zope | 08:15 | |
*** wosc has joined #zope | 09:09 | |
*** alexpilz has joined #zope | 09:12 | |
*** __mac__ has joined #zope | 09:12 | |
*** altipard has joined #zope | 09:14 | |
*** stoffus has joined #zope | 09:17 | |
*** goschtl has joined #zope | 09:25 | |
*** zagy has joined #zope | 09:34 | |
*** zagy has quit IRC | 09:34 | |
*** agroszer has joined #zope | 09:37 | |
*** zagy has joined #zope | 09:38 | |
*** kleist_ has joined #zope | 09:38 | |
*** mr_jolly has joined #zope | 09:41 | |
*** goschtl has quit IRC | 09:46 | |
*** avoinea has joined #zope | 09:56 | |
*** mcdonc has joined #zope | 10:01 | |
*** planetzopebot has quit IRC | 10:08 | |
*** hever has joined #zope | 10:08 | |
*** planetzopebot has joined #zope | 10:09 | |
*** mr_jolly has left #zope | 10:20 | |
CIA-83 | jinty * r121474 zope.interface/src/zope/interface/ (common/interfaces.py tests/test_advice.py): Fixes for small issues when running tests under Python 3.2 using zope.testrunner | 10:25 |
---|---|---|
*** menesis has joined #zope | 10:28 | |
*** kleist_ has joined #zope | 10:33 | |
*** goschtl has joined #zope | 10:38 | |
*** Wu has joined #zope | 10:50 | |
*** rogererens has joined #zope | 10:58 | |
*** sylvain has joined #zope | 11:05 | |
*** rogererens has quit IRC | 11:05 | |
*** espent has left #zope | 11:16 | |
*** espent has joined #zope | 11:16 | |
*** vortec has joined #zope | 11:18 | |
*** fredvd|sleep is now known as fredvd | 11:22 | |
*** ccomb has joined #zope | 11:26 | |
*** hever_ has joined #zope | 11:37 | |
*** hever has quit IRC | 11:38 | |
*** menesis has quit IRC | 11:43 | |
*** evilbungle has joined #zope | 11:45 | |
*** fredvd is now known as fredvd|awawy | 12:03 | |
*** fredvd|awawy is now known as fredvd|away | 12:03 | |
*** evilbungle has quit IRC | 12:11 | |
*** evilbungle has joined #zope | 12:12 | |
*** mr_jolly has joined #zope | 12:36 | |
*** cpf_ has quit IRC | 12:39 | |
*** avoinea has left #zope | 12:44 | |
*** avoinea has joined #zope | 12:52 | |
*** cpf_ has joined #zope | 12:54 | |
*** menesis has joined #zope | 13:12 | |
*** vortec has quit IRC | 13:14 | |
*** menesis has quit IRC | 13:14 | |
*** menesis1 has joined #zope | 13:14 | |
*** cpf_ has quit IRC | 13:19 | |
*** cpf_ has joined #zope | 13:33 | |
*** avoinea has quit IRC | 13:36 | |
*** avoinea has joined #zope | 13:37 | |
*** hever_ has quit IRC | 13:44 | |
espent | betabug: there? | 13:55 |
betabug | yes | 13:55 |
* kosh quickly sets betabug on fire and hands out marshmallows | 13:57 | |
* betabug snaps up all the marshmallows | 13:57 | |
wosc | damn | 13:57 |
* wosc wanted some, too | 13:57 | |
espent | my kids got some coloured marshmallows for easter. Purple and green ones. Not the same as the original... | 14:06 |
betabug | more chemical fun :-) | 14:13 |
*** ccomb has quit IRC | 14:16 | |
*** dayne has joined #zope | 14:22 | |
*** sunew has joined #zope | 14:23 | |
*** vortec has joined #zope | 14:24 | |
*** fredvd|away is now known as fredvd | 14:27 | |
*** eperez has joined #zope | 14:53 | |
*** huajie has joined #zope | 15:07 | |
*** hariom has joined #zope | 15:20 | |
hariom | I am trying to write a zsql script which can update multiple rows in a single query. Does anybody knows how to do that? | 15:21 |
betabug | hariom: maybe this helps? http://www.upfrontsystems.co.za/courses/zope/ch05.html | 15:23 |
hariom | betabug: How does this article help? I have zope and postgres connected and I can write simple update query but I want to know how to write for multi row update in a single update query | 15:29 |
*** ccomb has joined #zope | 15:35 | |
*** Wu has quit IRC | 15:37 | |
*** giampaolo has joined #zope | 15:37 | |
hariom | How to write UPDATE tables SET status = ? WHERE ids IN (1, 2, 4) in zsql? | 15:42 |
hariom | How to write UPDATE tables SET status = FALSE WHERE ids IN (1, 2, 4) in zsql? | 15:43 |
*** kleist_ has quit IRC | 15:45 | |
*** agroszer has quit IRC | 15:52 | |
*** agroszer has joined #zope | 15:54 | |
*** altipard has quit IRC | 15:55 | |
hariom | How to use 'in' operator in zsql as used in sql query: UPDATE tablename SET status = FALSE WHERE ids IN (1, 2, 4) | 15:58 |
*** fredvd is now known as fredvd|away | 16:01 | |
hariom | <dtml-comment>connection_id:Psycopg2_database_connection arguments:venue_id active id max_cache:100 max_rows:-1 </dtml-comment> update table_names set active = <dtml-sqlvar active type="nb">, where id in <dtml-sqlvar ids type="nb"> and venue_id = <dtml-sqlvar venue_id type="nb"> | 16:06 |
hariom | <dtml-comment>connection_id:Psycopg2_database_connection arguments:venue_id active id max_cache:100 max_rows:-1 </dtml-comment> update table_names set active = <dtml-sqlvar active type="nb"> where id in <dtml-sqlvar id type="nb"> and venue_id = <dtml-sqlvar venue_id type="nb"> | 16:08 |
*** wosc has quit IRC | 16:08 | |
hariom | Where is error in this zsql script? | 16:09 |
bigkevmcd | hariom: you're not getting any error messages? | 16:10 |
hariom | bigkevmcd: This query gets converted to: update game.table_types | 16:13 |
hariom | set active = 'FALSE' | 16:13 |
hariom | where id in '(1,2,3)' | 16:13 |
hariom | and venue_id = '4' | 16:13 |
hariom | I don't know how to remove comma around ( and ). i.e. (1,2,3) instead of '(1,2,3)' | 16:13 |
bigkevmcd | hariom: you're using "nb" for the id | 16:14 |
bigkevmcd | hariom: which is stringifying "id" | 16:14 |
hariom | ok | 16:15 |
bigkevmcd | hariom: id seems to be a tuple of values | 16:15 |
hariom | yea | 16:15 |
hariom | a list of values | 16:15 |
bigkevmcd | str((1, 2, 3)) = '(1, 2, 3)' | 16:15 |
bigkevmcd | so, it's not clear what you actually expected to happen | 16:15 |
hariom | Actually I want a the final query to be of form: update game.table_types set active = 'FALSE' where id in (1,2,3) and venue_id = '4' | 16:16 |
hariom | id values are integers | 16:17 |
bigkevmcd | so, why stringify the tuple? | 16:17 |
hariom | bigkevmcd: I am not very good at zsql. What should I use in place of 'nb'? | 16:18 |
bigkevmcd | hariom: I wouldn't use ZSQL | 16:18 |
hariom | bigkevmcd: I am working with legacy system using zope | 16:19 |
bigkevmcd | you could try "int" rather than "nb" | 16:19 |
bigkevmcd | but, am not sure if that would work | 16:19 |
hariom | when I try int, it says invalid integer value for id | 16:20 |
bigkevmcd | I haven't touched ZSQL methods for about 10 years | 16:21 |
hariom | bigkevmcd: How do you use database handling with zope then? | 16:21 |
bigkevmcd | Python and connect to the database directly, or nowadays, we use Storm | 16:21 |
bigkevmcd | you could generate the list as a string | 16:22 |
bigkevmcd | and pass it to the ZSQL method that way | 16:22 |
bigkevmcd | hariom: http://www.gossamer-threads.com/lists/zope/users/218132 | 16:23 |
*** eperez has quit IRC | 16:25 | |
*** dayne has quit IRC | 16:28 | |
*** J1m has joined #zope | 16:34 | |
*** ccomb has quit IRC | 16:37 | |
*** davisagli has quit IRC | 16:38 | |
*** goschtl has quit IRC | 16:39 | |
*** davisagli has joined #zope | 16:39 | |
hariom | bigkevmcd: Doesn't seem to work. http://pastebin.com/3sZC7BxF | 16:44 |
bigkevmcd | hariom: where are you generating the list as a string? | 16:45 |
bigkevmcd | hariom: can you pastebin that bit? | 16:45 |
hariom | I am not generating lists as string. I found the syntax too confusing | 16:45 |
*** ccomb has joined #zope | 16:48 | |
*** rbanffy has joined #zope | 16:53 | |
*** Wu has joined #zope | 16:54 | |
*** astoon has joined #zope | 16:56 | |
*** rbanffy has quit IRC | 16:58 | |
*** pjfd2 has joined #zope | 17:10 | |
*** sunew has quit IRC | 17:15 | |
*** kleist_ has joined #zope | 17:20 | |
*** menesis1 has quit IRC | 17:23 | |
*** huajie has quit IRC | 17:28 | |
*** davisagli has quit IRC | 17:33 | |
*** davisagli has joined #zope | 17:34 | |
*** hariom has quit IRC | 17:36 | |
*** Arfrever has joined #zope | 17:38 | |
*** kleist has quit IRC | 17:53 | |
*** kleist has joined #zope | 17:53 | |
*** redir has quit IRC | 17:53 | |
*** kleist_ has quit IRC | 17:54 | |
*** kleist_ has joined #zope | 17:54 | |
*** kleist has quit IRC | 17:55 | |
*** kleist has joined #zope | 17:55 | |
*** stoffus has quit IRC | 17:58 | |
*** digitalmortician has quit IRC | 18:00 | |
*** tiwula has joined #zope | 18:01 | |
*** agroszer has quit IRC | 18:05 | |
*** alvaro_o has joined #zope | 18:05 | |
*** hever_ has joined #zope | 18:07 | |
*** alvaro_o has quit IRC | 18:08 | |
*** zagy has quit IRC | 18:13 | |
*** mr_jolly has left #zope | 18:23 | |
*** sm has joined #zope | 18:28 | |
CIA-83 | ldr * r121475 plone.z3cform/ (3 files in 2 dirs): | 18:31 |
CIA-83 | * Ignore form.widgets. if ++widget++ path begins with it. | 18:31 |
CIA-83 | [lentinj] | 18:31 |
CIA-83 | * Rework traverser to handle lists and subforms | 18:31 |
CIA-83 | [lentinj] | 18:31 |
*** __mac__ has quit IRC | 18:32 | |
*** sm_ has joined #zope | 18:33 | |
*** sm has quit IRC | 18:34 | |
*** sm_ is now known as sm | 18:34 | |
*** ccomb has quit IRC | 18:40 | |
*** menesis has joined #zope | 19:02 | |
*** redir has joined #zope | 19:09 | |
planetzopebot | BDA goes GSOC 2011 (BlueDynamics Alliance - Zope Related) http://bluedynamics.com/articles/jens/bda-goes-gsoc | 19:09 |
*** sylvain has quit IRC | 19:12 | |
*** bigkevmcd has quit IRC | 19:19 | |
*** zagy has joined #zope | 19:44 | |
*** TresEquis has joined #zope | 19:45 | |
*** sylyc0n has quit IRC | 19:48 | |
*** mcdonc has quit IRC | 19:49 | |
*** hever_ has quit IRC | 20:02 | |
*** menesis has quit IRC | 20:02 | |
*** kleist_ has quit IRC | 20:02 | |
*** kleist_ has joined #zope | 20:06 | |
*** vortec has left #zope | 20:08 | |
*** kleist has quit IRC | 20:09 | |
*** avoinea has left #zope | 21:00 | |
*** Wu has quit IRC | 21:24 | |
*** menesis has joined #zope | 21:27 | |
*** fredvd|away has quit IRC | 21:29 | |
*** goschtl has joined #zope | 21:33 | |
*** zagy has quit IRC | 21:37 | |
*** mcdonc has joined #zope | 21:41 | |
*** mcdonc has quit IRC | 21:42 | |
*** zagy has joined #zope | 21:51 | |
*** zagy has quit IRC | 21:52 | |
*** giampaolo has quit IRC | 22:07 | |
*** kleist_ has quit IRC | 22:30 | |
*** Spanktar has joined #zope | 22:34 | |
*** zagy has joined #zope | 22:36 | |
*** zagy has quit IRC | 22:38 | |
*** zagy has joined #zope | 22:38 | |
*** zagy has quit IRC | 22:42 | |
*** m8 has joined #zope | 22:43 | |
*** goschtl has quit IRC | 22:56 | |
*** m8 has quit IRC | 23:02 | |
*** jshell has quit IRC | 23:43 | |
*** TresEquis has quit IRC | 23:56 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!