| *** apoirier has quit IRC | 00:04 | |
| *** mp has joined #zope3-dev | 00:24 | |
| *** jhauser has quit IRC | 00:25 | |
| *** J1m has quit IRC | 00:27 | |
| *** bradallen has joined #zope3-dev | 00:50 | |
| bradallen | is this room an appropriate place to ask Zope3 user questions, or is it only for those developing Zope itself? | 00:52 |
|---|---|---|
| *** tarek has quit IRC | 00:53 | |
| *** Severian has joined #zope3-dev | 00:55 | |
| bradallen | from 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 |
| bradallen | In the Zope 3 DG, ch 14, Adding Views for Content Objects | 00:58 |
| bradallen | the message.py file | 00:58 |
| bradallen | class MessageDetails | 00:58 |
| bradallen | there is a line which confuses me | 00:59 |
| *** natea|away is now known as natea | 00:59 | |
| bradallen | creators = ICMFDublinCore(self.context).creators | 00:59 |
| bradallen | Since ICMFDublinCore is an interface, why is it being instantiated like a class? | 00:59 |
| bradallen | When I look at the source for ICMFDublinCore, I see there is no method called "creators" but there is one called "Creators" | 01:00 |
| bradallen | oops, I mean "Creator" not "Creators" | 01:01 |
| *** philiKON has joined #zope3-dev | 01:02 | |
| *** sashav has quit IRC | 01:20 | |
| *** sashav has joined #zope3-dev | 01:21 | |
| *** stub has quit IRC | 01:21 | |
| *** yota has quit IRC | 01:26 | |
| sm | bradallen: this is a good place for all zope 3 questions.. it seems quiet just now though | 01:27 |
| sm | I'll take a stab at it | 01:28 |
| sm | invoking an interface class like that is how you request an adapter from some object to the interface | 01:29 |
| sm | I believe | 01:29 |
| *** philiKON has quit IRC | 01:29 | |
| bradallen | Thanks for the reply. | 01:31 |
| sm | also ask srichter when he comes back, I think that is his book | 01:33 |
| bradallen | yes, it's his book I'm reading | 01:33 |
| bradallen | I have the other book on order | 01:33 |
| bradallen | I don't recall reading an explanation of that in the Zope 3 DG. The chapter on interfaces is very short. | 01:34 |
| bradallen | I couldn't find anything about it in the online help. | 01:35 |
| sm | I just read philikon's, and it was explained there | 01:35 |
| bradallen | that explains it. I'm hearing that book is complementary to the Zope 3 DG | 01:35 |
| sm | me too | 01:36 |
| sm | I want to read that one next | 01:36 |
| sm | I'd rather read a 3.1 version though | 01:36 |
| bradallen | does philikon's book have anything about using database adapters? | 01:38 |
| bradallen | that's another thing I'm trying to figure out now. | 01:38 |
| * sm checks.. | 01:38 | |
| sm | no I don't think it does | 01:38 |
| bradallen | I'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 mysqlda | 01:39 |
| bradallen | that may be a question for the mailing list | 01:40 |
| sm | I think you do want to use a DA, to help with threading etc. | 01:40 |
| bradallen | okay, thanks. | 01:40 |
| sm | caching, etc | 01:40 |
| *** mp has quit IRC | 01:47 | |
| *** anguenot has quit IRC | 01:57 | |
| *** Severian has quit IRC | 02:03 | |
| *** ignas has quit IRC | 02:30 | |
| *** zbir has joined #zope3-dev | 02:31 | |
| *** mp has joined #zope3-dev | 02:52 | |
| *** anguenot has joined #zope3-dev | 03:14 | |
| *** mp has quit IRC | 03:25 | |
| *** benji has joined #zope3-dev | 04:18 | |
| srichter | bradallen: calling an interface is equivalent to looking up an adapter | 04:50 |
| srichter | that's part of the Python Interface PEP | 04:50 |
| bradallen | so 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 |
| bradallen | I'm still don't really understand adapters. | 05:27 |
| benji | bradallen, you're creating an adapter /from/ self.context to something that implements ICMFDublinCore | 05:29 |
| *** newpers has quit IRC | 05:33 | |
| bradallen | ah, that makes a little more sense | 05:36 |
| bradallen | I need to go find the source for the context class to understand this better. | 05:37 |
| *** xenru has quit IRC | 05:38 | |
| *** xenru has joined #zope3-dev | 05:39 | |
| bradallen | I'm having a bit of trouble getting Zope 3.1 to startup after installing MySQLDA. | 05:57 |
| bradallen | Here 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 |
| bradallen | This is similar to the error I get when I try to import ZMySQLDA from the Python interactive prompt. | 05:58 |
| bradallen | Does this database adapter work with Zope 3? Maybe I should just remove it. | 05:58 |
| srichter | you installed the Zope 2 database adapter | 05:58 |
| bradallen | (it was installed via Ubuntu's package manager) | 05:58 |
| srichter | you need the Zope 3 database adapter | 05:58 |
| bradallen | Ok, I didn't see one in my package manager. I guess I will look elsewhere for it. | 05:59 |
| bradallen | Thanks. | 06:00 |
| srichter | look at svn.zope.org | 06:03 |
| *** srichter has quit IRC | 06:10 | |
| *** srichter has joined #zope3-dev | 06:12 | |
| *** xenru has quit IRC | 06:14 | |
| *** srichter has quit IRC | 06:14 | |
| *** srichter has joined #zope3-dev | 06:23 | |
| *** ChanServ sets mode: +o srichter | 06:23 | |
| *** benji has quit IRC | 07:22 | |
| *** newpers has joined #zope3-dev | 07:52 | |
| *** mp has joined #zope3-dev | 08:00 | |
| *** newpers has quit IRC | 08:04 | |
| *** srichter has quit IRC | 08:31 | |
| *** srichter has joined #zope3-dev | 08:31 | |
| *** ChanServ sets mode: +o srichter | 08:31 | |
| *** sm has quit IRC | 08:54 | |
| *** sashav has quit IRC | 09:01 | |
| *** agroszer has joined #zope3-dev | 09:11 | |
| *** hdima has joined #zope3-dev | 09:20 | |
| *** lucia12345 has quit IRC | 09:27 | |
| *** zagy has joined #zope3-dev | 09:33 | |
| *** vlado has quit IRC | 10:03 | |
| *** Aiste has quit IRC | 10:05 | |
| *** d2m has quit IRC | 10:06 | |
| *** sashav_ has joined #zope3-dev | 10:06 | |
| *** sashav_ is now known as sashav | 10:06 | |
| *** Theuni has joined #zope3-dev | 10:06 | |
| *** Aiste has joined #zope3-dev | 10:30 | |
| *** MJ has quit IRC | 10:41 | |
| *** anguenot has quit IRC | 11:04 | |
| *** MJ has joined #zope3-dev | 11:10 | |
| *** tarek has joined #zope3-dev | 11:19 | |
| *** MrTopf has joined #zope3-dev | 11:23 | |
| *** andres has joined #zope3-dev | 11:41 | |
| *** andrew__ has joined #zope3-dev | 12:06 | |
| *** andrew_m has quit IRC | 12:06 | |
| *** andrew__ is now known as andrew_m | 12:17 | |
| *** andres_ has joined #zope3-dev | 12:22 | |
| *** j-w has joined #zope3-dev | 12:26 | |
| *** j-w has quit IRC | 12:30 | |
| *** j-w has joined #zope3-dev | 12:30 | |
| *** stub has joined #zope3-dev | 12:36 | |
| *** andres has quit IRC | 12:40 | |
| *** mkerrin has joined #zope3-dev | 12:42 | |
| *** xenru has joined #zope3-dev | 12:57 | |
| *** ignas has joined #zope3-dev | 13:05 | |
| *** J1m has joined #zope3-dev | 13:12 | |
| *** alga has joined #zope3-dev | 13:35 | |
| *** jinty has joined #zope3-dev | 13:45 | |
| *** srichter has quit IRC | 13:49 | |
| *** srichter has joined #zope3-dev | 13:51 | |
| *** stub has quit IRC | 13:53 | |
| *** ChanServ sets mode: +o srichter | 14:05 | |
| *** jack-e has joined #zope3-dev | 14:08 | |
| *** J1m has quit IRC | 14:13 | |
| *** _tiredbones has joined #zope3-dev | 14:14 | |
| *** j-w has quit IRC | 14:15 | |
| *** _tiredbones has left #zope3-dev | 14:23 | |
| *** tiredbones2 has joined #zope3-dev | 14:28 | |
| *** mgedmin has joined #zope3-dev | 14:32 | |
| *** andres_ is now known as andres | 14:34 | |
| *** zbir has quit IRC | 14:50 | |
| *** philiKON has joined #zope3-dev | 14:53 | |
| *** faassen has joined #zope3-dev | 15:01 | |
| *** jhauser has joined #zope3-dev | 15:02 | |
| *** BjornT has joined #zope3-dev | 15:08 | |
| *** anguenot has joined #zope3-dev | 15:16 | |
| *** anguenot has joined #zope3-dev | 15:17 | |
| *** anguenot has quit IRC | 15:17 | |
| *** anguenot has joined #zope3-dev | 15:17 | |
| *** drzoltron_ has joined #zope3-dev | 15:18 | |
| drzoltron_ | faassen: ayt ? | 15:19 |
| faassen | drzoltron_: sort of. | 15:25 |
| drzoltron_ | faassen: good ! ;)check this: http://www.flickr.com/photos/bsnizek/59971133/ | 15:25 |
| faassen | drzoltron_: heh, cool. :) | 15:27 |
| srichter | uuh, this is a nice logo | 15:28 |
| srichter | is that copyrighted? :-) | 15:28 |
| drzoltron_ | faassen: discovered it recently on a bike trip with my son ;) | 15:28 |
| faassen | drzoltron_: 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 |
| philiKON | nice picture, drzoltron_ | 15:29 |
| drzoltron_ | the latter link shows the Five Memorial during opening hours ! ;) | 15:29 |
| drzoltron_ | Actually it's called Strandstation 5 | 15:30 |
| philiKON | hdima, i picked up somewhere that you wanted to look at zpkgtools for top-level module capabilities? | 15:31 |
| *** angelo_ has joined #zope3-dev | 15:35 | |
| hdima | philiKON: Hmm... no :-) | 15:43 |
| *** bradb has joined #zope3-dev | 15:45 | |
| *** BjornT has quit IRC | 15:50 | |
| philiKON | hdima, ok :) | 15:51 |
| philiKON | just making sure | 15:51 |
| *** zbir has joined #zope3-dev | 15:56 | |
| *** BjornT has joined #zope3-dev | 15:59 | |
| *** benji has joined #zope3-dev | 16:18 | |
| philiKON | hey benji | 16:19 |
| benji | hey | 16:19 |
| *** vlado has joined #zope3-dev | 16:21 | |
| *** stub has joined #zope3-dev | 16:31 | |
| *** dman13 has joined #zope3-dev | 16:49 | |
| agroszer | srichter: ayt ? | 16:50 |
| srichter | yes | 16:50 |
| srichter | agroszer: pong | 16:50 |
| agroszer | regarding "ServerControlForm.html / Restart, Shutdown does not work" should I fill a collector issue? | 16:50 |
| srichter | yes | 16:51 |
| agroszer | OK, I'll do it | 16:51 |
| agroszer | I have one more, but can't decide whether it's small bug or an enhancement | 17:10 |
| agroszer | it affects zope.app.appsetup.bootstrap | 17:11 |
| srichter | ok | 17:13 |
| *** sashav has quit IRC | 17:13 | |
| agroszer | I wrote a mail about it ("[Zope3-dev] zope.app.appsetup.bootstrap proposal") | 17:14 |
| agroszer | what do you say, file or forget? | 17:15 |
| srichter | yeah, you can file that | 17:16 |
| agroszer | ok | 17:17 |
| *** philiKON has quit IRC | 17:19 | |
| *** natea has quit IRC | 17:21 | |
| *** strichter has joined #zope3-dev | 17:30 | |
| *** srichter has quit IRC | 17:31 | |
| *** strichter is now known as srichter | 17:32 | |
| *** ChanServ sets mode: +o srichter | 17:32 | |
| *** hdima has quit IRC | 17:38 | |
| *** natea has joined #zope3-dev | 17:43 | |
| *** alga has quit IRC | 18:05 | |
| *** zagy has quit IRC | 18:08 | |
| *** ballen has quit IRC | 18:13 | |
| *** sashav has joined #zope3-dev | 18:20 | |
| *** jhauser_ has joined #zope3-dev | 18:21 | |
| *** angelo_ has quit IRC | 18:34 | |
| *** jhauser has quit IRC | 18:35 | |
| mgedmin | benji, are you there? | 18:42 |
| benji | yep | 18:42 |
| mgedmin | I think I found a bug in testbrowser/browser.py | 18:42 |
| mgedmin | the 'contents' property skips everything up to and including the first blank line | 18:43 |
| *** sm has joined #zope3-dev | 18:43 | |
| mgedmin | (apparently it wants to skip the headers) | 18:43 |
| benji | hmm | 18:43 |
| mgedmin | however in my experiments mechanize's read() returns just the body, with no headers | 18:43 |
| mgedmin | thus, if the document doesn't start with a blank line, bad things happen | 18:43 |
| mgedmin | in z3 almost all documents start with a blank line, thanks to tal/metal | 18:44 |
| benji | can you provide a minimal test case that demonstrates the bug, so I can reproduce/fix it | 18:44 |
| mgedmin | in z3? let me try... | 18:44 |
| benji | mgedmin, feel free to hack on zope.testbrowser/README.txt and related files (see the resources) to create your test case | 18:45 |
| srichter | yeah, that is true; if you don't start with headers the testbrowser will not work | 18:49 |
| srichter | the loop that removes the headers will run to the first empty line | 18:49 |
| benji | hmm, so we need to figure out if mechanize has changed, or what | 18:49 |
| srichter | I guess the thing to do would be to inspect the first line to see whether headers were passed in | 18:49 |
| mgedmin | perhaps it is not a problem with testbrowser.testing.Browser, but it is a problem with testbrowser.browser.Browser? | 18:49 |
| srichter | benji: no, it has little to do with mechanize | 18:50 |
| srichter | maybe it does | 18:50 |
| benji | mgedmin, that's possible, but they are pretty similar | 18:50 |
| mgedmin | I am now using the version of mechanize (and all dependencies) that are in the Zope3 checkout | 18:50 |
| srichter | let me see where the line in question is | 18:50 |
| srichter | uuh, you are right | 18:50 |
| srichter | the line is in browser.py | 18:51 |
| srichter | that means if you use mechanize directly without the publisher then bad things happen :-) | 18:51 |
| srichter | I think the header removal code should move to testing.py | 18:51 |
| benji | srichter, actually I think the bug is on line 64 of testing.py | 18:52 |
| benji | (or there-abouts :)) | 18:53 |
| srichter | no, because there you construct the request | 18:53 |
| srichter | but the problem is with the response | 18:53 |
| srichter | the publisher's contents is headers+body | 18:53 |
| srichter | when using urllib2 the contents is just body | 18:53 |
| * mgedmin discovers his z3 sandbox is broken: Module zope.app has no global pagelet | 18:54 | |
| benji | right, but then use response = self.caller, and that should return the same thing as a real request would | 18:54 |
| benji | really? | 18:54 |
| srichter | mgedmin: just delete the package-includes ZCML files and type make | 18:54 |
| srichter | benji: but it does not | 18:54 |
| benji | hmm | 18:54 |
| benji | so a stand-along testbrowser won't see any headers? | 18:55 |
| srichter | I am positive on that because I ran into this same thing with the static APIDOC generator | 18:55 |
| srichter | right | 18:55 |
| benji | if so, I'd say it needs to put them in the response from urllib2 so, they are consistent | 18:55 |
| benji | (or remove them from the publisher response and make it get the headers in some other way) | 18:55 |
| mgedmin | ah zopeskel! | 18:56 |
| mgedmin | that's evil | 18:56 |
| benji | mgedmin, welcome to the club :/ | 18:56 |
| mgedmin | I thought that if 'svn st' showed no unknown files, then I had no extra package includes | 18:56 |
| srichter | mgedmin: yeah, a little bit | 18:56 |
| srichter | benji: right that be good | 18:56 |
| * mgedmin does rm zopeskel/etc/package-includes/* | 18:56 | |
| mgedmin | && make | 18:56 |
| benji | mgedmin, you can also make clean && make (IIRC) | 18:57 |
| benji | so, any takers on normallizing the publisher/urllib2 back ends to testbrowser, or should I work on it? | 18:58 |
| *** vlado has quit IRC | 18:59 | |
| srichter | feel free to do it :-) | 18:59 |
| benji | thanks... :) | 18:59 |
| mgedmin | hey, what happened to the zope test runner? | 19:01 |
| mgedmin | I cannot filter test files any more | 19:01 |
| mgedmin | ah, -s nowadays takes _package names_, not _subdirectories_ | 19:02 |
| benji | right | 19:02 |
| srichter | yeah, I really do not like that | 19:03 |
| srichter | I cannot use tabs anymore | 19:03 |
| mgedmin | the coolest thing is that the new test.py has no if __name__ == '__main__' check | 19:05 |
| benji | srichter, you might be able to use (some combination of) the path related options, but I doubt it would be convenient | 19:05 |
| mgedmin | and if you try to import, e.g. testbrowser (which wants test.pystone), it starts running 6000+ tests | 19:05 |
| mgedmin | during import time | 19:05 |
| mgedmin | fun fun fun | 19:05 |
| srichter | eek, really? | 19:06 |
| srichter | it does not just look at the package? | 19:06 |
| benji | do what? If I do ./test.py -s zope.testbrowser it runs the right tests | 19:06 |
| *** MrTopf has quit IRC | 19:06 | |
| srichter | benji: so the latest selenium code tells me that they are now using XML-RPC | 19:06 |
| benji | srichter, hmm, interesting | 19:07 |
| benji | that should make it easier | 19:07 |
| mgedmin | benji, I have a reproducible test case for you | 19:07 |
| mgedmin | just add '>>> print browser.contents' to testbrowser/over_the_wire.txt | 19:07 |
| benji | ok, great, I'm working on it now | 19:07 |
| mgedmin | you will see that it prints an empty string | 19:07 |
| mgedmin | since google's home page contains no blank lines | 19:07 |
| benji | add it after which line? | 19:08 |
| benji | oh, after the open, ok | 19:08 |
| agroszer | I'm digging in the collector issue 451/"OrderedMultiSelectWidget problem" | 19:34 |
| agroszer | I need some help | 19:34 |
| agroszer | I think the problem lies here in the different signature of CustomWidgetFactory and CustomSequenceWidgetFactory | 19:35 |
| agroszer | jaj, CustomSequenceWidgetFactory does not adhere to the IViewFactory interface, which it implements | 19:38 |
| agroszer | on the other hand ItemsEditWidgetBase needs 3 parameters... | 19:40 |
| agroszer | simple widgets take 2 | 19:41 |
| agroszer | any ideas? | 19:42 |
| *** MJ has quit IRC | 19:43 | |
| *** sashav has quit IRC | 19:44 | |
| agroszer | srichter: ayt ? | 19:45 |
| *** hazmat has joined #zope3-dev | 19:51 | |
| *** sm has quit IRC | 19:58 | |
| *** BjornT_ has joined #zope3-dev | 20:10 | |
| srichter | agroszer: I am here | 20:14 |
| agroszer | yes | 20:14 |
| agroszer | any ideas/hints for the subject? | 20:15 |
| srichter | no | 20:17 |
| srichter | I know what the issue is about, but I have not thought about solutions yet | 20:17 |
| srichter | basically, you have to generalize the CustomWidgetFactory somehow | 20:17 |
| agroszer | I think somehow a distinction should be made between the 2 factories | 20:17 |
| agroszer | then I could pass different parameters | 20:18 |
| agroszer | I'll think about it | 20:20 |
| agroszer | now I have to go, get some food and rest | 20:20 |
| srichter | you could also support flexible parameters using *args and **kw | 20:20 |
| agroszer | ok | 20:21 |
| *** BjornT has quit IRC | 20:23 | |
| *** drzoltron_ has quit IRC | 20:27 | |
| *** BjornT_ has quit IRC | 20:33 | |
| *** faassen has quit IRC | 20:34 | |
| *** alga has joined #zope3-dev | 20:46 | |
| *** sashav has joined #zope3-dev | 20:49 | |
| *** bradb has quit IRC | 20:58 | |
| *** MJ has joined #zope3-dev | 21:07 | |
| *** hazmat_ has joined #zope3-dev | 21:18 | |
| *** BjornT has joined #zope3-dev | 21:22 | |
| *** Aiste has quit IRC | 21:22 | |
| *** agroszer has quit IRC | 21:23 | |
| *** mkerrin has left #zope3-dev | 21:24 | |
| *** bradb has joined #zope3-dev | 21:36 | |
| *** Aiste has joined #zope3-dev | 21:45 | |
| *** anguenot has quit IRC | 21:46 | |
| *** zbir has quit IRC | 21:48 | |
| *** andres has quit IRC | 21:55 | |
| *** Laaapin has joined #zope3-dev | 21:57 | |
| Laaapin | Hello! | 21:57 |
| benji | hello | 21:57 |
| Laaapin | I've read a part of Zope3Book, and it talks about Services and utililities | 21:58 |
| Laaapin | utilities... | 21:58 |
| Laaapin | but i've been told that services were no more... | 21:58 |
| Laaapin | is it true? | 22:00 |
| benji | Laaapin, right, all the services were converted into utilities | 22:04 |
| Laaapin | !!! | 22:10 |
| Laaapin | ok, it makes sense with all the code i've read. | 22:10 |
| Laaapin | thx! | 22:11 |
| benji | NP | 22:13 |
| *** zbir has joined #zope3-dev | 22:13 | |
| *** alga has quit IRC | 22:25 | |
| *** vlado has joined #zope3-dev | 22:37 | |
| *** ignas has quit IRC | 22:49 | |
| *** mgedmin has quit IRC | 22:50 | |
| *** Laaapin has quit IRC | 22:59 | |
| *** sashav has quit IRC | 23:09 | |
| *** sashav has joined #zope3-dev | 23:09 | |
| *** sm has joined #zope3-dev | 23:29 | |
| *** sm has left #zope3-dev | 23:41 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!