| *** sashav has quit IRC | 00:00 | |
| *** sashav has joined #zope3-dev | 00:01 | |
| *** sashav has quit IRC | 00:02 | |
| J1m | anyone wanna test the source release? | 00:22 |
|---|---|---|
| lifeless | J1m: no, but I have a small white paper I'd like you to read ;0 | 00:25 |
| J1m | uh, ok | 00:26 |
| lifeless | hah | 00:26 |
| lifeless | its on testing, and test suite speed etc | 00:26 |
| lifeless | http://people.ubuntu.com/~robertc/interfaceverfication.txt | 00:26 |
| J1m | The requested URL /~robertc/interfaceverfication.txt was not found on this server. | 00:27 |
| lifeless | http://people.ubuntu.com/~robertc/interfaceverification.txt | 00:28 |
| lifeless | ah | 00:28 |
| lifeless | missing i | 00:28 |
| *** jfmoxley has joined #zope3-dev | 00:31 | |
| *** J1m has quit IRC | 01:03 | |
| *** niemeyer has quit IRC | 01:06 | |
| *** jhauser has quit IRC | 01:18 | |
| *** z3noob has joined #zope3-dev | 01:34 | |
| z3noob | hi, new five user here... got a basic interfaces question: how do i have my code ask for an implementation of an interface and not care which implementation it gets? or to put it another way - where do I put the responsibility for creating some actual instance that implements my interface? | 01:39 |
| z3noob | some kind of factory? | 01:40 |
| lifeless | getUtility is a call that can perform service location by interface | 01:40 |
| z3noob | i'll look that up | 01:40 |
| z3noob | is there a better channel for newbie stuff? or is this it? | 01:41 |
| z3noob | hmm i don't think utilities are what i want - these objects i'm working with are typically used only for one request, then thrown away | 01:47 |
| z3noob | and i don't care about their name | 01:48 |
| *** _anguenot has joined #zope3-dev | 02:03 | |
| *** MiUlEr has joined #zope3-dev | 02:03 | |
| z3noob | can i register an adapter for python builtin types? e.g. given a string, adapt it to my interface | 02:05 |
| dman13 | I would think you should be able to do that | 02:11 |
| *** dman13 has quit IRC | 02:11 | |
| z3noob | hmm i would think so too, but i note he didn't say how :-\ | 02:16 |
| z3noob | i tried using <adapter for="str" but doesn't seem to work | 02:22 |
| z3noob | i guess the value of "for" must be an interface | 02:23 |
| z3noob | all the examples in docs do that, anyway | 02:24 |
| z3noob | ah, my zcml is borken anyway ;-) | 02:30 |
| WebMaven | sound like a bad movie: 'Zope3: The Borkening' | 02:34 |
| z3noob | ok my zcml is no longer borken... at least i get no errors on startup... but in test code i can't adapt a string to my interface. rats. | 02:36 |
| *** tiredbones has joined #zope3-dev | 02:41 | |
| z3noob | oh well, try again later. | 02:45 |
| *** z3noob has left #zope3-dev | 02:45 | |
| *** tiredbones has quit IRC | 02:47 | |
| *** yota has quit IRC | 02:57 | |
| *** sashav has joined #zope3-dev | 03:06 | |
| *** tiredbones has joined #zope3-dev | 03:43 | |
| *** deo has quit IRC | 03:55 | |
| *** stub has joined #zope3-dev | 04:01 | |
| tiredbones | If I ever understand zope 3 technology, I will be blessed.It will be awhile before this puzzle is complete. | 04:04 |
| *** hazmat has joined #zope3-dev | 04:22 | |
| *** ChanServ sets mode: +o hazmat | 04:22 | |
| *** natea|calsprint has quit IRC | 04:26 | |
| *** MiUlEr has quit IRC | 05:05 | |
| *** dobee has joined #zope3-dev | 07:10 | |
| *** Volpe has joined #zope3-dev | 07:20 | |
| Volpe | Hi, I was wondering if anyone could tell me how to define roles on Principles stored in a BTreePrincipleSource. I don't quite get it... :\ | 07:21 |
| Volpe | Or mention the source file that would give me a hint. :\ | 07:22 |
| *** dobee has quit IRC | 07:30 | |
| Volpe | No body around? or no body know? | 07:34 |
| Volpe | ... | 07:40 |
| *** dobee has joined #zope3-dev | 07:45 | |
| *** d2m has joined #zope3-dev | 07:47 | |
| Volpe | Can you grant permissions outside of zcml? :\ | 07:48 |
| lifeless | yes | 07:52 |
| lifeless | zcml is just a config language, its all python at the code | 07:52 |
| Volpe | I'm just figuring that out now. | 07:52 |
| Volpe | Where's the api for this stuff? :\ | 07:53 |
| Volpe | or is it that ++apidoc++ thing. | 07:53 |
| Volpe | Ah I think I get it, the role and permission stuff are just zope utilities. | 08:01 |
| Volpe | That are initialized from zcml. | 08:02 |
| *** WebMaven has quit IRC | 08:26 | |
| *** zagy has joined #zope3-dev | 08:47 | |
| *** eins has joined #zope3-dev | 09:04 | |
| eins | hi | 09:04 |
| *** sashav has quit IRC | 09:07 | |
| *** jhauser has joined #zope3-dev | 09:10 | |
| *** rom|zZZ has quit IRC | 09:11 | |
| *** agroszer has joined #zope3-dev | 09:13 | |
| *** hdima has joined #zope3-dev | 09:25 | |
| *** stu1 has joined #zope3-dev | 09:28 | |
| *** hazmat has quit IRC | 09:31 | |
| *** romanofski has joined #zope3-dev | 09:42 | |
| romanofski | moin | 09:43 |
| *** stub has quit IRC | 09:45 | |
| *** hazmat has joined #zope3-dev | 09:47 | |
| *** Volpe has quit IRC | 09:54 | |
| *** Theuni has quit IRC | 09:55 | |
| *** WebMaven has joined #zope3-dev | 09:56 | |
| *** stu1 has quit IRC | 10:04 | |
| *** WebMaven has quit IRC | 10:31 | |
| *** WebMaven has joined #zope3-dev | 10:32 | |
| *** sashav has joined #zope3-dev | 10:33 | |
| *** hazmat has quit IRC | 10:40 | |
| *** hazmat has joined #zope3-dev | 10:43 | |
| *** WebMaven has quit IRC | 11:04 | |
| *** WebMaven has joined #zope3-dev | 11:05 | |
| *** WebMaven_ has joined #zope3-dev | 11:15 | |
| *** stub has joined #zope3-dev | 11:29 | |
| *** WebMaven has quit IRC | 11:37 | |
| *** ignas has joined #zope3-dev | 11:55 | |
| romanofski | does something similar exist like verbose security or is there a way to track, why some permissions seems not to work? | 11:59 |
| romanofski | a ++debug++security or something would be neat | 11:59 |
| *** Aiste has quit IRC | 12:16 | |
| *** ignas is now known as parsifal | 12:24 | |
| *** parsifal is now known as ignas | 12:24 | |
| *** Aiste has joined #zope3-dev | 12:35 | |
| *** philiKON has joined #zope3-dev | 12:37 | |
| *** efge has joined #zope3-dev | 12:38 | |
| *** andres has joined #zope3-dev | 12:38 | |
| *** mgedmin has joined #zope3-dev | 12:38 | |
| *** niemeyer has joined #zope3-dev | 12:50 | |
| *** Hellfried has quit IRC | 12:56 | |
| *** Hellfrie2 has joined #zope3-dev | 12:56 | |
| *** Hellfried has joined #zope3-dev | 12:57 | |
| *** projekt01 has joined #zope3-dev | 12:58 | |
| projekt01 | srichter, ayt? | 12:58 |
| andres | projekt01, btw, your calendar widget is working. I didnt include the css which was necessary for it to work. | 13:06 |
| projekt01 | andres, Ah, cool, do you use it in a project? | 13:09 |
| andres | Yes. | 13:09 |
| andres | But just an inhouse project. | 13:10 |
| projekt01 | cool, if I find out how to package all this libraries with zpkg, I will release it. | 13:12 |
| *** yota has joined #zope3-dev | 13:29 | |
| *** markus_ has joined #zope3-dev | 13:32 | |
| *** mleist has joined #zope3-dev | 13:34 | |
| *** faassen has joined #zope3-dev | 13:43 | |
| *** mkerrin has joined #zope3-dev | 13:45 | |
| SteveA | faassen: aargh. python's optimisation of calling __len__ when doing list(foo) keeps tripping me up! | 13:51 |
| mgedmin | SteveA, what do you do? | 13:51 |
| SteveA | for example, sqlobject's ResultSet has a __len__ that makes an SQL count query | 13:52 |
| faassen | SteveA: I didn't do it! | 13:52 |
| SteveA | faassen: i know! but you're a good recipient of rants! you have a weblog! | 13:52 |
| faassen | SteveA: heh. :) | 13:52 |
| faassen | SteveA: that means I'm a good generator of rants. :) | 13:52 |
| mgedmin | while True: yield random.choice(self.rants) | 13:53 |
| SteveA | so, i want to do $work on __len__ of an object | 13:53 |
| SteveA | and the object is iterable, so it makes sense to say list(object), for example, from a tal:repeat in TALES | 13:54 |
| SteveA | but, tal:repeat will call __len__, even though it doesn't really want to | 13:54 |
| SteveA | there is no way from the object in question to tell if __len__ is a legitimate call worth expending effort on, or an optimisation from list() | 13:54 |
| SteveA | i did manage to look up to the next frame, look in its names and bytecode | 13:55 |
| SteveA | and try to infer if the global list() callable was called last | 13:55 |
| SteveA | but that's kinda flaky | 13:55 |
| SteveA | i think this is a mistake in python development. python should have used a separate slot for "optimize me for list()" | 13:55 |
| SteveA | like __listlen__ | 13:56 |
| *** MrTopf has joined #zope3-dev | 13:58 | |
| faassen | hm. | 13:59 |
| faassen | write it on your blog. :) | 13:59 |
| mgedmin | get a blog, *then* write it | 13:59 |
| SteveA | i have been saying for 18 months "i should have a blog" | 14:00 |
| SteveA | and then i never do anything about it | 14:00 |
| SteveA | i am so lazy | 14:00 |
| SteveA | ah... but i do have a fresh zope3 tree now, so i can look into that HTTP Headers bug that might have been fixed | 14:00 |
| *** andres_ has joined #zope3-dev | 14:01 | |
| *** andres has quit IRC | 14:03 | |
| *** andres_ is now known as andres | 14:03 | |
| *** mleist has quit IRC | 14:03 | |
| lifeless | why does tal:repeat call list(object) rather than iter(object)? | 14:06 |
| philiKON | lifeless, because it's probably been around longer than iter() has | 14:07 |
| philiKON | lifeless, feel free to change it | 14:07 |
| romanofski | does something similar exist like verbose security or is there a way to track, why some permissions seems not to work? | 14:08 |
| romanofski | a ++debug++security or something would be neat | 14:08 |
| *** srichter has quit IRC | 14:09 | |
| philiKON | romanofski, yeah, the Debug skin has a view for the Unauthorized exception that tells you the permission it's lacking | 14:09 |
| philiKON | ++skin++Debug | 14:09 |
| * romanofski tries that | 14:10 | |
| romanofski | hm.. it works with the debug skin, but not with my own skin | 14:12 |
| * projekt01 there is also a debug namespace ++debug++tal or ++debug++source | 14:12 | |
| romanofski | right projekt01, but you can't debug why a user isn't allowed to access a particular page | 14:13 |
| lifeless | philiKON: ok that helps then ;) | 14:14 |
| SteveA | lifeless: i'll look into that too, of course | 14:14 |
| romanofski | something like verboseSecurity in the old zope2 days | 14:14 |
| projekt01 | romanofski, yes, that's true | 14:16 |
| romanofski | philiKON: how does the skin suppose to work, if a user is unauthorized to view an object? are there little tricks or buttons I've to press? | 14:17 |
| projekt01 | romanofski, you can click on the Error view where is reporting unauthorized errors if you enable to traceback unauthorized errors. | 14:17 |
| * romanofski looks for a big red button labeled: "press here and I do what you wan't" *G | 14:17 | |
| philiKON | romanofski, the debug skin simply has a view for the Unauthorized exception | 14:18 |
| philiKON | a special view | 14:18 |
| philiKON | that exposes security details | 14:18 |
| romanofski | okey... i try to look it up | 14:18 |
| andres | romanofski, you can make the debug skin part of your skin. | 14:18 |
| romanofski | just include it in the layers right? | 14:19 |
| lifeless | SteveA: naturally ;) | 14:19 |
| andres | romanofski, yes, i did that, and it works well. | 14:19 |
| philiKON | reminds me of writing that skins+layers = 1 proposal | 14:20 |
| romanofski | sounds like a very good idea andres - thanks :) | 14:20 |
| romanofski | thanks philiKON and projekt01 :) | 14:21 |
| philiKON | np | 14:21 |
| projekt01 | np | 14:21 |
| *** andres_ has joined #zope3-dev | 14:25 | |
| *** andres has quit IRC | 14:28 | |
| *** andres_ is now known as andres | 14:28 | |
| *** mleist has joined #zope3-dev | 14:28 | |
| *** andres_ has joined #zope3-dev | 14:40 | |
| *** mkerrin has quit IRC | 14:41 | |
| *** natea has joined #zope3-dev | 14:44 | |
| *** natea is now known as natea|zZz | 14:47 | |
| *** mgedmin has quit IRC | 14:50 | |
| *** andres has quit IRC | 14:57 | |
| *** andres_ is now known as andres | 14:58 | |
| *** J1m has joined #zope3-dev | 15:07 | |
| *** srichter has joined #zope3-dev | 15:13 | |
| *** ChanServ sets mode: +o srichter | 15:13 | |
| *** natea|zZz has quit IRC | 15:15 | |
| philiKON | J1m, just FYI, i'm updating zope 2.9 branch to the zope 3.2.0b1 tag | 15:22 |
| J1m | Good | 15:23 |
| J1m | I really prefer using revision number in general, but the use of the tag here is convenient. | 15:23 |
| * philiKON agrees | 15:23 | |
| *** mkerrin has joined #zope3-dev | 15:38 | |
| *** eins has quit IRC | 15:52 | |
| *** srichter has quit IRC | 16:00 | |
| *** natea has joined #zope3-dev | 16:01 | |
| *** srichter has joined #zope3-dev | 16:01 | |
| *** ChanServ sets mode: +o srichter | 16:01 | |
| d2m | J1m: are the files at http://www.zope.org/Products/Zope3/3.2.0b1 private on purpose ? | 16:08 |
| J1m | yes | 16:09 |
| d2m | ok, thanks | 16:09 |
| J1m | I'll publish them when I'm ready to announce the release. | 16:09 |
| *** agroszer has quit IRC | 16:16 | |
| *** agroszer has joined #zope3-dev | 16:17 | |
| *** hdima has quit IRC | 16:29 | |
| *** natea is now known as natea|zzz | 16:39 | |
| efge | I'm trying to get a list of subscribers for an event interface, but without "running" them. How would I go about doing that? | 16:53 |
| SteveA | you'd need to dig into the component registries | 16:54 |
| SteveA | i don't believe there is a good API for getting things by interface | 16:54 |
| J1m | Use the subscriptions method on the adapter registry. | 16:54 |
| J1m | If you get hold of the current site, it has an adapters attr which is the registry. | 16:55 |
| J1m | SteveA, for the June release, I'd like to follow up on a suggestion of yours. | 16:56 |
| J1m | I'd like to make explcit objects with methods for component lookup. | 16:56 |
| J1m | (In addition to what we have now.) | 16:56 |
| philiKON | J1m, can you elaborate on that? what are "explicit objects with methods"? | 16:57 |
| J1m | This way, an app could be a bit more explicit about how/where it looks things up. | 16:57 |
| J1m | so, now we use component package methods. | 16:57 |
| philiKON | right | 16:58 |
| J1m | These hide a policy of having thread-specific "sites", | 16:58 |
| J1m | I think it's fine to have such a default policy, but I think it would be good to have the ability to say: "use this particular component source". | 16:59 |
| J1m | In certain contexts you want to use sources other than the default. | 16:59 |
| philiKON | i guess so | 16:59 |
| SteveA | thread-specific sites? | 16:59 |
| philiKON | we already have that, no? | 16:59 |
| J1m | For example, when processing ZCML, you want to use a ZCML-provides source of components. | 17:00 |
| J1m | philiKON, we have bits of this, but it's not as well thought out as it should be. | 17:00 |
| SteveA | this would make the metazcml registry of components more explicit | 17:00 |
| J1m | SteveA, the component methods use a "site". | 17:00 |
| J1m | yes | 17:01 |
| J1m | The definition of site is pluggable. | 17:01 |
| J1m | Zope plugs in a mechanism that uses separate sites for each thread. | 17:01 |
| SteveA | as well as allow various nefarious plans i'd like to try out, like having a source of components for related to something about a particular interaction | 17:01 |
| J1m | yes | 17:01 |
| J1m | which is exactly what Zope does now. | 17:01 |
| J1m | In setting up a request, we set the thread-local site to one traversed to in the request. | 17:02 |
| J1m | At the end of the request, we set the thread-local site back to the global one. | 17:02 |
| efge | J1m: ok I found my subscribers, thanks | 17:04 |
| SteveA | but i think this "component source" would be less than the current zope3 concept of a "site" | 17:06 |
| *** stub has quit IRC | 17:12 | |
| *** J1m has quit IRC | 17:14 | |
| benji | agreed, SteveA; if not, we need a better name then "site" for them | 17:16 |
| SteveA | sites carry a lot of extra stuff now | 17:16 |
| SteveA | like, the expectation of a URL traversal to them | 17:16 |
| SteveA | zodb stuff | 17:16 |
| SteveA | the expectation of a UI | 17:16 |
| SteveA | of mutability | 17:16 |
| SteveA | of having local code | 17:16 |
| SteveA | on launchpad i've had no particular use for the zope3 "site" concept as such, but i do have uses for something that says from where i look up adapters and utilities | 17:17 |
| SteveA | maybe this is a case like with TAL/TALES vs DTML. a less powerful but clearer concept takes you farther. | 17:18 |
| *** dman13 has joined #zope3-dev | 17:24 | |
| *** philiKON has quit IRC | 17:27 | |
| *** philiKON has joined #zope3-dev | 17:29 | |
| zbir | I'd like to contribute another zopectl command that I have to allow for Zope2-like 'zopectl run some_script.py' to allow for easy client scripting. I've got it working here. For stuff like zopeskel binaries, is it just enough to have it and the batch file working? | 17:29 |
| zbir | J1m suggested working on his branch, since it *is* a new feature | 17:30 |
| zbir | just wanted to get some other input. | 17:30 |
| zbir | also, I'm curious why the very slight extra effort isn't made in zopectl debug to put the root container in the locals - I've got a version that does. Saves having to do 'root = debugger.root()' every. single. time. | 17:32 |
| benji | +1 zbir | 17:33 |
| *** J1m has joined #zope3-dev | 17:33 | |
| *** sashav has quit IRC | 17:34 | |
| philiKON | J1m, btw, would you care to explain why exactly we need 'Zope' to be in the tag name? | 17:38 |
| J1m | Because of a bug/missfeature in zpkg. | 17:39 |
| J1m | It constructs the tag name by combining the collection name and the release name. | 17:39 |
| J1m | I didn't find a way to get around that and I didn't want to delay things to fix it. | 17:40 |
| philiKON | J1m, intersting, because MacYET reports that a '2.9.0b1' tag name works fine on zope 2 | 17:45 |
| philiKON | (no Zope- prefix) | 17:45 |
| J1m | weird | 17:48 |
| philiKON | yeah | 17:49 |
| srichter | see Andreas' last checkin | 17:52 |
| srichter | Log message for revision 40597: | 17:52 |
| srichter | we need to pass -r tagname to zpkg | 17:52 |
| philiKON | right | 17:53 |
| philiKON | but that needs to be done anyways, right | 17:53 |
| srichter | oh, ytes, right | 17:53 |
| J1m | Sigh | 17:57 |
| J1m | I'm not allowed to register package info for zope | 17:57 |
| *** jhauser has quit IRC | 17:58 | |
| *** MrTopf has quit IRC | 18:11 | |
| *** projekt01 has quit IRC | 18:21 | |
| J1m | srichter, OK, I've done release steps 1-8,5. | 18:23 |
| J1m | I sent a note to zope3-dev. | 18:23 |
| J1m | I'd be inclined to wait a day to send the message elsewhere. | 18:23 |
| J1m | Can you follow up and send it to ither lists and outlets? | 18:24 |
| J1m | And I think you have to register it with pypi. | 18:24 |
| *** sashav has joined #zope3-dev | 18:30 | |
| *** dobee has quit IRC | 18:33 | |
| agroszer | help, I'm stuck with Pluggable Authentication | 18:33 |
| agroszer | I can't create a working PAU, principal folder, group folder by code | 18:33 |
| agroszer | they are created, registered but don't seem to work | 18:33 |
| agroszer | is there any package/project doing something like this? | 18:33 |
| zbir | define "don't seem to work" | 18:35 |
| *** philiKON has quit IRC | 18:52 | |
| andres | If its interesting: Zope3.2b1 is passing all manual and automated testing here. | 18:52 |
| andres | (zope3.2+psycopgda+sqlos) | 18:52 |
| andres | I mean with my application ;-) | 18:52 |
| andres | Except one thing i had fixed manually in zope3.1 but forgot to report. Im not sure if this is my failure or zope's. What is the preferred way to report a (supposedly) fix of 3 lines? Mail, IRC, or Bugtracker? | 18:55 |
| J1m | The collector | 18:56 |
| *** sashav has quit IRC | 18:59 | |
| *** sashav has joined #zope3-dev | 19:01 | |
| *** _anguenot has quit IRC | 19:02 | |
| srichter | J1m: ok, will do | 19:03 |
| *** _anguenot has joined #zope3-dev | 19:05 | |
| *** mleist has quit IRC | 19:06 | |
| *** sashav has quit IRC | 19:11 | |
| *** mkerrin has left #zope3-dev | 19:16 | |
| *** zagy has quit IRC | 19:36 | |
| *** drzoltron_ has joined #zope3-dev | 19:46 | |
| *** zagy has joined #zope3-dev | 19:47 | |
| *** mgedmin has joined #zope3-dev | 19:54 | |
| *** srichter has quit IRC | 20:00 | |
| *** romanofski is now known as rom|aw | 20:03 | |
| *** agroszer has quit IRC | 20:03 | |
| *** drzoltron_ has quit IRC | 20:36 | |
| *** faassen has quit IRC | 20:37 | |
| *** andres has quit IRC | 20:40 | |
| *** hazmat has quit IRC | 20:52 | |
| *** alga has joined #zope3-dev | 20:52 | |
| *** BjornT has quit IRC | 20:53 | |
| *** WebMaven_ is now known as WebMaven | 20:55 | |
| *** BjornT has joined #zope3-dev | 20:58 | |
| *** natea|zzz is now known as natea | 21:02 | |
| *** timte has joined #zope3-dev | 21:13 | |
| *** efge has quit IRC | 21:19 | |
| *** andres has joined #zope3-dev | 21:26 | |
| *** andres_ has joined #zope3-dev | 21:38 | |
| *** andres__ has joined #zope3-dev | 21:40 | |
| *** deo has joined #zope3-dev | 21:46 | |
| *** andres has quit IRC | 21:54 | |
| *** andres_ has quit IRC | 21:57 | |
| *** sashav has joined #zope3-dev | 22:04 | |
| *** natea is now known as natea|away | 22:18 | |
| *** ignas has quit IRC | 22:22 | |
| *** natea|away is now known as natea | 22:34 | |
| *** mgedmin has quit IRC | 22:39 | |
| *** Aiste has quit IRC | 22:40 | |
| *** BjornT has quit IRC | 22:51 | |
| *** BjornT has joined #zope3-dev | 22:53 | |
| *** pcardune has joined #zope3-dev | 23:02 | |
| *** alga has quit IRC | 23:04 | |
| *** srichter has joined #zope3-dev | 23:11 | |
| *** ChanServ sets mode: +o srichter | 23:11 | |
| *** timte has quit IRC | 23:16 | |
| *** slinkP has joined #zope3-dev | 23:19 | |
| *** slinkP has left #zope3-dev | 23:20 | |
| *** sashav has quit IRC | 23:22 | |
| *** mp has quit IRC | 23:23 | |
| *** mp has joined #zope3-dev | 23:25 | |
| *** sashav has joined #zope3-dev | 23:30 | |
| *** mp has quit IRC | 23:45 | |
| *** mp has joined #zope3-dev | 23:45 | |
| *** Aiste has joined #zope3-dev | 23:48 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!