*** palmTree has quit IRC | 00:05 | |
*** whit has quit IRC | 00:06 | |
*** whit has joined #zope3-dev | 00:19 | |
*** FrankBerger has left #zope3-dev | 00:20 | |
*** deo has quit IRC | 00:34 | |
*** ignas has joined #zope3-dev | 00:36 | |
*** yota has quit IRC | 00:38 | |
*** projekt01 has quit IRC | 00:42 | |
*** whit has quit IRC | 00:52 | |
*** anguenot has joined #zope3-dev | 00:53 | |
*** whit has joined #zope3-dev | 00:54 | |
*** benji_york has quit IRC | 01:28 | |
*** projekt01 has joined #zope3-dev | 01:31 | |
*** whit has quit IRC | 02:22 | |
*** whit has joined #zope3-dev | 02:24 | |
*** whit has quit IRC | 02:24 | |
*** ignas has quit IRC | 02:44 | |
*** d2m has quit IRC | 03:02 | |
*** d2m_ has joined #zope3-dev | 03:02 | |
*** d2m_ is now known as d2m | 03:02 | |
*** niemeyer has quit IRC | 03:28 | |
*** stub has joined #zope3-dev | 03:29 | |
*** batok has joined #zope3-dev | 03:42 | |
*** projekt01 has quit IRC | 03:45 | |
*** batok has quit IRC | 03:52 | |
*** niemeyer has joined #zope3-dev | 03:53 | |
*** jinty has quit IRC | 04:16 | |
*** bradb has quit IRC | 06:05 | |
*** tvon has quit IRC | 06:14 | |
*** tvon has joined #zope3-dev | 06:22 | |
*** MacYET has joined #zope3-dev | 07:09 | |
*** MacYET has left #zope3-dev | 07:09 | |
*** dobee has joined #zope3-dev | 07:58 | |
*** zagy has joined #zope3-dev | 08:14 | |
*** niemeyer has quit IRC | 08:20 | |
*** BjornT has quit IRC | 08:59 | |
*** BjornT has joined #zope3-dev | 09:03 | |
*** stub has quit IRC | 09:53 | |
*** projekt01 has joined #zope3-dev | 09:58 | |
*** SureshZ has left #zope3-dev | 10:12 | |
*** tekNico has joined #zope3-dev | 10:12 | |
*** MacYET has joined #zope3-dev | 10:23 | |
MacYET | morning | 10:23 |
---|---|---|
*** stub has joined #zope3-dev | 10:37 | |
*** tarek has joined #zope3-dev | 10:39 | |
*** philiKON has joined #zope3-dev | 11:06 | |
MacYET | worldcookerykon | 11:10 |
philiKON | shanghaikon | 11:17 |
MacYET | already in SHG? | 11:22 |
philiKON | yes | 11:23 |
MacYET | wow | 11:24 |
MacYET | don't litter | 11:24 |
MacYET | don't spit | 11:24 |
philiKON | you confuse this with singapore | 11:24 |
MacYET | ups | 11:24 |
MacYET | Chinakon | 11:24 |
philiKON | now you got it :0 | 11:24 |
philiKON | :) | 11:24 |
MacYET | don#t spit at the chinese wall | 11:25 |
philiKON | haha, ok | 11:25 |
*** faassen has joined #zope3-dev | 11:35 | |
*** sashav has joined #zope3-dev | 11:39 | |
*** MJ has quit IRC | 11:44 | |
*** d2m has quit IRC | 12:05 | |
*** Aiste has quit IRC | 12:21 | |
*** Aiste has joined #zope3-dev | 12:22 | |
tekNico | philiKON: Amazon.co.uk just raised your book's price from 27 to 38£. :-( | 12:26 |
*** kaczordek has joined #zope3-dev | 12:27 | |
*** jinty has joined #zope3-dev | 12:35 | |
*** mgedmin has joined #zope3-dev | 12:45 | |
philiKON | tekNico, ouch | 13:01 |
*** roym has joined #zope3-dev | 13:02 | |
philiKON | tekNico, i'm sorry, i don't do the pricing | 13:03 |
tekNico | philiKON: I'd like to put the book on my Palm. Are you going to let buyers have an electronic copy somehow? :-) | 13:03 |
philiKON | i can't decide that. | 13:03 |
tekNico | philiKON: who can, then? | 13:04 |
philiKON | springer has the exclusive rights to publish | 13:04 |
philiKON | springer is the publisher | 13:04 |
roym | folks: why are view classes untrusted, if all they have to do (and can do) is use removeSecurityProxy on the proxied object? | 13:04 |
tekNico | philiKON: does your agreement explicitly forbid such possibility? | 13:04 |
philiKON | tekNico, yes | 13:05 |
philiKON | wel | 13:05 |
*** ignas has joined #zope3-dev | 13:05 | |
tekNico | philiKON: I see. :-( | 13:05 |
philiKON | it's not unusual | 13:05 |
philiKON | roym, because you simply shouldn't use removeSecurityProxy | 13:05 |
philiKON | if you use removeSecurityProxy, you're throwing away the zope 3 security system; you're on your own then. | 13:06 |
roym | so it is almost always better design to move such code into the content class? | 13:06 |
philiKON | no. never use removeSecurityProxy in your application code | 13:07 |
philiKON | if you're tempted to use it, you're doing somethign wrong | 13:07 |
philiKON | content classes should generally be dull | 13:07 |
philiKON | they know how to store and retrieve data. that's it | 13:07 |
roym | hmm, if I need to do an update on content classes, then you're saying that this forces one to do this only thru the published interfaces (w/security checking). | 13:08 |
philiKON | if by "publihsed interfaces" you mean something like <require permission="zope.ManageContent" interface=".mymodule.interfaces.IMyClasssInterface" />, then yes | 13:09 |
philiKON | if you're setting stuff on a content object from the "outside" (e.g. an untrusted view component), it needs to be on attributes that have security declarations | 13:10 |
mgedmin | philiKON, sometimes removeSecurityProxy is inevitable | 13:10 |
philiKON | otherwise you get a ForbiddenAttributeError | 13:10 |
mgedmin | ... unless you have a trusted adapter | 13:10 |
philiKON | mgedmin, those cases are *Extremely* rare | 13:10 |
philiKON | exactly, most of the times it can be fixed with a trusted adapter | 13:10 |
* mgedmin is enlightened | 13:11 | |
roym | Can a view be declared trusted? after all, isn't it an adapter. | 13:11 |
philiKON | no, we don't have such a mechanism yet AFAIK | 13:12 |
philiKON | roym, maybe you can shed some light as to what you're trying to do? | 13:12 |
roym | I have a folder iterator; it needs to store a user choice (from a question). | 13:13 |
*** andres has joined #zope3-dev | 13:13 | |
roym | The user sees a view (of a readonly content object - question). | 13:14 |
andres | Sorry, for bothering again, but i simply cant get an addform,which is created via code, to work. | 13:14 |
roym | However, I find that to present the view, I need to access the question attributes, and find myself circumventing zope security since I am trying to do this from a view. | 13:14 |
*** MacYET has left #zope3-dev | 13:15 | |
*** jinty has quit IRC | 13:15 | |
philiKON | roym, sounds like you're missing security declarations for that question content object | 13:15 |
philiKON | andres, what's the problem? | 13:15 |
roym | philiKON: let me dig in deeper into that.. thanks. | 13:16 |
roym | ...and incidentally, is there an easy way to find out the permissions that the current principal has at runtime | 13:16 |
andres | philiKON, im not even sure, if i try to do it the right way. Currently i inherit from editview, is that correct? | 13:16 |
philiKON | yes | 13:17 |
roym | I find checker.get_permissions very handy | 13:17 |
philiKON | roym, not sure if this is the "blessed" way, but maybe canAccess and canWrite is already enough for you? | 13:17 |
roym | thats good enough for moi. | 13:18 |
andres | philiKON, in __init__ i set self.schema to the Interface for which the addfrom should be displayed. In this form: self.schema= abc.interfaces.IPerson | 13:20 |
andres | but then i always get type errors | 13:21 |
philiKON | aha. maybe you can post the traceback somewhere... i might take a look at it | 13:23 |
andres | Im doing this atm: http://crystal.pastebin.com/375559 | 13:23 |
roym | Am i right in assuming that if I have a PersistentDict/PersistentList attribute, then I don't need to set _p_changed on the container to have the changes persisted? | 13:30 |
andres | philiKON, Others, Any Idea | 13:30 |
andres | ? | 13:30 |
mgedmin | roym, you are right | 13:31 |
roym | thanks. | 13:31 |
mgedmin | andres, does your content object provide IPerson? | 13:31 |
mgedmin | is it adaptable to IPerson? | 13:31 |
mgedmin | I guess not -- at least that's what the traceback says | 13:32 |
andres | mgedmin, It should. | 13:32 |
mgedmin | provide? or be adaptable? | 13:32 |
andres | Provide | 13:33 |
*** MJ has joined #zope3-dev | 13:35 | |
mgedmin | so, klinik.Klinik implements(IPerson) | 13:36 |
philiKON | roym, yep | 13:36 |
mgedmin | is there only one IPerson? | 13:36 |
philiKON | roym, yep 2 persistentlist/persistentdict | 13:36 |
*** srichter has quit IRC | 13:38 | |
andres | mgedmin, args, thanks, i think i got it. | 13:39 |
*** regebro has joined #zope3-dev | 13:56 | |
andres | Yes, it really worked. | 14:06 |
andres | Although for now only with existing IPerson's | 14:06 |
*** sashav has quit IRC | 14:10 | |
*** anguenot has quit IRC | 14:22 | |
*** srichter has joined #zope3-dev | 14:33 | |
*** niemeyer has joined #zope3-dev | 15:04 | |
*** kaczordek has quit IRC | 15:08 | |
*** ChanServ sets mode: +o srichter | 15:10 | |
*** sashav has joined #zope3-dev | 15:24 | |
*** benji_york has joined #zope3-dev | 15:33 | |
*** MrTopf has joined #zope3-dev | 15:50 | |
*** mgedmin has quit IRC | 15:52 | |
*** anguenot has joined #zope3-dev | 15:57 | |
*** tvon has quit IRC | 16:03 | |
*** MacYET has joined #zope3-dev | 16:04 | |
*** mkerrin has joined #zope3-dev | 16:06 | |
*** sashav has quit IRC | 16:19 | |
*** niemeyer_ has joined #zope3-dev | 16:26 | |
*** J1m has joined #zope3-dev | 16:28 | |
*** deo has joined #zope3-dev | 16:28 | |
*** VladDrac has quit IRC | 16:29 | |
*** J1m has quit IRC | 16:30 | |
*** deo has quit IRC | 16:37 | |
*** niemeyer has quit IRC | 16:41 | |
*** niemeyer_ is now known as niemeyer | 16:41 | |
*** efge has joined #zope3-dev | 17:15 | |
*** faassen has quit IRC | 17:21 | |
*** _projekt01 has joined #zope3-dev | 17:22 | |
*** _torsti76_ has joined #zope3-dev | 17:31 | |
_torsti76_ | hi @all! | 17:35 |
benji_york | hi there | 17:35 |
_torsti76_ | stefan, i set up a closed channel for our NeckarSprint at #zope3-neckar | 17:35 |
philiKON | _torsti76_, can i join? | 17:36 |
MacYET | _torsti76_: why is the channel protected? | 17:37 |
efge | why closed ? | 17:37 |
philiKON | right, why closed | 17:37 |
* philiKON didn't even bother to think about that | 17:37 | |
_torsti76_ | hmm, maybe it's too long since i used irc for the last time | 17:38 |
_torsti76_ | but then it was "in" for some kiddies to occupy opened channels | 17:38 |
efge | this isn't undernet :) | 17:38 |
philiKON | _torsti76_, no problem with this on freenode | 17:39 |
philiKON | _torsti76_, or do you see kiddies spamming this channel? | 17:39 |
_torsti76_ | nope - so just for your relief - the channel is open now ;o) | 17:39 |
*** projekt01 has quit IRC | 17:40 | |
philiKON | thanks | 17:40 |
efge | cool | 17:40 |
_torsti76_ | you're welcome | 17:40 |
*** _projekt01 is now known as projekt01 | 17:40 | |
*** bradb_ has joined #zope3-dev | 17:41 | |
*** jvts has joined #zope3-dev | 17:44 | |
*** faassen has joined #zope3-dev | 17:47 | |
*** bradb_ has quit IRC | 17:48 | |
*** _torsti76_ has left #zope3-dev | 17:50 | |
*** zagy has quit IRC | 17:50 | |
*** bradb has joined #zope3-dev | 17:52 | |
*** projekt01 has quit IRC | 17:57 | |
*** whit has joined #zope3-dev | 17:57 | |
*** vlado has joined #zope3-dev | 18:00 | |
*** whit has quit IRC | 18:09 | |
*** zagy has joined #zope3-dev | 18:11 | |
*** d2m has joined #zope3-dev | 18:12 | |
* MacYET is away: Blicket auf zum Retterblick, Alle reuig Zarten, Euch zu sel'gem GlŸck, Dankend umzuarten! | 18:23 | |
*** MacYET has left #zope3-dev | 18:24 | |
vlado | there is use of 2.4 style decorators in zope.formlib doctests but i just can't use them in the doctest of my simple script | 18:25 |
vlado | what am i doing wrong ? | 18:26 |
vlado | i'm getting SyntaxError: unexpected EOF while parsing | 18:26 |
vlado | anyone ? | 18:27 |
benji_york | vlado, do you have an encoding marker in your source file? | 18:27 |
vlado | no | 18:27 |
benji_york | how long is your script? | 18:27 |
benji_york | (i.e. is is short enough to post here?) | 18:28 |
*** alga has joined #zope3-dev | 18:29 | |
vlado | """ | 18:29 |
vlado | >>> @d | 18:29 |
vlado | >>> def f(): pass | 18:29 |
vlado | """ | 18:29 |
vlado | def d(f): pass | 18:29 |
vlado | if __name__ == '__main__': | 18:29 |
vlado | import doctest | 18:29 |
vlado | doctest.testmod() | 18:29 |
benji_york | vlado, the second "prompt" in your doctest should be "..." because you're continuing the defenition of the function | 18:31 |
vlado | ah | 18:31 |
vlado | thanks! | 18:31 |
benji_york | when writing doctests each >>> starts a new "file" which will be compiled and run, hence the EOF error | 18:32 |
vlado | i wouldn't guess it | 18:34 |
benji_york | now you will :) | 18:34 |
*** Alef has joined #zope3-dev | 18:38 | |
*** jinty has joined #zope3-dev | 18:39 | |
*** niemeyer is now known as nie_lunch | 18:48 | |
vlado | so we can't decorate classes because in current implementation the decorators are part of func's definition... | 18:52 |
benji_york | vlado (if I understand you correctly): right, Python doesn't have "class decorators" | 18:53 |
vlado | maybe pje's bracked-based impl has... | 18:56 |
vlado | or maybe they are yagni ;-) | 18:56 |
SteveA | the class advice we use for implements() and other things is equivalent | 19:00 |
vlado | but the route is different ;-) | 19:02 |
*** dobee has quit IRC | 19:04 | |
*** stub has quit IRC | 19:13 | |
*** projekt01 has joined #zope3-dev | 19:14 | |
*** MrTopf has quit IRC | 19:17 | |
*** nie_lunch is now known as niemeyer | 19:42 | |
*** deo has joined #zope3-dev | 19:45 | |
*** philiKON has quit IRC | 19:50 | |
*** J1m has joined #zope3-dev | 19:51 | |
*** alga has quit IRC | 19:57 | |
*** tvon has joined #zope3-dev | 20:03 | |
J1m | anguenot, efge, regebro ayt? | 20:06 |
*** faassen has quit IRC | 20:10 | |
*** J1m has quit IRC | 20:11 | |
anguenot | Hi Jim | 20:14 |
*** andres has quit IRC | 20:19 | |
*** yota has joined #zope3-dev | 20:26 | |
*** srichter has quit IRC | 20:28 | |
*** deo has quit IRC | 20:41 | |
*** vlado has quit IRC | 20:41 | |
*** mgedmin has joined #zope3-dev | 20:41 | |
*** niemeyer_ has joined #zope3-dev | 20:50 | |
benji_york | mgedmin, I mislead you yesterday about the contact info for planet.python.org | 20:51 |
benji_york | I still don't know who the correct contact is, so I just emailed webmaster@python.org, and fdrake replied :) | 20:51 |
*** niemeyer has quit IRC | 20:53 | |
mgedmin | benji_york, the mail you gave me was the one which is prominently displayed on the front page of planetpython.org | 21:00 |
mgedmin | I'm surprised it was wrong | 21:00 |
*** tarek has quit IRC | 21:02 | |
benji_york | mgedmin, the email I gave you *is* the contact for planetpython.org, but that site has been made "unofficial" by planet.python.org and the maintainer of planetpython.org (who responded to me) said he didn't know how to contact the maintainer of planet.python.org | 21:03 |
mgedmin | whee | 21:05 |
benji_york | :) | 21:05 |
benji_york | Fred was hopeful that one of the people that get the webmaster@ email would be able help | 21:06 |
benji_york | (but I haven't heard anything back yet) | 21:06 |
*** andres has joined #zope3-dev | 21:06 | |
andres | Hi again. | 21:06 |
mgedmin | benji_york, your blog is already aggregated on the python planet | 21:06 |
benji_york | on the "unofficial" planetpython.org, but not planet.python.org (they use different lists of feeds) | 21:07 |
* mgedmin tries to remember which one he aggregates | 21:08 | |
*** mkerrin has quit IRC | 21:09 | |
*** tekNico has left #zope3-dev | 21:13 | |
*** anguenot has quit IRC | 21:25 | |
*** SureshZ has joined #zope3-dev | 21:28 | |
andres | Sorry for bothering again. My Problem: I want different autogen. form's on one page. What i did: I subclassed Editview. With this i can generate a editform for one object. This works, as long as only on formular is included, but as soon two are included i get an "Unautorized: You're not allowed in here." | 21:30 |
andres | With no further information than the Object + Address of the current container. | 21:31 |
andres | Any idea how i could get more information about that? Or what the problem could be? | 21:33 |
andres | Both forms, i try to display at once work, when i display them alone. | 21:33 |
*** efge has quit IRC | 21:35 | |
*** niemeyer_ is now known as niemeyer | 21:36 | |
benji_york | sorry, andres, nothing off of the top of my head and can't dig into it at the moment | 21:39 |
andres | benji_york, its okay ;-) | 21:39 |
andres | thanks anyway | 21:40 |
*** projekt01 has quit IRC | 22:05 | |
*** projekt01 has joined #zope3-dev | 22:05 | |
*** tvon has quit IRC | 22:16 | |
*** Alef has quit IRC | 22:19 | |
*** FrankBerger has joined #zope3-dev | 22:25 | |
FrankBerger | hello everyone, can someone help me to get tcpwatch and dochttp running correctly? it seems that dochttp does not include all requests into the textfile and die responses are missing at all :-( | 22:26 |
mgedmin | FrankBerger, try the built-in request recorder | 22:27 |
mgedmin | http://mg.pov.lt/blog/zope3-request-recorder.html | 22:27 |
*** mgedmin has quit IRC | 22:29 | |
FrankBerger | mgedmin: you have developed that recorder? | 22:30 |
FrankBerger | i am currently working on something similar to that (thats why i am looking after tcpwatch and dochttp) :-) | 22:31 |
benji_york | FrankBerger, note that Zope 3.2 will include testbrowser which is a friendlier way of doing functional testing | 22:33 |
FrankBerger | wow, cool, may be some day i can contribute to that solution | 22:34 |
FrankBerger | one of my targets at the moment is to seperate testscripts from testdata | 22:36 |
FrankBerger | and i am looking to get a way from an HTTP based solution towards an "web-browser" simulation like mechanize to get the possibility to get javascript support some day | 22:37 |
benji_york | that's what testbrowser is (a software "web-browser"), but it doesn't currently support JavaScript (and I don't think it ever should) | 22:38 |
FrankBerger | wow, are you developing that solution? | 22:39 |
benji_york | yep, let me find the Subersion URL for you to check it out... | 22:40 |
FrankBerger | already found it in google :-) | 22:40 |
FrankBerger | http://svn.zope.org/Zope3/branches/testbrowser-integration/ thats it? | 22:41 |
benji_york | go to the Zope 3 "src/zope" directory and check out svn://svn.zope.org/repos/main/Zope3/branches/testbrowser-integration/src/zope/testbrowser and you can try it out | 22:42 |
benji_york | yep | 22:42 |
FrankBerger | ok i will do that, and look about the differences | 22:43 |
FrankBerger | do you know tools like canoo webtest? | 22:43 |
benji_york | I haven't seen/used that one | 22:44 |
FrankBerger | well, it is a java based solution, made as an ANT plugin | 22:45 |
*** ignas has quit IRC | 22:46 | |
FrankBerger | good thing, they have an XML format which i wanted to try to use | 22:46 |
*** tvon has joined #zope3-dev | 22:53 | |
benji_york | reading about canoo now... | 22:54 |
* benji_york call's "inapropriate use of XML" on canoo | 22:55 | |
FrankBerger | :-) | 22:55 |
benji_york | I'm not real keen on their total dismissal of record/playback; we have a prototype testbrowser doctest and selenium test recorder that doesn't have the problems they characterize record/playback with having (because it records at the user gesture level, not at the HTTP level) | 22:57 |
FrankBerger | yes, thats why i try to do something inbetween like you | 22:58 |
FrankBerger | what do i have to do to get testbrowser running in my zope instance? | 22:59 |
benji_york | just cd to "src/zope" and so "svn co svn://svn.zope.org/repos/main/Zope3/branches/testbrowser-integration/src/zope/testbrowser" and you should be able to import it and run the tests | 23:04 |
benji_york | (you may also have to install one or more of its dependencies, but try without them first) | 23:04 |
FrankBerger | ah, ok, so currently you do not have a webinterface | 23:05 |
benji_york | hmm, no... what would a web interface do? | 23:05 |
FrankBerger | the webpages? (or parts of it) | 23:06 |
benji_york | I'm not understanding. Are you asking if testbrowser can access non-zope3 web pages? | 23:07 |
FrankBerger | no, well, i try to guide the user throu the process of creating the test-script | 23:07 |
FrankBerger | e.g. you have a zope-from say (open_url) | 23:08 |
FrankBerger | the user can enter an URL | 23:08 |
FrankBerger | and afterwards testbrowser uses mechanize to get that URL | 23:08 |
benji_york | oh, ok like an interactive test case builder | 23:09 |
FrankBerger | exactly | 23:09 |
FrankBerger | but it is not as easy at is sounds like | 23:09 |
benji_york | you'd probably be interested in our testrecorder code, but it's not been released yet | 23:09 |
FrankBerger | up to what i have don sofar | 23:09 |
FrankBerger | well, if i have something to show, i can send you some proof-of-concept code | 23:11 |
FrankBerger | may be we can join some of it (or the ideas behind it only) | 23:11 |
FrankBerger | currently i am HTTP based and not browser based | 23:12 |
FrankBerger | because i have problems, to get mechanize running inside zope :-) | 23:12 |
benji_york | for mechanize in zope, look at testbrowser. It uses mechanize as its back-end | 23:13 |
benji_york | see testbrowser.testing for how to wire mechanize directly into the Zope 3 publisher (to bypass going onto the network, and also so you don't have to have an open port for Zope) | 23:14 |
FrankBerger | ah, well, but my problem was a little bit different, I wanted to run mechanize for instance by calling its functions via a web-frontend | 23:15 |
FrankBerger | problem is here to get an persitant state for that mechanize instance | 23:16 |
benji_york | oh, ok | 23:16 |
benji_york | you *might* be able to put the mechanize browser object into a principal annotation (but they must be pickleable, and I don't know if they are or not) | 23:17 |
FrankBerger | as far as what i have seen they are not and that was one of my problems | 23:18 |
FrankBerger | therefore my tool looks very similar to your request-recorder | 23:18 |
FrankBerger | i additionally have some functions to seperate data like form-data/cookies/session-ids from the requests | 23:22 |
benji_york | well, I will warn you that we decided that it was impossible to make HTTP-level recording work well enough to be usable, but good luck anyway FrankBerger :) | 23:30 |
FrankBerger | yea, i know that, that is one of the reasons way i wanted to go to mechanize in the long-term :-) | 23:31 |
FrankBerger | but i have to finish a release-death-line on Friday and i had to postpone the switch to mechanize due to the problems i had with it inside zope :-) | 23:33 |
*** jinty has quit IRC | 23:50 | |
*** SureshZ has left #zope3-dev | 23:51 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!