IRC log of #zope for Friday, 2010-06-18

*** vipod has quit IRC00:00
*** runyaga has quit IRC00:03
*** dondi has joined #zope00:04
*** dondi has quit IRC00:09
*** aaronv has joined #zope00:10
*** r0ver has joined #zope00:11
*** dunny has joined #zope00:18
*** benji has quit IRC00:21
*** ignas has joined #zope00:21
*** ignas has quit IRC00:26
*** jim_SFU has quit IRC00:31
*** Theuni1 has quit IRC00:32
*** mgedmin has quit IRC00:39
*** Theuni1 has joined #zope00:41
*** daMaestro has quit IRC00:46
*** daMaestro has joined #zope00:46
*** regebro has quit IRC00:58
*** dunny has quit IRC01:07
*** hever has joined #zope01:10
*** Theuni1 has quit IRC01:11
*** aaronv has quit IRC01:25
*** hever has quit IRC01:25
*** mcdonc has quit IRC01:28
*** menesis has quit IRC01:29
*** Guest78815 has quit IRC01:29
*** Guest78815 has joined #zope01:30
*** bitmonk has quit IRC01:30
*** bitmonk has joined #zope01:30
*** bitmonk has quit IRC01:44
*** Guest78815 has quit IRC01:48
*** Guest78815 has joined #zope01:49
*** Guest78815 has quit IRC01:51
*** Guest78815 has joined #zope01:51
*** Guest78815 has quit IRC01:54
*** Guest78815 has joined #zope01:55
*** Guest78815 has quit IRC01:56
*** Guest78815 has joined #zope01:57
*** tiwula has joined #zope02:01
*** r0ver has quit IRC02:06
*** bitmonk has joined #zope02:07
*** Guest78815 has quit IRC02:14
*** Guest78815 has joined #zope02:14
*** bitmonk has quit IRC02:19
*** bitmonk_ has joined #zope02:19
*** bitmonk_ is now known as bitmonk02:19
*** encolpe has quit IRC02:19
*** bitmonk_ has joined #zope02:26
*** bitmonk has quit IRC02:26
*** bitmonk_ is now known as bitmonk02:26
*** r0ver has joined #zope02:27
*** bitmonk has quit IRC02:32
*** Guest78815 has quit IRC02:32
*** dayne has quit IRC02:32
*** Guest78815 has joined #zope02:32
*** davisagli is now known as davisagli|away02:32
*** ignas has joined #zope02:43
*** touff has left #zope02:44
*** mcdonc has joined #zope02:48
*** Guest78815 has quit IRC02:50
*** alvaro_ has joined #zope02:50
*** tiwula has quit IRC02:53
*** alvaro_ has quit IRC02:54
*** alvaro__ has joined #zope02:54
*** cwarner has quit IRC02:59
*** bitmonk has joined #zope03:00
*** bitmonk_ has joined #zope03:07
*** bitmonk has quit IRC03:07
*** bitmonk_ is now known as bitmonk03:07
*** alecm has joined #zope03:08
*** allisterb has quit IRC03:09
*** allisterb has joined #zope03:14
*** davisagli|away is now known as davisagli03:16
*** bitmonk_ has joined #zope03:18
*** bitmonk has quit IRC03:18
*** bitmonk_ is now known as bitmonk03:18
*** davisagli is now known as davisagli|away03:19
*** giampaolo has quit IRC03:20
*** alvaro__ has quit IRC03:20
*** alvaro__ has joined #zope03:21
*** bitmonk has quit IRC03:30
*** bitmonk_ has joined #zope03:30
*** bitmonk_ is now known as bitmonk03:30
*** cwarner has joined #zope03:33
*** alvaro__ has quit IRC03:35
*** alvaro_ has joined #zope03:35
*** bitmonk has quit IRC03:40
*** bitmonk has joined #zope03:43
*** lucmult has joined #zope03:53
*** lucmult has left #zope03:56
*** daMaestro has quit IRC03:56
*** lucmult1 has joined #zope03:59
*** lucmult1 has left #zope03:59
*** lucmult has joined #zope04:02
*** davisagli|away is now known as davisagli04:04
*** lucmult has quit IRC04:04
*** lucmult has joined #zope04:05
*** lucmult1 has joined #zope04:06
*** allisterb has quit IRC04:06
*** davisagli is now known as davisagli|away04:06
*** alvaro_ has quit IRC04:09
*** lucmult has quit IRC04:09
*** lucmult has joined #zope04:09
*** lucmult1 has quit IRC04:10
*** allisterb has joined #zope04:10
*** lucmult has left #zope04:15
*** alecm has quit IRC04:18
*** astoon has joined #zope04:29
*** alecm has joined #zope04:34
*** alecm has quit IRC04:39
*** alecm has joined #zope04:40
*** strichter has quit IRC04:57
*** alecm has quit IRC05:01
*** bitmonk has quit IRC05:04
*** MrTango has quit IRC05:05
*** dunny has joined #zope05:14
*** dunny has quit IRC05:18
*** astoon has quit IRC05:24
*** dunny has joined #zope05:32
*** allisterb has quit IRC05:40
*** allisterb has joined #zope05:40
*** ignas has quit IRC05:45
*** binbrain_ has joined #zope05:47
*** astoon has joined #zope05:48
*** regebro has joined #zope05:51
*** binbrain_ has quit IRC05:56
*** dayne has joined #zope06:27
*** dayne has quit IRC06:31
*** davisagli|away is now known as davisagli06:47
*** redir has quit IRC07:00
*** tiwula has joined #zope07:41
*** davisagli is now known as davisagli|away07:52
*** mahiti_skt has joined #zope07:59
*** fredvd has quit IRC08:02
*** dunny has quit IRC08:07
*** tiwula has quit IRC08:10
*** chris____ has joined #zope08:13
chris____hey guys, absolute n00b in python and zope, how do i login to Zope Management Interface? tried domain:8080/manage but didnt work. I have backend access to the server, looked at zope.conf but nothing08:15
d2mchris____: maybe a firewall problem?08:16
*** mcdonc has quit IRC08:17
*** mcdonc has joined #zope08:18
chris____thanx d2m, no firewall. is the admin path written any .conf file to be sure?08:19
*** davisagli|away is now known as davisagli08:19
d2mchris____: on the backend try localhost:8080/manage08:19
d2mmaybe the zope server is not running at all08:20
*** Theuni1 has joined #zope08:34
chris____thanks guys, found the port inside zope.conf port:19080  . Should have guessed08:36
d2m;)08:36
*** yvl has joined #zope08:40
*** JaRoel|4D has quit IRC08:57
*** tisto has joined #zope08:59
*** alga has joined #zope09:11
*** MrTango has joined #zope09:17
*** agroszer has joined #zope09:28
*** davisagli is now known as davisagli|away09:28
*** zkc has joined #zope09:29
*** wosc has joined #zope09:30
*** redir has joined #zope09:31
*** mr_jolly has joined #zope09:35
*** sashav has joined #zope09:43
*** wosc has quit IRC09:50
*** wosc has joined #zope09:51
*** davisagli|away is now known as davisagli09:53
*** JaRoel|4D has joined #zope09:53
*** zagy has joined #zope10:00
*** zagy has quit IRC10:04
*** zagy has joined #zope10:07
*** Theuni1 has quit IRC10:07
*** chris____ has quit IRC10:19
*** alexpilz has joined #zope10:20
*** sim_sim has joined #zope10:24
*** alexpilz has left #zope10:24
*** davisagli is now known as davisagli|away10:26
*** menesis has joined #zope10:33
*** planetzopebot has quit IRC10:33
*** planetzopebot has joined #zope10:34
*** astoon has quit IRC10:45
*** zkc has quit IRC10:46
*** astoon has joined #zope10:48
*** vipod has joined #zope11:00
*** giampaolo has joined #zope11:09
*** MatthewWilkes has joined #zope11:12
*** MJ has joined #zope11:15
*** kleist has joined #zope11:16
*** mr_jolly has left #zope11:17
*** allisterb has quit IRC11:24
*** goschtl has joined #zope11:29
*** zkc has joined #zope11:31
*** sunew has joined #zope11:32
*** allisterb has joined #zope11:37
*** Theuni1 has joined #zope11:37
*** TomBlockley has joined #zope11:49
*** eperez has joined #zope11:59
*** ignas has joined #zope12:05
*** smita has quit IRC12:21
*** binbrain_ has joined #zope12:21
*** teix has joined #zope12:22
*** hever has joined #zope12:27
*** TomBlockley_ has joined #zope12:30
*** TomBlockley has quit IRC12:31
*** TomBlockley_ is now known as TomBlockley12:31
*** binbrain_ has quit IRC12:38
*** shywolf9982 has joined #zope12:39
*** binbrain_ has joined #zope12:44
*** zkc has quit IRC12:46
*** zkc has joined #zope12:49
*** tisto has quit IRC13:01
planetzopebotProducts.TrustedExecutables 1.0.3 (PyPI recent updates)  http://pypi.python.org/pypi/Products.TrustedExecutables/1.0.313:04
*** TomBlockley has quit IRC13:05
*** TomBlockley has joined #zope13:06
*** ignas has quit IRC13:06
*** TomBlockley has joined #zope13:07
*** hever has quit IRC13:08
*** zkc has left #zope13:37
*** binbrain_ has quit IRC13:43
*** emrojo has joined #zope13:46
*** emrojo has quit IRC13:46
*** smita has joined #zope13:47
*** ignas has joined #zope13:47
*** Aranjedeath has quit IRC13:54
*** Aranjedeath has joined #zope13:58
*** Aranjedeath has quit IRC13:59
*** Aranjedeath has joined #zope13:59
*** astoon has quit IRC14:11
*** dayne has joined #zope14:32
*** lucmult has joined #zope14:33
*** lucmult has left #zope14:35
*** vipod has quit IRC14:35
*** benji has joined #zope14:41
*** vipod_ has joined #zope14:42
*** mgedmin has joined #zope14:49
*** dayne has quit IRC14:52
*** dayne has joined #zope14:58
*** vipod_ has quit IRC14:59
*** vipod__ has joined #zope14:59
*** pepeu has joined #zope15:01
*** dayne has quit IRC15:02
*** smita has quit IRC15:09
*** russf has joined #zope15:13
*** yvl has quit IRC15:21
*** baijum has quit IRC15:23
*** smita has joined #zope15:26
*** russf_ has joined #zope15:29
*** russf has quit IRC15:33
*** russf_ is now known as russf15:33
*** smita has quit IRC15:36
*** binbrain_ has joined #zope15:54
*** hax404 has joined #zope16:00
planetzopebotquintagroup.plonegooglesitemaps 1.5 (PyPI recent updates)  http://pypi.python.org/pypi/quintagroup.plonegooglesitemaps/1.516:04
*** TomBlockley_ has joined #zope16:11
*** TomBlockley has quit IRC16:13
*** TomBlockley_ is now known as TomBlockley16:13
*** vipod__ has quit IRC16:19
*** goschtl has quit IRC16:22
*** sashav has quit IRC16:25
*** vipod__ has joined #zope16:28
*** eperez has quit IRC16:29
*** vipod__ has quit IRC16:34
*** mahiti_skt has quit IRC16:34
*** alvaro has joined #zope16:35
*** wosc has quit IRC16:43
*** TomBlockley has quit IRC16:49
*** TomBlockley has joined #zope16:49
*** TomBlockley has quit IRC16:55
*** regebro has quit IRC17:02
*** alecm has joined #zope17:04
*** zagy has quit IRC17:06
*** alga has quit IRC17:06
betabugdo problems with signal.signal(signal.SIGALRM, ...) ring a bell for anybody? (Zope 2)17:08
*** sunew has quit IRC17:08
betabugit looks like the method where I put that line just stops before that very line, returning without raising any exceptions17:08
betabugit seems to work in my unit tests, but not in my running instance17:09
mgedminsignals don't work well with multiple threads, do they?17:11
*** dayne has joined #zope17:11
betabugyeah, the docs say something like that17:12
betabugbut in a vague way - and I have no experience with this stuff17:13
betabugso it would be useful to know if someone had positive experiences :-)17:14
mgedminI just remembered -- signals in Python are always handled by the main thread17:15
betabugyeah17:15
mgedminso there's now way you could use them in Zope apps17:15
betabug:-/17:15
betabugmgedmin: thanks for making it clear though!17:16
betabugit would have been a nice solution for the task at hand... trying to implement a timeout on running an external command17:16
mgedminhttp://docs.python.org/library/signal.html17:18
mgedminwell, you could fork and then set up the timeout in a child process17:18
betabugyeah, I was reading that, but the implication didn't dawn on me really17:18
mgedmin(making the original child process a grandchild instead)17:18
betabughmmm17:18
mgedmindoes your app need to work on Windows?17:18
mgedminno fork there :/17:18
betabugno17:18
betabugno windows for this17:19
betabugthere is already enough suffering in the world, it's not necessary to further that all the time17:19
mgedminalternatively just use subprocess, then loop a bit17:19
mgedminchecking if it exitted and calling kill after the system time reaches your limit17:19
mgedmini.e. no subprocess.call or blocking wait17:20
betabugyeah, I use subprocess17:20
betabugand then communicate()17:21
mgedminaah17:21
betabugthe sample code with signal.alarm() was just what I needed17:21
mgedminwell, lucky for you the source code is available ;)17:21
betabughehe17:21
betabugwhich of all of them are you referring to?17:21
mgedminthe communicate method17:22
mgedminit's kind of tricky17:22
betabugit doesn't have a timeout parameter though17:22
betabugat least not in python 2.417:22
mgedminright17:22
*** MrWu has joined #zope17:23
mgedminI was thinking about modifying it and adding a timeout17:23
betabughmmm17:23
mgedminbut it looks more and more difficult as I stare at the source17:23
mgedminthe fork + signal solution seems simpler17:23
betabughmmm17:23
mgedminwait!17:24
mgedmineven simpler solution17:24
mgedminp = subprocess.Popen(...)17:24
mgedminthreading.Thread(target=self._kill_process_after_a_timeout, args=(self.timeout,)).start()17:24
mgedminbetter make that args=(p, self.timeout)17:24
mgedminthen in that thread do a time.sleep(timeout) and p.kill()17:25
mgedmincatching and ignoring "no such process"17:25
betabugso I start a thread that will kill the subprocess17:25
mgedminyes17:25
mgedmincall it a watchdog thread17:25
betabug... and hoping that the PID isn't reassigned ;-)17:25
mgedminyeah, better check if the process exitted before killing17:25
betabugbut yeah, could be workable17:25
*** MrTango has quit IRC17:27
betabugand thinking that Guido had asked to add a timeout parameter to subprocess in 199517:27
mgedminmaybe that turned out to be problematic and he went back in time and removed it17:28
betabugdunno17:28
mgedmin(maybe make the thread loop in increments of 1 second and poll for process completion, so you don't end up with N background threads sleeping when their processes already finished)17:28
betabugI could signal the thread that it doesn't need to watch anymore maybe17:29
betabugbut I'd have to seriously read up on threads in python :-)17:29
*** Taggnostr has joined #zope17:29
Taggnostrhello17:29
mgedminno, betabug, you cannot interrupt threads in Python17:30
betabugaha17:31
mgedminbut you could use a condition variable with a timeout17:31
mgedminso the worker thread can signal the watchdog thread prematurely17:31
mgedmingenius!17:31
betabugthe thread can access a variable somewhere else?17:31
mgedminyes, that's what threads are all about: shared memory17:32
mgedmine.g. this: http://docs.python.org/library/threading.html#event-objects17:32
mgedminin the first thread create the subprocess, create an Event variable, pass it to the watchdog thread17:33
mgedminin the watchdog thread call event.wait(timeout)17:33
mgedminin the main thread do p.communicate(); then event.set()17:33
betabugsomething like that was what I was thinking about17:33
betabugand event.set() signals that the p.communicate() went through, no further waiting needed17:34
mgedminyes17:34
betabugcool! thanx!17:34
betabug... but first the weekend, I'll get to this on monday with the irc log :-)17:38
*** TomBlockley has joined #zope17:41
*** ignas has quit IRC17:43
*** TomBlockley_ has joined #zope17:46
*** TomBlockley has quit IRC17:48
*** TomBlockley_ is now known as TomBlockley17:48
*** mgedmin has quit IRC17:52
*** alga has joined #zope17:53
*** davisagli|away is now known as davisagli18:02
*** Theuni1 has quit IRC18:02
*** comptekki has joined #zope18:04
comptekkii have exported a a folder in plone to a file.zexp.  Is there a way to read this file and work with the data with a python script?18:05
comptekkiis there a lib to use to know how to process this?18:06
comptekkizope version Zope-2.10.11-final from plone 3.3.5 install18:07
*** smita has joined #zope18:22
bigkevmcdcomptekki: short answer, no18:26
bigkevmcdcomptekki: long answer, if you imported it to a ZODB, you could manipulate it18:26
comptekkibigkevmcd:  ok, thx.18:26
*** comptekki has quit IRC18:27
*** MJ has quit IRC18:36
*** tiwula has joined #zope18:39
*** JaRoel|4D has quit IRC18:41
*** giampaolo has quit IRC18:57
*** alecm has quit IRC18:59
*** lucmult has joined #zope19:06
*** binbrain_ has quit IRC19:14
*** alvaro has quit IRC19:26
*** alvaro has joined #zope19:26
*** sim_sim has quit IRC19:42
*** alecm has joined #zope19:46
*** Theuni1 has joined #zope19:47
*** redir has quit IRC19:49
*** alecm has quit IRC19:50
*** alecm has joined #zope19:55
*** Theuni1 has quit IRC19:58
*** giampaolo has joined #zope20:04
*** Theuni1 has joined #zope20:06
*** JaRoel|4D has joined #zope20:10
*** River_Rat has joined #zope20:12
*** alga has quit IRC20:13
*** River-Rat has quit IRC20:16
*** kleist has quit IRC20:22
*** dondi has joined #zope20:24
*** MrWu has quit IRC20:25
*** dondi has quit IRC20:25
*** TomBlockley has quit IRC20:32
*** alecm has quit IRC20:32
*** redir has joined #zope20:34
*** r0ver has quit IRC20:40
*** Theuni1 has quit IRC20:42
*** aaronv has joined #zope20:47
*** r0ver has joined #zope20:56
*** r0ver has quit IRC21:10
*** shywolf9982 has quit IRC21:17
*** Theuni1 has joined #zope21:21
*** alecm has joined #zope21:23
*** r0ver has joined #zope21:24
*** r0ver has quit IRC21:30
*** Theuni1 has quit IRC21:30
*** agroszer has quit IRC21:35
*** agroszer has joined #zope21:35
*** davisagli is now known as davisagli|away21:40
*** bitmonk has joined #zope21:41
*** davisagli|away is now known as davisagli21:44
*** r0ver has joined #zope21:45
*** aaronv has quit IRC21:47
*** RichardBarrell has joined #zope21:56
*** r0ver has left #zope22:06
*** agroszer has quit IRC22:08
*** bitmonk has quit IRC22:18
*** smita has quit IRC22:19
*** daMaestro has joined #zope22:19
*** jayaraj has joined #zope22:20
*** teix has quit IRC22:25
*** dayne1 has joined #zope22:29
*** dayne has quit IRC22:30
*** r0ver has joined #zope22:49
*** Arfrever has quit IRC22:56
*** pepeu has quit IRC22:59
*** alga has joined #zope23:00
*** alga has quit IRC23:24
*** alga has joined #zope23:25
*** aaronv has joined #zope23:29
*** jayaraj has quit IRC23:40
*** menesis has quit IRC23:44
*** jayaraj has joined #zope23:59
*** River-Rat has joined #zope23:59

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!