IRC log of #zope for Wednesday, 2010-03-10

TresEquismoldy: the docs are OK for ZODB00:00
TresEquistutorial, programming guide00:01
TresEquisone trick is that there really isn't a huge API00:02
TresEquisbecause you mostly just work with normal Python objects, and commit the transaction when you're done00:02
TresEquisOTOH, there is no generic query language except Python, either00:02
*** kevinkal has quit IRC00:04
*** MrTango has quit IRC00:14
*** redir has joined #zope00:29
*** matthewwilkes_ is now known as MatthewWilkes00:30
*** benji has quit IRC00:31
*** kevinkal has joined #zope00:34
*** JaRoel|4D has joined #zope00:34
*** opsec has quit IRC00:48
*** thetet has quit IRC00:50
*** webmaven has joined #zope00:54
*** MyCatVerbs has joined #zope00:56
*** hannosch has quit IRC00:59
*** opsec has joined #zope01:02
*** J1m has quit IRC01:07
*** spamsch has quit IRC01:08
*** RaFromBRC is now known as RaFromBRC|afk01:10
*** kosh has joined #zope01:23
*** webmaven has quit IRC01:29
*** jinty has joined #zope01:29
*** jinty has quit IRC01:30
*** jinty has joined #zope01:30
*** jinty_ has joined #zope01:33
*** jinty has quit IRC01:35
*** fredvd has quit IRC01:35
*** TresEquis has quit IRC01:39
*** aaronv has quit IRC01:39
*** RaFromBRC|afk is now known as RaFromBRC01:45
*** jinty_ has quit IRC01:50
*** allisterb has quit IRC02:02
*** allisterb has joined #zope02:02
*** ignas has quit IRC02:08
*** Vejeta` has joined #zope02:18
*** Vejeta has quit IRC02:20
*** sig11 has quit IRC02:31
*** sig11 has joined #zope02:33
*** Vejeta` has quit IRC02:36
*** kaeru has joined #zope02:39
*** tiwula has quit IRC02:41
*** pthulin has quit IRC02:44
*** matthewwilkes_ has joined #zope02:49
*** MatthewWilkes has quit IRC02:50
*** eperez has quit IRC02:53
*** pepeu_ has quit IRC02:53
*** mr_jolly has joined #zope02:53
*** mr_jolly has left #zope02:53
*** davisagli has quit IRC03:17
*** davisagli has joined #zope03:19
*** alvaro_ has quit IRC03:25
*** davisagli has quit IRC03:25
*** matthewwilkes_ has left #zope03:25
*** sidnei has quit IRC03:35
*** aaronv has joined #zope03:37
*** huajie has joined #zope03:49
*** bluetouff__ has quit IRC03:53
*** daMaestro has quit IRC03:56
*** bluetouff__ has joined #zope03:58
*** aaronv has quit IRC04:00
*** davisagli has joined #zope04:00
*** huajie has quit IRC04:06
*** daMaestro has joined #zope04:08
*** huajie has joined #zope04:22
*** count has joined #zope04:37
countquestion about Zope 2.10 external method04:38
lisppaste6thecount12 pasted "z2 exeternal method" at
*** baijum has joined #zope04:49
koshimport os04:56
koshexternal methods are just like any other python module, all names in them must be defined04:57
koshoh wait04:57
koshput the import outside the function04:57
countI tried the import os outside the function and still got the error let me check one more time kosh:05:03
koshthat sure does not seem right05:03
koshyou did not happen to call this module or some other module in that directory did you?05:03
countokay did it outside the function or module and still had prob05:04
koshoh if you make changes to this you have to his the reload option inside zope for the external method05:04
countI named it list.py05:04
koshif you just change the method on the filesystem you will still get the old error05:04
countand pasted the function exactly as you see in pastebin05:04
koshmake sure you go into the external method in the zmi and hit save changes after you change it on the filesystem05:05
countokay will try that05:05
countoh well no error this time but it did not report anything back05:06
countshould return a list of files in External directory05:06
koshyou have to read() it I think05:08
*** MyCatVerbs has quit IRC05:09
koshotherwise you just returned a popen object to zope05:09
countokay, you know you have helped me out soo far. I don't have an error, so its a matter of saving each time I edit, I will try to figure out the rest. I also needed help on how to open and read a file but it worked out fine after I saved in zmi05:12
countthaks kosh:05:13
koshif you just return it will work05:13
koshno problem05:13
koshI just tried your exactly code directly in pyton and checked what it returns05:13
koshand it was a popen object so I figured that was your problem05:13
countoh I will try with system05:17
*** kosh2 has joined #zope05:19
*** kosh has quit IRC05:20
*** kosh2 is now known as kosh05:20
*** olaf_ has joined #zope05:21
koshcount: well I am back, got disconnected from freenode05:21
*** milosn_ has joined #zope05:21
countokay what exactly did you type05:23
countnot getting errors or anything05:23
*** davisagli has quit IRC05:24
*** daMaestro has quit IRC05:25
*** JaRoel|4D has quit IRC05:25
*** febb has quit IRC05:25
*** fdrake has quit IRC05:25
*** olaf has quit IRC05:25
*** milosn has quit IRC05:25
*** rodgort has quit IRC05:25
*** TheJester has quit IRC05:25
*** olaf_ is now known as olaf05:25
*** olaf has joined #zope05:25
*** febb has joined #zope05:26
countkosh: can you let me know exactly what you typed maybe with somethin os.system('ls') instead05:26
*** daMaestro has joined #zope05:28
*** JaRoel|4D has joined #zope05:28
*** fdrake has joined #zope05:28
*** 16SAAIDR1 has joined #zope05:28
*** TheJester has joined #zope05:28
koshreturn os.popen('ls').read()05:28
*** rodgort has joined #zope05:28
*** 16SAAIDR1 has quit IRC05:28
*** redir has quit IRC05:29
koshheh on a new computer setup it was faster to download all of eq then it was to download the patches for windows05:30
*** huajie has quit IRC05:31
countkosh: got it to work with popen, not with os.system05:33
counttrying to think why its different05:34
countoh popen returns as an open file strange05:35
*** daMaestro has quit IRC05:41
countokay one more05:47
lisppaste6thecount12 annotated #96196 "untitled" at
countI re-edit , it has no errors, but want to simply touch a file05:49
*** huajie has joined #zope05:49
countI'm thinking in terms of this because the next step is to actually change directory05:49
*** tiwula has joined #zope05:57
*** RaFromBRC has quit IRC05:58
koshso what is the actual problem?05:59
koshalso you really should use the subprocess module06:00
countsubprocess module?06:01
countkosh: I just wanted to touch a file using os.system06:01
*** baijum1 has joined #zope06:02
countbut you mentioned subprocess module06:02
countokay just check subprocess, now I feel dumb06:03
*** baijum has quit IRC06:04
*** febb has quit IRC06:04
*** grahal_ has quit IRC06:04
koshsorry I am doing many things at once at forget to reply06:05
koshthe subprocess module basically replaces popen, system etc06:06
koshhowever it is more general and has had a lot more work done on it to make it more secure etc06:06
countyea yea I see the security issues06:06
*** kleist has joined #zope06:22
*** davisagli has joined #zope06:23
*** bhagat has joined #zope06:26
*** mcdonc has quit IRC06:26
*** davisagli has left #zope06:27
*** vigith has joined #zope06:30
*** mcdonc has joined #zope06:38
*** kaeru has quit IRC06:45
*** sidnei has joined #zope06:48
*** kaeru has joined #zope06:49
*** sidnei has quit IRC06:50
*** sidnei has joined #zope06:52
*** davisagli has joined #zope06:52
*** febb has joined #zope07:04
*** baijum1 has quit IRC07:10
count'file' object attribute 'write' is read-only when trying to write a file even if the file is in tmp07:14
*** mr_jolly has joined #zope07:22
*** digitalmortician has quit IRC07:34
koshdid you open the file for writing?07:43
*** baijum has joined #zope07:44
*** baijum has quit IRC07:51
*** tiwula has quit IRC07:54
*** bhagat has quit IRC07:54
*** bhagat has joined #zope07:54
*** kleist_ has joined #zope07:56
*** kleist_ has quit IRC07:57
*** baijum has joined #zope07:58
*** huajie has quit IRC08:36
*** digitalmortician has joined #zope08:38
*** milele has joined #zope08:48
*** JaRoel|4D has quit IRC08:53
countkosh: yea I opened the file for writing08:55
count1.  f=open('/tmp/what.txt','w') 2. data=f.write=('blah blah') 3.return data08:58
countI kept it real simple09:00
koshf.write is a function09:01
koshf.write('blah blah')09:01
koshyou can't assign a string to f.write and have it write to the file09:02
koshall you did was replace the write function with a string09:02
countI can't believe I made that mistake09:04
countso the lesson is to test it first  lol09:13
countwow even os.chdir is working09:17
*** jinty has joined #zope09:18
*** jinty has quit IRC09:18
*** jinty has joined #zope09:18
*** jinty has quit IRC09:23
*** phimic has joined #zope09:31
*** Kabz|4D has joined #zope09:41
*** MrWu has joined #zope09:50
*** JaRoel|4D has joined #zope09:55
*** count has left #zope09:55
*** goschtl has joined #zope09:58
*** davisagli has quit IRC10:08
*** davisagli has joined #zope10:16
*** pthulin has joined #zope10:16
*** davisagli has quit IRC10:19
*** povbot has joined #zope10:21
*** [Arfreve1] has joined #zope10:22
*** [Arfrever] has quit IRC10:24
*** MrWu has quit IRC10:28
*** bobo_b has joined #zope10:28
*** avn has quit IRC10:32
*** avn has joined #zope10:34
*** thetet has joined #zope10:34
*** milosn_ is now known as milosn10:47
*** goschtl has quit IRC10:50
*** goschtl has joined #zope10:51
*** ignas has joined #zope10:52
*** bobo_b has quit IRC11:09
*** opsec has quit IRC11:11
*** ignas has quit IRC11:23
*** ignas has joined #zope11:23
*** opsec has joined #zope11:24
*** MJ has joined #zope11:34
*** pthulin has quit IRC11:35
*** pthulin has joined #zope11:43
ignasI am getting Error Value: 'latin-1' codec can't encode character u'\u0117' in position 7382: ordinal not in range(256)11:44
ignaswhen trying to access error_log view11:44
ignasafter migration from Zope2.8 to Zope2.1111:44
ignasis there any way to fix it?11:44
betabugignas: didn't you see my reply yesterday?11:44
betabugyou have to set the encoding for the ZMI11:45
ignasdid I ask this already11:45
ignas(gaps in memory)11:45
ignasand where do I set it?11:45
betabugon my blog ;-)11:45
ignasahh, yes I did, but the reply was quite a while after the question I think11:46
betabugOTOH you can find the error information also in the error log on the file system11:46
betabugyeah, sorry, I'm not in front of the irc window 100% of the time :-D11:46
ignasas I have a lot of them11:46
ignasI'd like to have it on the web11:47
betabugwell, setting the ZMI to utf-8 is necessary in cases where you have utf8 info in some property pages too11:48
betabugfor one of my apps I have to do that always11:48
*** bobo_b has joined #zope11:48
* kosh sneaks up on betabug and sets him on fire11:54
betabugah, cozy & warm!11:55
betabughey kosh!11:55
koshhail betabug bringer of light and cooker of marshmallows!11:55
koshso how are things going?11:55
betabugfine :-D11:56
koshapparently some of our banks are screwing your country as bad as they are screwing this one11:56
betabugthis country has a long tradition of being screwed11:57
koshsome kind of deriviative speculation against greece, some kind of bet that is further screwing things up11:57
betabugwe make up for it by having good food & good weather11:57
koshapparently the country would be much better off without banks betting against it11:57
koshhmm I doubt the good weather part11:57
koshthat area seems far too hot for me11:57
*** mr_jolly has left #zope11:57
koshof course my ideal good weather is a cave followed by darkness and winter11:58
betabugwe'd all be better off without this joke of a financial speculation system11:58
betabugand we could send all the politicians to hell too, while we're at it11:59
koshwe would definitley all be better off without this financial system except for the financial people12:02
koshthey are better off under this system12:02
koshuntil we line them up against the wall and have them shot12:02
betabugthat's why it's there12:02
*** baijum has quit IRC12:08
*** evilbungle has joined #zope12:16
*** baijum has joined #zope12:22
*** bhagat has quit IRC12:29
*** bhagat has joined #zope12:30
*** eperez_ has joined #zope12:33
*** eperez__ has joined #zope12:39
*** TomBlockley has joined #zope12:40
*** bhagat has quit IRC12:42
*** bobo_b has quit IRC12:43
*** bobo_b has joined #zope12:43
*** eperez__ has quit IRC12:46
*** bhagat has joined #zope12:48
*** teix has joined #zope12:50
*** bhagat has quit IRC12:50
*** TomBlockley has quit IRC12:52
*** TomBlockley has joined #zope12:53
*** mgedmin has joined #zope12:55
*** bhagat has joined #zope12:55
*** jdenney has joined #zope12:56
*** bhagat has joined #zope12:59
*** bluetouff__ has quit IRC12:59
*** bhagat has quit IRC12:59
*** bhagat has joined #zope13:02
*** bhagat has quit IRC13:02
*** bhagat has joined #zope13:06
*** bhagat has quit IRC13:07
*** emrojo has joined #zope13:08
*** bhagat has joined #zope13:09
*** maurits has joined #zope13:15
mauritsHi all. is unresponsive for me.13:15
mauritsAnd for at least two others, who are also in the Netherlands, but I doubt it is just this one country. :)13:16
betabugcould be, the netherlands is pretty special13:16
mauritsah, coming up again.13:17
mauritsStill slow, but I guess that will improve.13:19
*** bobo_b has quit IRC13:22
*** spamsch has joined #zope13:26
*** eperez__ has joined #zope13:41
*** milele has quit IRC13:43
*** fredvd has joined #zope13:49
*** aaronv has joined #zope13:56
*** MrTango has joined #zope13:57
*** bhagat has quit IRC14:06
*** hannosch has joined #zope14:09
sashavmaurits: that is probably why my buildout is so slow (sweden)14:11
*** goschtl_ has joined #zope14:23
lcpfnvcis it possible to move a data.fs from zope 2.8.7 to zope 2.1014:25
betabugyes, but not necessarily back14:25
betabuglcpfnvc: make a backup14:25
betabugand check that you have the same (or upgraded) products installed14:25
betabugand if you use plone, ask on #plone and search on, in that case things will be more complicated14:26
*** goschtl has quit IRC14:27
*** sunew has joined #zope14:29
*** milele has joined #zope14:34
*** goschtl_ has quit IRC14:36
*** grahal has joined #zope14:39
*** milele has quit IRC14:40
*** spamsch has quit IRC14:44
*** tisto has joined #zope14:50
*** spamsch has joined #zope14:52
*** benji has joined #zope14:55
*** huajie has joined #zope14:55
*** kevinkal has quit IRC14:57
*** tisto has quit IRC14:59
*** baijum has quit IRC15:00
*** eperez__ has quit IRC15:01
*** huajie has quit IRC15:02
*** milele has joined #zope15:10
*** tisto has joined #zope15:13
*** kevinkal has joined #zope15:13
*** touff has joined #zope15:16
*** baijum has joined #zope15:16
*** touff has quit IRC15:20
*** touff has joined #zope15:23
*** jwhisnant has joined #zope15:32
*** TomBlockley has quit IRC15:35
*** TomBlockley has joined #zope15:36
*** TomBlockley has quit IRC15:36
*** TomBlockley has joined #zope15:36
*** kaeru has quit IRC15:44
*** kevinkal has quit IRC15:46
lcpfnvcta betabug15:49
*** svenn has joined #zope16:02
*** kevinkal has joined #zope16:09
*** dunny has quit IRC16:15
*** kevinkal has quit IRC16:20
*** kevinkal has joined #zope16:24
*** allisterb has quit IRC16:28
*** allisterb has joined #zope16:30
*** vigith has quit IRC16:34
*** alvaro_ has joined #zope16:39
*** allisterb has quit IRC16:42
*** allisterb has joined #zope16:43
*** goschtl has joined #zope16:52
*** milele has quit IRC16:55
*** allisterb has quit IRC17:01
*** allisterb has joined #zope17:06
*** ignas has quit IRC17:09
*** ccomb1 has joined #zope17:27
*** ccomb1 has quit IRC17:27
*** ccomb1 has joined #zope17:27
*** ccomb has quit IRC17:28
*** noroute has joined #zope17:28
*** thetetet has joined #zope17:45
*** huajie has joined #zope17:47
*** thetet has quit IRC17:48
*** webmaven has joined #zope17:50
*** r0ver has joined #zope17:52
*** redir has joined #zope17:53
*** goschtl has quit IRC17:55
*** ccomb1 is now known as ccomb17:56
*** JaRoel|4D has quit IRC17:58
*** Arfrever has joined #zope18:03
*** baijum has quit IRC18:03
*** MatthewWilkes has joined #zope18:04
*** phimic has quit IRC18:07
*** JaRoel|4D has joined #zope18:07
*** sashav has quit IRC18:07
*** touff has quit IRC18:07
*** fsufitch has joined #zope18:09
fsufitchcould someone help me out? this object is giving me "TypeError: can't pickle PersistentBase objects" and i can't figure out why...
fsufitchoh wait, i think i found it myself (i hate it when this happens)18:12
*** sashav has joined #zope18:13
*** digitalmortician has quit IRC18:16
fsufitchgot it :) lesson learned: don't use Durus's persistent class in ZODB18:17
*** fsufitch has quit IRC18:18
*** sunew has quit IRC18:25
*** allisterb_ has joined #zope18:26
*** huajie has quit IRC18:28
*** allisterb has quit IRC18:28
*** [Arfreve1] has quit IRC18:31
*** [Arfrever] has joined #zope18:32
*** RaFromBRC has joined #zope18:35
*** tisto has quit IRC18:39
*** pthulin has quit IRC18:41
*** tiwula has joined #zope18:43
*** MJ has quit IRC18:52
*** redir has quit IRC18:55
*** allisterb_ has quit IRC18:55
*** Kabz|4D has quit IRC18:59
*** imgrey has joined #zope18:59
imgreygood evening #zope18:59
imgreywhat is the default password for management interface ?18:59
*** hannosch has quit IRC19:01
*** JaRoel|4D has quit IRC19:02
mgedminafair you have to provide one when you create the zope instance19:06
mgedminyou can change it from the command-line somehow (zopectl password?)19:07
*** baijum has joined #zope19:10
*** noroute has quit IRC19:12
*** davisagli has joined #zope19:19
*** goschtl has joined #zope19:20
*** MJ has joined #zope19:22
*** MJ has quit IRC19:23
*** maurits has left #zope19:24
*** mgedmin has quit IRC19:28
*** jdenney has left #zope19:30
*** Kabz|4D has joined #zope19:52
imgreyhow to load dump into db ?19:59
imgreyin xml format20:00
*** sunew has joined #zope20:04
*** fredvd has quit IRC20:16
*** tisto has joined #zope20:17
*** redir has joined #zope20:17
*** svenn has quit IRC20:19
*** sunew has quit IRC20:20
*** alecm has joined #zope20:26
*** TomBlockley has quit IRC20:34
*** eperez_ has quit IRC20:34
*** goschtl has quit IRC20:35
*** webmaven has quit IRC20:38
*** evilbungle has quit IRC20:38
smimgrey: usually, go to the parent folder in the ZMI, and click import/export button or tab20:40
smpossibly support for xml format was dropped in recent zopes20:40
imgreysm, fsck20:41
betabugxml import/export was on/off being broken most of the time20:41
*** aaronv has quit IRC20:43
*** baijum has quit IRC20:52
*** avn has quit IRC20:57
*** avn has joined #zope20:59
*** tisto has quit IRC21:00
*** jim_SFU has joined #zope21:01
*** JaRoel|4D has joined #zope21:01
*** kleist has quit IRC21:02
*** emrojo has quit IRC21:02
*** webmaven has joined #zope21:02
*** JaRoel|4D has quit IRC21:08
*** tisto has joined #zope21:12
*** davisagli has quit IRC21:20
*** teix has quit IRC21:24
*** davisagli has joined #zope21:24
*** drudi has joined #zope21:29
*** MrWu has joined #zope21:30
*** Arfrever has quit IRC21:30
*** teix has joined #zope21:35
*** aaronv has joined #zope21:39
*** MrWu has quit IRC21:49
*** MrWu has joined #zope21:50
*** teix has left #zope21:55
*** JaRoel|4D has joined #zope21:58
*** MrWu has quit IRC22:05
*** digitalmortician has joined #zope22:09
*** daMaestro has joined #zope22:16
*** ignas has joined #zope22:21
koshhail freaks!22:22
*** tisto has quit IRC22:27
*** MyCatVerbs has joined #zope22:34
*** MyCatVerbs is now known as RichardBarrell22:36
*** shastry has joined #zope22:50
*** webmaven has quit IRC22:59
*** kevinkal has quit IRC22:59
*** sashav has quit IRC23:05
*** webmaven has joined #zope23:16
*** jim_SFU has quit IRC23:26
*** RaFromBRC is now known as RaFromBRC|lunch23:28
*** thetetet has quit IRC23:38
*** drudi has quit IRC23:44
*** RaFromBRC|lunch is now known as RaFromBRC23:52
*** gileshs has joined #zope23:57

Generated by 2.15.1 by Marius Gedminas - find it at!