*** srichter has quit IRC | 00:52 | |
*** jhauser_ has quit IRC | 01:00 | |
*** jdz_ has quit IRC | 01:05 | |
*** GaryPoster has quit IRC | 01:09 | |
mgedmin | Unauthorized shows me the attribute and permission | 01:23 |
---|---|---|
mgedmin | e.g. Unauthorized: ('__getitem__', 'zope.View') | 01:23 |
mgedmin | could it show me the object too? | 01:23 |
mgedmin | wish: Unauthorized: (<....Foo object at ...>, '__getitem__', 'zope.Whatever') | 01:23 |
J1m | ok w me | 01:25 |
*** benji_york has quit IRC | 01:26 | |
philiKON | mgedmin, +1 | 01:26 |
mgedmin | src/zope/security/_zope_security_checker.c, line 98 | 01:27 |
mgedmin | r = Py_BuildValue("OO", name, permission); | 01:28 |
mgedmin | I guess it needs to be changed to | 01:28 |
mgedmin | r = Py_BuildValue("OOO", object, name, permission); | 01:28 |
J1m | It's not that simple | 01:29 |
philiKON | mgedmin, python impl. needs to be changed too | 01:29 |
J1m | I think that exception has a specific constructor | 01:29 |
* mgedmin looks | 01:30 | |
J1m | You don't want to screw up existing clients of the exception. | 01:30 |
philiKON | J1m, Unauthorized is just a dumb subclass of Exception | 01:30 |
J1m | hm, ok | 01:30 |
mgedmin | yes, no special constructors | 01:30 |
J1m | what about the exception view? | 01:30 |
mgedmin | I should check if any views touch Unauthorized.args, though | 01:30 |
philiKON | the default one doesn't use them | 01:31 |
philiKON | but maybe the one in the debug layer | 01:31 |
philiKON | heh, it only does <p tal:content="context"/> | 01:31 |
J1m | cool | 01:32 |
*** alga has quit IRC | 01:32 | |
mgedmin | ok, later | 01:34 |
*** mgedmin has quit IRC | 01:34 | |
*** WebMaven_ has quit IRC | 01:37 | |
*** mexiKON has joined #zope3-dev | 01:44 | |
*** tziade_ has quit IRC | 01:51 | |
*** philiKON has quit IRC | 02:04 | |
*** J1m has quit IRC | 02:07 | |
*** hazmat has quit IRC | 02:17 | |
*** srichter has joined #zope3-dev | 02:22 | |
*** mgedmin has joined #zope3-dev | 02:39 | |
*** mexiKON is now known as philiKON | 02:45 | |
mgedmin | philiKON, are you traveling between Mexico and Phillipines all the time? | 02:47 |
mgedmin | src/zope/component/README.txt has DOS-style line endings and no svn:eol-style property, this causes a ValueError in doctest | 02:54 |
philiKON | mgedmin, *grin* :) | 02:54 |
philiKON | mgedmin, ouch, but i guess that's easy to fix with recode and the svn property | 02:55 |
mgedmin | ouch, it also used 2.4 pythons @decorator syntax | 02:56 |
*** jdz_ has joined #zope3-dev | 02:57 | |
mgedmin | waah, the diff is unreadable: http://z3c.pov.lt/20050222221400.15394203345@mail.zope.org | 02:57 |
mgedmin | I committed the Unauthorized change | 02:59 |
mgedmin | bye | 02:59 |
*** mgedmin has quit IRC | 02:59 | |
*** ChanServ sets mode: +o srichter | 03:03 | |
philiKON | srichter, you have auto-props enabled for eol-style? | 03:18 |
srichter | let me check | 03:18 |
philiKON | i think zope.componet/README.txt was added by your blow-services, right? | 03:18 |
srichter | yes | 03:18 |
philiKON | Egon supposedly changed something ("Prompt added") which seemed to invoke the windows line endings | 03:18 |
srichter | no, auto props are off | 03:19 |
philiKON | :( | 03:19 |
srichter | what do I need to do? | 03:19 |
philiKON | enable auto-props in general | 03:19 |
philiKON | and then set svn:eol-style="native" for *py *txt *zcml | 03:20 |
philiKON | *pt | 03:20 |
srichter | ok | 03:21 |
philiKON | ouch | 03:23 |
philiKON | egon added a >>> prompt for the 2.4 decorator syntax | 03:23 |
srichter | ouch | 03:24 |
philiKON | damn, i don't have recode installed | 03:24 |
philiKON | ah, you can do it in emacs | 03:25 |
philiKON | srichter, should i fix this? | 03:26 |
srichter | yes | 03:26 |
philiKON | ok | 03:26 |
philiKON | we need to go through the z3 sources and set svn:eol-style on all text files | 03:27 |
philiKON | basically do svn propset svn:eol-style native *py *zcml *txt *pt in every directory | 03:27 |
srichter | can you auto-do this? | 03:27 |
philiKON | i can try | 03:29 |
*** __gotchaway has joined #zope3-dev | 03:38 | |
*** __gotchaway is now known as __gotcha | 03:38 | |
__gotcha | /msg NickServ IDENTIFY celodor | 03:38 |
*** __gotcha has quit IRC | 03:46 | |
philiKON | srichter, ok, i'm having a simple shell script run over my workingcopy | 03:49 |
philiKON | lol | 03:49 |
philiKON | philipp@bender:~/dev/Zope3/src/zope$ svn st | 03:49 |
philiKON | M app/component/fields.py | 03:49 |
philiKON | that's all :) | 03:49 |
srichter | :-) | 03:50 |
* philiKON wonders about new stuff like pytz, or stuff like zwiki | 03:50 | |
philiKON | pytz is ok | 03:50 |
philiKON | srichter, btw, still working ont he bugtracker? | 03:51 |
srichter | have not in a long time | 03:52 |
srichter | I have been busy with apidoc lately | 03:52 |
srichter | cool changes about to arrive | 03:52 |
philiKON | i think my script wasn't working right | 03:53 |
*** `anthony has quit IRC | 03:54 | |
philiKON | i was just wondering coz it's been sitting there for some time now... | 03:54 |
Damascene | philiKON: you are in europe? | 03:55 |
philiKON | yes | 03:55 |
Damascene | wow, so it's about 3 AM there? | 03:55 |
philiKON | yup | 03:56 |
philiKON | srichter, ok, all checked in now | 04:00 |
srichter | thanks | 04:01 |
philiKON | damn, as a committer you know have to be subscribed to z3-checkins in order for your commit email to be delivered to the list | 04:03 |
philiKON | i subscribed as philipp@weitershausen.de but checkin messages get sent as philikon@philikon.de so they were held for approval | 04:04 |
philiKON | anyway, i'm off to bed | 04:04 |
Damascene | night | 04:04 |
srichter | night | 04:04 |
*** philiKON is now known as philiZZZ | 04:05 | |
*** `anthony has joined #zope3-dev | 04:15 | |
*** sashav has quit IRC | 04:52 | |
*** bradb has joined #zope3-dev | 05:11 | |
*** jdz_ has quit IRC | 05:25 | |
*** bradb has quit IRC | 07:11 | |
*** jhauser has joined #zope3-dev | 07:40 | |
zagy | moin | 09:02 |
*** `anthony has quit IRC | 09:39 | |
*** Theuni has joined #zope3-dev | 09:39 | |
*** tav is now known as tav|offline | 09:53 | |
*** dlk has joined #zope3-dev | 10:25 | |
*** _dlk has joined #zope3-dev | 10:35 | |
*** dlk has quit IRC | 10:36 | |
*** _dlk is now known as dlk | 10:37 | |
*** dlk has left #zope3-dev | 10:38 | |
*** dlk has joined #zope3-dev | 10:38 | |
*** vlado has joined #zope3-dev | 10:58 | |
*** MalcolmC has joined #zope3-dev | 11:24 | |
*** dlk has quit IRC | 12:07 | |
*** mooded has joined #zope3-dev | 12:08 | |
*** tziade_ has joined #zope3-dev | 12:12 | |
*** tziade_ is now known as tarek_ | 12:12 | |
*** sashav has joined #zope3-dev | 13:12 | |
*** mgedmin has joined #zope3-dev | 13:24 | |
philiZZZ | mgedmin, i found your entry in CHANGES.txt a little bit misleading. it's really not a feature of the unauthroized exception to show the objecdt but of the Attribute CHecker... other place where Unauthorized is thrown, it doesn't show anything at all | 13:34 |
mgedmin | philiZZZ, true | 13:36 |
mgedmin | can you suggest a better wording? | 13:36 |
philiZZZ | "WHen raising the Unahtorized exception, the security checker now passes the object in question in addition to the attribute name and missiing permission. This should make debugging easier." | 13:39 |
*** regebro has joined #zope3-dev | 13:40 | |
mgedmin | thx | 13:42 |
mgedmin | I'll take the libery of replacing "WHen" with "When", though ;) | 13:42 |
philiZZZ | yeh, a couple of typos in there :) | 13:42 |
* philiZZZ wakes up | 13:42 | |
* philiZZZ philiKON | 13:42 | |
*** philiZZZ is now known as philiKON | 13:42 | |
philiKON | there we are | 13:42 |
*** bradb has joined #zope3-dev | 13:45 | |
*** hazmat has joined #zope3-dev | 13:48 | |
*** hazmat has quit IRC | 13:49 | |
*** tarek_ is now known as tarek_away | 14:10 | |
*** `anthony has joined #zope3-dev | 14:12 | |
*** hazmat has joined #zope3-dev | 14:12 | |
*** srichter has quit IRC | 14:24 | |
*** __gotcha has joined #zope3-dev | 14:50 | |
mgedmin | boo, when I try to profile the tests of my z3 app, I get an assertion error in /usr/lib/python2.3/hotshot/stats.py | 14:53 |
*** __gotcha has quit IRC | 14:53 | |
zagy | mgedmin: I had those too, until upgrading to python 2.3.5 | 14:55 |
* mgedmin checks | 14:56 | |
mgedmin | I'm running 2.3.5 here | 14:57 |
*** __gotcha has joined #zope3-dev | 14:59 | |
*** niemeyer has joined #zope3-dev | 15:02 | |
*** jhauser has quit IRC | 15:12 | |
*** srichter has joined #zope3-dev | 15:12 | |
*** ChanServ sets mode: +o srichter | 15:12 | |
*** apoirier has joined #zope3-dev | 15:16 | |
*** hazmat has quit IRC | 15:42 | |
*** mgedmin has quit IRC | 15:46 | |
*** mkerrin has joined #zope3-dev | 15:47 | |
regebro | Hmmm.... Right now, I'm trying to do a "read-only" field that has it's data set in update, and not from a form. | 15:50 |
regebro | Does that even make sense? | 15:50 |
regebro | ...not from a form inut I should say... | 15:50 |
regebro | s/inut/input | 15:51 |
* regebro has had too little cofee. | 15:51 | |
philiKON | so, it gets updated on edit but it doesn't have a widget rendered? | 15:52 |
regebro | Well, it has a widget (or will have) but you can't edit that widget. | 15:52 |
regebro | Instead, I want the widget to change depending on the values of the other fields. | 15:53 |
regebro | Hmmm. Think if it as a search form, and what I'm trying to do is a result widget. ;) | 15:53 |
philiKON | hmmm. ok | 15:54 |
philiKON | you could mock this up as an input widget | 15:54 |
philiKON | that gathers its data from other field inputs | 15:54 |
philiKON | it's not "kosher" but it should do what you want | 15:54 |
regebro | Right. | 15:54 |
regebro | You can't get that data from the widget code if I understand it? | 15:55 |
regebro | Instead I'd update the fields data during the views update(), I imagine? | 15:55 |
*** tarek_away is now known as tarek_ | 15:59 | |
*** J1m has joined #zope3-dev | 16:04 | |
Workblia | what is the standart procedure of signing the contributors agreement ? | 16:07 |
Workblia | i mean whom shold i send it to ? | 16:07 |
Workblia | i got it on paper and in png now | 16:07 |
*** tvon has quit IRC | 16:14 | |
J1m | You can email me the png. jim@zope.com. | 16:18 |
J1m | Of course, the agreement itself has mailing instructions. | 16:19 |
J1m | You did read the agreement, right? :) | 16:19 |
Workblia | it doesn't say anything about the email part ;) | 16:23 |
Workblia | and will you handle a 400kb png | 16:24 |
Workblia | or should i give you the link to it ? | 16:24 |
J1m | yes | 16:24 |
J1m | just email it | 16:25 |
rejj | Did you get a chance to think about what I asked the other day, J1m? | 16:26 |
rejj | re, non-urgent work that would be appropriate for learning how/where to dive into z3 | 16:27 |
J1m | Sorry, no | 16:28 |
J1m | Actually, srichter might be a better person to ask. | 16:28 |
*** apoirier has quit IRC | 16:28 | |
rejj | ok | 16:28 |
*** apoirier has joined #zope3-dev | 16:29 | |
srichter | rejj: there are several cleanup nd UI tasks to do | 16:31 |
srichter | cleanup: Ensure that all modules are restructured text | 16:32 |
srichter | cleanup: Update the headers to 2005 (we have a script) | 16:32 |
srichter | UI: you should coordinate with Roger (projekt01 on IRC) | 16:32 |
srichter | rejj: other than that, do you have an area you are more knowledgable in than others? like i18n, rest, ... | 16:34 |
srichter | rejj: oh, another task would be to support an "order" attribute for online help topics | 16:35 |
rejj | That's hard to judge without knowing how knowledgable everyone else is ;) | 16:35 |
srichter | then topics would not be sorted by name but take the order into account first | 16:35 |
rejj | I'm interested in learning how the core works and fits together, but I guess anything is good as a start | 16:36 |
srichter | well, I don't want to compare yourself to other people but compare your knowledge among topics you know | 16:36 |
srichter | well, if you want to get to know the core, write a README.txt for the Publisher API | 16:36 |
srichter | i.e. zope.publisher, zope.app.publisher and zope.publication | 16:36 |
srichter | this is probably the oldest issue in the collector :-) | 16:37 |
rejj | heh | 16:37 |
rejj | But also a bit of a Catch 22, surely | 16:37 |
rejj | To be able to write it, I'd first need to go read something that would probably have what the contents of that README would want to be ;) | 16:37 |
Workblia | J1m, you got new mail ;) | 16:38 |
srichter | well, actually I can give you a starting point and while you learn you write your ideas down | 16:38 |
srichter | we help you correct it | 16:38 |
rejj | that sounds workable | 16:39 |
srichter | rejj: this way you get a lot of feedback and you are constantly corrected | 16:39 |
srichter | yes, it is the oldest issue (Issue 10) | 16:39 |
rejj | heh, since 2002 | 16:41 |
rejj | ouch | 16:41 |
srichter | yes, this issue had been issued right after we rewrote the framework to use the component architecture, but noone got around doing the docs later | 16:41 |
regebro | rejj: One thing that slowly teaches you how Zope3 internals work is extending Five. | 16:42 |
regebro | That's what I have been doing. | 16:42 |
regebro | Hmm. I have a widget and a field now that is a "mocked up" input widget. So far so good. | 16:43 |
regebro | But what is the actual "correct" way to get that data when I render? | 16:44 |
regebro | I can find the data in widget.context.context.adapted.<fieldname>, but that's just silly... | 16:44 |
srichter | the widget should do all this for you | 16:45 |
*** J1m is now known as J1m|away | 16:45 | |
regebro | Yes, but how? | 16:46 |
regebro | aha, found it. _getFormValue() | 16:48 |
regebro | Everything is so split up on millions of little bits and pieces it's darn near impossible to find anything... | 16:49 |
srichter | regebro: I think I will implement a general browser:form directive this or next week; then most of this should not be necessary anymore | 16:50 |
*** gintas has joined #zope3-dev | 16:51 | |
regebro | That might help a bit. (I'd still need to implement the widget, I guess.) | 16:52 |
regebro | In any case, for this for it's actually quite nice to have an editform. | 16:52 |
regebro | I create a little "helper object" by adapting my object to a helper interface, and the helper objects contain the methods that the form needs. | 16:53 |
regebro | Keeps the main object less cluttered. | 16:53 |
srichter | right | 16:53 |
srichter | you can actually do this using an adapter | 16:54 |
regebro | Well, I am. or what you do mean with "this"? | 16:54 |
srichter | for the editform you can specify for which interface the editform is for but specify a different interface for the edit form | 16:54 |
regebro | Exactly what I'm doing. Very nice. | 16:55 |
srichter | the adapter from the "for" to the "schema" interface is automatically looked up | 16:55 |
srichter | oh ok. | 16:55 |
*** Theuni has quit IRC | 16:57 | |
tarek_ | hello, I have a question about installers : | 17:00 |
tarek_ | I have a Five Product that i need to run an installation process, so i do it the CMF way . Is there any thing / principle in Zope 3 that can be used yet to prepare my product for future migration ? (apis, interfaces, philosophy) | 17:03 |
*** mkerrin has quit IRC | 17:08 | |
srichter | tarek_: don't use services directly; don't use presentation API (use adapter API instead) | 17:12 |
tarek_ | srichter: ok, I will focus on that | 17:13 |
*** GaryPoster has joined #zope3-dev | 17:17 | |
*** rejj has quit IRC | 17:20 | |
*** niemeyer has quit IRC | 17:29 | |
*** dlk has joined #zope3-dev | 17:56 | |
*** mooded has quit IRC | 18:00 | |
*** tvon has joined #zope3-dev | 18:01 | |
*** benji_york has joined #zope3-dev | 18:11 | |
*** hazmat has joined #zope3-dev | 18:50 | |
*** Theuni has joined #zope3-dev | 18:50 | |
*** vlado has quit IRC | 18:59 | |
*** regebro has quit IRC | 19:00 | |
philiKON | srichter, that's not really useful advice if you're working with X3.0 (which Five requires) | 19:09 |
philiKON | you can't just substitute a getView class with a getMultiAdapter | 19:09 |
srichter | that's sad | 19:12 |
srichter | so the semantics in Five are different :-( | 19:12 |
* tarek_ has a hard time to make choices in his Five product, especially in this subject | 19:13 | |
tarek_ | when i start to code things to make it work in my CMF env. i try to keep in mind "do it as muche zope3-ish you can" but.... | 19:14 |
philiKON | srichter, no | 19:15 |
philiKON | srichter, they're not | 19:15 |
philiKON | srichter, they're like X3.0 | 19:15 |
srichter | ok | 19:15 |
philiKON | X3.0 has two separate services... Presentation and Adapters | 19:15 |
philiKON | so, Five has that too | 19:15 |
*** gintas has quit IRC | 19:16 | |
srichter | ok | 19:16 |
philiKON | tarek_, the installation stuff that CMF needs you'll have to replicate in your Five-based product, too... some things can't just be done the z3 way, especially when it's about pleasing an older framework's wishes (e.g. CMF initialization) | 19:17 |
tarek_ | philiKON: ok. | 19:17 |
* tarek_ will look upon the setup framework in the future Z3 CMF / hoping that this will be thaught and done on the first steps | 19:19 | |
tarek_ | install -> setup | 19:19 |
*** mgedmin has joined #zope3-dev | 19:35 | |
*** dlk has quit IRC | 19:43 | |
*** gintas has joined #zope3-dev | 19:51 | |
*** tvon has quit IRC | 19:58 | |
*** jdz_ has joined #zope3-dev | 20:04 | |
*** hazmat has quit IRC | 20:13 | |
*** apoirier has quit IRC | 20:15 | |
*** alga has joined #zope3-dev | 20:18 | |
*** Theuni has quit IRC | 21:04 | |
*** tvon|desk has joined #zope3-dev | 21:22 | |
*** tvon has joined #zope3-dev | 21:35 | |
*** GaryPoster has quit IRC | 21:50 | |
*** GaryPoster has joined #zope3-dev | 21:52 | |
*** nut has joined #zope3-dev | 22:07 | |
*** benji_york has quit IRC | 22:09 | |
mgedmin | um, am I stupid, or does OrderedMultiSelectWidget completely ignore setRenderedValue? | 22:09 |
* mgedmin peering at the source | 22:09 | |
mgedmin | setUpEditWidgets works with this widget -- or so I assume, seeing that Pluggable Auth Utility edit form uses it | 22:10 |
mgedmin | setUpWidgets(..., initial={...}) doesn't | 22:10 |
* mgedmin prepares to file a bug | 22:10 | |
*** GaryPoster has quit IRC | 22:15 | |
mgedmin | http://www.zope.org/Collectors/Zope3-dev/371 | 22:17 |
*** GaryPoster has joined #zope3-dev | 22:17 | |
*** Workblia is now known as Awayblia | 22:41 | |
*** niemeyer has joined #zope3-dev | 22:55 | |
* mgedmin finds the names of doctest option flags extremely hard to remember | 22:58 | |
srichter | mgedmin: yeah; I alsways activate NORMALIZE_WHITESPACE these days, so I can copy and paste | 23:11 |
srichter | and ELLIPSIS finally sticks | 23:11 |
srichter | more I don't need | 23:11 |
mgedmin | REPORT_NDIFF is sometimes useful | 23:15 |
mgedmin | but yeah, I also primarily use NORMALIZE_WHITESPACE and ELLIPSIS | 23:15 |
mgedmin | why can't I comment out >>> lines in doctests? | 23:25 |
mgedmin | if I write #>>> foo, I get an "inconsistent leading indentation" error | 23:25 |
srichter | Put them at the beginning of the line | 23:26 |
srichter | the # I mean | 23:26 |
srichter | also put an empty line before the comment | 23:26 |
mgedmin | doesn't work | 23:26 |
mgedmin | actually, I'm wrong | 23:26 |
mgedmin | since there was no empty line after >>>, the next line is supposed to be either a statement, or output | 23:26 |
mgedmin | >>> #foo works though ;) | 23:26 |
*** jdz__ has joined #zope3-dev | 23:30 | |
*** jdz_ has quit IRC | 23:30 | |
*** jdz__ is now known as jdz_ | 23:30 | |
mgedmin | it is a pity that test.py -1 is ignored when I explicitly specify doctest options in test_suite() | 23:32 |
srichter | really? | 23:34 |
srichter | darn :-( | 23:34 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!