IRC log of #zope for Friday, 2010-05-14

*** giampaolo has quit IRC00:03
*** webmaven has quit IRC00:08
*** JaRoel|4D has joined #zope00:09
*** hever has quit IRC00:13
*** astoon has quit IRC00:18
*** JaRoel|4D has quit IRC00:24
*** JaRoel|4D has joined #zope00:24
*** regebro has left #zope00:24
*** jim_SFU has quit IRC00:30
*** Arfrever has quit IRC00:33
TKtiddleHello how Do i register a xsl file in a zpt?00:34
*** TresEquis has quit IRC00:45
*** benji has quit IRC00:58
*** TKtiddle has quit IRC01:04
*** TKtiddle has joined #zope01:06
*** TresEquis has joined #zope01:06
*** MrWu has quit IRC01:09
*** TresEquis has quit IRC01:10
*** redir has joined #zope01:12
*** dunny has quit IRC01:15
*** RichardBarrell has joined #zope01:22
*** r0ver has joined #zope01:23
*** hever has joined #zope01:26
*** hever has quit IRC01:33
*** mr_jolly has left #zope01:39
*** ignas has joined #zope01:41
*** ignas has quit IRC01:46
*** aaronv has quit IRC01:55
*** r0ver has left #zope01:56
*** dayne has quit IRC02:02
*** TKtiddle has quit IRC02:28
*** tiwula has quit IRC02:44
*** daMaestro has quit IRC03:06
*** sm has quit IRC03:14
*** sm has joined #zope03:14
*** tiwula has joined #zope03:15
*** alecm has quit IRC03:40
*** RichardBarrell has quit IRC03:41
*** alecm has joined #zope03:49
*** davisagli is now known as davisagli|away04:05
*** davisagli|away is now known as davisagli04:10
*** davisagli is now known as davisagli|away04:10
*** CVirus has joined #zope04:18
*** CVirus has left #zope04:18
*** davisagli|away is now known as davisagli04:23
*** alecm has quit IRC04:31
*** dunny has joined #zope04:34
*** davisagli is now known as davisagli|away04:35
*** davisagli|away is now known as davisagli04:50
*** davisagli is now known as davisagli|away04:50
*** axelix has joined #zope05:37
*** digilord_ has joined #zope06:02
*** digilord has quit IRC06:05
*** digilord_ is now known as digilord06:05
*** mcdonc has quit IRC06:15
*** mcdonc has joined #zope06:15
*** davisagli|away is now known as davisagli06:16
*** dayne has joined #zope06:23
*** alvaro has quit IRC06:36
*** kleist has joined #zope06:44
*** astoon has joined #zope06:59
*** davisagli is now known as davisagli|away07:08
*** baijum has joined #zope07:16
*** astoon has quit IRC07:23
*** mcdonc has quit IRC07:26
*** mcdonc has joined #zope07:26
*** digilord has quit IRC07:37
*** skt_ has joined #zope07:41
*** davisagli|away is now known as davisagli07:43
*** r0ver has joined #zope08:12
*** huajie has joined #zope08:17
*** r0ver has left #zope08:28
*** dunny has quit IRC08:28
*** davisagli is now known as davisagli|away08:32
*** timte has joined #zope08:33
*** jan_s has joined #zope08:34
*** davisagli|away is now known as davisagli08:36
*** davisagli is now known as davisagli|away08:54
*** JaRoel|4D has quit IRC08:57
*** zagy has joined #zope09:04
*** davisagli|away is now known as davisagli09:05
*** davisagli is now known as davisagli|away09:06
*** digitalmortician has joined #zope09:19
*** vigith has joined #zope09:28
*** phimic has joined #zope09:41
*** JaRoel|4D has joined #zope09:53
*** digitalmortician has quit IRC09:58
*** digitalmortician has joined #zope10:07
*** sashav has joined #zope10:11
*** sim_sim has joined #zope10:24
*** MrWu has joined #zope10:29
*** hever has joined #zope10:32
*** planetzopebot has quit IRC10:33
*** planetzopebot has joined #zope10:34
*** dunny has joined #zope10:51
*** tisto has joined #zope10:53
*** MrWu has quit IRC11:02
*** Theuni1 has joined #zope11:02
*** mr_jolly has joined #zope11:07
*** eperez has joined #zope11:09
*** hever has quit IRC11:12
*** gimni has joined #zope11:14
*** lcpfnvc has joined #zope11:16
*** gimni has quit IRC11:16
*** mr_jolly has left #zope11:35
*** neo|4D has joined #zope11:38
*** Theuni1 has quit IRC11:41
*** Theuni1 has joined #zope11:46
CIA-46wichert * r112299 (CHANGES.txt src/zope/app/locales/nl/LC_MESSAGES/zope.po): Use a more user friendly message. Users were confused when the original appeared as a form error.11:53
*** menesis has joined #zope12:04
CIA-46wichert * r112300 ( zope.po): Fix fuzzy strings12:10
*** regebro has joined #zope12:19
*** axelix has quit IRC12:24
*** MJ has joined #zope12:28
*** Theuni2 has joined #zope12:31
*** Theuni1 has quit IRC12:32
*** evilbungle_ has joined #zope12:33
*** teix has joined #zope12:54
*** mr_jolly has joined #zope13:09
*** thetet has joined #zope13:09
*** emrojo has joined #zope13:11
*** touff has joined #zope13:25
*** touff has quit IRC13:31
*** touff has joined #zope13:32
*** evilbungle_ has quit IRC13:34
*** Theuni2 has quit IRC13:35
*** agroszer has joined #zope13:40
*** touff has quit IRC13:40
*** hever has joined #zope13:42
*** TomBlockley has joined #zope13:42
*** agroszer has quit IRC13:45
*** agroszer_ has joined #zope13:45
*** giampaolo has joined #zope14:00
*** sashav has quit IRC14:01
*** Theuni1 has joined #zope14:07
*** agroszer_ is now known as agroszer14:12
*** evilbungle has joined #zope14:26
*** evilbungle has quit IRC14:26
*** sim_sim has quit IRC14:28
*** TomBlockley has quit IRC14:42
*** touff has joined #zope14:44
*** hever has quit IRC14:44
*** timte has quit IRC14:53
*** evilbungle has joined #zope14:54
*** thetet has quit IRC14:55
*** menesis has quit IRC15:00
*** evilbungle has quit IRC15:00
*** Arfrever has joined #zope15:01
*** evilbungle has joined #zope15:13
*** vigith has quit IRC15:16
*** evilbungle has quit IRC15:18
*** touff has quit IRC15:20
*** evilbungle has joined #zope15:21
*** evilbungle has quit IRC15:25
*** _bluetouff has joined #zope15:27
*** evilbungle has joined #zope15:27
*** _bluetouff has quit IRC15:28
*** _bluetouff has joined #zope15:32
*** evilbungle has quit IRC15:37
*** TomBlockley has joined #zope15:48
*** menesis has joined #zope15:50
*** mr_jolly has left #zope15:56
*** _bluetouff has quit IRC15:58
*** _bluetouff has joined #zope16:03
*** TomBlockley has quit IRC16:04
*** goschtl has joined #zope16:06
*** evilbungle has joined #zope16:07
*** hever has joined #zope16:10
*** vigith has joined #zope16:11
*** vigith has quit IRC16:11
*** mgedmin has joined #zope16:12
*** eperez has quit IRC16:16
*** dunny has quit IRC16:21
*** dayne has quit IRC16:25
*** alvaro has joined #zope16:38
*** skt_ has quit IRC16:39
*** _bluetouff has quit IRC16:41
*** _bluetouff has joined #zope16:46
*** evilbungle__ has joined #zope16:56
*** evilbungle has quit IRC16:58
*** evilbungle__ has quit IRC17:00
*** evilbungle has joined #zope17:03
*** evilbungle has quit IRC17:04
*** baijum has quit IRC17:06
*** Theuni1 has quit IRC17:14
*** digitalmortician has quit IRC17:15
*** Theuni1 has joined #zope17:16
*** menesis has quit IRC17:16
*** JT has quit IRC17:24
*** JT has joined #zope17:25
*** phimic has quit IRC17:27
*** alecm has joined #zope17:30
*** JT has quit IRC17:30
*** allisterb has quit IRC17:47
*** JT has joined #zope17:49
*** goschtl has quit IRC17:55
*** evilbungle has joined #zope17:56
*** _bluetouff has quit IRC17:59
*** allisterb has joined #zope18:01
*** grahal has joined #zope18:12
*** MatthewWilkes has joined #zope18:14
*** evilbungle has quit IRC18:29
*** MJ has quit IRC18:30
*** Theuni1 has quit IRC18:32
*** zagy has quit IRC18:33
*** zagy has joined #zope18:34
*** evilbungle has joined #zope18:53
*** Theuni1 has joined #zope18:53
*** kleist has quit IRC18:57
*** evilbungle has quit IRC18:57
*** tisto has quit IRC19:02
*** giampaolo_ has joined #zope19:09
*** giampaolo has quit IRC19:09
*** giampaolo has joined #zope19:10
*** zagy has quit IRC19:13
*** TomBlockley has joined #zope19:14
*** TomBlockley has quit IRC19:17
*** davisagli|away is now known as davisagli19:19
*** huajie has quit IRC19:31
*** Theuni1 has quit IRC19:38
*** Theuni1 has joined #zope19:41
CIA-46jacobholm * r112301 /z3c.dependencychecker/branches/ (5 files in 3 dirs): Branch for working on better detection of zcml and doctest dependencies.19:49
*** hever has quit IRC20:05
*** tiwula has quit IRC20:06
*** Theuni1 has quit IRC20:10
*** mgedmin has quit IRC20:16
CIA-46tseaver * r112302 /ZODB/branches/tseaver-better_repozo_tests: Branch for improving repozo unit test coverage.20:32
*** davisagli is now known as davisagli|away20:37
*** lucmult has joined #zope20:38
*** lucmult has left #zope20:41
*** emrojo has quit IRC20:45
CIA-46tseaver * r112303 /ZODB/branches/tseaver-better_repozo_tests: Get this in better.20:46
CIA-46tseaver * r112304 /ZODB/branches/tseaver-better_repozo_tests: Branch for improving repozo unit test coverage (redux).20:46
CIA-46tseaver tseaver-better_repozo_tests * r112305 ZODB/src/ZODB/scripts/
CIA-46Hooks for testability:20:46
CIA-46Raise an exception from 'do_full_backup' / 'do_incremental_backup' where20:46
CIA-46we would have called sys.exit(2) to avoid overwriting files. Catch the20:46
CIA-46exception in 'main' and do the same error reporting / exit.20:46
CIA-46Allow the 'options' object to pre-set the time used for generating the20:46
CIA-46backup filenames.20:46
CIA-46tseaver tseaver-better_repozo_tests * r112306 ZODB/src/ZODB/scripts/tests/ Add tests for 'do_full_backup' / 'do_incremental_backup'.20:46
CIA-46tseaver tseaver-better_repozo_tests * r112307 ZODB/src/ZODB/scripts/tests/ Add tests for 'dofile'.20:46
*** lucmult has joined #zope20:48
*** daMaestro has joined #zope21:01
*** MJ has joined #zope21:01
CIA-46tseaver tseaver-better_repozo_tests * r112308 ZODB/src/ZODB/scripts/tests/ Add tests for 'checksum'.21:02
CIA-46tseaver tseaver-better_repozo_tests * r112309 ZODB/src/ZODB/scripts/tests/ Add tests for 'copyfile'.21:02
CIA-46tseaver tseaver-better_repozo_tests * r112310 ZODB/src/ZODB/scripts/tests/ Add tests for 'concat'.21:02
CIA-46tseaver tseaver-better_repozo_tests * r112311 ZODB/src/ZODB/scripts/tests/ Add tests for 'gen_filename'.21:02
CIA-46tseaver tseaver-better_repozo_tests * r112312 ZODB/src/ZODB/scripts/tests/ Add tests for 'find_files'.21:02
CIA-46tseaver tseaver-better_repozo_tests * r112313 ZODB/src/ZODB/scripts/tests/ Add tests for 'scandat'.21:02
*** MJ has quit IRC21:03
*** runyaga has joined #zope21:04
*** zagy has joined #zope21:23
*** huajie has joined #zope21:31
CIA-46jim * r112314 ZODB/src/ZODB/scripts/ ( tests/ Merged the tseaver-better_repozo_tests branch.21:32
*** zagy has quit IRC21:33
*** dayne has joined #zope21:38
*** maiky has joined #zope21:39
*** teix has quit IRC21:40
*** RaFromBRC has joined #zope21:43
*** TresEquis has joined #zope21:47
*** evilbungle has joined #zope21:49
*** menesis has joined #zope21:58
*** davisagli|away is now known as davisagli21:59
*** zagy has joined #zope22:04
*** zagy has quit IRC22:07
*** davisagli is now known as davisagli|away22:12
*** tarek has joined #zope22:14
*** tarek has left #zope22:22
*** huajie has quit IRC22:22
*** agroszer has quit IRC22:25
*** MatthewWilkes has quit IRC22:27
*** davisagli|away is now known as davisagli22:29
*** alecm has quit IRC22:35
*** lucmult has quit IRC22:37
*** mcdonc has quit IRC22:51
*** digilord has joined #zope22:54
*** evilbungle has quit IRC22:56
digilordIs there a way to build a socket server in ZOPE that connects to another device over a socket and is still able to communicate to my ZOPE app?22:56
*** mcdonc has joined #zope22:56
*** maiky has quit IRC23:00
*** lucmult has joined #zope23:03
*** tiwula has joined #zope23:07
runyagadigilord, sure23:12
digilordrunyaga: I am all eyes ;)23:12
runyagasockert server that connects to another device?23:13
runyagado you mean.. "open up a socket in Zope which connects to another device" ?23:13
digilordrunyaga: Yes23:13
runyagause a external methdo23:13
runyagaexternal method23:13
runyagadef mymethod(self):23:13
runyaga    socket.connect(..)23:13
runyagajust regular python23:13
shen-longno crap?23:14
digilordrunyaga: I need bi-directional comms23:14
runyagais this a long running communication?23:14
digilordrunyaga: I have an external twisted server but it needs data from zope.  I am writing files to the filesystem right now23:14
digilordrunyaga: Yeah should run all the time23:14
digilordrunyaga: It's not polled comms23:14
runyagaand you want zope to connect to twister; and twisted to connect to zope?23:15
shen-longhmm, is there a way to spawn a twisted reactor in the same thread as a zeo client ?23:15
digilordrunyaga: The device will connect and talk to the server whenever it has data the server needs.23:15
runyagashen-long, yes.. see zc.async23:15
digilordrunyaga: Yes23:15
shen-longchecking now23:15
runyagadigilord, unsure other than writing a zserver23:15
runyagafilesystem sounds good to me23:16
runyagainotify + filesystem23:16
runyagasuper simple ;)23:16
shen-longrunyaga, we're connecting to a sip server23:17
runyagadigilord, or maybe beanstalkd? amqp?23:17
shen-longso it's got an event layer23:17
shen-longand in it's config we can point events to sockets (ie, when this thing happens, take your session data and bring it to this socket)23:17
runyagait has an event layer but you need to react to the events across both processes23:17
runyagain the sip server you can point it to a socket?23:18
shen-longyes indeed23:18
shen-longso perhaps two sockets?23:18
shen-longor .. more, of course23:18
digilordIt's the control channel23:18
runyagai think filessystem + inotify still good idea ;)23:18
runyagaalthough i think this is more complicated than filesystem ;-)23:18
runyagasounds like your having a problem with zope "picking up" the events23:18
shen-longso, inotify, I get23:18
runyagahow about just sending zope http POST?23:19
shen-longwell, we were looking at twist for zope23:19
digilordrunyaga: The device has it's own protocol that we didn't design23:19
shen-longso it doesn't seem like it will be too hard to have twisted reactors hit objects, validate and persisit23:19
digilordrunyaga: It just opens a TCP socket and talks over that23:19
runyagawell if its a socket...23:19
runyagawrite a long running tcp socket server that reads and marshalls it to PUTs ?23:20
runyagai mean.. simple ;-)23:20
runyagaand super easy to debug23:20
shen-longno crap23:20
runyagais probably the simplest "zserver channel"23:20
shen-longbecause, we're very async already23:20
runyagabut this is going to be more difficult to debug23:20
shen-longanything sync is handled inside the sip server currently23:20
shen-longI just feel like I'm asking the wrong question ;p23:21
runyagayou could be23:21
runyagaand i should be doing work23:21
runyagabut i will talk to you for a few more minutes before getting back to work ;)23:21
shen-longw00t! ;p23:22
shen-longlet me try and articulate the problem23:22
shen-longinstead of asking you for a solution23:22
runyagagood mna23:22
shen-longso, we're using zodb to store configuration data23:22
shen-longit's ... f'ing amazing23:22
shen-longso, now we're spoiled with objects and containment23:22
runyagapersistence - check23:23
shen-longlol, yeah23:23
shen-longso, we are generating config for the system from the zope objects23:23
shen-longand that's also wonderful23:23
shen-longwe have a working implementation of a socket reactor in twisted (tcp)23:24
shen-longthat when an event in the system (go to bill's voicemail)23:24
shen-longis fired, we wind up at that correct twisted reactor with our session vars, in python23:24
shen-longto then cut the dictionaries up and spread the data where it needs to go for the actual call to work as expected by a user23:25
shen-longpress 1 for this, etc23:25
shen-longcatch button presses23:25
shen-longwe could love to have this data in zope23:25
shen-longat the correct object23:25
shen-longwithout too many middle man layers23:26
shen-longlike, bill was called by "number here" on "date.time"23:26
shen-longcrud like that23:26
runyagahow about opening up a zeoclient in your sip server and jus write to the database?23:26
shen-longthat sounds spectacular23:26
shen-longshould I read up more on how a zeoclient is built ?23:26
runyagayour already using ZEO, probably?23:27
shen-longnot yet, for this project23:27
shen-longbut I've used it before for plone23:27
runyagainstead of a FileStorage you will use a ClientStorage23:28
runyagabut instead of doing all of this23:28
runyagayou already have the sip server dumping events to FS, correct?23:28
runyagano other changes needed23:29
runyagait Just Works(tm)23:29
digilordrunyaga: No events are only sent to socket connected devices23:29
shen-longwe could write something in twisted to dump those to the fs I guess23:29
runyagaso what you could do23:29
runyagawrite a daemon that receives the socket comm from sip + writes to a*separate* ZEO database23:30
runyagathen in the Zope/Plone/wahtever end; have a ZEO client connecting to the same database23:30
shen-longgot it23:30
runyagavoila - you get your objects and something fairly reasonable easy to debug23:30
runyagathe only suck part is running another service23:30
runyagaand if that is unbearable; your only other choice is to write a Zope ZServer channel23:31
shen-longman, you got the wheels moving I think ;p23:31
shen-longthank you very very much23:31
runyagaand on that note i need to get back to work; have good weekend23:31
shen-longok, one more question though23:31
shen-longwe want to take the data from the middle man db, and then write the correct information into the configuration / ui zodb23:32
runyagano no no no23:32
shen-longis that correct ?23:32
runyagaso you have zope process - right?23:32
shen-longk, thought I was missing that point ;)23:32
runyagaand you have a UI there?23:32
runyagaso that is 1 database23:33
runyagayou will need to setup another database in your zope that talks to a ZEO server23:33
runyaga"another database"23:33
runyagaso lets say you have23:33
runyaga<db man>23:33
runyaga  your existing system23:33
runyagathat was suppose to be <db main>23:33
shen-long<db events>23:33
runyagawhich is a SEPARATE ZODB23:33
runyagaand the only thing that it should have is BTree's (scalable containers) and PersistentMappings (your events)23:34
runyagayour zope application UI simply needs to get a reference to this database (mounted database?) and do the needful23:34
shen-longlol .. do the needful23:34
shen-longI've been in that industry :D23:35
digilordBsed on the event type can we have something kick off a method?23:35
runyagatoday: you have 1 database, tomorrow: you need 2 database (original + "events db")23:35
runyagaoh right23:35
runyagayou need to "react" to these events in zope?23:35
runyagawhat sort of "reaction" ?23:35
digilordDecide what to do with a call23:36
runyagazope has all of this knowledge?23:36
runyagaso its not just for UI23:36
shen-longyou know23:36
shen-longI think we're over thinking this part of it23:36
runyagai hope so.. if you dont have a reason .. dont fiddle with it23:37
runyagajust get the events there23:37
shen-longwe just want to move correlated data from one db, into the objects for another23:37
shen-longso like, we have db1.somedomain.user23:37
shen-longand all his caller id information and call log, voicemail is in the other db23:38
runyagabut that person is siimply getting a "view" of the data - right?23:38
runyagai.e. they gto a UI and they see call log, voice mail, etc23:38
shen-longI just don't know how that works codified23:38
shen-longlike, does zope care we're talking to db1 or db223:39
runyagaso extend the UI to also do the lookup in the events database23:39
shen-longwe just use a relation/alias ?23:39
runyagaonce you have references to the database.. if your using the "standard plumbing" it works the same way you expect it to23:39
shen-longahh ok23:39
runyagajust do the look up in your UI23:39
shen-longso it's just a different 'file'23:39
shen-longon the filesystem23:39
shen-longon another machine, written to by another service23:39
shen-longbut it's still in the same zope land for us23:40
shen-longso we can write to each dbs objects and persist them as we need, as if by magic ?23:40
runyagamaybe its not good enough23:40
runyagawell its not magic23:40
runyagayou still need to commit transaction23:40
runyagaand synchronize the db connection23:40
runyagaand watch out for cnoflicterrors23:40
runyagaI would HIGHLY suggest using ZODB 3.9.523:40
runyagaif you move to this confniguration23:41
shen-longI think we are23:41
runyagathat can prevent accidental cross database references23:41
shen-longusing latest grok23:41
runyagajust double check ;)23:41
shen-longsure thing :p23:41
shen-longlooking now23:41
runyagagood luck guys23:41
shen-longrunyaga, thanks man :)23:41
shen-longvery much23:41
shen-longneed to upgrade23:42
shen-longthanks again :)23:42
*** r0ver has joined #zope23:45
*** regebro has quit IRC23:50
*** davisagli is now known as davisagli|away23:51
CIA-46jim * r112315 ZODB/src/ (6 files in 4 dirs): reverted a premature commit23:53
CIA-46jim * r112316 /ZODB/branches/jim-transform-wrapping: Try to sort out supporting wrappers that perform data transformation.23:53
CIA-46jim jim-transform-wrapping * r112317 ZODB/src/ (6 files in 4 dirs): moved premature commit to branch23:53
CIA-46jim jim-transform-wrapping * r112318 ZODB/src/ZODB/ (7 files in 3 dirs): checkpoint23:53
CIA-46jim jim-transform-wrapping * r112319 ZODB/src/ZODB/tests/ checkpoint23:53
CIA-46jim * r112320 ZODB/src/ (7 files in 3 dirs):23:53
CIA-46Databases now warn when committing very large records (> 16MB).23:53
CIA-46This is to tr to warn people of likely design mistakes. There is a23:53
CIA-46new option (large_record_size/large-record-size) to control the23:53
CIA-46Index: src/CHANGES.txt23:53
*** mgedmin has joined #zope23:55

Generated by 2.15.1 by Marius Gedminas - find it at!