*** gumpa-away has left #zope3-dev | 00:14 | |
*** RaFromBRC is now known as RaFromBRC|lunch | 00:21 | |
*** zbir has quit IRC | 00:33 | |
*** mgedmin has quit IRC | 00:41 | |
*** rocky has joined #zope3-dev | 00:47 | |
*** alecm has joined #zope3-dev | 00:52 | |
*** MJ has quit IRC | 00:57 | |
*** MJ has joined #zope3-dev | 00:58 | |
*** dunny has quit IRC | 01:01 | |
*** alga has quit IRC | 01:04 | |
*** RaFromBRC|lunch is now known as RaFromBRC | 01:06 | |
*** benji has quit IRC | 01:23 | |
*** nathany has quit IRC | 01:24 | |
*** sashav has quit IRC | 01:26 | |
*** philiKON has quit IRC | 01:26 | |
*** philiKON has joined #zope3-dev | 01:27 | |
*** zbir has joined #zope3-dev | 01:28 | |
*** dobee has quit IRC | 01:33 | |
*** whit is now known as whit|gym | 01:36 | |
*** oferw has joined #zope3-dev | 01:49 | |
*** oferw has quit IRC | 01:58 | |
*** jinty has joined #zope3-dev | 02:19 | |
*** jinty has quit IRC | 02:23 | |
*** benji has joined #zope3-dev | 02:24 | |
*** rom|zZZZ has quit IRC | 02:42 | |
*** J1m has quit IRC | 03:07 | |
*** niemeyer has quit IRC | 03:14 | |
*** rocky is now known as rocky|Zzz | 03:20 | |
*** philiKON has quit IRC | 03:23 | |
*** niemeyer has joined #zope3-dev | 03:29 | |
*** rocky|Zzz has quit IRC | 03:41 | |
*** nathany has joined #zope3-dev | 03:46 | |
*** RaFromBRC has quit IRC | 04:02 | |
*** nathany has quit IRC | 04:04 | |
*** projekt01 has quit IRC | 04:22 | |
*** tiredbones has quit IRC | 04:26 | |
*** tiredbones has joined #zope3-dev | 04:27 | |
*** alecm has quit IRC | 04:29 | |
*** alecm has joined #zope3-dev | 04:56 | |
*** amit_am has quit IRC | 05:01 | |
*** retsu__ has joined #zope3-dev | 05:03 | |
*** alecm is now known as alecm|away | 05:09 | |
*** niemeyer has quit IRC | 05:53 | |
*** d2m has quit IRC | 06:07 | |
*** d2m has joined #zope3-dev | 06:09 | |
*** retsu__ has quit IRC | 06:19 | |
*** MacYET has joined #zope3-dev | 07:07 | |
*** stub has quit IRC | 07:20 | |
*** stub has joined #zope3-dev | 07:28 | |
*** retsu__ has joined #zope3-dev | 07:31 | |
*** volvox has joined #zope3-dev | 07:53 | |
*** baijum has joined #zope3-dev | 07:59 | |
*** eins has joined #zope3-dev | 08:03 | |
eins | hi | 08:03 |
---|---|---|
*** sashav has joined #zope3-dev | 08:28 | |
*** dlk has joined #zope3-dev | 08:40 | |
*** sashav has quit IRC | 08:43 | |
*** dobee has joined #zope3-dev | 08:45 | |
*** amits_am has joined #zope3-dev | 08:52 | |
*** zagy has joined #zope3-dev | 08:52 | |
*** amits_am has quit IRC | 08:53 | |
*** amit_am has joined #zope3-dev | 08:54 | |
*** philiKON has joined #zope3-dev | 08:58 | |
*** tanghus has joined #zope3-dev | 09:46 | |
*** Aiste has quit IRC | 09:47 | |
*** yutakashino has joined #zope3-dev | 09:47 | |
*** dobee has quit IRC | 09:50 | |
*** russf has joined #zope3-dev | 09:52 | |
*** dobee has joined #zope3-dev | 09:55 | |
*** tanghus_ has quit IRC | 09:56 | |
*** hdima has joined #zope3-dev | 10:02 | |
*** sashav has joined #zope3-dev | 10:07 | |
*** tanghus has quit IRC | 10:13 | |
*** rykomats has joined #zope3-dev | 10:13 | |
*** tanghus has joined #zope3-dev | 10:13 | |
*** Aiste has joined #zope3-dev | 10:17 | |
*** tanghus has quit IRC | 10:39 | |
*** tanghus has joined #zope3-dev | 10:40 | |
*** tanghus has left #zope3-dev | 10:41 | |
*** zopePloneConsult has joined #zope3-dev | 10:47 | |
*** RaFromBRC has joined #zope3-dev | 10:53 | |
*** BjornT_ has joined #zope3-dev | 10:55 | |
*** MJ has quit IRC | 11:01 | |
*** vlado has joined #zope3-dev | 11:02 | |
*** BjornT_ has quit IRC | 11:03 | |
*** MJ has joined #zope3-dev | 11:05 | |
*** romanofski has joined #zope3-dev | 11:11 | |
romanofski | *ching | 11:12 |
*** BjornT_ has joined #zope3-dev | 11:13 | |
*** BjornT has quit IRC | 11:15 | |
*** RaFromBRC has quit IRC | 11:21 | |
*** zopePloneConsult has left #zope3-dev | 11:28 | |
*** MJ has quit IRC | 11:30 | |
*** philiKON has quit IRC | 11:35 | |
*** romanofski has quit IRC | 11:49 | |
*** alga has joined #zope3-dev | 11:55 | |
*** SureshV has joined #zope3-dev | 11:58 | |
*** romanofski has joined #zope3-dev | 11:58 | |
*** baijum has quit IRC | 12:29 | |
*** MJ has joined #zope3-dev | 12:30 | |
*** jinty has joined #zope3-dev | 12:33 | |
*** philiKON has joined #zope3-dev | 12:34 | |
*** retsu__ has quit IRC | 12:38 | |
*** rocky has joined #zope3-dev | 12:46 | |
*** ignas has joined #zope3-dev | 12:52 | |
*** mgedmin has joined #zope3-dev | 12:53 | |
*** mkerrin has joined #zope3-dev | 12:59 | |
*** alga has quit IRC | 13:06 | |
*** dobee has quit IRC | 13:10 | |
*** dobee has joined #zope3-dev | 13:14 | |
*** amit_am has quit IRC | 13:15 | |
*** alga has joined #zope3-dev | 13:15 | |
*** J1m has joined #zope3-dev | 13:22 | |
*** faassen has joined #zope3-dev | 13:27 | |
*** MacYET has left #zope3-dev | 13:32 | |
*** dobee has quit IRC | 13:35 | |
*** dobee has joined #zope3-dev | 13:39 | |
*** mkerrin has quit IRC | 13:50 | |
*** vlado has quit IRC | 13:51 | |
*** vlado has joined #zope3-dev | 13:51 | |
*** zagy has quit IRC | 13:51 | |
*** mkerrin has joined #zope3-dev | 13:52 | |
*** rocky has quit IRC | 13:56 | |
*** rocky has joined #zope3-dev | 14:03 | |
*** oferw has joined #zope3-dev | 14:04 | |
*** zagy has joined #zope3-dev | 14:05 | |
*** retsu__ has joined #zope3-dev | 14:13 | |
*** nathany has joined #zope3-dev | 14:15 | |
*** volvox has quit IRC | 14:17 | |
rocky | are there any z3 util methods anyplace for generating "safe" id from a given string? | 14:29 |
rocky | safe id to place as the name of an item in a container i mean | 14:30 |
mgedmin | how do you define "safe"? | 14:31 |
rocky | mgedmin: well, if i have a string "Hello, this is a & very odd string" i assume & and probably spaces are invalid characters for a contained name ? | 14:31 |
mgedmin | no, zope 3 containers allow any nonempty Unicode strings as names | 14:32 |
rocky | oh, i didn't realize that | 14:32 |
mgedmin | and it all ought to work if you're careful enough to quote them when you generate URLs and sucj | 14:32 |
rocky | z2 has a high restrictions | 14:32 |
rocky | well, in any event i've created my own util method that "sanitizes" the url so "Hello, said the big Cheezy" would become hello-said-the-big-cheezy ... something easy to type into a url | 14:33 |
mgedmin | yes, that produces nicer URLs | 14:36 |
mgedmin | SchoolTool has a SimpleNameChooser adapter that makes these from an object's title attribute | 14:37 |
mgedmin | actually, I'm not so sure about there being no restrictions whatsoever | 14:37 |
mgedmin | starting a name with a '+' or a '@' may interfere with traversal rules | 14:37 |
mgedmin | a name that contains '/' might also cause problems | 14:38 |
*** J1m has quit IRC | 14:38 | |
*** oferw has quit IRC | 14:42 | |
*** romanofski is now known as rom|zZZZ | 14:52 | |
rom|zZZZ | nighty | 14:52 |
*** jinty has quit IRC | 14:59 | |
*** Trevor1 has quit IRC | 14:59 | |
*** TrevorP has joined #zope3-dev | 15:00 | |
*** projekt01 has joined #zope3-dev | 15:14 | |
*** benji has quit IRC | 15:15 | |
*** _projekt01 has joined #zope3-dev | 15:18 | |
*** projekt01 has quit IRC | 15:19 | |
*** yutakashino has left #zope3-dev | 15:28 | |
*** _projekt01 has quit IRC | 15:28 | |
rocky | hm, if i'm inside a view template and i have an instance of a content object, what is the quickest way to determine its url? | 15:28 |
*** vlado has quit IRC | 15:28 | |
Theuni | i remember something like object/@@absolute_url | 15:33 |
Theuni | i'm not sure that's correct | 15:33 |
*** srichter has quit IRC | 15:35 | |
*** mgedmin has quit IRC | 15:36 | |
rocky | i'd like to have several of my properties map directly to dublin core properties ... i guess the best way to do that would be to provide my own dublincore adapter ? | 15:38 |
*** Aiste has quit IRC | 15:39 | |
Theuni | jup | 15:39 |
*** oferw has joined #zope3-dev | 15:40 | |
philiKON | rocky, yes and no | 15:55 |
*** admp has joined #zope3-dev | 15:55 | |
philiKON | rocky, you can also update the DC data whenever your main object data changes | 15:55 |
philiKON | rocky, my book has an example for that (for dc:title) | 15:55 |
rocky | philiKON: well, i'm currently using your technique in your book to use events to update my dublin core attributes | 15:55 |
rocky | philiKON: hehe, yeah | 15:55 |
rocky | thats what i'm using currently | 15:55 |
philiKON | and yeah, @@absolute_url is correct | 15:56 |
rocky | but seems redundant to have name/description mapping to DC title/description attributes, i'm storing double the data ;) | 15:56 |
philiKON | true | 15:56 |
philiKON | yeah, you can customize the DC annotation adapter | 15:56 |
philiKON | should be pretty easy :) | 15:56 |
*** jbb666 has quit IRC | 15:57 | |
*** nebo has joined #zope3-dev | 15:58 | |
rocky | well i wouldn't even need to customize the DC annotation adapter... but rather just provide an adapter for IDublinCore and the adapter would know to read non-annotation properties for title/description and write the same | 15:58 |
rocky | hm, default formlib.EditForm doesn't send a notification event after its updated the object? that seems strange | 15:59 |
rocky | oh yes it does | 16:00 |
rocky | lol | 16:00 |
rocky | i guess it'd help if i plugged my subscribers into the zcml | 16:00 |
*** niemeyer has joined #zope3-dev | 16:00 | |
*** zbir has quit IRC | 16:10 | |
*** srichter has joined #zope3-dev | 16:10 | |
*** nathany has quit IRC | 16:13 | |
*** dobee has quit IRC | 16:14 | |
*** gumpa has joined #zope3-dev | 16:16 | |
*** benji has joined #zope3-dev | 16:17 | |
*** J1m has joined #zope3-dev | 16:28 | |
*** J1m has joined #zope3-dev | 16:29 | |
*** zbir has joined #zope3-dev | 16:30 | |
*** rom|zZZZ has quit IRC | 16:30 | |
*** rom|zZZZ has joined #zope3-dev | 16:32 | |
*** projekt01 has joined #zope3-dev | 16:35 | |
*** nathany has joined #zope3-dev | 16:37 | |
*** GaryPoster has joined #zope3-dev | 16:38 | |
*** srichter has quit IRC | 16:38 | |
*** retsu__ has quit IRC | 16:41 | |
*** BjornT has joined #zope3-dev | 16:45 | |
*** dlk has quit IRC | 16:45 | |
*** retsu__ has joined #zope3-dev | 16:53 | |
rocky | philiKON: ping | 16:59 |
philiKON | rocky, pong | 17:00 |
rocky | philiKON: i'm unit testing my view components on z3.3, what setup stuff do i normally have to do to accomplish that? | 17:00 |
rocky | obviously zope.component.testing.setUp | 17:00 |
philiKON | depends on what your view needs | 17:00 |
philiKON | see fi zope.component.testing is enough | 17:01 |
rocky | the views extend formlib forms but other than that they are very rudimentary | 17:01 |
philiKON | and work your way up :) | 17:01 |
philiKON | you might need widgets, etc. | 17:01 |
rocky | well, how do i go about registering my view for my object? i assume i don't simply load up the zcml for my browser stuff... | 17:01 |
philiKON | you can either load the zcml | 17:02 |
philiKON | or just do z.c.provideAdapter | 17:02 |
philiKON | or, why do you want to register it all? you could also just instantiate it | 17:02 |
philiKON | after all, you're testing a specific component | 17:02 |
philiKON | so you know which one to instantiate | 17:02 |
rocky | hm... thats an idea | 17:02 |
philiKON | no need to do the register/lookup dance | 17:02 |
philiKON | i'd really not spend too much time unit testing views, btw. i prefer writing testbrowser tests | 17:03 |
rocky | i guess the register/lookup dance should probably be left to functional tests? | 17:03 |
philiKON | right | 17:03 |
philiKON | in ftests, all ZCML gets loaded anyways | 17:03 |
rocky | for zope, functional and integration are synomonous right? | 17:03 |
rocky | (wrt tests) | 17:03 |
philiKON | well, test browser makes ftests more blackboxy than they used to be | 17:04 |
*** BjornT__ has joined #zope3-dev | 17:04 | |
philiKON | depending on which test browser object you instantiate, it actually goes over a live HTTP wire | 17:04 |
rocky | right | 17:04 |
philiKON | so, that'd be 100% black box | 17:04 |
rocky | so 3 classes of tests: unit, integration, and functional (functional being testbrowser) ... | 17:05 |
rocky | and in my case i appear to be only doing unit and functional (i will be doing testbrowser tests) | 17:05 |
philiKON | right | 17:05 |
*** BjornT has quit IRC | 17:05 | |
*** BjornT_ has quit IRC | 17:05 | |
rocky | so you think with good unit and functional tests, integration tests aren't necessary ? | 17:05 |
philiKON | yup | 17:05 |
philiKON | depends on the app, i guess | 17:06 |
philiKON | and the components you test.... | 17:06 |
philiKON | gotta go. ttyl | 17:06 |
rocky | later, and thanks | 17:06 |
*** sashav has quit IRC | 17:09 | |
*** oferw has quit IRC | 17:12 | |
*** mkerrin has quit IRC | 17:13 | |
*** admp has quit IRC | 17:17 | |
*** mkerrin has joined #zope3-dev | 17:18 | |
*** eins has quit IRC | 17:21 | |
*** hdima has quit IRC | 17:24 | |
*** retsu__ has quit IRC | 17:37 | |
projekt01 | benji, ayt? | 17:46 |
*** nebo has quit IRC | 17:47 | |
*** retsu__ has joined #zope3-dev | 17:48 | |
benji | am now, projekt01 | 17:48 |
projekt01 | Does your testbrowser make progress? | 17:48 |
benji | the browser backend? yep, it's my current "personal" project; I hope to have a working version in the next week (two at most) | 17:49 |
benji | (or were you referring to something else?) | 17:49 |
projekt01 | no that sounds cool, I just was thinking of testing some JS code. | 17:50 |
projekt01 | I can't wait to see that working ;-) | 17:51 |
benji | is it "pure" JS tests (unit tests) or embeded in a page (functional tests)? | 17:51 |
*** rykomats has quit IRC | 17:53 | |
*** alga has quit IRC | 17:53 | |
*** gumpa is now known as gumpa-brb | 17:55 | |
projekt01 | benji, sorry, I got a phone call, its a base test for a small library where does xml http requests | 18:06 |
projekt01 | the JS is located in a file used in sample page | 18:07 |
projekt01 | I like to setup a browser test and use xy.click() etc. Is this possible? | 18:08 |
benji | If I understand you correctly, yes it should be possible, the main reason I was asking was to let you know that there are (passable) JS unit test frameworks available; I'm considering the one mochikit uses | 18:09 |
*** admp has joined #zope3-dev | 18:11 | |
projekt01 | benji, I know I implemented some years ago JSUnit for Zope3 and wrote some tests forthe xmltree in Rotterdam skin. | 18:12 |
*** gumpa-brb is now known as gumpa | 18:13 | |
projekt01 | I'm not sure if I should re-activate the old project again. svn://svn.tiks.org/repos/Collective/jsunit | 18:14 |
projekt01 | Benji, do you know if there is another jsunit implementation for z3 or something similar? | 18:15 |
*** rom|zZZZ has quit IRC | 18:16 | |
*** SureshV has quit IRC | 18:16 | |
*** jinty has joined #zope3-dev | 18:19 | |
*** mgedmin has joined #zope3-dev | 18:28 | |
*** rom|zZZZ has joined #zope3-dev | 18:28 | |
*** sashav has joined #zope3-dev | 18:40 | |
*** sashav has joined #zope3-dev | 18:41 | |
*** projekt01 has quit IRC | 18:44 | |
*** stu1 has joined #zope3-dev | 18:48 | |
*** stu1 has left #zope3-dev | 18:50 | |
*** stu1 has joined #zope3-dev | 18:50 | |
*** stub has quit IRC | 18:51 | |
*** stu1 is now known as stub | 18:52 | |
Theuni | J1m: lol *G | 18:58 |
J1m | :) | 18:58 |
*** oferw has joined #zope3-dev | 18:59 | |
*** yutakashino has joined #zope3-dev | 19:00 | |
*** gumpa is now known as gumpa-away | 19:02 | |
* faassen tries to find out what funny thing happened where. :0 | 19:02 | |
benji | I think they're referring to a thread on zope3-dev | 19:04 |
philiKON | Theuni, see my email regarding the missing BBB packages in zope 3.3b1 | 19:11 |
*** Aiste has joined #zope3-dev | 19:12 | |
Theuni | saw it | 19:13 |
Theuni | good that it's so easy to resolve | 19:13 |
philiKON | yeah, make a new beta ;) | 19:14 |
J1m | Nobody tris beta. | 19:14 |
J1m | tries | 19:14 |
J1m | has to be a final. | 19:14 |
J1m | In fact, probably a .1. | 19:15 |
benji | apparently Theuni tries betas :) | 19:15 |
philiKON | J1m, i think lots of people are trying zope 3.3b1 | 19:15 |
philiKON | if they're not tryin gthe release, it's because they're trying the checkout directly | 19:15 |
Theuni | apparently i get so confused how to work with checkouts that I also use the releases | 19:16 |
Theuni | and as long as we have packaging issues, we should be betaing | 19:16 |
philiKON | Theuni, what's confusing abut them? | 19:16 |
Theuni | dunno. that's the confusing part ;) | 19:16 |
philiKON | uh huh | 19:16 |
philiKON | svn co ...; make ; bin/mkzopeinstance | 19:17 |
philiKON | that's the usual dance for me | 19:17 |
*** Pupeno has joined #zope3-dev | 19:30 | |
Pupeno | is the macro context/@@form_macros/widget_rows provided by zope ? | 19:31 |
*** zagy has quit IRC | 19:32 | |
mgedmin | Pupeno: yes, usually -- although a skin can override it | 19:41 |
mgedmin | just look for a view named 'form_macros' in various zcml files | 19:41 |
Pupeno | ok. thank you. | 19:41 |
mgedmin | I suppose ++apidoc++ can be useful here | 19:41 |
*** retsu__ has quit IRC | 19:49 | |
*** rom|zZZZ has quit IRC | 19:54 | |
*** BjornT__ is now known as BjornT | 19:54 | |
*** admp has quit IRC | 19:55 | |
*** nathany has quit IRC | 19:56 | |
*** rom|zZZZ has joined #zope3-dev | 19:56 | |
rocky | hrm, what do you all do when you change the signature of your class and installed instances can no longer be listed in the zmi so its not possible to just delete them from the zmi ? | 20:01 |
*** whit|gym is now known as whit | 20:01 | |
mgedmin | rm Data.fs* | 20:05 |
mgedmin | well, that's what I do | 20:06 |
*** efge has joined #zope3-dev | 20:06 | |
mgedmin | the alternative is to make an alias for the old class name in the old module | 20:06 |
mgedmin | what exactly do you mean by "changing the signature of a class"? | 20:07 |
rocky | class Foo(btree.BTreeContainer) becomes class Foo(ordered.OrderedContainer) | 20:07 |
*** yutakashino has quit IRC | 20:11 | |
*** whit is now known as whit|work | 20:24 | |
rocky | hm, is it possible to query an adapter on a class such that i have an adapter than i can apply against any instance of that class? or does that just not make any sense? | 20:26 |
*** alga has joined #zope3-dev | 20:30 | |
efge | huh? | 20:33 |
mgedmin | rocky: your situation is tricky: what you need to do is to write a generation script that finds all instances of your class and recreates them | 20:36 |
rocky | mgedmin: yeah, this is only during development though... so what i ended up doing was fudging my couple instances with enough dummy attributes to make the zmi work and then i deleted them ;) | 20:37 |
efge | rocky: you can monkey-patch __bases__ too if that helps :) | 20:39 |
rocky | lol | 20:39 |
*** RaFromBRC has joined #zope3-dev | 20:45 | |
*** J1m has quit IRC | 20:45 | |
*** J1m has joined #zope3-dev | 20:46 | |
*** J1m has joined #zope3-dev | 20:46 | |
*** J1m has joined #zope3-dev | 20:47 | |
*** dobee has joined #zope3-dev | 20:49 | |
*** mkerrin has quit IRC | 20:50 | |
*** faassen has quit IRC | 21:00 | |
*** alecm|away is now known as alecm | 21:17 | |
*** ignas has quit IRC | 21:24 | |
*** srichter has joined #zope3-dev | 21:30 | |
*** ChanServ sets mode: +o srichter | 21:32 | |
*** jinty has quit IRC | 21:33 | |
*** jinty has joined #zope3-dev | 21:35 | |
*** roman_ has joined #zope3-dev | 21:41 | |
*** rocky is now known as rocky|away | 21:45 | |
*** RaFromBRC is now known as RaFromBRC|mtg | 22:00 | |
*** oferw has quit IRC | 22:01 | |
*** efge has quit IRC | 22:03 | |
*** gintas has joined #zope3-dev | 22:13 | |
*** febb has joined #zope3-dev | 22:15 | |
*** dokai has quit IRC | 22:16 | |
*** dokai has joined #zope3-dev | 22:16 | |
*** admp has joined #zope3-dev | 22:21 | |
*** fcorrea has joined #zope3-dev | 22:28 | |
*** admp has quit IRC | 22:32 | |
*** whit|work is now known as whit | 22:34 | |
*** roman_ has quit IRC | 22:43 | |
*** dunny has joined #zope3-dev | 22:46 | |
*** roman_ has joined #zope3-dev | 22:54 | |
*** alga has quit IRC | 22:55 | |
*** RaFromBRC|mtg is now known as RaFromBRC | 23:02 | |
*** mgedmin has quit IRC | 23:04 | |
*** gintas has quit IRC | 23:15 | |
*** mgedmin has joined #zope3-dev | 23:31 | |
*** RaFromBRC is now known as RaFromBRC|away | 23:40 | |
*** philiKON has quit IRC | 23:46 | |
*** philiKON has joined #zope3-dev | 23:47 | |
*** rocky|away is now known as rocky | 23:56 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!