*** Theuni has quit IRC | 00:04 | |
*** Aiste has quit IRC | 00:06 | |
*** MrTopf has quit IRC | 00:08 | |
*** xenru has joined #zope3-dev | 00:12 | |
*** benji has quit IRC | 00:16 | |
*** amorat has joined #zope3-dev | 00:16 | |
*** natea has joined #zope3-dev | 00:20 | |
*** xenru|clone has quit IRC | 00:29 | |
*** zbir has quit IRC | 00:30 | |
*** amorat has quit IRC | 00:34 | |
*** xenru has quit IRC | 00:38 | |
*** Aiste has joined #zope3-dev | 00:38 | |
*** amorat has joined #zope3-dev | 00:42 | |
*** xenru has joined #zope3-dev | 00:42 | |
*** ruda_ has quit IRC | 00:50 | |
*** dman13 has joined #zope3-dev | 01:19 | |
*** J1m has quit IRC | 01:21 | |
*** amorat has quit IRC | 01:32 | |
*** dman13 has quit IRC | 01:38 | |
*** philiKON has joined #zope3-dev | 01:50 | |
*** andrew_m has quit IRC | 02:09 | |
*** MiUlEr has joined #zope3-dev | 02:38 | |
*** philiKON has quit IRC | 02:42 | |
*** stub has joined #zope3-dev | 03:23 | |
*** RockyBurt|away is now known as RockyBurt | 04:09 | |
*** xenru has quit IRC | 04:18 | |
*** wrobel has quit IRC | 04:25 | |
*** wrobel has joined #zope3-dev | 04:26 | |
*** MiUlEr has quit IRC | 05:10 | |
*** MiUlEr has joined #zope3-dev | 05:10 | |
*** zbir has joined #zope3-dev | 05:30 | |
*** mp has quit IRC | 06:45 | |
*** mp has joined #zope3-dev | 06:46 | |
*** dobee has joined #zope3-dev | 07:25 | |
*** xenru has joined #zope3-dev | 07:26 | |
*** xenru|clone has joined #zope3-dev | 07:31 | |
*** yota has quit IRC | 07:44 | |
*** xenru has quit IRC | 07:47 | |
*** dobee has quit IRC | 08:06 | |
*** eins has joined #zope3-dev | 08:12 | |
eins | morning | 08:12 |
---|---|---|
*** xenru|clone has quit IRC | 08:21 | |
*** stu1 has joined #zope3-dev | 08:21 | |
*** stub has quit IRC | 08:21 | |
*** stu1 is now known as stub | 08:22 | |
*** xenru has joined #zope3-dev | 08:27 | |
*** MiUlEr has quit IRC | 08:35 | |
*** xenru|clone has joined #zope3-dev | 08:37 | |
*** xenru has quit IRC | 08:38 | |
*** sashav has joined #zope3-dev | 08:42 | |
*** sashav has quit IRC | 08:42 | |
*** hdima has joined #zope3-dev | 09:12 | |
*** zagy_ has joined #zope3-dev | 09:20 | |
*** zagy_ has quit IRC | 09:28 | |
*** zagy has joined #zope3-dev | 09:29 | |
*** rom|aw is now known as romanofski | 09:34 | |
romanofski | moin | 09:47 |
*** Aiste has quit IRC | 09:50 | |
*** j-w has joined #zope3-dev | 09:58 | |
*** wrobel has left #zope3-dev | 10:29 | |
*** wrobel has joined #zope3-dev | 10:31 | |
*** sashav has joined #zope3-dev | 10:43 | |
*** Theuni has joined #zope3-dev | 10:57 | |
*** dobee has joined #zope3-dev | 11:05 | |
*** dobee has quit IRC | 11:17 | |
*** stub has quit IRC | 11:18 | |
*** psii has joined #zope3-dev | 11:25 | |
*** niemeyer has joined #zope3-dev | 11:26 | |
psii | Hello everyone. I have a problem: I want to implement my own AddingView for a container. This container is a special one, because the key in __setitem__ is ignored and object.name attribute is used instead (object is the obj that should be added). It's clear that I can't use the std AddingView, so I subclassed my own view. | 11:31 |
psii | But: This view never gets called... | 11:31 |
psii | in zcml i tried it with <browser:page> and <browser:addform>... | 11:31 |
psii | I have created my own template, too. | 11:32 |
psii | I don't understand it, why that happens, because i saw projects, doing exactly the same and there it works | 11:33 |
*** andres__ is now known as andres | 11:34 | |
Theuni | I'm not sure, but don't you have to create an entry for the add menu as well? I'm not sure the addform does that on it's own. But I'm just guessing here. | 11:35 |
psii | well, i have an add menu, too. that's not the problem. I also can access my page and see the widgets. but thats all. If I press the "Add" button, the page gets reloaded but nothing happened. I found out, that no method of my view got called only once. | 11:36 |
psii | (i mean the add button on my template page, not the one in the menu) | 11:38 |
psii | well, i could paste my view code and my configure.zcml somewhere... | 11:41 |
*** efrerich has joined #zope3-dev | 11:42 | |
psii | http://rafb.net/paste/results/Qe0R8x12.html | 11:42 |
psii | http://rafb.net/paste/results/agiZtI78.html | 11:44 |
psii | my view and the configure.zcml | 11:44 |
*** MrTopf has joined #zope3-dev | 11:48 | |
*** strichter has joined #zope3-dev | 11:59 | |
*** romanofski has quit IRC | 12:00 | |
*** srichter has quit IRC | 12:15 | |
*** dobee has joined #zope3-dev | 12:26 | |
psii | nobody an idea? :/ | 12:30 |
*** RockyBurt has quit IRC | 12:32 | |
*** RockyBurt has joined #zope3-dev | 12:32 | |
*** mgedmin has joined #zope3-dev | 12:36 | |
*** stub has joined #zope3-dev | 12:39 | |
*** mkerrin has joined #zope3-dev | 12:54 | |
*** niemeyer has quit IRC | 13:03 | |
*** xenru has joined #zope3-dev | 13:05 | |
*** mleist has left #zope3-dev | 13:07 | |
*** mleist has joined #zope3-dev | 13:08 | |
*** alga has joined #zope3-dev | 13:10 | |
*** apoirier has joined #zope3-dev | 13:19 | |
*** ignas has joined #zope3-dev | 13:23 | |
*** jinty has quit IRC | 13:23 | |
*** xenru|clone has quit IRC | 13:24 | |
*** MrTopf has quit IRC | 13:40 | |
*** faassen has joined #zope3-dev | 13:44 | |
__mac__ | Hi, I have a container which has an attribute on it, when I call zapi.absoluteURL for this attribute I do not get container/++attribute++attrib_name | 13:50 |
__mac__ | I get container/attrib_name. This gives me a TraversalError afterwards. | 13:50 |
__mac__ | Is this a bug or intentional? | 13:51 |
*** MrTopf has joined #zope3-dev | 14:01 | |
*** tlotze has joined #zope3-dev | 14:04 | |
*** Aiste has joined #zope3-dev | 14:26 | |
*** zbir has quit IRC | 14:30 | |
*** yota has joined #zope3-dev | 14:33 | |
*** strichter is now known as srichter | 14:46 | |
*** strichter has joined #zope3-dev | 14:50 | |
*** srichter has quit IRC | 14:51 | |
*** strichter is now known as srichter | 14:51 | |
*** ChanServ sets mode: +o srichter | 14:51 | |
__mac__ | hi srichter, do you have an idea why zapi.absoluteURL called on an attribute of an object does not give object/++attribute++attribute_name? | 15:03 |
__mac__ | it returns object/attribute instead which is leads to an error in traversal when the URL is called. | 15:04 |
srichter | __mac__: I am sctually surprised it works at all | 15:05 |
Theuni | hah | 15:05 |
srichter | __mac__: absoluteURL is really intended for Contained obejcts only | 15:06 |
srichter | though you could make it a proposal, since this at least seems like a bug now | 15:06 |
Theuni | well ... our objects have an __parent__, but we sticked them on the container by attribute, not in the container item list | 15:06 |
Theuni | (or however you call that) | 15:06 |
srichter | ah, ok; the traversal mechanism is not smart enough to figure this out | 15:08 |
srichter | your attribute then must have the name: | 15:08 |
*** RockyBurt has quit IRC | 15:08 | |
srichter | ++attribute++name | 15:08 |
srichter | this is common practice | 15:08 |
*** RockyBurt has joined #zope3-dev | 15:08 | |
srichter | often I expose an annotation as a namespace, so I give the annotation the name ++nsname++ | 15:09 |
srichter | of course, SchoolTool uses a pluggable traverser that addresses the issue too by exposing arbitrary names to arbitrary objects without namespaces | 15:10 |
Theuni | so you mean the object should have __name__="++attribute++xy", right? | 15:10 |
srichter | yes | 15:10 |
Theuni | i saw that the fallback traversal mechanism allows for attribute and index access | 15:10 |
Theuni | but it is overriden by the default traverser for container/contained objects | 15:10 |
srichter | ok, I did not know that | 15:11 |
Theuni | i think ++attribute++ will be fine for now | 15:11 |
Theuni | at leasts is an explicit way of talking to the machinery | 15:11 |
srichter | yeah | 15:12 |
psii | Theuni, I know why it didn't work for me :) the authors of the other project did a "<tal:defs define="dummy view/update" />" at the start of the template. no wondert update() gets called. | 15:16 |
Theuni | ah! that's a good explanation. | 15:16 |
*** jinty has joined #zope3-dev | 15:21 | |
psii | the developers of zope3 should document it better... you have to search a very long time until you know who calls update() or why/when.. | 15:21 |
*** jinty has quit IRC | 15:22 | |
srichter | psii: feel free to contribute some documentation | 15:24 |
psii | srichter, you mean as a diff? | 15:25 |
srichter | that would be fine | 15:25 |
srichter | you could also write a doctest, i.e a *.txt file that has working Python code | 15:26 |
Theuni | apropos | 15:26 |
Theuni | does anybody know why formlib doesn't respect the <page template=""/> attribute? | 15:26 |
Theuni | i made a small change here locally so that __call__ reuses a template given by that attribute and it works. it makes it easier to reuse a formlib form with multiple pages | 15:27 |
Theuni | and different templates | 15:27 |
srichter | it sort of expects that you do your own template definition in the class | 15:27 |
srichter | but I agree; this should be considered a bug, since people expect the template attribute to work | 15:28 |
Theuni | i know. that somehow feels like breaking the concept of using the <page /> statement | 15:28 |
Theuni | right. and it doesn't even complain :) | 15:28 |
psii | srichter, yeah... hm.. have to think where to begin. In order to know why all those things don't work, only because I wanted my own AddingView, I had to go very deep into the zope source code. And because of all those mixins and so on it also wasn't clear where methods of a class came from or why a class suddenly implements a certain interface. | 15:28 |
psii | I think, somehow documenting those collaborations would be good. | 15:28 |
srichter | always having more documentation is good; but documentation costs time and noone is working at this code right now, so there is little motivation | 15:32 |
psii | yeah, I understand... I just wanted to point out some critical point newcomers might face when lerning zope | 15:35 |
*** drzoltron_ has joined #zope3-dev | 15:36 | |
*** jinty has joined #zope3-dev | 15:41 | |
*** zbir has joined #zope3-dev | 15:46 | |
*** BjornT has quit IRC | 15:48 | |
*** BjornT has joined #zope3-dev | 15:52 | |
*** ruda_porto has joined #zope3-dev | 15:55 | |
*** benji has joined #zope3-dev | 15:57 | |
*** benji has joined #zope3-dev | 15:58 | |
*** jinty_ has joined #zope3-dev | 16:08 | |
*** xenru|clone has joined #zope3-dev | 16:14 | |
*** BjornT has quit IRC | 16:18 | |
*** BjornT has joined #zope3-dev | 16:19 | |
*** mgedmin has quit IRC | 16:20 | |
*** J1m has joined #zope3-dev | 16:23 | |
*** _anguenot has joined #zope3-dev | 16:25 | |
*** xenru has quit IRC | 16:33 | |
*** jinty_ has quit IRC | 16:47 | |
*** eins has quit IRC | 16:52 | |
*** tahara has quit IRC | 16:53 | |
*** klaus has joined #zope3-dev | 16:54 | |
*** tahara has joined #zope3-dev | 16:54 | |
*** srichter has quit IRC | 16:58 | |
*** srichter has joined #zope3-dev | 16:58 | |
*** ChanServ sets mode: +o srichter | 16:58 | |
*** sashav has quit IRC | 17:01 | |
*** hdima has quit IRC | 17:13 | |
*** stub has quit IRC | 17:19 | |
*** tahara has quit IRC | 17:31 | |
*** J1m has quit IRC | 17:34 | |
*** J1m has joined #zope3-dev | 17:36 | |
*** philiKON has joined #zope3-dev | 17:38 | |
*** baldtrol has joined #zope3-dev | 17:42 | |
*** BjornT_ has joined #zope3-dev | 17:46 | |
*** Ragica has joined #zope3-dev | 17:50 | |
*** BjornT has quit IRC | 17:59 | |
Theuni | hmm | 18:11 |
Theuni | is there a reason zope/zodb/something doesn | 18:11 |
Theuni | 't remove SecurityProxies when trying to store an object somewhere? | 18:11 |
Theuni | (besides from: "nobody implemented it") | 18:12 |
*** MrTopf has quit IRC | 18:18 | |
*** mgedmin has joined #zope3-dev | 18:20 | |
SteveA | Theuni: iirc you're supposed to use a "setting adapter" or something, which knows how to remove the security adapter | 18:27 |
SteveA | personally, i'd just make the storage component know about removing security proxies | 18:27 |
*** MacYET has joined #zope3-dev | 18:31 | |
*** psii has quit IRC | 18:37 | |
*** zagy has quit IRC | 18:43 | |
*** yota has quit IRC | 18:56 | |
*** RockyBurt has quit IRC | 18:57 | |
*** RockyBurt has joined #zope3-dev | 18:58 | |
*** j-w has quit IRC | 19:04 | |
*** BjornT_ has quit IRC | 19:05 | |
*** BjornT has joined #zope3-dev | 19:06 | |
*** ruda_porto has quit IRC | 19:06 | |
*** dobee has quit IRC | 19:07 | |
*** baldtrol has left #zope3-dev | 19:28 | |
*** efge has joined #zope3-dev | 19:28 | |
*** zagy has joined #zope3-dev | 19:29 | |
*** sawdog has joined #zope3-dev | 19:31 | |
*** klaus has quit IRC | 19:34 | |
*** yota has joined #zope3-dev | 19:41 | |
mgedmin | what would be a clean way to distinguish checkbox widgets in a METAL macro? | 19:42 |
mgedmin | I have a macro, used like this: <tal:block metal:use-macro="view/macros/form_rows" /> | 19:42 |
mgedmin | the macro loops over view/widgets and renders <div class="row"><div class="label">...</div><div class="field">...</div></div> | 19:43 |
mgedmin | which works just fine for text fields and drop-downs of all sorts | 19:43 |
mgedmin | but checkboxes look funny | 19:43 |
* mgedmin found a solution | 19:49 | |
mgedmin | tal:condition="python: widget.type == 'checkbox'" | 19:49 |
*** drzoltron_ has quit IRC | 19:51 | |
*** zbir has quit IRC | 19:54 | |
*** GaryPoster has joined #zope3-dev | 20:00 | |
*** AJC has joined #zope3-dev | 20:01 | |
*** natea is now known as natea|phone | 20:09 | |
*** pcardune has joined #zope3-dev | 20:11 | |
*** philiKON has quit IRC | 20:11 | |
*** sashav has joined #zope3-dev | 20:14 | |
*** andrew_m has joined #zope3-dev | 20:15 | |
*** zbir has joined #zope3-dev | 20:15 | |
*** Svenne has joined #zope3-dev | 20:18 | |
*** Svenne has left #zope3-dev | 20:19 | |
*** jinty has quit IRC | 20:28 | |
AJC | i'm a bit confused where to put Zope.View permissions for the dublincore 'creator' attribute. i need it accessible from a page template, any ideas? | 20:36 |
*** apoirier has left #zope3-dev | 20:39 | |
*** romanofski has joined #zope3-dev | 20:45 | |
*** faassen has quit IRC | 20:45 | |
*** natea|phone is now known as natea | 20:56 | |
*** MacYET has quit IRC | 21:05 | |
*** zmi_junkie has joined #zope3-dev | 21:11 | |
*** xenru has joined #zope3-dev | 21:28 | |
*** tiredbones has quit IRC | 21:44 | |
*** regebro has joined #zope3-dev | 21:44 | |
*** tiredbones has joined #zope3-dev | 21:44 | |
regebro | Hiya all! | 21:44 |
regebro | I need some convincing that my test problem is not a security hole. :) | 21:45 |
*** MJ has quit IRC | 21:45 | |
*** xenru|clone has quit IRC | 21:45 | |
regebro | It is after all in Zope 3 code, but under Five... so hopefully it's not a security hole. At least not under Zope 3 itself. :) | 21:45 |
AJC | how much convincing do you need? | 21:46 |
AJC | it's not a security hole. | 21:46 |
AJC | (good enough? ) | 21:47 |
*** efrerich has quit IRC | 21:47 | |
regebro | Nope. :) ParanoidSecurityPolicy, will return True if participations are an empty list. | 21:47 |
regebro | Which they are when I run my unit test. | 21:48 |
regebro | The result: The anonymous user that is used in the unit tests can do exactly whatever it wants... | 21:48 |
regebro | Uh-oh... | 21:48 |
regebro | I mean, it checks that I have no particiapations where user is not system_user. But surely, is that what it's supposed to check? | 21:53 |
regebro | Shouldn't it check that there is at least one participation too? | 21:53 |
regebro | Who knows? J1m? | 21:54 |
AJC | sorry, can't help much regebro... i hope at least you can take comfort in my companionship through these hard times. | 21:56 |
AJC | :) | 21:56 |
regebro | Thanks. :) | 21:57 |
*** mkerrin has quit IRC | 22:10 | |
*** MrTopf has joined #zope3-dev | 22:18 | |
*** ignas has quit IRC | 22:25 | |
*** efge has quit IRC | 22:26 | |
*** BjornT_ has joined #zope3-dev | 22:28 | |
AJC | on the bright side, i found my problem... | 22:33 |
*** AJC has quit IRC | 22:36 | |
*** MrTopf has quit IRC | 22:37 | |
*** nohero has joined #zope3-dev | 22:38 | |
nohero | hola | 22:38 |
nohero | is there a book about zope3? | 22:39 |
nohero | zopebook v3? | 22:39 |
*** MacYET has joined #zope3-dev | 22:39 | |
mgedmin | nohero, there are two | 22:42 |
*** BjornT has quit IRC | 22:42 | |
mgedmin | you can find a pdf of stephan's book on the zope 3 wiki | 22:42 |
mgedmin | and phillip's has a site at worldcookery.net (iirc) | 22:42 |
*** _anguenot has quit IRC | 22:44 | |
*** MacYET has quit IRC | 22:45 | |
*** SteveA has quit IRC | 22:53 | |
*** RockyBurt is now known as RockyBurt|away | 22:53 | |
*** sashav_ has joined #zope3-dev | 22:53 | |
*** sashav has quit IRC | 22:53 | |
*** sashav_ is now known as sashav | 22:53 | |
nohero | mgedmin: obligado | 22:54 |
*** romanofski has quit IRC | 22:58 | |
*** fluff has joined #zope3-dev | 23:02 | |
*** yota has quit IRC | 23:06 | |
*** regebro has quit IRC | 23:06 | |
*** mgedmin has quit IRC | 23:13 | |
*** zagy has quit IRC | 23:14 | |
nohero | wow stepan's book is traslated in italian | 23:17 |
nohero | :) | 23:17 |
*** yota has joined #zope3-dev | 23:19 | |
*** sawdog has left #zope3-dev | 23:21 | |
*** Aiste has quit IRC | 23:27 | |
*** MJ has joined #zope3-dev | 23:31 | |
*** alga has quit IRC | 23:38 | |
*** nohero has quit IRC | 23:48 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!