IRC log of #zope3-dev for Monday, 2005-11-07

*** apoirier has quit IRC00:04
*** mp has joined #zope3-dev00:24
*** jhauser has quit IRC00:25
*** J1m has quit IRC00:27
*** bradallen has joined #zope3-dev00:50
bradallenis this room an appropriate place to ask Zope3 user questions, or is it only for those developing Zope itself?00:52
*** tarek has quit IRC00:53
*** Severian has joined #zope3-dev00:55
bradallenfrom glancing through the IRC archives, I can see mix of different types of questions, so I will go ahead and post. Tell me to go away if this is not the right place.00:57
bradallenIn the Zope 3 DG, ch 14, Adding Views for Content Objects00:58
bradallenthe message.py file00:58
bradallenclass MessageDetails00:58
bradallenthere is a line which confuses me00:59
*** natea|away is now known as natea00:59
bradallencreators = ICMFDublinCore(self.context).creators00:59
bradallenSince ICMFDublinCore is an interface, why is it being instantiated like a class?00:59
bradallenWhen I look at the source for ICMFDublinCore, I see there is no method called "creators" but there is one called "Creators"01:00
bradallenoops, I mean "Creator" not "Creators"01:01
*** philiKON has joined #zope3-dev01:02
*** sashav has quit IRC01:20
*** sashav has joined #zope3-dev01:21
*** stub has quit IRC01:21
*** yota has quit IRC01:26
smbradallen: this is a good place for all zope 3 questions.. it seems quiet just now though01:27
smI'll take a stab at it01:28
sminvoking an interface class like that is how you request an adapter from some object to the interface01:29
smI believe01:29
*** philiKON has quit IRC01:29
bradallenThanks for the reply.01:31
smalso ask srichter when he comes back, I think that is his book01:33
bradallenyes, it's his book I'm reading01:33
bradallenI have the other book on order01:33
bradallenI don't recall reading an explanation of that in the Zope 3 DG. The chapter on interfaces is very short.01:34
bradallenI couldn't find anything about it in the online help.01:35
smI just read philikon's, and it was explained there01:35
bradallenthat explains it. I'm hearing that book is complementary to the Zope 3 DG01:35
smme too01:36
smI want to read that one next01:36
smI'd rather read a 3.1 version though01:36
bradallendoes philikon's book have anything about using database adapters?01:38
bradallenthat's another thing I'm trying to figure out now.01:38
* sm checks..01:38
smno I don't think it does01:38
bradallenI'm wondering I really need to use a Zope database adapter, or whether it makes sense to just use Python to connect directly using psycopg or mysqlda01:39
bradallenthat may be a question for the mailing list01:40
smI think you do want to use a DA, to help with threading etc.01:40
bradallenokay, thanks.01:40
smcaching, etc01:40
*** mp has quit IRC01:47
*** anguenot has quit IRC01:57
*** Severian has quit IRC02:03
*** ignas has quit IRC02:30
*** zbir has joined #zope3-dev02:31
*** mp has joined #zope3-dev02:52
*** anguenot has joined #zope3-dev03:14
*** mp has quit IRC03:25
*** benji has joined #zope3-dev04:18
srichterbradallen: calling an interface is equivalent to looking up an adapter04:50
srichterthat's part of the Python Interface PEP04:50
bradallenso in this case, when we call ICMFDublinCore(self.context) we are creating an adapter to self.context? And that adapter has the same methods and attributes as the ICMFDublinCore interface?05:27
bradallenI'm still don't really understand adapters.05:27
benjibradallen, you're creating an adapter /from/ self.context to something that implements ICMFDublinCore05:29
*** newpers has quit IRC05:33
bradallenah, that makes a little more sense05:36
bradallenI need to go find the source for the context class to understand this better.05:37
*** xenru has quit IRC05:38
*** xenru has joined #zope3-dev05:39
bradallenI'm having a bit of trouble getting Zope 3.1 to startup after installing MySQLDA.05:57
bradallenHere is transcript.log last line:05:57
bradallen    ConfigurationError: ('Invalid value for', 'package', "Couldn't import ZMySQLDA, No module named Shared.DC.ZRDB.TM")05:57
bradallenThis is similar to the error I get when I try to import ZMySQLDA from the Python interactive prompt.05:58
bradallenDoes this database adapter work with Zope 3? Maybe I should just remove it.05:58
srichteryou installed the Zope 2 database adapter05:58
bradallen(it was installed via Ubuntu's package manager)05:58
srichteryou need the Zope 3 database adapter05:58
bradallenOk, I didn't see one in my package manager. I guess I will look elsewhere for it.05:59
bradallenThanks.06:00
srichterlook at svn.zope.org06:03
*** srichter has quit IRC06:10
*** srichter has joined #zope3-dev06:12
*** xenru has quit IRC06:14
*** srichter has quit IRC06:14
*** srichter has joined #zope3-dev06:23
*** ChanServ sets mode: +o srichter06:23
*** benji has quit IRC07:22
*** newpers has joined #zope3-dev07:52
*** mp has joined #zope3-dev08:00
*** newpers has quit IRC08:04
*** srichter has quit IRC08:31
*** srichter has joined #zope3-dev08:31
*** ChanServ sets mode: +o srichter08:31
*** sm has quit IRC08:54
*** sashav has quit IRC09:01
*** agroszer has joined #zope3-dev09:11
*** hdima has joined #zope3-dev09:20
*** lucia12345 has quit IRC09:27
*** zagy has joined #zope3-dev09:33
*** vlado has quit IRC10:03
*** Aiste has quit IRC10:05
*** d2m has quit IRC10:06
*** sashav_ has joined #zope3-dev10:06
*** sashav_ is now known as sashav10:06
*** Theuni has joined #zope3-dev10:06
*** Aiste has joined #zope3-dev10:30
*** MJ has quit IRC10:41
*** anguenot has quit IRC11:04
*** MJ has joined #zope3-dev11:10
*** tarek has joined #zope3-dev11:19
*** MrTopf has joined #zope3-dev11:23
*** andres has joined #zope3-dev11:41
*** andrew__ has joined #zope3-dev12:06
*** andrew_m has quit IRC12:06
*** andrew__ is now known as andrew_m12:17
*** andres_ has joined #zope3-dev12:22
*** j-w has joined #zope3-dev12:26
*** j-w has quit IRC12:30
*** j-w has joined #zope3-dev12:30
*** stub has joined #zope3-dev12:36
*** andres has quit IRC12:40
*** mkerrin has joined #zope3-dev12:42
*** xenru has joined #zope3-dev12:57
*** ignas has joined #zope3-dev13:05
*** J1m has joined #zope3-dev13:12
*** alga has joined #zope3-dev13:35
*** jinty has joined #zope3-dev13:45
*** srichter has quit IRC13:49
*** srichter has joined #zope3-dev13:51
*** stub has quit IRC13:53
*** ChanServ sets mode: +o srichter14:05
*** jack-e has joined #zope3-dev14:08
*** J1m has quit IRC14:13
*** _tiredbones has joined #zope3-dev14:14
*** j-w has quit IRC14:15
*** _tiredbones has left #zope3-dev14:23
*** tiredbones2 has joined #zope3-dev14:28
*** mgedmin has joined #zope3-dev14:32
*** andres_ is now known as andres14:34
*** zbir has quit IRC14:50
*** philiKON has joined #zope3-dev14:53
*** faassen has joined #zope3-dev15:01
*** jhauser has joined #zope3-dev15:02
*** BjornT has joined #zope3-dev15:08
*** anguenot has joined #zope3-dev15:16
*** anguenot has joined #zope3-dev15:17
*** anguenot has quit IRC15:17
*** anguenot has joined #zope3-dev15:17
*** drzoltron_ has joined #zope3-dev15:18
drzoltron_faassen: ayt ?15:19
faassendrzoltron_: sort of.15:25
drzoltron_faassen: good ! ;)check this: http://www.flickr.com/photos/bsnizek/59971133/15:25
faassendrzoltron_: heh, cool. :)15:27
srichteruuh, this is a nice logo15:28
srichteris that copyrighted? :-)15:28
drzoltron_faassen: discovered it recently on a bike trip with my son ;)15:28
faassendrzoltron_: cool. :)15:28
drzoltron_srichter: I don't know, looks like their corporate identity, they use the same font everywhere: http://www.flickr.com/photos/bsnizek/59971133/15:29
drzoltron_even on their site: http://www.amager-strand.dk/ ;)15:29
philiKONnice picture, drzoltron_15:29
drzoltron_the latter link shows the Five Memorial during opening hours ! ;)15:29
drzoltron_Actually it's called Strandstation 515:30
philiKONhdima, i picked up somewhere that you wanted to look at zpkgtools for top-level module capabilities?15:31
*** angelo_ has joined #zope3-dev15:35
hdimaphiliKON: Hmm... no :-)15:43
*** bradb has joined #zope3-dev15:45
*** BjornT has quit IRC15:50
philiKONhdima, ok :)15:51
philiKONjust making sure15:51
*** zbir has joined #zope3-dev15:56
*** BjornT has joined #zope3-dev15:59
*** benji has joined #zope3-dev16:18
philiKONhey benji16:19
benjihey16:19
*** vlado has joined #zope3-dev16:21
*** stub has joined #zope3-dev16:31
*** dman13 has joined #zope3-dev16:49
agroszersrichter: ayt ?16:50
srichteryes16:50
srichteragroszer: pong16:50
agroszerregarding "ServerControlForm.html / Restart, Shutdown does not work" should I fill a collector issue?16:50
srichteryes16:51
agroszerOK, I'll do it16:51
agroszerI have one more, but can't decide whether it's small bug or an enhancement17:10
agroszerit affects zope.app.appsetup.bootstrap17:11
srichterok17:13
*** sashav has quit IRC17:13
agroszerI wrote a mail about it ("[Zope3-dev] zope.app.appsetup.bootstrap proposal")17:14
agroszerwhat do you say, file or forget?17:15
srichteryeah, you can file that17:16
agroszerok17:17
*** philiKON has quit IRC17:19
*** natea has quit IRC17:21
*** strichter has joined #zope3-dev17:30
*** srichter has quit IRC17:31
*** strichter is now known as srichter17:32
*** ChanServ sets mode: +o srichter17:32
*** hdima has quit IRC17:38
*** natea has joined #zope3-dev17:43
*** alga has quit IRC18:05
*** zagy has quit IRC18:08
*** ballen has quit IRC18:13
*** sashav has joined #zope3-dev18:20
*** jhauser_ has joined #zope3-dev18:21
*** angelo_ has quit IRC18:34
*** jhauser has quit IRC18:35
mgedminbenji, are you there?18:42
benjiyep18:42
mgedminI think I found a bug in testbrowser/browser.py18:42
mgedminthe 'contents' property skips everything up to and including the first blank line18:43
*** sm has joined #zope3-dev18:43
mgedmin(apparently it wants to skip the headers)18:43
benjihmm18:43
mgedminhowever in my experiments mechanize's read() returns just the body, with no headers18:43
mgedminthus, if the document doesn't start with a blank line, bad things happen18:43
mgedminin z3 almost all documents start with a blank line, thanks to tal/metal18:44
benjican you provide a minimal test case that demonstrates the bug, so I can reproduce/fix it18:44
mgedminin z3?  let me try...18:44
benjimgedmin, feel free to hack on zope.testbrowser/README.txt and related files (see the resources) to create your test case18:45
srichteryeah, that is true; if you don't start with headers the testbrowser will not work18:49
srichterthe loop that removes the headers will run to the first empty line18:49
benjihmm, so we need to figure out if mechanize has changed, or what18:49
srichterI guess the thing to do would be to inspect the first line to see whether headers were passed in18:49
mgedminperhaps it is not a problem with testbrowser.testing.Browser, but it is a problem with testbrowser.browser.Browser?18:49
srichterbenji: no, it has little to do with mechanize18:50
srichtermaybe it does18:50
benjimgedmin, that's possible, but they are pretty similar18:50
mgedminI am now using the version of mechanize (and all dependencies) that are in the Zope3 checkout18:50
srichterlet me see where the line in question is18:50
srichteruuh, you are right18:50
srichterthe line is in browser.py18:51
srichterthat means if you use mechanize directly without the publisher then bad things happen :-)18:51
srichterI think the header removal code should move to testing.py18:51
benjisrichter, actually I think the bug is on line 64 of testing.py18:52
benji(or there-abouts :))18:53
srichterno, because there you construct the request18:53
srichterbut the problem is with the response18:53
srichterthe publisher's contents is headers+body18:53
srichterwhen using urllib2 the contents is just body18:53
* mgedmin discovers his z3 sandbox is broken: Module zope.app has no global pagelet18:54
benjiright, but then use response = self.caller, and that should return the same thing as a real request would18:54
benjireally?18:54
srichtermgedmin: just delete the package-includes ZCML files and type make18:54
srichterbenji: but it does not18:54
benjihmm18:54
benjiso a stand-along testbrowser won't see any headers?18:55
srichterI am positive on that because I ran into this same thing with the static APIDOC generator18:55
srichterright18:55
benjiif so, I'd say it needs to put them in the response from urllib2 so, they are consistent18:55
benji(or remove them from the publisher response and make it get the headers in some other way)18:55
mgedminah zopeskel!18:56
mgedminthat's evil18:56
benjimgedmin, welcome to the club :/18:56
mgedminI thought that if 'svn st' showed no unknown files, then I had no extra package includes18:56
srichtermgedmin: yeah, a little bit18:56
srichterbenji: right that be good18:56
* mgedmin does rm zopeskel/etc/package-includes/*18:56
mgedmin && make18:56
benjimgedmin, you can also make clean && make (IIRC)18:57
benjiso, any takers on normallizing the publisher/urllib2 back ends to testbrowser, or should I work on it?18:58
*** vlado has quit IRC18:59
srichterfeel free to do it :-)18:59
benjithanks... :)18:59
mgedminhey, what happened to the zope test runner?19:01
mgedminI cannot filter test files any more19:01
mgedminah, -s nowadays takes _package names_, not _subdirectories_19:02
benjiright19:02
srichteryeah, I really do not like that19:03
srichterI cannot use tabs anymore19:03
mgedminthe coolest thing is that the new test.py has no if __name__ == '__main__' check19:05
benjisrichter, you might be able to use (some combination of) the path related options, but I doubt it would be convenient19:05
mgedminand if you try to import, e.g. testbrowser (which wants test.pystone), it starts running 6000+ tests19:05
mgedminduring import time19:05
mgedminfun fun fun19:05
srichtereek, really?19:06
srichterit does not just look at the package?19:06
benjido what?  If I do ./test.py -s zope.testbrowser it runs the right tests19:06
*** MrTopf has quit IRC19:06
srichterbenji: so the latest selenium code tells me that they are now using XML-RPC19:06
benjisrichter, hmm, interesting19:07
benjithat should make it easier19:07
mgedminbenji, I have a reproducible test case for you19:07
mgedminjust add '>>> print browser.contents' to testbrowser/over_the_wire.txt19:07
benjiok, great, I'm working on it now19:07
mgedminyou will see that it prints an empty string19:07
mgedminsince google's home page contains no blank lines19:07
benjiadd it after which line?19:08
benjioh, after the open, ok19:08
agroszerI'm digging in the collector issue 451/"OrderedMultiSelectWidget problem"19:34
agroszerI need some help19:34
agroszerI think the problem lies here in the different signature of CustomWidgetFactory and CustomSequenceWidgetFactory19:35
agroszerjaj, CustomSequenceWidgetFactory does not adhere to the IViewFactory interface, which it implements19:38
agroszeron the other hand ItemsEditWidgetBase needs 3 parameters...19:40
agroszersimple widgets take 219:41
agroszerany ideas?19:42
*** MJ has quit IRC19:43
*** sashav has quit IRC19:44
agroszersrichter: ayt ?19:45
*** hazmat has joined #zope3-dev19:51
*** sm has quit IRC19:58
*** BjornT_ has joined #zope3-dev20:10
srichteragroszer: I am here20:14
agroszeryes20:14
agroszerany ideas/hints for the subject?20:15
srichterno20:17
srichterI know what the issue is about, but I have not thought about solutions yet20:17
srichterbasically, you have to generalize the CustomWidgetFactory somehow20:17
agroszerI think somehow a distinction should be made between the 2 factories20:17
agroszerthen I could pass different parameters20:18
agroszerI'll think about it20:20
agroszernow I have to go, get some food and rest20:20
srichteryou could also support flexible parameters using *args and **kw20:20
agroszerok20:21
*** BjornT has quit IRC20:23
*** drzoltron_ has quit IRC20:27
*** BjornT_ has quit IRC20:33
*** faassen has quit IRC20:34
*** alga has joined #zope3-dev20:46
*** sashav has joined #zope3-dev20:49
*** bradb has quit IRC20:58
*** MJ has joined #zope3-dev21:07
*** hazmat_ has joined #zope3-dev21:18
*** BjornT has joined #zope3-dev21:22
*** Aiste has quit IRC21:22
*** agroszer has quit IRC21:23
*** mkerrin has left #zope3-dev21:24
*** bradb has joined #zope3-dev21:36
*** Aiste has joined #zope3-dev21:45
*** anguenot has quit IRC21:46
*** zbir has quit IRC21:48
*** andres has quit IRC21:55
*** Laaapin has joined #zope3-dev21:57
LaaapinHello!21:57
benjihello21:57
LaaapinI've read a part of Zope3Book, and it talks about Services and utililities21:58
Laaapinutilities...21:58
Laaapinbut i've been told that services were no more...21:58
Laaapinis it true?22:00
benjiLaaapin, right, all the services were converted into utilities22:04
Laaapin!!!22:10
Laaapinok, it makes sense with all the code i've read.22:10
Laaapinthx!22:11
benjiNP22:13
*** zbir has joined #zope3-dev22:13
*** alga has quit IRC22:25
*** vlado has joined #zope3-dev22:37
*** ignas has quit IRC22:49
*** mgedmin has quit IRC22:50
*** Laaapin has quit IRC22:59
*** sashav has quit IRC23:09
*** sashav has joined #zope3-dev23:09
*** sm has joined #zope3-dev23:29
*** sm has left #zope3-dev23:41

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