*** pelle_ has quit IRC | 00:07 | |
*** J1m has quit IRC | 00:10 | |
*** ccomb has joined #zope3-dev | 00:20 | |
*** tarek has joined #zope3-dev | 00:21 | |
*** jukart has joined #zope3-dev | 00:29 | |
*** trollfot has joined #zope3-dev | 00:34 | |
*** tarek has quit IRC | 00:39 | |
*** davisagli has left #zope3-dev | 00:41 | |
*** aaronv has joined #zope3-dev | 00:43 | |
*** davisagli has joined #zope3-dev | 00:59 | |
*** aatiis has joined #zope3-dev | 01:17 | |
*** alecm has joined #zope3-dev | 01:20 | |
aatiis | can 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 |
---|---|---|
aatiis | I keep getting AttributeError: 'thread._local' object has no attribute 'interaction' | 01:22 |
*** aaronv has quit IRC | 01:22 | |
*** tarek has joined #zope3-dev | 01:35 | |
*** mintsauce has joined #zope3-dev | 01:37 | |
*** alecm has quit IRC | 01:48 | |
*** alecm has joined #zope3-dev | 01:48 | |
*** jukart has quit IRC | 01:50 | |
*** aatiis has left #zope3-dev | 01:56 | |
*** dbfrombrc is now known as dbfrombrc|away | 02:07 | |
*** sunoano has quit IRC | 02:09 | |
*** sunoano has joined #zope3-dev | 02:11 | |
*** malthe is now known as malthe|Zzz | 02:12 | |
*** ignas has quit IRC | 02:20 | |
*** Theuni1 has joined #zope3-dev | 02:21 | |
*** hathawsh is now known as hath|away | 02:33 | |
*** Theuni1 has quit IRC | 02:49 | |
*** davisagli has quit IRC | 03:01 | |
*** trollfot has quit IRC | 03:33 | |
*** aaronv has joined #zope3-dev | 03:48 | |
*** aaronv has quit IRC | 04:01 | |
*** alecm has quit IRC | 04:31 | |
*** romanofski has joined #zope3-dev | 04:36 | |
*** hath|away is now known as hathawsh | 05:02 | |
*** hathawsh has quit IRC | 05:05 | |
*** tarek has quit IRC | 06:07 | |
*** hexsprite has quit IRC | 07:23 | |
*** kursor has joined #zope3-dev | 07:53 | |
*** pelle_ has joined #zope3-dev | 08:53 | |
*** romanofski has quit IRC | 09:18 | |
*** davisagli has joined #zope3-dev | 09:24 | |
*** davisagli has quit IRC | 09:32 | |
*** afd__ has quit IRC | 09:37 | |
*** afd__ has joined #zope3-dev | 09:38 | |
*** Theuni1 has joined #zope3-dev | 09:45 | |
*** tisto has joined #zope3-dev | 09:51 | |
*** thekorn has joined #zope3-dev | 09:54 | |
*** afd_ has joined #zope3-dev | 10:00 | |
*** baijum has joined #zope3-dev | 10:02 | |
*** baijum has quit IRC | 10:08 | |
*** sunoano has quit IRC | 10:10 | |
*** pelle__ has joined #zope3-dev | 10:12 | |
*** sunoano has joined #zope3-dev | 10:13 | |
*** afd__ has quit IRC | 10:16 | |
*** pelle_ has quit IRC | 10:20 | |
*** davisagli has joined #zope3-dev | 10:20 | |
*** pelle__ has quit IRC | 10:21 | |
*** Theuni1 has quit IRC | 10:54 | |
*** davisagli has left #zope3-dev | 10:58 | |
*** Theuni1 has joined #zope3-dev | 11:10 | |
*** goschtl has joined #zope3-dev | 11:17 | |
*** mgedmin has joined #zope3-dev | 11:25 | |
*** alga has joined #zope3-dev | 11:26 | |
*** reinout has joined #zope3-dev | 11:27 | |
*** goschtl has quit IRC | 11:30 | |
*** thekorn has quit IRC | 11:34 | |
*** kaeru has quit IRC | 11:37 | |
*** kaeru has joined #zope3-dev | 11:38 | |
*** trollfot has joined #zope3-dev | 11:44 | |
*** malthe|Zzz is now known as malthe | 11:47 | |
*** Aiste has joined #zope3-dev | 11:47 | |
*** ktwilight_ has quit IRC | 11:48 | |
*** ktwilight_ has joined #zope3-dev | 11:50 | |
*** ktwilight__ has joined #zope3-dev | 12:08 | |
*** kursor has quit IRC | 12:11 | |
*** ktwilight has joined #zope3-dev | 12:13 | |
*** jukart has joined #zope3-dev | 12:16 | |
*** tarek has joined #zope3-dev | 12:18 | |
*** tarek has quit IRC | 12:23 | |
*** ktwilight_ has quit IRC | 12:24 | |
*** ktwilight__ has quit IRC | 12:26 | |
*** tarek has joined #zope3-dev | 12:39 | |
*** trollfot1 has joined #zope3-dev | 12:47 | |
*** trollfot has quit IRC | 12:47 | |
*** reinout_ has joined #zope3-dev | 12:47 | |
*** reinout has quit IRC | 12:47 | |
*** tarek has quit IRC | 12:50 | |
*** tarek has joined #zope3-dev | 12:54 | |
*** tarek has quit IRC | 13:00 | |
*** tarek has joined #zope3-dev | 13:02 | |
*** reinout_ is now known as reinout | 13:17 | |
*** goschtl has joined #zope3-dev | 13:17 | |
*** jukart has quit IRC | 13:29 | |
*** tarek has quit IRC | 13:32 | |
*** goschtl_ has joined #zope3-dev | 13:38 | |
*** reinout has quit IRC | 13:39 | |
*** goschtl has quit IRC | 13:39 | |
*** reinout has joined #zope3-dev | 13:39 | |
*** Aiste has quit IRC | 13:41 | |
*** trollfot has joined #zope3-dev | 13:45 | |
*** trollfot1 has quit IRC | 13:46 | |
*** ktwilight_ has joined #zope3-dev | 13:47 | |
*** alga has quit IRC | 13:55 | |
*** allisterb_ has joined #zope3-dev | 13:57 | |
*** ktwilight has quit IRC | 14:02 | |
*** allisterb has quit IRC | 14:14 | |
*** Theuni2 has joined #zope3-dev | 14:15 | |
*** Theuni1 has quit IRC | 14:17 | |
*** JaRoel|4D has joined #zope3-dev | 14:20 | |
*** __mac__ has joined #zope3-dev | 14:26 | |
*** aaronv has joined #zope3-dev | 14:41 | |
*** yvl has quit IRC | 14:59 | |
*** J1m has joined #zope3-dev | 15:15 | |
*** thekorn has joined #zope3-dev | 15:16 | |
*** ktwilight__ has joined #zope3-dev | 15:17 | |
*** tisto has quit IRC | 15:18 | |
*** Fubar^ has quit IRC | 15:23 | |
*** ktwilight has joined #zope3-dev | 15:24 | |
*** Theuni2 has quit IRC | 15:27 | |
*** ktwilight_ has quit IRC | 15:31 | |
*** Theuni1 has joined #zope3-dev | 15:33 | |
*** ktwilight__ has quit IRC | 15:38 | |
*** allisterb has joined #zope3-dev | 15:38 | |
*** romanofski has joined #zope3-dev | 15:40 | |
*** __mac__ has quit IRC | 15:44 | |
*** JaRoel|4D has quit IRC | 15:50 | |
*** allisterb_ has quit IRC | 15:56 | |
*** ktwilight_ has joined #zope3-dev | 16:07 | |
*** tarek has joined #zope3-dev | 16:14 | |
*** tisto has joined #zope3-dev | 16:15 | |
*** ktwilight__ has joined #zope3-dev | 16:17 | |
*** dunny has quit IRC | 16:21 | |
*** ktwilight has quit IRC | 16:22 | |
*** thekorn has quit IRC | 16:28 | |
*** tarek has quit IRC | 16:29 | |
*** ktwilight_ has quit IRC | 16:32 | |
*** J1m has quit IRC | 16:50 | |
*** romanofski has quit IRC | 17:02 | |
*** J1m has joined #zope3-dev | 17:44 | |
*** J1m has quit IRC | 18:02 | |
*** srichter has joined #zope3-dev | 18:06 | |
*** ChanServ sets mode: +o srichter | 18:06 | |
*** sunoano has quit IRC | 18:10 | |
mgedmin | HATE BUILDOUT'S HANDLING OF DEVELOP EGGS | 18:10 |
*** sunoano has joined #zope3-dev | 18:12 | |
* Theuni1 kicks mgedmin | 18:16 | |
* Theuni1 watches mgedmin typing | 18:16 | |
mgedmin | no, no, no, you're supposed to hate buildout, not me! | 18:16 |
* mgedmin mumbles about some people being unable to understand clearly shouted instructions | 18:16 | |
Theuni1 | you 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 channel | 18:17 | |
*** alecm has joined #zope3-dev | 18:28 | |
*** VladDrac has joined #zope3-dev | 18:36 | |
VladDrac | hi, anyone got any tips on building a zope3 consolescript that accessed the object database | 18: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 |
VladDrac | not sure what you're asking. I don't need a publisher running | 18:39 |
VladDrac | I'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 docs | 18: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 do | 18:44 |
afd_ | from ZODB.DB import DB | 18:44 |
afd_ | from ZODB.FileStorage.FileStorage import FileStorage | 18:44 |
afd_ | the imports as well | 18:44 |
VladDrac | right, so I need to figure out dbname / path myself? | 18:45 |
afd_ | yes | 18:45 |
afd_ | that's a fragment from one of my classes, but you can understand what you need to do from them | 18:45 |
VladDrac | sure, I just hoped I wouldn't have to code all the boilerplate | 18:45 |
afd_ | there's no boilerplate needed, just those 4 lines | 18:46 |
VladDrac | well, no, I need to somehow parse the zope3 configuration to find the zodb details | 18:46 |
Theuni1 | VladDrac: have a look at gocept.runner | 18:46 |
Theuni1 | it's in the pypi | 18:46 |
*** tarek has joined #zope3-dev | 18:54 | |
VladDrac | Theuni1: any tips on integrating gocept.runner with a setup.py console_scripts entrypoint? | 19:01 |
VladDrac | it still needs the configuration, which is there already in my instance, now I need to think of clever tricks to pass it to gocept.runner | 19:01 |
VladDrac | or I'll just try ./bin/instance run path/to/some/script | 19:02 |
VladDrac | same effect | 19:02 |
Theuni1 | VladDrac: i know it works ... gimme a second | 19:05 |
VladDrac | it does make me wonder if what I want is so exceptional - a console script that does something on the database | 19:05 |
Theuni1 | http://svn.gocept.com/viewcvs/gocept.lms/trunk/setup.py?rev=29763&view=auto | 19:06 |
Theuni1 | see that | 19:06 |
Theuni1 | and over here | 19:06 |
Theuni1 | http://svn.gocept.com/viewcvs/gocept.lms/deployment/ | 19:06 |
*** tarek has quit IRC | 19:10 | |
*** tarek has joined #zope3-dev | 19:10 | |
*** alga has joined #zope3-dev | 19:13 | |
*** tarek has quit IRC | 19:13 | |
*** Aiste has joined #zope3-dev | 19:13 | |
VladDrac | Theuni1: don't you need the zc.recipe.egg:scripts recipe to create the actual scripts in bin/ ? | 19:14 |
Theuni1 | VladDrac: haven't looked at the buildouts right now. what do they do? | 19:14 |
VladDrac | without it I don't get the entrypoint script in bin | 19:15 |
VladDrac | i.e. bin/scheduler | 19:15 |
mgedmin | zc.recipe.egg creates scripts for those eggs that are explicitly listed in 'eggs', it doesn't create scripts for their dependencies | 19:15 |
VladDrac | I don't need anything for dependencies, as far as I can see, theuni's examples don't have zc.recipe.eggs sections | 19:17 |
VladDrac | anyway, if I add it, the created script doesn't get the correct arguments supplied (default it gets no arguments) | 19:18 |
Theuni1 | VladDrac: they do | 19:18 |
Theuni1 | check the [runners] section in base.cfg | 19:18 |
Theuni1 | it also shows how to get the parameter for the configuration file in there from buildout | 19:19 |
VladDrac | where's the base.cfg? | 19:19 |
* VladDrac is feeling stupid again, zope3 does that to me | 19:20 | |
VladDrac | right, got it | 19:20 |
VladDrac | arguments = appname='${app:appname}', configfile='${deployment:etc-directory}/web-zope.conf' | 19:20 |
VladDrac | right... that's what I needed | 19:21 |
VladDrac | at least, that's the way to go, still need to figure out the correct arguments | 19:24 |
mcdonc | Theuni1: thanks for making that list of ztk pkgs | 19:24 |
* VladDrac still needs to figure out how to get the full path to his zope.conf | 19:26 | |
VladDrac | I'll semi hardcode it, can't find another way | 19:31 |
VladDrac | I'd be happy to read the documentation (not doctests) if anyone has links on this, I really don't know where to look | 19:31 |
*** supton has joined #zope3-dev | 19:31 | |
*** alecm has quit IRC | 19:33 | |
*** gary_poster has joined #zope3-dev | 19:36 | |
*** gary_poster has quit IRC | 19:37 | |
Theuni1 | mcdonc: np | 19:43 |
*** davisagli has joined #zope3-dev | 19:43 | |
Theuni1 | mcdonc: next thing is to clean up that bug tracker mess on launchpad | 19:44 |
Theuni1 | fortunately scripting helps | 19:44 |
mcdonc | isnt that what interns are for? ;-) | 19:44 |
*** goschtl_ has quit IRC | 19:46 | |
*** J1m has joined #zope3-dev | 19:55 | |
*** trollfot has quit IRC | 20:00 | |
*** Aiste has quit IRC | 20:03 | |
*** mgedmin has quit IRC | 20:03 | |
*** reinout has quit IRC | 20:03 | |
*** alga has quit IRC | 20:04 | |
*** Theuni1 has quit IRC | 20:04 | |
*** tisto has quit IRC | 20:05 | |
*** Theuni1 has joined #zope3-dev | 20:07 | |
*** Theuni1 has quit IRC | 20:08 | |
*** aaronv has quit IRC | 20:10 | |
*** dbfrombrc|away is now known as dbfrombrc | 20:57 | |
*** J1m has quit IRC | 21:06 | |
*** ktwilight__ has quit IRC | 21:11 | |
*** ktwilight__ has joined #zope3-dev | 21:12 | |
*** ktwilight__ has quit IRC | 21:16 | |
*** ktwilight__ has joined #zope3-dev | 21:18 | |
*** dbfrombrc is now known as dbfrombrc|away | 21:28 | |
*** ktwilight__ has quit IRC | 22:27 | |
*** ktwilight__ has joined #zope3-dev | 22:28 | |
*** pelle_ has joined #zope3-dev | 22:34 | |
*** afd_ has quit IRC | 22:56 | |
*** supton has quit IRC | 23:10 | |
*** markusleist has quit IRC | 23:30 | |
*** markusleist has joined #zope3-dev | 23:46 | |
*** gary_poster has joined #zope3-dev | 23:59 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!