*** tarek has joined #zope3-dev | 00:10 | |
*** sashav_ has quit IRC | 00:23 | |
*** dobee has quit IRC | 00:41 | |
*** GaryPoster has quit IRC | 00:48 | |
*** palmTree has joined #zope3-dev | 00:52 | |
*** palmTree has quit IRC | 00:55 | |
*** zbir has joined #zope3-dev | 00:57 | |
*** j1m has quit IRC | 01:01 | |
*** MJ has quit IRC | 01:09 | |
*** jinty has quit IRC | 01:41 | |
*** natea has joined #zope3-dev | 01:59 | |
*** _anguenot has joined #zope3-dev | 02:30 | |
*** srichter has joined #zope3-dev | 02:36 | |
*** natea has quit IRC | 03:02 | |
*** Hellfried has quit IRC | 03:02 | |
*** bob2 has quit IRC | 03:02 | |
*** zbir has quit IRC | 03:02 | |
*** projekt01 has quit IRC | 03:02 | |
*** d2m has quit IRC | 03:02 | |
*** SteveA has quit IRC | 03:02 | |
*** Aiste has quit IRC | 03:02 | |
*** andres has quit IRC | 03:02 | |
*** dhuang_ has quit IRC | 03:02 | |
*** jack-e has quit IRC | 03:02 | |
*** vinsci has quit IRC | 03:02 | |
*** natea has joined #zope3-dev | 03:03 | |
*** zbir has joined #zope3-dev | 03:03 | |
*** d2m has joined #zope3-dev | 03:03 | |
*** SteveA has joined #zope3-dev | 03:03 | |
*** Aiste has joined #zope3-dev | 03:03 | |
*** andres has joined #zope3-dev | 03:03 | |
*** Hellfried has joined #zope3-dev | 03:03 | |
*** bob2 has joined #zope3-dev | 03:03 | |
*** dhuang_ has joined #zope3-dev | 03:03 | |
*** vinsci has joined #zope3-dev | 03:03 | |
*** jack-e has joined #zope3-dev | 03:03 | |
*** jfmoxley has joined #zope3-dev | 03:09 | |
*** _anguenot has quit IRC | 03:15 | |
jfmoxley | if i want a schema for a class attribute "1B", how do i define it? "1B = zope.schema.float(" will give me a syntax error obviously | 03:33 |
---|---|---|
jfmoxley | i can set the atttribute with setattr(object, "1B", -5), but i'm not sure how to retrieve it now... object.1B gives an error, too | 03:34 |
jfmoxley | i'm assuming i just need to use an underscore, but i wanted to see if that was the proper way | 03:35 |
*** GaryPoster has joined #zope3-dev | 03:38 | |
*** sashav has joined #zope3-dev | 03:47 | |
*** yota has quit IRC | 03:48 | |
srichter | jfmoxley: attribute names cannot start with a number | 03:50 |
srichter | that's a Python thing | 03:50 |
srichter | actually, I am sure it is forbidden in most langauges | 03:50 |
jfmoxley | so the proper way to do this is to add an underscore, correct | 03:55 |
jfmoxley | like hitter._1B | 03:55 |
*** sashav_ has joined #zope3-dev | 04:13 | |
*** sashav has quit IRC | 04:14 | |
srichter | yeah, though '_' means private in Python (by convention) | 04:23 |
srichter | jfmoxley: any chance you can rename the variable? | 04:24 |
jfmoxley | thanks stephan. i'm hesitant to rename b/c i'm getting it as a field from another database | 04:26 |
*** sashav has joined #zope3-dev | 04:37 | |
*** niemeyer has quit IRC | 04:40 | |
*** sashav_ has quit IRC | 04:43 | |
*** sashav has quit IRC | 04:45 | |
*** sashav has joined #zope3-dev | 04:45 | |
*** JoaoJoao has joined #zope3-dev | 04:55 | |
*** sashav has quit IRC | 05:57 | |
*** sashav has joined #zope3-dev | 05:57 | |
JoaoJoao | Will a proper DateTime widget be in Z3.2? | 06:03 |
*** GaryPoster has quit IRC | 06:20 | |
*** JoaoJoao has quit IRC | 06:22 | |
*** Jim7J1AJH has joined #zope3-dev | 07:21 | |
*** Jim7J1AJH has quit IRC | 07:42 | |
*** zagy has quit IRC | 08:29 | |
*** zagy has joined #zope3-dev | 08:33 | |
*** sashav has quit IRC | 08:35 | |
*** jhauser has quit IRC | 08:51 | |
*** stub has joined #zope3-dev | 09:22 | |
*** stub has quit IRC | 09:26 | |
*** dobee has joined #zope3-dev | 09:29 | |
*** hdima has joined #zope3-dev | 09:47 | |
*** eins has joined #zope3-dev | 10:01 | |
eins | hi all, how do I use sql_delimiter in Zope3 sql scripts? | 10:02 |
*** MJ has joined #zope3-dev | 10:08 | |
*** sashav has joined #zope3-dev | 10:12 | |
*** agroszer has joined #zope3-dev | 10:14 | |
*** dobee has quit IRC | 10:15 | |
*** MJ has quit IRC | 10:16 | |
*** eins has left #zope3-dev | 10:34 | |
*** dobee has joined #zope3-dev | 10:35 | |
*** agroszer has quit IRC | 10:40 | |
*** _anguenot has joined #zope3-dev | 10:51 | |
*** philiKON has joined #zope3-dev | 11:13 | |
*** drzoltron_ has joined #zope3-dev | 11:15 | |
drzoltron_ | I've got a BrowserView which is called by a template. Is it possible to render a different template than the one defined in the zcml ? | 11:18 |
drzoltron_ | (very cryptic question ;)) | 11:18 |
philiKON | just register the same class twice, each with a different template | 11:19 |
philiKON | you can conveniently use the <browser:pages> directive | 11:19 |
drzoltron_ | ahh | 11:19 |
drzoltron_ | and how do I tell the publisher which to render ? | 11:19 |
philiKON | they have different names :) | 11:20 |
philiKON | some_obj/@@view1.html | 11:20 |
philiKON | some_obj/@@view2.html | 11:20 |
drzoltron_ | philiKON: it's not an object | 11:20 |
philiKON | everything is an object | 11:20 |
drzoltron_ | :) | 11:20 |
drzoltron_ | hmm | 11:21 |
philiKON | gotta go | 11:21 |
philiKON | see you 2 or 3 hours | 11:21 |
drzoltron_ | sure ;) | 11:21 |
*** philiKON has quit IRC | 11:22 | |
*** zagy has quit IRC | 11:24 | |
*** stub has joined #zope3-dev | 11:25 | |
*** stub has joined #zope3-dev | 11:30 | |
*** xenru has joined #zope3-dev | 11:30 | |
*** zagy has joined #zope3-dev | 11:33 | |
*** agroszer has joined #zope3-dev | 11:40 | |
*** MJ has joined #zope3-dev | 11:44 | |
*** romanofski has joined #zope3-dev | 11:45 | |
romanofski | moin :) | 11:45 |
*** _anguenot has quit IRC | 12:07 | |
*** _anguenot has joined #zope3-dev | 12:10 | |
*** Theuni has quit IRC | 12:17 | |
*** roym has joined #zope3-dev | 12:32 | |
*** Aiste has quit IRC | 12:32 | |
roym | can someone tell me what the z3 equivalent of Zope2's manage_afterAdd() is? | 12:33 |
roym | I need a hook function to set up stuff after an object has been "located". | 12:33 |
romanofski | thought that this is now handled by events | 12:34 |
romanofski | something like ObjectAddedEvent, if I remember correctly | 12:34 |
roym | I've been putting off learning the event model - I guess this is now reason enough to get into it - thanks! | 12:35 |
romanofski | :) | 12:35 |
*** efge has joined #zope3-dev | 12:37 | |
*** alga has joined #zope3-dev | 12:44 | |
*** ignas has joined #zope3-dev | 12:47 | |
*** Volpe has joined #zope3-dev | 12:51 | |
Volpe | I've set a page to permission="zope.Public" but when I try to access the page, I can't view it unless I authenticate. | 12:52 |
Volpe | Any ideas? | 12:52 |
drzoltron_ | can i build the metal:use-macro"foo/loo/moo" string dynamically ? | 12:54 |
Volpe | I think so, you can in zope 2 :) | 12:54 |
drzoltron_ | Volpe: how does that work, I tried with a $var but z3 didn't want it .. | 12:55 |
*** Aiste has joined #zope3-dev | 12:55 | |
Volpe | You can use TALES, i.e "define macro <expression>" then use-macro="macro" can't you? | 12:55 |
drzoltron_ | Volpe: I tried this one : tal:define="absalon_viewmacro string:bog_macro;" | 12:56 |
drzoltron_ | <div metal:use-macro="context/$absalon_viewmacro/macros/absaloncontent"> | 12:56 |
Volpe | Perhaps write a view method that will return the whole macro rather than using a $var | 12:57 |
*** mgedmin has joined #zope3-dev | 12:58 | |
Volpe | I'm a newb at z3 though, so don't count to much on what I say :-) | 12:58 |
drzoltron_ | hmm :) | 12:58 |
drzoltron_ | quite different than z3 but very cool | 12:58 |
Volpe | That's what I think, z3 is what z2 should have been :-) If I could just figure out zcml. | 12:59 |
Volpe | So no one here knows why a page set to zope.Public could be requesting permission? :\ | 13:00 |
Volpe | authentication* | 13:00 |
d2m | drzoltron_: this was always <div metal:use-macro="context/?absalon_viewmacro/macros/absaloncontent"> | 13:01 |
drzoltron_ | d2m: just found out :) | 13:01 |
drzoltron_ | got a traversal error though, do I have to register the .pt with the macro as a resource or a page ? | 13:01 |
d2m | drzoltron_: i think you will need to pass the correct macroname too | 13:02 |
drzoltron_ | well that should be absaloncontent in my case | 13:03 |
*** mkerrin has joined #zope3-dev | 13:04 | |
Volpe | How is it possible, that I can declare a page public, that makes no context calls, no view calls no anything (just static html) and I have to authenticate before viewing it ??? | 13:06 |
* Volpe 's eye twitches | 13:07 | |
*** Volpe has quit IRC | 13:18 | |
*** lunati1 has joined #zope3-dev | 13:18 | |
*** lunati1 is now known as lunatik | 13:19 | |
*** lunatik has left #zope3-dev | 13:19 | |
*** niemeyer has joined #zope3-dev | 13:30 | |
*** roym has quit IRC | 13:33 | |
*** stub has quit IRC | 13:41 | |
*** SteveA has quit IRC | 14:01 | |
*** yota has joined #zope3-dev | 14:02 | |
*** xenru|clone has joined #zope3-dev | 14:07 | |
*** bavarian has joined #zope3-dev | 14:23 | |
*** xenru has quit IRC | 14:23 | |
*** xenru|clone has quit IRC | 14:26 | |
romanofski | I'm a bit stuck here... my template.pt uses: view context/@@view_get_menu/zmi_views for example | 14:28 |
romanofski | I don't know, what "zmi_views" is in this context | 14:28 |
romanofski | view_get_menu is registered via a browser:page ZCML directive ... but zmi_views ... | 14:29 |
romanofski | oh.. seems like a parameter for the BrowserMenu | 14:30 |
*** MrTopf has joined #zope3-dev | 14:38 | |
srichter | romanofski: zmi_views is the menu name | 14:44 |
romanofski | yeh thanks... but I don't know how I'm able to register a view class for my "template" - the view is always my contents view for the folder, and now I'm trying to register a view class with a browser:page | 14:46 |
romanofski | and try to access it via tal:define="view context/@@viewclass" | 14:46 |
romanofski | but fails with a system error currently | 14:46 |
srichter | have you read the books? | 14:47 |
srichter | they discuss a lot of this topic | 14:47 |
romanofski | hm... yes | 14:47 |
romanofski | but they only describe the case, where you add a view for a class | 14:48 |
romanofski | no... sorry.. i'm puzzled | 14:48 |
srichter | so what do you want to do then? | 14:49 |
romanofski | in short... a customized navigation | 14:50 |
romanofski | I have my customized template and a macros template | 14:50 |
romanofski | hold in it's own skin | 14:51 |
romanofski | and now I want to create my own (global) navigation | 14:51 |
romanofski | so I checked the books and the other templates how they get the logic out of the view classes | 14:53 |
*** philiKON has joined #zope3-dev | 14:55 | |
romanofski | hoi philiKON :) | 14:56 |
philiKON | sup | 14:57 |
srichter | romanofski: look at zwiki, it has its own navigation in a separate skin | 15:00 |
romanofski | ah cool - thanks srichter | 15:01 |
*** ChanServ sets mode: +o srichter | 15:02 | |
bavarian | I'm trying to get a simple user registration feature working. There are several open questions I have: | 15:11 |
bavarian | Most important: Due to the nature of a user registration system anonymous users most be able to create a user at some point in the process. | 15:12 |
bavarian | In Zope2 I would probably have done one of two things, either use a proxy role or give the users access to a method in the trusted code (Python) layer that creates the user. | 15:13 |
bavarian | It seems that in Zope3 this is not possible as the checks for __setitem__ etc. are even enforced if they are not called directly, but from a method in a view support class or so. | 15:14 |
bavarian | Am I missing something here? | 15:14 |
*** zbir has quit IRC | 15:16 | |
bavarian | To rephrase a bit, I want an anonymous user to be able to do an action (create a user) under very special circumstances (he has completed the registration process), but not want him to have the permissions/roles needed for creating the user in general (e.g. via the ZMI). | 15:16 |
srichter | I would write a trusted adapter that does this for you | 15:17 |
srichter | trusted adapter's context object is not security proxied | 15:18 |
srichter | so you are responsible for protecting the adapter properly | 15:18 |
bavarian | I see. That makes sense. | 15:19 |
bavarian | The other thing that makes things complicated is that the Pluggable Authentication stuff only exposes interfaces for authenticating, not for user management. | 15:20 |
agroszer | There is the principalfolder | 15:21 |
romanofski | srichter: it worked the whole time... I just used the expression inside a "string:" for testing purposes and just overlooked my stupid error | 15:21 |
bavarian | srichter: So I have to do things like "userFolder = principals()['PrincipalFolder']", where I have to know the name of the folder. | 15:22 |
agroszer | srichter: principalfolder can be accessed by code? I think so | 15:22 |
*** stub has joined #zope3-dev | 15:23 | |
*** deo has joined #zope3-dev | 15:23 | |
bavarian | srichter: What I'd like to see is being able to just call a generic user management interface without having to know the internals of the authentication system used. | 15:23 |
srichter | bavarian: because it is only supposed to do authentication; user management is not in its scope | 15:23 |
srichter | you should check out SchoolTool | 15:24 |
srichter | ST has a user management component and the auth utility stuff is just a hook into it | 15:24 |
bavarian | Ok, I'll have a look at it. | 15:25 |
srichter | romanofski: ok, cool | 15:25 |
romanofski | :) | 15:25 |
srichter | bavarian: eek, as far as I know the principal folder is just a utility that you can look up | 15:26 |
srichter | have you read zope.app.authentication/README.txt? | 15:26 |
agroszer | What I thought is, if a properly registered principalfolder could be managed by code, then it is not necessary to write a complete authentication | 15:27 |
agroszer | just the interface between PF and my 'persons' | 15:27 |
bavarian | srichter: I'll have to check. But even if it is, there is no defined interface for adding/managing a user. It's only using the standard interfaces from IContainer, which IMO are too generic for user management. | 15:27 |
srichter | right, Zope 3 has not committed to one yet, if it ever will | 15:28 |
srichter | I think a user management API is a pretty specific problem to CMS | 15:28 |
srichter | I think that Z3ECM might have an answer for that | 15:29 |
*** tiredbones has joined #zope3-dev | 15:29 | |
bavarian | This is definitely not a CMS thing. It's at least a web app thing, if not even a general "app that uses credentials to connect to a server" thing. Rather generic ... | 15:30 |
srichter | well, write a proposal, see what people think | 15:31 |
bavarian | Do you have a macro for that answer? ;-) I've heard it rather often ... | 15:32 |
srichter | or better, write a package for people to play with | 15:32 |
agroszer | I need that package also :-) | 15:32 |
srichter | no, but we are a proiposal driven project, so it should be my standard answer | 15:32 |
srichter | especially if it is a case of my opinion versus someone elses | 15:33 |
srichter | without the opinion of other parties, it will be a deadlock anyways | 15:33 |
*** drzoltron_ has quit IRC | 15:34 | |
agroszer | I'd like to write the proposal, how-to? | 15:37 |
agroszer | I checked Zope3Proposals on zope.org, do I need some permission there? | 15:38 |
d2m | IIRC everyone can create new wikipages, you only need a special role to edit or comment on pages | 15:39 |
srichter | d2m: can you give adam that role. please? | 15:41 |
*** roym has joined #zope3-dev | 15:41 | |
d2m | agroszer: is this your zope.org menenr-id ? | 15:41 |
srichter | d2m: he should have it for the entire wiki; same with bavarian | 15:41 |
roym | I have registered an event handler for an IObjectAddedEvent. I find | 15:41 |
roym | that when an object is added to a container via the adding view (/+), | 15:41 |
roym | the input values on the form are not available in the object at the | 15:41 |
roym | time of the event firing. Is this by design? What event can I wait | 15:41 |
roym | for that will fire after the object properties are set? | 15:41 |
roym | 15:41 | |
d2m | agroszer: is this your zope.org member-id ? | 15:41 |
agroszer | I'm "adamg" | 15:41 |
d2m | just a sec... | 15:41 |
agroszer | thanks | 15:41 |
* d2m agroszer has got the 'PowerMember' role | 15:43 | |
d2m | srichter: bavarian is Joahim Werber from Juvenio AG ? | 15:43 |
srichter | yes | 15:44 |
agroszer | yes, edit is coming, thanks | 15:44 |
srichter | s/Werber/Werner | 15:44 |
d2m | srichter: i changed his rights too | 15:44 |
d2m | happy editing ;) | 15:44 |
bavarian | I'm also joe@suse.de ;-) | 15:44 |
d2m | oh, i see | 15:44 |
bavarian | That's why I don't have that much time for Zope during the week ... | 15:45 |
*** benji has joined #zope3-dev | 15:48 | |
agroszer | still need some help, I don't want to mess it up... how-to add a new page? | 15:48 |
srichter | create a Wiki link in Zope3Proposals, just like the others | 15:51 |
*** tlotze has joined #zope3-dev | 15:51 | |
srichter | click on the ? mark behind the lionk | 15:51 |
tlotze | hi | 15:51 |
srichter | note that you should write the text first | 15:51 |
srichter | tlotze: good morning | 15:52 |
tlotze | I'm trying to build and run the tests of the ZODB trunk, with a current Zope3 trunk built and installed in the path. However, a lot of tests fail. Am I doing anything wrong, or are there failing tests? | 15:53 |
tlotze | good morning | 15:53 |
srichter | yeah, probably | 15:53 |
romanofski | mornin tlotze *G | 15:53 |
srichter | I recently hooked up the ZODB trunk to Zope 3 and all was fine | 15:53 |
tlotze | Ah, romanofski *gg | 15:53 |
tlotze | hm | 15:54 |
agroszer | you mean, I have to _edit_ the Zope3Proposals, put a new section with [my header] and text, like the others | 15:55 |
srichter | yep | 15:55 |
agroszer | ok | 15:55 |
srichter | ok, I wanna do some work... | 15:56 |
* benji laughs like a mad scientist | 15:56 | |
benji | It lives! It lives!! :) | 15:56 |
srichter | LOL (last comment, I prmise) | 15:57 |
benji | srichter, I just executed my first JavaScript in Python syntax :) | 15:58 |
srichter | cool | 16:02 |
srichter | how slow? | 16:02 |
VladDrac | javascript in python syntax? | 16:06 |
benji | srichter, sorry, distracted :) | 16:07 |
benji | srichter, the translation is pretty fast | 16:07 |
*** zbir has joined #zope3-dev | 16:08 | |
benji | VladDrac, it's an evil personal project I've been working on :) | 16:08 |
benji | so I have a view with this method: | 16:09 |
benji | @clientside | 16:09 |
benji | def test1(): | 16:09 |
benji | for x in [1, 2, 3]: | 16:09 |
benji | alert('hi there ' + x) | 16:09 |
benji | and it gets turned in to JS and I can call it on the client | 16:09 |
srichter | oh, so you have a server-side converter | 16:10 |
benji | right | 16:10 |
romanofski | benji: you know that the mozilla project is working on python support | 16:10 |
romanofski | ? | 16:10 |
romanofski | so you can use python as a scripting language just like JavaScript | 16:10 |
benji | romanofski, yep, which is very cool | 16:10 |
romanofski | yeah | 16:10 |
benji | 9 out of 10 users still won't have clilent-side python though :( | 16:11 |
romanofski | sure, it won't work where IE should be supported... but... cool | 16:11 |
romanofski | yey | 16:11 |
efge | benji: @clientside seems awesome, finally I could program in javascript :) | 16:12 |
benji | this isn't really for building large systems in JS, it's about providing decent syntax for Python programmers to write small JS snippets | 16:12 |
benji | efge :) | 16:12 |
*** MacYET__ has joined #zope3-dev | 16:12 | |
*** ignas has quit IRC | 16:17 | |
tlotze | ZODB building and testing again: Is there anything I haven't understood about the distutils, or why is there no module transaction in build/lib.foo? It's needed by the tests.# | 16:18 |
agroszer | "User management API" proposal is done | 16:18 |
agroszer | at least a draft of it | 16:18 |
srichter | well, it is not a proposal; it is a collection of ideas | 16:25 |
srichter | you have not proposed an API | 16:25 |
agroszer | sorry, this is just a start | 16:25 |
srichter | because once you propose an API, you will see the risks involved | 16:25 |
agroszer | as soon as I'll have some time I'll enhance it | 16:25 |
agroszer | currently I'm deep in ecm.workflow, but if I didn't start it, I'll never | 16:27 |
srichter | (note that a proposal is a great document to apply the things you have learned in college; a proposal is equivalent to a design document for school) | 16:27 |
*** GaryPoster has joined #zope3-dev | 16:28 | |
*** natea has quit IRC | 16:33 | |
agroszer | srichter: I'm still fighting with the persistent workflow | 16:34 |
*** jinty has joined #zope3-dev | 16:35 | |
* MacYET__ is flooding the checkin list | 16:39 | |
*** sashav has quit IRC | 16:41 | |
srichter | MacYET__: why? | 16:42 |
MacYET__ | just updated zpl 2.0 to 2.1 on the z2 head | 16:42 |
MacYET__ | but this is z3 | 16:42 |
MacYET__ | wrong channel :) | 16:42 |
srichter | MacYET__: that should not create a flood, not that you use SVN | 16:48 |
srichter | one check-in | 16:48 |
srichter | it's large and probably will be held for moderator approval | 16:48 |
MacYET__ | right, that happend already :) | 16:49 |
*** MacYET__ has left #zope3-dev | 17:00 | |
andres | To whom should i forward a patch (adding the marker interface needed for sqlos/sqlobject) of psycopg? | 17:02 |
srichter | andres: best would be you check it in yourself (i.e become a contributor) | 17:07 |
srichter | andres: otherwise create an issue and add it to the collector | 17:08 |
andres | srichter, okay for me. T whom i have to talk to get the commiter bits/become a contributor (talk to Brian or Ken via mail?) | 17:11 |
srichter | andres: send an E-mail with the scanned, signed contributor agreement to jim _at_ zope.com | 17:15 |
srichter | benji: GaryPoster: can you also set someone up as a contributor? | 17:15 |
GaryPoster | srichter: If you sent it to me, I'd give it to Jim. ;-) | 17:17 |
roym | folks: inside of a class, can I specify an attribute to be both a FieldProperty and a "property" [using the property(getter,setter) syntax] or does one override the other? | 17:17 |
*** hdima has quit IRC | 17:17 | |
*** natea has joined #zope3-dev | 17:25 | |
roym | In other words, I have: | 17:26 |
roym | class N: | 17:26 |
roym | p = FieldProperty(IXX['somep']) | 17:26 |
roym | def getP(self): ... | 17:26 |
roym | def setP(self,p): ... | 17:26 |
roym | p = property(getP,setP) # does this override the FieldProperty? | 17:26 |
*** bradb has joined #zope3-dev | 17:28 | |
benji | roym, yep, you rebind p to something different | 17:30 |
benji | If I understood what FieldProperties were, I could probably tell you how to make it work :) | 17:32 |
roym | I guess this means there is no reasonable way to specify that the property conforms to an interface and have it be really a pair of methods in action. | 17:33 |
benji | roym, I don't see why not, if you have an interface that specifies an attribute, and you implement that attribute as a property that acts appropriately, then you've fulfilled the contract | 17:34 |
andres | roym, if you specify the FieldProperty in the interface it should work. | 17:34 |
andres | At least it does here. | 17:34 |
roym | so if I say that Object O implements Interface I, then I don't need to further specify FieldProperty on any attributes? | 17:36 |
bavarian | Does anybody know details about the encoding handling of the queuedDelivery mailer? | 17:36 |
roym | The real question (as benji suggests) is what does the FieldProperty decl in a class do? | 17:37 |
bavarian | It seems that it does not handle unicode on its own :-( | 17:37 |
*** natea has quit IRC | 17:38 | |
agroszer | roym: I think it also checks the attribute according to the interface schema | 17:38 |
bavarian | Yep, the interface says: "message is a byte string that contains both headers and body formatted according to RFC 2822." | 17:40 |
agroszer | roym: check out zope.schema | 17:41 |
bavarian | So I'll probably have to port all my mail handling stuff from KONTENTOR to Zope3. | 17:41 |
*** Aiste has quit IRC | 17:43 | |
roym | agroszer: thanks. | 17:44 |
roym | An unrelated question: Are any events fired when you change field values on an object in @@edit.html view in zmi? | 17:45 |
roym | I would expect IObjectModified to fire, but it doesn't seem to :) | 17:45 |
agroszer | I think there is some object... yes, that one | 17:45 |
agroszer | look at zope.app.form.browser.editview | 17:47 |
agroszer | in the update method | 17:47 |
roym | thanks - let me start with pdb in there. | 17:48 |
*** ChrisW has joined #zope3-dev | 17:50 | |
ChrisW | how does Zope 3 do functional testing? | 17:50 |
ChrisW | (specifically, file uploads) | 17:50 |
srichter | look at testbrwoser | 17:51 |
ChrisW | url? | 17:51 |
srichter | browser = TestBrowser() | 17:51 |
srichter | control = browser.getControl('File Path') | 17:51 |
* ChrisW thinks about using Selenium | 17:51 | |
srichter | control.value = StringIO('data') | 17:52 |
srichter | Zope3/src/zope/testbrowser | 17:52 |
ChrisW | thanks | 17:52 |
ChrisW | does a usuable version of that ship with Zope 2.8? | 17:52 |
srichter | ChrisW: I prefer testbrowser above Selenium (it's Python) | 17:52 |
srichter | ChrisW: no, it is new for 3.2 and 2.9 | 17:52 |
ChrisW | oh :-S | 17:52 |
ChrisW | what's the minimum i need to check out to use it? | 17:53 |
srichter | if you use Python 2.4, then you only need testbroser | 17:53 |
srichter | it only weakly depends on zope.interface | 17:53 |
ChrisW | cool, might well give it a go right now | 17:54 |
ChrisW | docs? | 17:54 |
srichter | when using it with Zope3, a normal Zope 3 environment should be ok | 17:54 |
ChrisW | examples? | 17:54 |
*** sashav has joined #zope3-dev | 17:54 | |
srichter | README.txt (as always) | 17:54 |
* ChrisW will be using it standalone to do some scalability testing for a Zope 2 app | 17:54 | |
ChrisW | well an sort-of-Plohn-app | 17:54 |
srichter | testbowser also comes with basic performance testing capabilities | 17:55 |
srichter | you can test the timing of a request | 17:55 |
srichter | (in terms of pystones, of course) | 17:55 |
ChrisW | hehe | 17:55 |
ChrisW | I just want ms | 17:55 |
ChrisW | can i get that> | 17:55 |
ChrisW | ? | 17:55 |
*** faassen has joined #zope3-dev | 17:55 | |
srichter | well, Pystones is better, because it is machine independent | 17:55 |
ChrisW | *shrugs* | 17:56 |
srichter | I guess you can look at the code and just remove the pystone conversion | 17:56 |
ChrisW | this is all for a specific project running on a specific platform | 17:56 |
ChrisW | cool | 17:56 |
ChrisW | I guess the main thing that makes me nervous is "what is a pystone?" | 17:56 |
srichter | it is a well defined set of operations | 17:57 |
srichter | so you could figure out what a pystone is in ms on your machine | 17:57 |
ChrisW | *chuckles* | 17:57 |
ChrisW | mind if I just add an "output in ms" option to testbrowser? | 17:57 |
srichter | no, I think this would be fine | 17:58 |
ChrisW | (if I can, that is, I'm not sure I'll have enough zen...) | 17:58 |
ChrisW | does testbrowser have unit tests? | 17:58 |
srichter | no, because the functional test (README.txt) serves as unit test in this case ;-) | 17:58 |
ChrisW | ah, cool, so I can play with freedom on the timing front ;-) | 17:59 |
ChrisW | cool | 17:59 |
ChrisW | *sigh* | 17:59 |
ChrisW | now I just have the firewall from hell to contend with | 17:59 |
ChrisW | I _really_ _really_ wish that svn.zope.org was accessible through http for anonymous and https for write access :-( | 17:59 |
srichter | I think a proposal might go long ways on that one | 18:00 |
*** SteveA has joined #zope3-dev | 18:00 | |
ChrisW | for which bit? | 18:00 |
*** SteveA has quit IRC | 18:00 | |
ChrisW | sheesh, not even time to say hello to Steve ;-) | 18:00 |
srichter | http access for anonymous | 18:00 |
ChrisW | well, and https for write | 18:00 |
ChrisW | but I seem to remember these conversations before... | 18:01 |
ChrisW | maybe a mail to zope-dev to kick things off? | 18:01 |
*** SteveA has joined #zope3-dev | 18:01 | |
ChrisW | welcome back Mr A ;-) | 18:02 |
SteveA | hello chrisW | 18:02 |
ChrisW | hurm, www.cat-box.net officially dead now? | 18:02 |
SteveA | website, yes | 18:03 |
ChrisW | where'd helen's diary go? | 18:03 |
SteveA | still get email there, although i should see how much of it is actually spam | 18:03 |
*** palmTree has joined #zope3-dev | 18:03 | |
SteveA | she decided she didn't want it any more, i guess | 18:03 |
ChrisW | hehe, fair enough | 18:03 |
ChrisW | srichter: how do I 'install' testbrowser once I've checked it out? just make sure it's on the python path? | 18:05 |
srichter | are you using plain Zope 3 for now? | 18:05 |
srichter | if so drop it into src/zope | 18:06 |
srichter | and type make | 18:06 |
ChrisW | nope | 18:06 |
ChrisW | I'm just checking out the testbrowser folder from svn | 18:06 |
srichter | aehm, forget this | 18:06 |
ChrisW | I have python2.4 ;-) | 18:06 |
ChrisW | ? | 18:06 |
srichter | ah ok | 18:06 |
ChrisW | plain, boring, python2.4 with nothing on it | 18:06 |
ChrisW | ;-) | 18:06 |
ChrisW | should I install, or just make sure the checkout is on my pythonpath? | 18:07 |
*** zagy has quit IRC | 18:07 | |
srichter | ok, I think all you need to do is a create a top level zope dir and put testbrowser in it | 18:07 |
srichter | ChrisW: benji has recently tried to make testbrowser standalone, so he might be a better contact :-) | 18:07 |
ChrisW | do I need a zope.__init__.py? | 18:07 |
srichter | yep | 18:07 |
ChrisW | is he around? | 18:07 |
benji | hi, ChrisW | 18:07 |
srichter | there you go :-) | 18:07 |
ChrisW | wahey | 18:08 |
ChrisW | I am having a good day :-) | 18:08 |
ChrisW | (well, apart from limi provoking me to flame Plohn on zope-cmf@zope.org :S) | 18:08 |
benji | ChrisW, testbrowser currently keeps up with time of request in seconds, I think it'd be a good idea to change that to time in ms, then you can use it | 18:08 |
ChrisW | benji: If I got a plain Python2.4 setup, no Zope 3, what's the best way to start playing with TestBrowser? | 18:08 |
ChrisW | s/ms all the same to me ;-) | 18:08 |
benji | well, it's in integer seconds, so less than 1 second requests aren't handled with much grace :) | 18:09 |
*** newnick has joined #zope3-dev | 18:09 | |
benji | you get zope.testbrowser from the cheeseshop: http://cheeseshop.python.org/pypi?:action=display&name=zope.testbrowser | 18:09 |
benji | it has no external dependencies (I hope :)) | 18:09 |
ChrisW | eh? | 18:10 |
ChrisW | how does cheeseshop work? | 18:10 |
benji | just follow the link and then look for the download URL | 18:10 |
benji | it just points to a tgz, unpack and run setup.py | 18:10 |
benji | oh, and testbrowser does use fractional seconds for timing, so you should be good to go there | 18:11 |
ChrisW | well, the problem is that the response time is currently minutes ;-) | 18:11 |
ChrisW | *sigh* | 18:12 |
ChrisW | Plohn sux | 18:12 |
srichter | LOL | 18:12 |
ChrisW | actually, in fairness, this isn't Plohn's fault | 18:12 |
ChrisW | I think it's revisioning of pieces of content that are abotu 100Mb each in ZODB | 18:12 |
ChrisW | (ie: 10 x 10Mb attachment...) | 18:12 |
ChrisW | benji: what is cheeseshop? how do I use it for my own packages? how do I find out more about it? | 18:13 |
benji | just go to http://cheeseshop.python.org and click on "Package submission" :) | 18:13 |
newnick | My system went down and my old nick is still sign on. Can only the channel operator remove a nick? | 18:14 |
benji | newnick, you can get NickServ to do it for you | 18:14 |
srichter | newnick: what | 18:15 |
ChrisW | '/nickserv ghost yournick yourpass | 18:15 |
srichter | newnick: what's your old name? | 18:15 |
newnick | tiredbones | 18:15 |
*** tiredbones was kicked by srichter (User terminated!) | 18:15 | |
newnick | srichter, can you also remove tiredbones from schooltool? | 18:16 |
benji | newnick /msg nickserv ghost <primary-nick> <your-password> | 18:16 |
srichter | nope, because I am not an operator there | 18:16 |
benji | I think that'll do it | 18:16 |
SteveA | my system went down and my old nick ChrisW is still signed on. srichter, can you kick my old nick from the channel please? | 18:16 |
d2m | :) | 18:16 |
srichter | SteveA: sure, hold on :-) | 18:17 |
* ChrisW inserts something large into Steve ;-P | 18:17 | |
ChrisW | which country are you in nowdays, Steve? | 18:18 |
* ChrisW resists asking which planet you're on ;-) | 18:18 | |
SteveA | ChrisW: this week, lithuania. last week montreal. montreal is a cool place. | 18:18 |
SteveA | particularly in wintertime | 18:19 |
ChrisW | wtf were you doing there? | 18:19 |
ChrisW | waaagh... why do people take pleasure in installing dox to site-packages | 18:19 |
SteveA | UBZ | 18:19 |
SteveA | an ubuntu conference | 18:20 |
ChrisW | oh? what's the paid work you're doing nowdays? | 18:20 |
*** romanofski has quit IRC | 18:21 | |
SteveA | ChrisW: working on launchpad.net | 18:21 |
ChrisW | srichter/benji - anything exist to record a sequence of testbrowser commands from an http stream? | 18:22 |
ChrisW | SteveA: what's that written in? | 18:22 |
benji | ChrisW, yep, it's pretty beta at the moment, but see http://svn.zope.org/zope.testrecorder/trunk/ | 18:22 |
benji | it lets you record a sequence of events in the browser and generates a testbrowser or selenium test from them | 18:23 |
ChrisW | hmm, I think in my case, I may just do it by hand | 18:23 |
SteveA | ChrisW: python, of course. zope3 for the webapp. various twisted sqlobject kinda stuff too | 18:23 |
*** j1m has joined #zope3-dev | 18:23 | |
ChrisW | I have very specific shit I want to test | 18:23 |
ChrisW | and yes, shit is _exactly_ the right word here ;-) | 18:24 |
ChrisW | how do I do auth using testbrowser? | 18:24 |
ChrisW | and how do I time requests? | 18:24 |
ChrisW | (posts requests, specifically) | 18:24 |
benji | ChrisW, read the README and all will become clear | 18:26 |
srichter | see "Performance Testing" in README.txt | 18:26 |
* ChrisW is | 18:26 | |
ChrisW | but that says it returns seconds, I thought you said it returned ms? | 18:26 |
*** zagy has joined #zope3-dev | 18:26 | |
benji | it returns fractional seconds | 18:27 |
ChrisW | it also doesn't cover authentication | 18:27 |
srichter | no, it returns seconds, but a float of that | 18:27 |
srichter | yes it does | 18:27 |
* ChrisW loox but doesn't see | 18:27 | |
ChrisW | *sigh* | 18:27 |
benji | ChrisW, line 26 of the README | 18:27 |
srichter | see the first example in README.txt | 18:27 |
benji | start from the top and read through until you get board | 18:27 |
srichter | no, line 10 | 18:27 |
ChrisW | aha | 18:27 |
ChrisW | you have to build the auth header by hand? | 18:28 |
srichter | yeah | 18:28 |
ChrisW | *sigh* | 18:28 |
ChrisW | anyone mind if I add an "addBasicAuth" method to it? | 18:28 |
benji | yes, very much (mind that is) | 18:28 |
ChrisW | why? | 18:28 |
*** fdrake has joined #zope3-dev | 18:29 | |
* ChrisW would have thought it was just a helpder method to add to the browser class | 18:29 | |
ChrisW | I wanna do: | 18:29 |
benji | too many helpers are unhelpfull | 18:29 |
ChrisW | browser.addBasicAuth('username','password') | 18:29 |
srichter | TestBrowser should not do more than a regular browser | 18:29 |
srichter | have a function that computes the header | 18:29 |
ChrisW | well, regular browsers do basic auth... | 18:29 |
ChrisW | why force people to jump through more hoops? | 18:30 |
ChrisW | and end up with ever framework implementing a different addBasicAuth method? | 18:30 |
ChrisW | seems silly to me | 18:30 |
benji | I don't see this as too much of a burden: browser.addHeader('Authorization', 'Basic mgr:mgrpw') | 18:30 |
ChrisW | well, don't you have to encoded that password? | 18:30 |
benji | no need for a method, just set the header | 18:30 |
benji | no | 18:30 |
ChrisW | why not? | 18:30 |
srichter | benji: (note that a plain username and assword only work for the publisher handler) | 18:30 |
benji | just like non testbrowser functional tests, it does it for you | 18:30 |
benji | right, srichter | 18:31 |
srichter | benji: (for a real website, you have to create the MD5 hash) | 18:31 |
benji | yep | 18:31 |
ChrisW | exactly | 18:31 |
ChrisW | and I'm using a real website here ;-) | 18:31 |
ChrisW | hence my desire for an addBasicAuth method | 18:31 |
ChrisW | which encapsulates this often-needed functionality ;-) | 18:31 |
benji | hmm, I'm -0 on it, but wouldn't kill anyone over it | 18:32 |
ChrisW | okay, now what, exactly, do I need to md5? | 18:33 |
ChrisW | and isn't it b64, not md5? | 18:33 |
benji | I think it's both | 18:34 |
srichter | could be | 18:34 |
srichter | check out zope.app.apidoc.static I do it there | 18:34 |
benji | I think you md5 the uname and pw and then b64 the hash and transmit it to the server | 18:34 |
benji | but you should check the spec | 18:34 |
ChrisW | I don't think there's md5 | 18:34 |
*** andres has quit IRC | 18:34 | |
fdrake | no, just base64 | 18:34 |
ChrisW | :-) | 18:35 |
fdrake | j1m, wanna jump on AIM? | 18:35 |
ChrisW | yeah, I now remember just how crummy http basic auth is ;-) | 18:35 |
srichter | def setUserAndPassword(self, user, pw): | 18:35 |
srichter | """Specify the username and password to use for the retrieval.""" | 18:35 |
srichter | hash = base64.encodestring(user+':'+pw).strip() | 18:35 |
srichter | self.addheaders.append(('Authorization', 'Basic '+hash)) | 18:35 |
*** dobee has quit IRC | 18:35 | |
ChrisW | okay, I'll subclass for now | 18:35 |
ChrisW | but don't beat me if I eventually add it back to the testbrowser core ;-) | 18:36 |
j1m | srichter, have you seen: http://pyicu.osafoundation.org/? | 18:36 |
srichter | no | 18:37 |
srichter | revision 46 | 18:37 |
srichter | I assume it is not very complete? | 18:37 |
srichter | again, I think the ICU code is very complex and I am concerned that it provides a lot of abstraction that is not needed | 18:38 |
*** JoaoJoao has joined #zope3-dev | 18:39 | |
JoaoJoao | hello | 18:39 |
*** __mac__ has quit IRC | 18:40 | |
*** dobee has joined #zope3-dev | 18:40 | |
srichter | anyway, I am not very interested in messing with the current I18n implementation | 18:40 |
JoaoJoao | srichter: Is it bad? | 18:41 |
srichter | no, I just want to work on other things | 18:41 |
srichter | (in my free time that is) | 18:41 |
srichter | of course, if someone pays me to implement our I18n using pyICU then that's a different story | 18:42 |
*** tlotze has quit IRC | 18:43 | |
JoaoJoao | srichter: Good... btw I did translate about 180 Zope3 messages to pt-br in Launchpad | 18:43 |
srichter | j1m: your post is the first one since July on the MLs :-) | 18:43 |
srichter | JoaoJoao: cool | 18:44 |
j1m | srichter, yup | 18:44 |
JoaoJoao | Now I'm still trying to deal with catalogs | 18:44 |
j1m | It's also SWIG :( | 18:44 |
srichter | j1m: I Think this project is pretty dead | 18:44 |
srichter | j1m: yep | 18:44 |
j1m | I very much doubt that it is dead. | 18:45 |
roym | Can anyone suggest a good way to determine (in my event handler) if | 18:45 |
roym | the event object is of a particular type... Unfortunately an | 18:45 |
roym | isinstance() check fails, because upon modification, the event | 18:45 |
roym | fired carries a proxy object. | 18:45 |
j1m | In fact, I think they are presenting it at PyCon. | 18:45 |
JoaoJoao | When I create a catalog and add a FieldIndex, does it automatically index new objects? | 18:45 |
srichter | j1m: really? | 18:45 |
j1m | I suspect that that it is mostly internal to osa. | 18:45 |
agroszer | btw, philiKON: ayt ? | 18:45 |
j1m | I don't think many people know about it yet. | 18:45 |
srichter | j1m: also note that they use the ICU unicode type, not the standard Python one | 18:45 |
JoaoJoao | And BTW how scalable is the catalog? | 18:46 |
j1m | But I think there is a good bit of interest in a Python ICU binding. | 18:46 |
srichter | I would hope so! Python has no I18n story at all | 18:47 |
j1m | srichter, they provide pythonic apis. | 18:47 |
j1m | for example, their collation support is usable. | 18:47 |
srichter | ok | 18:47 |
ChrisW | hmm, with testbrowser, how do I rest the browser? | 18:48 |
ChrisW | (ie, start a new request, once I'm done with the old response?) | 18:48 |
JoaoJoao | I'm a bit lost in this Z3 catalog | 18:48 |
ChrisW | benji: ping! | 18:53 |
ChrisW | ImportError: No module named app.testing.functional | 18:53 |
ChrisW | ideas? | 18:53 |
JoaoJoao | I would need a product which would let me take a look at a real use of a catalog | 18:53 |
srichter | oh, don't use: | 18:53 |
srichter | from zope.testbrwoser improt Browser | 18:54 |
srichter | but | 18:54 |
srichter | from zope.testbrowser.browser import Browser | 18:54 |
srichter | this is the one that does not depend on the ftesting framework | 18:54 |
ChrisW | that looks a bit better | 18:55 |
ChrisW | I got a 401 error ;-) | 18:55 |
ChrisW | btw,last_request_seconds appears to be innaccurate unless you have a successful request :_S | 18:57 |
*** sashav_ has joined #zope3-dev | 19:10 | |
*** sashav has quit IRC | 19:10 | |
*** sashav_ is now known as sashav | 19:10 | |
*** dobee has quit IRC | 19:15 | |
*** MJ has quit IRC | 19:17 | |
*** sashav has quit IRC | 19:17 | |
*** palmTree has quit IRC | 19:25 | |
*** agroszer has quit IRC | 19:25 | |
*** stub has quit IRC | 19:28 | |
*** agroszer has joined #zope3-dev | 19:30 | |
srichter | benji: I just looked at jsolait | 19:31 |
srichter | it implements a very Python-like API | 19:31 |
srichter | liek importModule() and string formatting a la Python | 19:32 |
*** ChrisW has quit IRC | 19:32 | |
*** faassen has quit IRC | 19:34 | |
JoaoJoao | Man this Zope3 architecture is great | 19:38 |
srichter | I am glad you like it | 19:40 |
JoaoJoao | I didn't have enough time to check how good is sqlos, I wonder... | 19:52 |
*** hazmat has joined #zope3-dev | 19:54 | |
*** ChanServ sets mode: +o hazmat | 19:54 | |
*** _anguenot has quit IRC | 20:00 | |
jinty | JoaoJoao: normally sqlos talk happens on #z3-base | 20:04 |
*** ignas has joined #zope3-dev | 20:07 | |
benji | srichter, jsolait is interesting, but seemed unmaintained the last time I looked | 20:12 |
JoaoJoao | what about MochiKit? | 20:14 |
*** jinty has quit IRC | 20:16 | |
srichter | benji: it is actively developed | 20:16 |
benji | JoaoJoao, MochiKit is very cool | 20:16 |
benji | srichter, cool, didn't know | 20:16 |
*** bradb has quit IRC | 20:21 | |
roym | After some tinkering with the event model, it seems to me that the | 20:22 |
roym | adding view does the following: | 20:22 |
roym | 20:22 | |
roym | 1) add the object | 20:22 |
roym | 2) fire the ObjectAdded event | 20:22 |
roym | 3) set the attributes on the object | 20:22 |
roym | 20:23 | |
roym | Shouldn't steps 2) and 3) be reversed - it seems one would need the | 20:23 |
roym | passed in attributes to initialize the object in the event handler. | 20:23 |
j1m | srichter, did you see I got a response to my PyICU questiona already? :P | 20:27 |
*** natea has joined #zope3-dev | 20:52 | |
srichter | j1m: what are they saying? | 20:55 |
srichter | roym: I doubt this is true | 20:56 |
j1m | They fixed the bug I sort of reported. :) | 20:56 |
srichter | ah cool | 20:56 |
*** Aiste has joined #zope3-dev | 20:57 | |
*** ignas has quit IRC | 21:04 | |
*** fdrake has quit IRC | 21:08 | |
roym | srichter: correct me if I am wrong, but | 21:10 |
roym | In zope/app/container/browser/adding.py: | 21:10 |
roym | def action(self, type_name='', id=''): | 21:10 |
roym | ... | 21:10 |
roym | notify(ObjectCreatedEvent(content)) | 21:10 |
roym | self.add(content) | 21:10 |
roym | is the user responsible for generating the ObjectAdded event? I don't see anywhere in the code where a notify() is used to send an ObjectAdded event. | 21:18 |
*** Jim7J1AJH has joined #zope3-dev | 21:19 | |
*** MrTopf has quit IRC | 21:19 | |
efge | roym: in the container code it's there | 21:20 |
efge | grep for ObjectAdded | 21:20 |
efge | it's a bit convoluted though... | 21:20 |
*** MJ has joined #zope3-dev | 21:22 | |
roym | I believe you, though I don't see where :) | 21:22 |
*** ToniR has joined #zope3-dev | 21:22 | |
roym | I mean, there is no call to notify, but the tests do show it being used. | 21:22 |
ToniR | how do i start zope3 on win32? | 21:23 |
ToniR | used to be z2.py | 21:23 |
ToniR | what is it now/? | 21:23 |
efge | roym: there's notify(event) where object, event = containedEvent(object, container, name) | 21:23 |
efge | and containedEvent chooses ObjectAddedEvent when appropriate | 21:23 |
efge | this is in contained.py | 21:24 |
roym | ah - I see, thanks. | 21:24 |
agroszer | ToniR: which version do you have? | 21:25 |
ToniR | I just downloaded | 21:26 |
*** sashav has joined #zope3-dev | 21:26 | |
ToniR | latest stable | 21:26 |
ToniR | 3.1 i think' | 21:26 |
ToniR | 3.1.0 - zope/app/version.txt | 21:26 |
*** efge has quit IRC | 21:27 | |
agroszer | you have the install exe or the source? | 21:28 |
ToniR | EXE which created | 21:28 |
ToniR | a number of dirs off | 21:28 |
ToniR | Python 2.4 site-packages dir | 21:28 |
agroszer | yes | 21:29 |
agroszer | look for mkzopeinstance | 21:29 |
ToniR | ok and? | 21:29 |
agroszer | I don't know by heart where it is... | 21:29 |
ToniR | i found it | 21:29 |
agroszer | python mkzopeinstance | 21:29 |
ToniR | in zope/app./server | 21:29 |
ToniR | ah ok thanks | 21:30 |
agroszer | wait | 21:30 |
agroszer | no, not that | 21:30 |
agroszer | I think it is placed in the python24/scripts | 21:30 |
*** roym has quit IRC | 21:31 | |
ToniR | aga found it | 21:31 |
ToniR | it's a batch file | 21:31 |
agroszer | that's it | 21:31 |
agroszer | start it | 21:31 |
agroszer | will ask for instance home, user, password | 21:32 |
ToniR | yes | 21:32 |
agroszer | after it finished, you will have an (instance home)/bin/runzope.bat | 21:33 |
ToniR | yes thank you | 21:33 |
agroszer | you're welcome | 21:33 |
agroszer | philiKON: ayt? | 21:36 |
*** sashav has quit IRC | 21:37 | |
JoaoJoao | Going home, bye | 21:55 |
*** JoaoJoao has quit IRC | 21:56 | |
*** Jim7J1AJH has quit IRC | 21:58 | |
*** bavarian has left #zope3-dev | 22:00 | |
*** mkerrin has quit IRC | 22:01 | |
*** agroszer has quit IRC | 22:03 | |
*** alga has quit IRC | 22:13 | |
*** hazmat has quit IRC | 22:16 | |
*** ToniR has left #zope3-dev | 22:17 | |
*** niemeyer has quit IRC | 22:18 | |
*** jfmoxley has quit IRC | 22:21 | |
*** mgedmin has quit IRC | 22:24 | |
*** agroszer has joined #zope3-dev | 22:25 | |
srichter | benji: I just ran my first tutorial (only the test shows so far, but still ;-) | 22:38 |
philiKON | agroszer, now i am | 22:43 |
agroszer | fine | 22:43 |
agroszer | what are the plans for the translations? | 22:44 |
agroszer | I mean will you copy them somehow from launchpad to SVN? | 22:44 |
*** vinsci has quit IRC | 22:45 | |
benji | srichter, awesome! | 22:49 |
benji | srichter, so what exactly do you see? | 22:49 |
* agroszer be right back, restart required | 22:50 | |
*** agroszer has quit IRC | 22:50 | |
srichter | benji: I can select a tutorial from a set of tutorials | 22:50 |
srichter | and start it | 22:51 |
srichter | When I click "Next" the first text of the tutorial (a doctest file) sjows up | 22:51 |
srichter | I can completely click through the entire doctest file | 22:51 |
srichter | (example code is ignored for now) | 22:51 |
srichter | the nice thing is that I think we can even use the tutorial code for unit tests | 22:52 |
*** agroszer has joined #zope3-dev | 22:52 | |
benji | srichter, so you see the prose plus the web page the testbrowser opens? | 22:53 |
srichter | no, no testbrowser commands are executed yet | 22:53 |
srichter | I only see the prose | 22:53 |
srichter | there are quite a few things to do to be able to run the browser stuff | 22:55 |
benji | ah, ok | 22:55 |
srichter | benji: but from selenium I am going to reuse the browserbot code | 22:58 |
*** xenru has joined #zope3-dev | 22:58 | |
srichter | it has some nice methods for selecting elements | 22:58 |
*** sashav has joined #zope3-dev | 23:00 | |
*** sashav has quit IRC | 23:03 | |
benji | srichter, cool, I figured you'd be able to make use of that | 23:06 |
srichter | and I really like JSON RPC | 23:06 |
srichter | very easy and I get JS back | 23:07 |
srichter | (selenium should use JSON instead of the plain HTTP requests) | 23:07 |
agroszer | srichter: I think I solved the persistent workflow stuff | 23:11 |
srichter | agroszer: yeah, how? | 23:12 |
agroszer | I reparented the wfmc classes to persistent | 23:13 |
agroszer | changed the [] and {} to their persistent equivalents | 23:14 |
agroszer | As I remember that's it | 23:14 |
srichter | oh, so you did take the hard route | 23:15 |
srichter | I hope you subclassed the original objects | 23:15 |
agroszer | the hardest way was s(censored)g with an xpdl sample of z3ecm | 23:15 |
agroszer | way=thing | 23:15 |
agroszer | I did not touch too much code | 23:16 |
agroszer | one more thing is that local utilities have to be used | 23:16 |
*** vinsci|2 has joined #zope3-dev | 23:17 | |
*** vinsci|2 is now known as vinsci | 23:18 | |
* agroszer is thinking about subclassing | 23:19 | |
*** j1m has quit IRC | 23:22 | |
srichter | benji: mmh, if I say <configure package="zope.testbrowser" /> in a config file, it tries to run some unit tests | 23:22 |
*** j1m has joined #zope3-dev | 23:23 | |
agroszer | srichter: But then I have to modify the ecm.workflow, according to the subclassed ones...? | 23:23 |
srichter | well, you can always cooredinate with the ECM guys | 23:24 |
srichter | maybe they take your changes | 23:24 |
agroszer | my small problem is that they don't seem to have time | 23:25 |
agroszer | but that's an other story | 23:25 |
srichter | benji: I found it; when running z3.py we are not removing the "." dir from the path | 23:26 |
agroszer | would it bother that much if the wfmc package would be persistent? | 23:28 |
srichter | well, if the zope.wfmc package would be persistent you definitely need to write a proposal | 23:29 |
srichter | for Z3ECM I do not know | 23:29 |
benji | sorry, srichter, was talking to Jim, good, glad you found it :) | 23:30 |
srichter | benji: I think eventually tutorials must be based on DocFileSuite objects | 23:32 |
srichter | because special global variables and options might be expected | 23:32 |
benji | interesting | 23:32 |
agroszer | ok, I'll try to do subclassing way | 23:33 |
agroszer | if that's too hard I'll write a proposal | 23:34 |
srichter | ok | 23:34 |
srichter | agroszer: Note that I think subclassing is the way to go | 23:34 |
srichter | because you probably want different behavior for the persistent version eventually | 23:35 |
agroszer | I believe in you, you are the expert :-) | 23:35 |
agroszer | If the subclassing way needs some hooks in wfmc, e.g. in xpdl as it creates the definition, | 23:37 |
agroszer | these are ok? | 23:37 |
srichter | yeah, we could abstract that code | 23:38 |
srichter | (note that zope.wfmc does not use XPDL yet) | 23:38 |
agroszer | ok, then | 23:40 |
agroszer | that's it for today | 23:40 |
agroszer | good night | 23:40 |
*** agroszer has quit IRC | 23:41 | |
*** bradb has joined #zope3-dev | 23:48 | |
*** benji has quit IRC | 23:51 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!