IRC log of #zope3-dev for Saturday, 2009-07-04

*** pelle_ has quit IRC00:07
*** J1m has quit IRC00:10
*** ccomb has joined #zope3-dev00:20
*** tarek has joined #zope3-dev00:21
*** jukart has joined #zope3-dev00:29
*** trollfot has joined #zope3-dev00:34
*** tarek has quit IRC00:39
*** davisagli has left #zope3-dev00:41
*** aaronv has joined #zope3-dev00:43
*** davisagli has joined #zope3-dev00:59
*** aatiis has joined #zope3-dev01:17
*** alecm has joined #zope3-dev01:20
aatiiscan someone please give me a hint why I cannot access the attributes of the context of zope.publisher.browser.BrowserView after calling zope.component.getUtility?01:22
aatiisI keep getting AttributeError: 'thread._local' object has no attribute 'interaction'01:22
*** aaronv has quit IRC01:22
*** tarek has joined #zope3-dev01:35
*** mintsauce has joined #zope3-dev01:37
*** alecm has quit IRC01:48
*** alecm has joined #zope3-dev01:48
*** jukart has quit IRC01:50
*** aatiis has left #zope3-dev01:56
*** dbfrombrc is now known as dbfrombrc|away02:07
*** sunoano has quit IRC02:09
*** sunoano has joined #zope3-dev02:11
*** malthe is now known as malthe|Zzz02:12
*** ignas has quit IRC02:20
*** Theuni1 has joined #zope3-dev02:21
*** hathawsh is now known as hath|away02:33
*** Theuni1 has quit IRC02:49
*** davisagli has quit IRC03:01
*** trollfot has quit IRC03:33
*** aaronv has joined #zope3-dev03:48
*** aaronv has quit IRC04:01
*** alecm has quit IRC04:31
*** romanofski has joined #zope3-dev04:36
*** hath|away is now known as hathawsh05:02
*** hathawsh has quit IRC05:05
*** tarek has quit IRC06:07
*** hexsprite has quit IRC07:23
*** kursor has joined #zope3-dev07:53
*** pelle_ has joined #zope3-dev08:53
*** romanofski has quit IRC09:18
*** davisagli has joined #zope3-dev09:24
*** davisagli has quit IRC09:32
*** afd__ has quit IRC09:37
*** afd__ has joined #zope3-dev09:38
*** Theuni1 has joined #zope3-dev09:45
*** tisto has joined #zope3-dev09:51
*** thekorn has joined #zope3-dev09:54
*** afd_ has joined #zope3-dev10:00
*** baijum has joined #zope3-dev10:02
*** baijum has quit IRC10:08
*** sunoano has quit IRC10:10
*** pelle__ has joined #zope3-dev10:12
*** sunoano has joined #zope3-dev10:13
*** afd__ has quit IRC10:16
*** pelle_ has quit IRC10:20
*** davisagli has joined #zope3-dev10:20
*** pelle__ has quit IRC10:21
*** Theuni1 has quit IRC10:54
*** davisagli has left #zope3-dev10:58
*** Theuni1 has joined #zope3-dev11:10
*** goschtl has joined #zope3-dev11:17
*** mgedmin has joined #zope3-dev11:25
*** alga has joined #zope3-dev11:26
*** reinout has joined #zope3-dev11:27
*** goschtl has quit IRC11:30
*** thekorn has quit IRC11:34
*** kaeru has quit IRC11:37
*** kaeru has joined #zope3-dev11:38
*** trollfot has joined #zope3-dev11:44
*** malthe|Zzz is now known as malthe11:47
*** Aiste has joined #zope3-dev11:47
*** ktwilight_ has quit IRC11:48
*** ktwilight_ has joined #zope3-dev11:50
*** ktwilight__ has joined #zope3-dev12:08
*** kursor has quit IRC12:11
*** ktwilight has joined #zope3-dev12:13
*** jukart has joined #zope3-dev12:16
*** tarek has joined #zope3-dev12:18
*** tarek has quit IRC12:23
*** ktwilight_ has quit IRC12:24
*** ktwilight__ has quit IRC12:26
*** tarek has joined #zope3-dev12:39
*** trollfot1 has joined #zope3-dev12:47
*** trollfot has quit IRC12:47
*** reinout_ has joined #zope3-dev12:47
*** reinout has quit IRC12:47
*** tarek has quit IRC12:50
*** tarek has joined #zope3-dev12:54
*** tarek has quit IRC13:00
*** tarek has joined #zope3-dev13:02
*** reinout_ is now known as reinout13:17
*** goschtl has joined #zope3-dev13:17
*** jukart has quit IRC13:29
*** tarek has quit IRC13:32
*** goschtl_ has joined #zope3-dev13:38
*** reinout has quit IRC13:39
*** goschtl has quit IRC13:39
*** reinout has joined #zope3-dev13:39
*** Aiste has quit IRC13:41
*** trollfot has joined #zope3-dev13:45
*** trollfot1 has quit IRC13:46
*** ktwilight_ has joined #zope3-dev13:47
*** alga has quit IRC13:55
*** allisterb_ has joined #zope3-dev13:57
*** ktwilight has quit IRC14:02
*** allisterb has quit IRC14:14
*** Theuni2 has joined #zope3-dev14:15
*** Theuni1 has quit IRC14:17
*** JaRoel|4D has joined #zope3-dev14:20
*** __mac__ has joined #zope3-dev14:26
*** aaronv has joined #zope3-dev14:41
*** yvl has quit IRC14:59
*** J1m has joined #zope3-dev15:15
*** thekorn has joined #zope3-dev15:16
*** ktwilight__ has joined #zope3-dev15:17
*** tisto has quit IRC15:18
*** Fubar^ has quit IRC15:23
*** ktwilight has joined #zope3-dev15:24
*** Theuni2 has quit IRC15:27
*** ktwilight_ has quit IRC15:31
*** Theuni1 has joined #zope3-dev15:33
*** ktwilight__ has quit IRC15:38
*** allisterb has joined #zope3-dev15:38
*** romanofski has joined #zope3-dev15:40
*** __mac__ has quit IRC15:44
*** JaRoel|4D has quit IRC15:50
*** allisterb_ has quit IRC15:56
*** ktwilight_ has joined #zope3-dev16:07
*** tarek has joined #zope3-dev16:14
*** tisto has joined #zope3-dev16:15
*** ktwilight__ has joined #zope3-dev16:17
*** dunny has quit IRC16:21
*** ktwilight has quit IRC16:22
*** thekorn has quit IRC16:28
*** tarek has quit IRC16:29
*** ktwilight_ has quit IRC16:32
*** J1m has quit IRC16:50
*** romanofski has quit IRC17:02
*** J1m has joined #zope3-dev17:44
*** J1m has quit IRC18:02
*** srichter has joined #zope3-dev18:06
*** ChanServ sets mode: +o srichter18:06
*** sunoano has quit IRC18:10
mgedminHATE BUILDOUT'S HANDLING OF DEVELOP EGGS18:10
*** sunoano has joined #zope3-dev18:12
* Theuni1 kicks mgedmin18:16
* Theuni1 watches mgedmin typing18:16
mgedminno, no, no, you're supposed to hate buildout, not me!18:16
* mgedmin mumbles about some people being unable to understand clearly shouted instructions18:16
Theuni1you didn't mumble!18:16
* mgedmin wonders if theuni can't read :)18:17
* Theuni1 likes getting the one guy confused who is not in this channel18:17
*** alecm has joined #zope3-dev18:28
*** VladDrac has joined #zope3-dev18:36
VladDrachi, anyone got any tips on building a zope3 consolescript that accessed the object database18:37
afd_VladDrac: is that online or offline?18:39
afd_what I mean is, connect through ZEO or just plain access to the zodb?18:39
VladDracnot sure what you're asking. I don't need a publisher running18:39
VladDracI'm writing a console script that updates objects in the zodb (i.e. import data)18:40
afd_so you're not running zope at the time that the import script runs, right?18:41
afd_then you should just follow the zodb connection docs18:43
afd_        storage = FileStorage(os.path.join(path, DBNAME))18:44
afd_        db = DB(storage)18:44
afd_        self.conn = db.open()18:44
afd_        self.db_root = self.conn.root()18:44
afd_an example of what you can do18:44
afd_from ZODB.DB import DB18:44
afd_from ZODB.FileStorage.FileStorage import FileStorage18:44
afd_the imports as well18:44
VladDracright, so I need to figure out dbname / path myself?18:45
afd_yes18:45
afd_that's a fragment from one of my classes, but you can understand what you need to do from them18:45
VladDracsure, I just hoped I wouldn't have to code all the boilerplate18:45
afd_there's no boilerplate needed, just those 4 lines18:46
VladDracwell, no, I need to somehow parse the zope3 configuration to find the zodb details18:46
Theuni1VladDrac: have a look at gocept.runner18:46
Theuni1it's in the pypi18:46
*** tarek has joined #zope3-dev18:54
VladDracTheuni1: any tips on integrating gocept.runner with a setup.py console_scripts entrypoint?19:01
VladDracit still needs the configuration, which is there already in my instance, now I need to think of clever tricks to pass it to gocept.runner19:01
VladDracor I'll just try ./bin/instance run path/to/some/script19:02
VladDracsame effect19:02
Theuni1VladDrac: i know it works ... gimme a second19:05
VladDracit does make me wonder if what I want is so exceptional - a console script that does something on the database19:05
Theuni1http://svn.gocept.com/viewcvs/gocept.lms/trunk/setup.py?rev=29763&view=auto19:06
Theuni1see that19:06
Theuni1and over here19:06
Theuni1http://svn.gocept.com/viewcvs/gocept.lms/deployment/19:06
*** tarek has quit IRC19:10
*** tarek has joined #zope3-dev19:10
*** alga has joined #zope3-dev19:13
*** tarek has quit IRC19:13
*** Aiste has joined #zope3-dev19:13
VladDracTheuni1:  don't you need the zc.recipe.egg:scripts recipe to create the actual scripts in bin/ ?19:14
Theuni1VladDrac: haven't looked at the buildouts right now. what do they do?19:14
VladDracwithout it I don't get the entrypoint script in bin19:15
VladDraci.e. bin/scheduler19:15
mgedminzc.recipe.egg creates scripts for those eggs that are explicitly listed in 'eggs', it doesn't create scripts for their dependencies19:15
VladDracI don't need anything for dependencies, as far as I can see, theuni's examples don't have zc.recipe.eggs sections19:17
VladDracanyway, if I add it, the created script doesn't get the correct arguments supplied (default it gets no arguments)19:18
Theuni1VladDrac: they do19:18
Theuni1check the [runners] section in base.cfg19:18
Theuni1it also shows how to get the parameter for the configuration file in there from buildout19:19
VladDracwhere's the base.cfg?19:19
* VladDrac is feeling stupid again, zope3 does that to me19:20
VladDracright, got it19:20
VladDracarguments = appname='${app:appname}', configfile='${deployment:etc-directory}/web-zope.conf'19:20
VladDracright... that's what I needed19:21
VladDracat least, that's the way to go, still need to figure out the correct arguments19:24
mcdoncTheuni1: thanks for making that list of ztk pkgs19:24
* VladDrac still needs to figure out how to get the full path to his zope.conf19:26
VladDracI'll semi hardcode it, can't find another way19:31
VladDracI'd be happy to read the documentation (not doctests) if anyone has links on this, I really don't know where to look19:31
*** supton has joined #zope3-dev19:31
*** alecm has quit IRC19:33
*** gary_poster has joined #zope3-dev19:36
*** gary_poster has quit IRC19:37
Theuni1mcdonc: np19:43
*** davisagli has joined #zope3-dev19:43
Theuni1mcdonc: next thing is to clean up that bug tracker mess on launchpad19:44
Theuni1fortunately scripting helps19:44
mcdoncisnt that what interns are for? ;-)19:44
*** goschtl_ has quit IRC19:46
*** J1m has joined #zope3-dev19:55
*** trollfot has quit IRC20:00
*** Aiste has quit IRC20:03
*** mgedmin has quit IRC20:03
*** reinout has quit IRC20:03
*** alga has quit IRC20:04
*** Theuni1 has quit IRC20:04
*** tisto has quit IRC20:05
*** Theuni1 has joined #zope3-dev20:07
*** Theuni1 has quit IRC20:08
*** aaronv has quit IRC20:10
*** dbfrombrc|away is now known as dbfrombrc20:57
*** J1m has quit IRC21:06
*** ktwilight__ has quit IRC21:11
*** ktwilight__ has joined #zope3-dev21:12
*** ktwilight__ has quit IRC21:16
*** ktwilight__ has joined #zope3-dev21:18
*** dbfrombrc is now known as dbfrombrc|away21:28
*** ktwilight__ has quit IRC22:27
*** ktwilight__ has joined #zope3-dev22:28
*** pelle_ has joined #zope3-dev22:34
*** afd_ has quit IRC22:56
*** supton has quit IRC23:10
*** markusleist has quit IRC23:30
*** markusleist has joined #zope3-dev23:46
*** gary_poster has joined #zope3-dev23:59

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