IRC log of #zope3-dev for Wednesday, 2006-01-18

*** Theuni has quit IRC00:04
*** Aiste has quit IRC00:06
*** MrTopf has quit IRC00:08
*** xenru has joined #zope3-dev00:12
*** benji has quit IRC00:16
*** amorat has joined #zope3-dev00:16
*** natea has joined #zope3-dev00:20
*** xenru|clone has quit IRC00:29
*** zbir has quit IRC00:30
*** amorat has quit IRC00:34
*** xenru has quit IRC00:38
*** Aiste has joined #zope3-dev00:38
*** amorat has joined #zope3-dev00:42
*** xenru has joined #zope3-dev00:42
*** ruda_ has quit IRC00:50
*** dman13 has joined #zope3-dev01:19
*** J1m has quit IRC01:21
*** amorat has quit IRC01:32
*** dman13 has quit IRC01:38
*** philiKON has joined #zope3-dev01:50
*** andrew_m has quit IRC02:09
*** MiUlEr has joined #zope3-dev02:38
*** philiKON has quit IRC02:42
*** stub has joined #zope3-dev03:23
*** RockyBurt|away is now known as RockyBurt04:09
*** xenru has quit IRC04:18
*** wrobel has quit IRC04:25
*** wrobel has joined #zope3-dev04:26
*** MiUlEr has quit IRC05:10
*** MiUlEr has joined #zope3-dev05:10
*** zbir has joined #zope3-dev05:30
*** mp has quit IRC06:45
*** mp has joined #zope3-dev06:46
*** dobee has joined #zope3-dev07:25
*** xenru has joined #zope3-dev07:26
*** xenru|clone has joined #zope3-dev07:31
*** yota has quit IRC07:44
*** xenru has quit IRC07:47
*** dobee has quit IRC08:06
*** eins has joined #zope3-dev08:12
einsmorning08:12
*** xenru|clone has quit IRC08:21
*** stu1 has joined #zope3-dev08:21
*** stub has quit IRC08:21
*** stu1 is now known as stub08:22
*** xenru has joined #zope3-dev08:27
*** MiUlEr has quit IRC08:35
*** xenru|clone has joined #zope3-dev08:37
*** xenru has quit IRC08:38
*** sashav has joined #zope3-dev08:42
*** sashav has quit IRC08:42
*** hdima has joined #zope3-dev09:12
*** zagy_ has joined #zope3-dev09:20
*** zagy_ has quit IRC09:28
*** zagy has joined #zope3-dev09:29
*** rom|aw is now known as romanofski09:34
romanofskimoin09:47
*** Aiste has quit IRC09:50
*** j-w has joined #zope3-dev09:58
*** wrobel has left #zope3-dev10:29
*** wrobel has joined #zope3-dev10:31
*** sashav has joined #zope3-dev10:43
*** Theuni has joined #zope3-dev10:57
*** dobee has joined #zope3-dev11:05
*** dobee has quit IRC11:17
*** stub has quit IRC11:18
*** psii has joined #zope3-dev11:25
*** niemeyer has joined #zope3-dev11:26
psiiHello 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
psiiBut: This view never gets called...11:31
psiiin zcml i tried it with <browser:page> and <browser:addform>...11:31
psiiI have created my own template, too.11:32
psiiI don't understand it, why that happens, because i saw projects, doing exactly the same and there it works11:33
*** andres__ is now known as andres11:34
TheuniI'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
psiiwell, 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
psiiwell, i could paste my view code and my configure.zcml somewhere...11:41
*** efrerich has joined #zope3-dev11:42
psiihttp://rafb.net/paste/results/Qe0R8x12.html11:42
psiihttp://rafb.net/paste/results/agiZtI78.html11:44
psiimy view and the configure.zcml11:44
*** MrTopf has joined #zope3-dev11:48
*** strichter has joined #zope3-dev11:59
*** romanofski has quit IRC12:00
*** srichter has quit IRC12:15
*** dobee has joined #zope3-dev12:26
psiinobody an idea? :/12:30
*** RockyBurt has quit IRC12:32
*** RockyBurt has joined #zope3-dev12:32
*** mgedmin has joined #zope3-dev12:36
*** stub has joined #zope3-dev12:39
*** mkerrin has joined #zope3-dev12:54
*** niemeyer has quit IRC13:03
*** xenru has joined #zope3-dev13:05
*** mleist has left #zope3-dev13:07
*** mleist has joined #zope3-dev13:08
*** alga has joined #zope3-dev13:10
*** apoirier has joined #zope3-dev13:19
*** ignas has joined #zope3-dev13:23
*** jinty has quit IRC13:23
*** xenru|clone has quit IRC13:24
*** MrTopf has quit IRC13:40
*** faassen has joined #zope3-dev13: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_name13: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-dev14:01
*** tlotze has joined #zope3-dev14:04
*** Aiste has joined #zope3-dev14:26
*** zbir has quit IRC14:30
*** yota has joined #zope3-dev14:33
*** strichter is now known as srichter14:46
*** strichter has joined #zope3-dev14:50
*** srichter has quit IRC14:51
*** strichter is now known as srichter14:51
*** ChanServ sets mode: +o srichter14: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 all15:05
Theunihah15:05
srichter__mac__: absoluteURL is really intended for Contained obejcts only15:06
srichterthough you could make it a proposal, since this at least seems like a bug now15:06
Theuniwell ... our objects have an __parent__, but we sticked them on the container by attribute, not in the container item list15:06
Theuni(or however you call that)15:06
srichterah, ok; the traversal mechanism is not smart enough to figure this out15:08
srichteryour attribute then must have the name:15:08
*** RockyBurt has quit IRC15:08
srichter++attribute++name15:08
srichterthis is common practice15:08
*** RockyBurt has joined #zope3-dev15:08
srichteroften I expose an annotation as a namespace, so I give the annotation the name ++nsname++15:09
srichterof course, SchoolTool uses a pluggable traverser that addresses the issue too by exposing arbitrary names to arbitrary objects without namespaces15:10
Theuniso you mean the object should have __name__="++attribute++xy", right?15:10
srichteryes15:10
Theunii saw that the fallback traversal mechanism allows for attribute and index access15:10
Theunibut it is overriden by the default traverser for container/contained objects15:10
srichterok, I did not know that15:11
Theunii think ++attribute++ will be fine for now15:11
Theuniat leasts is an explicit way of talking to the machinery15:11
srichteryeah15:12
psiiTheuni, 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
Theuniah! that's a good explanation.15:16
*** jinty has joined #zope3-dev15:21
psiithe 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 IRC15:22
srichterpsii: feel free to contribute some documentation15:24
psiisrichter, you mean as a diff?15:25
srichterthat would be fine15:25
srichteryou could also write a doctest, i.e a *.txt file that has working Python code15:26
Theuniapropos15:26
Theunidoes anybody know why formlib doesn't respect the <page template=""/> attribute?15:26
Theunii 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 pages15:27
Theuniand different templates15:27
srichterit sort of expects that you do your own template definition in the class15:27
srichterbut I agree; this should be considered a bug, since people expect the template attribute to work15:28
Theunii know. that somehow feels like breaking the concept of using the <page /> statement15:28
Theuniright. and it doesn't even complain :)15:28
psiisrichter, 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
psiiI think, somehow documenting those collaborations would be good.15:28
srichteralways having more documentation is good; but documentation costs time and noone is working at this code right now, so there is little motivation15:32
psiiyeah, I understand... I just wanted to point out some critical point newcomers might face when lerning zope15:35
*** drzoltron_ has joined #zope3-dev15:36
*** jinty has joined #zope3-dev15:41
*** zbir has joined #zope3-dev15:46
*** BjornT has quit IRC15:48
*** BjornT has joined #zope3-dev15:52
*** ruda_porto has joined #zope3-dev15:55
*** benji has joined #zope3-dev15:57
*** benji has joined #zope3-dev15:58
*** jinty_ has joined #zope3-dev16:08
*** xenru|clone has joined #zope3-dev16:14
*** BjornT has quit IRC16:18
*** BjornT has joined #zope3-dev16:19
*** mgedmin has quit IRC16:20
*** J1m has joined #zope3-dev16:23
*** _anguenot has joined #zope3-dev16:25
*** xenru has quit IRC16:33
*** jinty_ has quit IRC16:47
*** eins has quit IRC16:52
*** tahara has quit IRC16:53
*** klaus has joined #zope3-dev16:54
*** tahara has joined #zope3-dev16:54
*** srichter has quit IRC16:58
*** srichter has joined #zope3-dev16:58
*** ChanServ sets mode: +o srichter16:58
*** sashav has quit IRC17:01
*** hdima has quit IRC17:13
*** stub has quit IRC17:19
*** tahara has quit IRC17:31
*** J1m has quit IRC17:34
*** J1m has joined #zope3-dev17:36
*** philiKON has joined #zope3-dev17:38
*** baldtrol has joined #zope3-dev17:42
*** BjornT_ has joined #zope3-dev17:46
*** Ragica has joined #zope3-dev17:50
*** BjornT has quit IRC17:59
Theunihmm18:11
Theuniis there a reason zope/zodb/something doesn18: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 IRC18:18
*** mgedmin has joined #zope3-dev18:20
SteveATheuni: iirc you're supposed to use a "setting adapter" or something, which knows how to remove the security adapter18:27
SteveApersonally, i'd just make the storage component know about removing security proxies18:27
*** MacYET has joined #zope3-dev18:31
*** psii has quit IRC18:37
*** zagy has quit IRC18:43
*** yota has quit IRC18:56
*** RockyBurt has quit IRC18:57
*** RockyBurt has joined #zope3-dev18:58
*** j-w has quit IRC19:04
*** BjornT_ has quit IRC19:05
*** BjornT has joined #zope3-dev19:06
*** ruda_porto has quit IRC19:06
*** dobee has quit IRC19:07
*** baldtrol has left #zope3-dev19:28
*** efge has joined #zope3-dev19:28
*** zagy has joined #zope3-dev19:29
*** sawdog has joined #zope3-dev19:31
*** klaus has quit IRC19:34
*** yota has joined #zope3-dev19:41
mgedminwhat would be a clean way to distinguish checkbox widgets in a METAL macro?19:42
mgedminI have a macro, used like this: <tal:block metal:use-macro="view/macros/form_rows" />19:42
mgedminthe macro loops over view/widgets and renders <div class="row"><div class="label">...</div><div class="field">...</div></div>19:43
mgedminwhich works just fine for text fields and drop-downs of all sorts19:43
mgedminbut checkboxes look funny19:43
* mgedmin found a solution19:49
mgedmintal:condition="python: widget.type == 'checkbox'"19:49
*** drzoltron_ has quit IRC19:51
*** zbir has quit IRC19:54
*** GaryPoster has joined #zope3-dev20:00
*** AJC has joined #zope3-dev20:01
*** natea is now known as natea|phone20:09
*** pcardune has joined #zope3-dev20:11
*** philiKON has quit IRC20:11
*** sashav has joined #zope3-dev20:14
*** andrew_m has joined #zope3-dev20:15
*** zbir has joined #zope3-dev20:15
*** Svenne has joined #zope3-dev20:18
*** Svenne has left #zope3-dev20:19
*** jinty has quit IRC20:28
AJCi'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-dev20:39
*** romanofski has joined #zope3-dev20:45
*** faassen has quit IRC20:45
*** natea|phone is now known as natea20:56
*** MacYET has quit IRC21:05
*** zmi_junkie has joined #zope3-dev21:11
*** xenru has joined #zope3-dev21:28
*** tiredbones has quit IRC21:44
*** regebro has joined #zope3-dev21:44
*** tiredbones has joined #zope3-dev21:44
regebroHiya all!21:44
regebroI need some convincing that my test problem is not a security hole. :)21:45
*** MJ has quit IRC21:45
*** xenru|clone has quit IRC21:45
regebroIt 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
AJChow much convincing do you need?21:46
AJCit's not a security hole.21:46
AJC(good enough? )21:47
*** efrerich has quit IRC21:47
regebroNope. :) ParanoidSecurityPolicy, will return True if participations are an empty list.21:47
regebroWhich they are when I run my unit test.21:48
regebroThe result: The anonymous user that is used in the unit tests can do exactly whatever it wants...21:48
regebroUh-oh...21:48
regebroI 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
regebroShouldn't it check that there is at least one participation too?21:53
regebroWho knows? J1m?21:54
AJCsorry, 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
regebroThanks. :)21:57
*** mkerrin has quit IRC22:10
*** MrTopf has joined #zope3-dev22:18
*** ignas has quit IRC22:25
*** efge has quit IRC22:26
*** BjornT_ has joined #zope3-dev22:28
AJCon the bright side, i found my problem...22:33
*** AJC has quit IRC22:36
*** MrTopf has quit IRC22:37
*** nohero has joined #zope3-dev22:38
noherohola22:38
noherois there a book about zope3?22:39
noherozopebook v3?22:39
*** MacYET has joined #zope3-dev22:39
mgedminnohero, there are two22:42
*** BjornT has quit IRC22:42
mgedminyou can find a pdf of stephan's book on the zope 3 wiki22:42
mgedminand phillip's has a site at worldcookery.net (iirc)22:42
*** _anguenot has quit IRC22:44
*** MacYET has quit IRC22:45
*** SteveA has quit IRC22:53
*** RockyBurt is now known as RockyBurt|away22:53
*** sashav_ has joined #zope3-dev22:53
*** sashav has quit IRC22:53
*** sashav_ is now known as sashav22:53
noheromgedmin: obligado22:54
*** romanofski has quit IRC22:58
*** fluff has joined #zope3-dev23:02
*** yota has quit IRC23:06
*** regebro has quit IRC23:06
*** mgedmin has quit IRC23:13
*** zagy has quit IRC23:14
noherowow stepan's book is traslated in italian23:17
nohero:)23:17
*** yota has joined #zope3-dev23:19
*** sawdog has left #zope3-dev23:21
*** Aiste has quit IRC23:27
*** MJ has joined #zope3-dev23:31
*** alga has quit IRC23:38
*** nohero has quit IRC23:48

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