*** FarcePest has quit IRC | 00:02 | |
*** hazmat has joined #zope3-dev | 00:17 | |
*** bskahan is now known as bska|dinner | 00:18 | |
*** hazmat has quit IRC | 00:21 | |
*** projekt01 has joined #zope3-dev | 00:41 | |
*** bska|dinner has quit IRC | 00:44 | |
*** SureshZ has left #zope3-dev | 01:06 | |
*** bskahan has joined #zope3-dev | 01:33 | |
projekt01 | Does somebody know a method for testing if a there is a missing tearDown somewhere? | 01:34 |
---|---|---|
philiKON | projekt01, you can use the test runner (test.py) to run a certain test repeatedly (see --help for info) | 01:35 |
philiKON | usually, if you're missing a tearDown, a repeated execution of a test fails | 01:35 |
philiKON | of course, there's no guarantee | 01:35 |
projekt01 | One test fails if I run only this test, because the test uses some settings from another test setUp() | 01:36 |
projekt01 | philiKON, Ok, I try this, thanks | 01:37 |
*** SureshZ has joined #zope3-dev | 02:18 | |
*** tvon has joined #zope3-dev | 02:22 | |
*** bskahan has quit IRC | 02:29 | |
*** tvon has quit IRC | 02:34 | |
*** yota has quit IRC | 02:43 | |
*** tvon has joined #zope3-dev | 03:12 | |
*** projekt01 has quit IRC | 03:22 | |
*** kaczordek has joined #zope3-dev | 04:18 | |
*** bskahan has joined #zope3-dev | 04:52 | |
*** jbb666 has quit IRC | 05:04 | |
*** jbb666 has joined #zope3-dev | 05:08 | |
*** RaFromBRC has quit IRC | 05:19 | |
*** bskahan has quit IRC | 05:44 | |
*** stub has joined #zope3-dev | 05:54 | |
*** SureshZ has left #zope3-dev | 08:33 | |
*** projekt01 has joined #zope3-dev | 09:44 | |
*** tvon has quit IRC | 09:58 | |
*** yota has joined #zope3-dev | 10:00 | |
*** guido_g has joined #zope3-dev | 10:39 | |
*** kaczordek has quit IRC | 10:46 | |
*** d2m_ has quit IRC | 10:52 | |
*** d2m has quit IRC | 10:52 | |
*** d2m_ has joined #zope3-dev | 10:56 | |
*** d2m has joined #zope3-dev | 11:02 | |
*** lunatik has joined #zope3-dev | 11:12 | |
*** tarek has joined #zope3-dev | 11:29 | |
*** philiKON has quit IRC | 11:52 | |
*** stub has quit IRC | 11:56 | |
*** anguenot has joined #zope3-dev | 12:08 | |
*** guido_g has quit IRC | 12:24 | |
*** lunatik has left #zope3-dev | 12:38 | |
*** hdima has joined #zope3-dev | 12:54 | |
*** bcsaller has quit IRC | 13:07 | |
*** efge has joined #zope3-dev | 13:08 | |
*** J1m has joined #zope3-dev | 13:15 | |
*** bskahan has joined #zope3-dev | 13:23 | |
*** andrewX_ has joined #zope3-dev | 13:27 | |
*** andrew_m has quit IRC | 13:28 | |
*** andrewX_ is now known as andrew_m | 13:29 | |
andrew_m | i'm trying to access the underlying content object from a custom widget - is that possible or generally a bad idea? | 13:30 |
J1m | it is possible and usually a bad idea. :) | 13:31 |
J1m | self.context.context | 13:32 |
andrew_m | oh, nice, thanks | 13:32 |
efge | there's this comment in zope.interface.interface.__call__: An embedded function is used to allow an optional argument to __call__ without resorting to a global marker | 13:33 |
efge | what's wrong with resorting to a global marker ? speed ? | 13:33 |
J1m | I don't like global markers because they seem to be misinterpreted. | 13:34 |
J1m | I've seen bugs where people treated them as part of a module's interface, leading to subtle bugs. | 13:34 |
efge | can't you just del them afterwards ? | 13:34 |
J1m | Hading them in a nested function makes them truly private. | 13:35 |
efge | the contorsions of defining a function in a function makes things not very readable | 13:35 |
J1m | No, you can't delete them because the function using them needs them at run time. | 13:35 |
efge | hm right | 13:35 |
efge | a decorator would solve this :) | 13:35 |
efge | probably | 13:36 |
J1m | I *thought* this was also a speed advantage, but it turns out that the global lookup is faster, much to my surprise. | 13:36 |
J1m | In general, I don't like the use of an extra argument to change semantics of a call. | 13:37 |
J1m | This is why Zope 3 generaly has get and query calls. | 13:37 |
J1m | I made an exception in this case because I find calling nterfaces so comelling. | 13:37 |
J1m | I made an exception in this case because I find calling nterfaces so compelling. | 13:37 |
J1m | Yes, a decorator could probably solve this. | 13:38 |
J1m | Rewriting this in C would solve it too. | 13:38 |
J1m | Which I do plan to do at some point. | 13:38 |
*** bskahan has quit IRC | 13:50 | |
efge | srichter: you've made the adapter_hook hookable, (in zope/component/__init__.py), is there any current use of this ? | 13:53 |
J1m | yes | 13:55 |
J1m | actually... not sure | 13:58 |
efge | I'm not finding any, but I think it's exactly the mechanism I want, rather than adding another one in the adapter_hooks list | 14:00 |
*** stub has joined #zope3-dev | 14:02 | |
J1m | It is used | 14:02 |
J1m | in zope.app.component.hooks | 14:03 |
J1m | at the end | 14:03 |
J1m | see setHooks | 14:03 |
*** projekt01 has quit IRC | 14:06 | |
efge | Hm and you cannot hook something that's already hooked, no stacking... | 14:07 |
*** regebro has joined #zope3-dev | 14:08 | |
J1m | sure, you can get the existing hook and regsiter a new hook that calls the original | 14:09 |
efge | thx I'll try that | 14:10 |
*** J1m has quit IRC | 14:12 | |
*** philiKON has joined #zope3-dev | 14:25 | |
*** jhauser has joined #zope3-dev | 14:29 | |
*** AJC has joined #zope3-dev | 14:36 | |
srichter | efge: right, zope.app.component uses those hooks for its local lookup | 14:37 |
efge | srichter: I finally saw that | 14:37 |
efge | ok, my sethook on top of the existing sethook works, but I'm concerned that zope.app.component.hooks.resetHooks just does a reset() so assumes it's the only one having hooked the thing | 14:47 |
*** efge has quit IRC | 15:04 | |
*** mooded has joined #zope3-dev | 15:15 | |
srichter | I think you can get one back at a time, iirc | 15:18 |
srichter | if not, we should add this to the hook API | 15:18 |
*** bskahan has joined #zope3-dev | 15:19 | |
*** mkerrin has joined #zope3-dev | 15:21 | |
*** regebro has quit IRC | 15:41 | |
*** lunatik has joined #zope3-dev | 15:49 | |
*** philiKON has quit IRC | 15:55 | |
*** stub has quit IRC | 16:07 | |
*** efge has joined #zope3-dev | 16:13 | |
*** lunatik has left #zope3-dev | 16:15 | |
*** ignas_ has joined #zope3-dev | 16:20 | |
*** lunati1 has joined #zope3-dev | 16:26 | |
*** lunati1 has left #zope3-dev | 16:28 | |
*** __gotcha has joined #zope3-dev | 16:40 | |
*** hdima has quit IRC | 16:45 | |
*** J1m has joined #zope3-dev | 16:55 | |
*** SureshZ has joined #zope3-dev | 16:57 | |
efge | J1m: FWIW I'm abandoning the ideas of proxy-based verisioning for now, too much hard-to-control magic. | 17:35 |
efge | I'll be basing my devs on zope.app.versioncontrol, with some changes | 17:35 |
J1m | I'm glad you are passing on the magic. | 17:36 |
J1m | At some point, I'd like to discuss this issue with you in more detail. | 17:36 |
efge | Sure | 17:36 |
J1m | I'll note that I'd prefer a simpler model for version control. | 17:37 |
J1m | Where versions are just object copies/ | 17:37 |
efge | Re proxies: I still feel it's possible, but I don't want to tackle it now | 17:37 |
efge | Which z.a.versioncontrol is, right ? | 17:37 |
J1m | This is one of the things I percieve and like about CPS's repository model. | 17:37 |
J1m | No, version control involves mummification. :) | 17:38 |
J1m | No, z.a.versioncontrol involves mummification. :) | 17:38 |
J1m | When you create a version, it is an internal resource in the repository. | 17:38 |
efge | I see | 17:38 |
J1m | I'd prefer that versions be live objects. | 17:39 |
efge | Is it implied by the z.a.versioncontrol interfaces, or just the current implementation ? | 17:39 |
J1m | That they can be used just like other objects with the exception that they have some state that is fixed and can't change. | 17:39 |
J1m | is mummification implied? | 17:40 |
efge | Yes | 17:40 |
J1m | yes | 17:40 |
J1m | Note that my vision for a simpler version model is incompatible with some use cases. | 17:40 |
J1m | Namely, use of an external version repository. | 17:40 |
J1m | OTOH, these use cases have never been realized afaict. | 17:41 |
J1m | I'm not an expert on content repository, but my feeling is that content repositories should be more like homeless shelters than like inode tables. | 17:42 |
J1m | CPS's repository model and some of our past models treat respositories like inode tables. | 17:43 |
J1m | They then need objects like hard links to tie objects into content space. | 17:43 |
*** Aiste has joined #zope3-dev | 17:44 | |
J1m | I'd prefer a simpler modules where repositories are just public folders that contain objects (e.g. old versions) that have nowhere else to live. | 17:44 |
J1m | I'd prefer a simpler model where repositories are just public folders that contain objects (e.g. old versions) that have nowhere else to live. | 17:44 |
VladDrac | anyone in goteborg already? | 17:46 |
efge | VladDrac: lots | 17:46 |
efge | J1m: I agree with that, actually I want the links between the repository content and the workspace checkouts to be stored as relations inside a relation tool | 17:47 |
J1m | We *are* using z.a.versioncontrol for our current z3 project, so I know it works. :) | 17:47 |
efge | Instead of storing histories & such, and of annotating the checkout, put this as relations in the realtion tool | 17:47 |
efge | That'll be my sprinting these few days :) | 17:48 |
*** andrew_m has left #zope3-dev | 17:52 | |
*** mooded has quit IRC | 17:58 | |
*** AJC has quit IRC | 18:06 | |
*** bskahan has quit IRC | 18:30 | |
*** ciphergoth has joined #zope3-dev | 18:36 | |
ciphergoth | I'm using a Zope3 application called "SchoolTool" and I've tried to use Apache as a reverse proxy to expose it to the world | 18:36 |
ciphergoth | but it seems to use absolute URLs to refer to its own resources, and those URLs don't work elsewhere... | 18:37 |
ciphergoth | is there a way to make Zope3 applications use relative URLs instead (ie leave off the host and protocol)? | 18:37 |
VladDrac | there is, check srichters book on apache / virtual hosting | 18:38 |
VladDrac | it requires inserting appropriate ++vh strings | 18:38 |
ciphergoth | ah | 18:40 |
ciphergoth | so I redirect http://my.long.url/this/that to http://localhost:port/++vh/this/that | 18:40 |
VladDrac | I said "appropriate" :) | 18:41 |
VladDrac | here's an example, you need to consult the documentation to get it right | 18:41 |
VladDrac | http://viewcvs.amazesolutions.com/zope3/z3alot/trunk/doc/README.txt?rev=133&view=markup | 18:41 |
ciphergoth | ie RewriteRule ^/(.*) http://localhost:7180/+vh/++$1 [P,L] | 18:41 |
ciphergoth | oh, I have to specify what absolute thing to use instead, OK. | 18:42 |
VladDrac | more like http://localhost:7180/++vh++http:yourdomain:80/++$i | 18:42 |
VladDrac | offline now, good luck :) | 18:42 |
*** regebro has joined #zope3-dev | 18:47 | |
*** bradb-bbl is now known as bradb | 18:55 | |
*** alga has joined #zope3-dev | 19:24 | |
ciphergoth | got it working - rah! | 19:31 |
*** regebro has quit IRC | 19:35 | |
efge | Can I remove INonVersionable from zope.app.versioncontrol.interfaces ? It's used nowhere I can find. | 19:54 |
J1m | yup | 19:58 |
efge | zope.app.versioncontrol.nonversioned.ObjectManagerNonVersionedDataAdapter seems to be dead code too, it even contains code with obj._delOb(name), kill it ? | 20:07 |
efge | OTOH I can imagine it updated to be useful. I'll see if I can fix it and use it. | 20:08 |
*** yota_ has joined #zope3-dev | 20:09 | |
J1m | kill it and fix it if and when you need it | 20:10 |
*** jbb666 has quit IRC | 20:10 | |
J1m | Imagination is a dangerous tool, at least wrt requirements. :) | 20:10 |
efge | ok :) | 20:12 |
*** yota has quit IRC | 20:22 | |
*** efge has quit IRC | 20:25 | |
*** tarek has quit IRC | 20:29 | |
*** __gotcha has quit IRC | 20:45 | |
*** tarek has joined #zope3-dev | 20:46 | |
*** anguenot has left #zope3-dev | 20:52 | |
*** mkerrin has quit IRC | 20:56 | |
*** tarek has quit IRC | 21:00 | |
*** ignas_ has quit IRC | 21:01 | |
*** mkerrin has joined #zope3-dev | 21:19 | |
*** bradb is now known as bradb-away | 21:26 | |
*** Aiste has quit IRC | 21:34 | |
*** jhauser_ has joined #zope3-dev | 21:54 | |
*** jhauser has quit IRC | 22:02 | |
*** projekt01 has joined #zope3-dev | 22:11 | |
*** alga has quit IRC | 22:29 | |
*** projekt01 has quit IRC | 23:05 | |
*** mkerrin has quit IRC | 23:08 | |
*** Jim7J1AJH has quit IRC | 23:22 | |
*** Jim7J1AJH has joined #zope3-dev | 23:22 | |
*** RaFromBRC has joined #zope3-dev | 23:25 | |
*** Aiste has joined #zope3-dev | 23:30 | |
*** Jim7J1AJ1 has joined #zope3-dev | 23:33 | |
*** Jim7J1AJH has quit IRC | 23:33 | |
srichter | J1m: can you give Corey, who just got his access today, access to the special projects repository, please? | 23:40 |
srichter | thanks | 23:40 |
J1m | please remind me what his zope.org id is | 23:55 |
J1m | never mind | 23:55 |
J1m | done | 23:56 |
srichter | thanks | 23:57 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!