IRC log of #zope3-dev for Wednesday, 2006-05-24

*** gumpa-away has left #zope3-dev00:14
*** RaFromBRC is now known as RaFromBRC|lunch00:21
*** zbir has quit IRC00:33
*** mgedmin has quit IRC00:41
*** rocky has joined #zope3-dev00:47
*** alecm has joined #zope3-dev00:52
*** MJ has quit IRC00:57
*** MJ has joined #zope3-dev00:58
*** dunny has quit IRC01:01
*** alga has quit IRC01:04
*** RaFromBRC|lunch is now known as RaFromBRC01:06
*** benji has quit IRC01:23
*** nathany has quit IRC01:24
*** sashav has quit IRC01:26
*** philiKON has quit IRC01:26
*** philiKON has joined #zope3-dev01:27
*** zbir has joined #zope3-dev01:28
*** dobee has quit IRC01:33
*** whit is now known as whit|gym01:36
*** oferw has joined #zope3-dev01:49
*** oferw has quit IRC01:58
*** jinty has joined #zope3-dev02:19
*** jinty has quit IRC02:23
*** benji has joined #zope3-dev02:24
*** rom|zZZZ has quit IRC02:42
*** J1m has quit IRC03:07
*** niemeyer has quit IRC03:14
*** rocky is now known as rocky|Zzz03:20
*** philiKON has quit IRC03:23
*** niemeyer has joined #zope3-dev03:29
*** rocky|Zzz has quit IRC03:41
*** nathany has joined #zope3-dev03:46
*** RaFromBRC has quit IRC04:02
*** nathany has quit IRC04:04
*** projekt01 has quit IRC04:22
*** tiredbones has quit IRC04:26
*** tiredbones has joined #zope3-dev04:27
*** alecm has quit IRC04:29
*** alecm has joined #zope3-dev04:56
*** amit_am has quit IRC05:01
*** retsu__ has joined #zope3-dev05:03
*** alecm is now known as alecm|away05:09
*** niemeyer has quit IRC05:53
*** d2m has quit IRC06:07
*** d2m has joined #zope3-dev06:09
*** retsu__ has quit IRC06:19
*** MacYET has joined #zope3-dev07:07
*** stub has quit IRC07:20
*** stub has joined #zope3-dev07:28
*** retsu__ has joined #zope3-dev07:31
*** volvox has joined #zope3-dev07:53
*** baijum has joined #zope3-dev07:59
*** eins has joined #zope3-dev08:03
einshi08:03
*** sashav has joined #zope3-dev08:28
*** dlk has joined #zope3-dev08:40
*** sashav has quit IRC08:43
*** dobee has joined #zope3-dev08:45
*** amits_am has joined #zope3-dev08:52
*** zagy has joined #zope3-dev08:52
*** amits_am has quit IRC08:53
*** amit_am has joined #zope3-dev08:54
*** philiKON has joined #zope3-dev08:58
*** tanghus has joined #zope3-dev09:46
*** Aiste has quit IRC09:47
*** yutakashino has joined #zope3-dev09:47
*** dobee has quit IRC09:50
*** russf has joined #zope3-dev09:52
*** dobee has joined #zope3-dev09:55
*** tanghus_ has quit IRC09:56
*** hdima has joined #zope3-dev10:02
*** sashav has joined #zope3-dev10:07
*** tanghus has quit IRC10:13
*** rykomats has joined #zope3-dev10:13
*** tanghus has joined #zope3-dev10:13
*** Aiste has joined #zope3-dev10:17
*** tanghus has quit IRC10:39
*** tanghus has joined #zope3-dev10:40
*** tanghus has left #zope3-dev10:41
*** zopePloneConsult has joined #zope3-dev10:47
*** RaFromBRC has joined #zope3-dev10:53
*** BjornT_ has joined #zope3-dev10:55
*** MJ has quit IRC11:01
*** vlado has joined #zope3-dev11:02
*** BjornT_ has quit IRC11:03
*** MJ has joined #zope3-dev11:05
*** romanofski has joined #zope3-dev11:11
romanofski*ching11:12
*** BjornT_ has joined #zope3-dev11:13
*** BjornT has quit IRC11:15
*** RaFromBRC has quit IRC11:21
*** zopePloneConsult has left #zope3-dev11:28
*** MJ has quit IRC11:30
*** philiKON has quit IRC11:35
*** romanofski has quit IRC11:49
*** alga has joined #zope3-dev11:55
*** SureshV has joined #zope3-dev11:58
*** romanofski has joined #zope3-dev11:58
*** baijum has quit IRC12:29
*** MJ has joined #zope3-dev12:30
*** jinty has joined #zope3-dev12:33
*** philiKON has joined #zope3-dev12:34
*** retsu__ has quit IRC12:38
*** rocky has joined #zope3-dev12:46
*** ignas has joined #zope3-dev12:52
*** mgedmin has joined #zope3-dev12:53
*** mkerrin has joined #zope3-dev12:59
*** alga has quit IRC13:06
*** dobee has quit IRC13:10
*** dobee has joined #zope3-dev13:14
*** amit_am has quit IRC13:15
*** alga has joined #zope3-dev13:15
*** J1m has joined #zope3-dev13:22
*** faassen has joined #zope3-dev13:27
*** MacYET has left #zope3-dev13:32
*** dobee has quit IRC13:35
*** dobee has joined #zope3-dev13:39
*** mkerrin has quit IRC13:50
*** vlado has quit IRC13:51
*** vlado has joined #zope3-dev13:51
*** zagy has quit IRC13:51
*** mkerrin has joined #zope3-dev13:52
*** rocky has quit IRC13:56
*** rocky has joined #zope3-dev14:03
*** oferw has joined #zope3-dev14:04
*** zagy has joined #zope3-dev14:05
*** retsu__ has joined #zope3-dev14:13
*** nathany has joined #zope3-dev14:15
*** volvox has quit IRC14:17
rockyare there any z3 util methods anyplace for generating "safe" id from a given string?14:29
rockysafe id to place as the name of an item in a container i mean14:30
mgedminhow do you define "safe"?14:31
rockymgedmin: 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
mgedminno, zope 3 containers allow any nonempty Unicode strings as names14:32
rockyoh, i didn't realize that14:32
mgedminand it all ought to work if you're careful enough to quote them when you generate URLs and sucj14:32
rockyz2 has a high restrictions14:32
rockywell, 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 url14:33
mgedminyes, that produces nicer URLs14:36
mgedminSchoolTool has a SimpleNameChooser adapter that makes these from an object's title attribute14:37
mgedminactually, I'm not so sure about there being no restrictions whatsoever14:37
mgedminstarting a name with a '+' or a '@' may interfere with traversal rules14:37
mgedmina name that contains '/' might also cause problems14:38
*** J1m has quit IRC14:38
*** oferw has quit IRC14:42
*** romanofski is now known as rom|zZZZ14:52
rom|zZZZnighty14:52
*** jinty has quit IRC14:59
*** Trevor1 has quit IRC14:59
*** TrevorP has joined #zope3-dev15:00
*** projekt01 has joined #zope3-dev15:14
*** benji has quit IRC15:15
*** _projekt01 has joined #zope3-dev15:18
*** projekt01 has quit IRC15:19
*** yutakashino has left #zope3-dev15:28
*** _projekt01 has quit IRC15:28
rockyhm, 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 IRC15:28
Theunii remember something like object/@@absolute_url15:33
Theunii'm not sure that's correct15:33
*** srichter has quit IRC15:35
*** mgedmin has quit IRC15:36
rockyi'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 IRC15:39
Theunijup15:39
*** oferw has joined #zope3-dev15:40
philiKONrocky, yes and no15:55
*** admp has joined #zope3-dev15:55
philiKONrocky, you can also update the DC data whenever your main object data changes15:55
philiKONrocky, my book has an example for that (for dc:title)15:55
rockyphiliKON: well, i'm currently using your technique in your book to use events to update my dublin core attributes15:55
rockyphiliKON: hehe, yeah15:55
rockythats what i'm using currently15:55
philiKONand yeah, @@absolute_url is correct15:56
rockybut seems redundant to have name/description mapping to DC title/description attributes, i'm storing double the data ;)15:56
philiKONtrue15:56
philiKONyeah, you can customize the DC annotation adapter15:56
philiKONshould be pretty easy :)15:56
*** jbb666 has quit IRC15:57
*** nebo has joined #zope3-dev15:58
rockywell 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 same15:58
rockyhm, default formlib.EditForm doesn't send a notification event after its updated the object? that seems strange15:59
rockyoh yes it does16:00
rockylol16:00
rockyi guess it'd help if i plugged my subscribers into the zcml16:00
*** niemeyer has joined #zope3-dev16:00
*** zbir has quit IRC16:10
*** srichter has joined #zope3-dev16:10
*** nathany has quit IRC16:13
*** dobee has quit IRC16:14
*** gumpa has joined #zope3-dev16:16
*** benji has joined #zope3-dev16:17
*** J1m has joined #zope3-dev16:28
*** J1m has joined #zope3-dev16:29
*** zbir has joined #zope3-dev16:30
*** rom|zZZZ has quit IRC16:30
*** rom|zZZZ has joined #zope3-dev16:32
*** projekt01 has joined #zope3-dev16:35
*** nathany has joined #zope3-dev16:37
*** GaryPoster has joined #zope3-dev16:38
*** srichter has quit IRC16:38
*** retsu__ has quit IRC16:41
*** BjornT has joined #zope3-dev16:45
*** dlk has quit IRC16:45
*** retsu__ has joined #zope3-dev16:53
rockyphiliKON: ping16:59
philiKONrocky, pong17:00
rockyphiliKON: i'm unit testing my view components on z3.3, what setup stuff do i normally have to do to accomplish that?17:00
rockyobviously zope.component.testing.setUp17:00
philiKONdepends on what your view needs17:00
philiKONsee fi zope.component.testing is enough17:01
rockythe views extend formlib forms but other than that they are very rudimentary17:01
philiKONand work your way up :)17:01
philiKONyou might need widgets, etc.17:01
rockywell, 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
philiKONyou can either load the zcml17:02
philiKONor just do z.c.provideAdapter17:02
philiKONor, why do you want to register it all? you could also just instantiate it17:02
philiKONafter all, you're testing a specific component17:02
philiKONso you know which one to instantiate17:02
rockyhm... thats an idea17:02
philiKONno need to do the register/lookup dance17:02
philiKONi'd really not spend too much time unit testing views, btw. i prefer writing testbrowser tests17:03
rockyi guess the register/lookup dance should probably be left to functional tests?17:03
philiKONright17:03
philiKONin ftests, all ZCML gets loaded anyways17:03
rockyfor zope, functional and integration are synomonous right?17:03
rocky(wrt tests)17:03
philiKONwell, test browser makes ftests more blackboxy than they used to be17:04
*** BjornT__ has joined #zope3-dev17:04
philiKONdepending on which test browser object you instantiate, it actually goes over a live HTTP wire17:04
rockyright17:04
philiKONso, that'd be 100% black box17:04
rockyso 3 classes of tests: unit, integration, and functional (functional being testbrowser) ...17:05
rockyand in my case i appear to be only doing unit and functional (i will be doing testbrowser tests)17:05
philiKONright17:05
*** BjornT has quit IRC17:05
*** BjornT_ has quit IRC17:05
rockyso you think with good unit and functional tests, integration tests aren't necessary ?17:05
philiKONyup17:05
philiKONdepends on the app, i guess17:06
philiKONand the components you test....17:06
philiKONgotta go. ttyl17:06
rockylater, and thanks17:06
*** sashav has quit IRC17:09
*** oferw has quit IRC17:12
*** mkerrin has quit IRC17:13
*** admp has quit IRC17:17
*** mkerrin has joined #zope3-dev17:18
*** eins has quit IRC17:21
*** hdima has quit IRC17:24
*** retsu__ has quit IRC17:37
projekt01benji, ayt?17:46
*** nebo has quit IRC17:47
*** retsu__ has joined #zope3-dev17:48
benjiam now, projekt0117:48
projekt01Does your testbrowser make progress?17:48
benjithe 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
projekt01no that sounds cool, I just was thinking of testing some JS code.17:50
projekt01I can't wait to see that working ;-)17:51
benjiis it "pure" JS tests (unit tests) or embeded in a page (functional tests)?17:51
*** rykomats has quit IRC17:53
*** alga has quit IRC17:53
*** gumpa is now known as gumpa-brb17:55
projekt01benji, sorry, I got a phone call, its a base test for a small library where does xml http requests18:06
projekt01the JS is located in a file used in sample page18:07
projekt01I like to setup a browser test and use xy.click() etc. Is this possible?18:08
benjiIf 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 uses18:09
*** admp has joined #zope3-dev18:11
projekt01benji, 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 gumpa18:13
projekt01I'm not sure if I should re-activate the old project again. svn://svn.tiks.org/repos/Collective/jsunit18:14
projekt01Benji, do you know if there is another jsunit implementation for z3 or something similar?18:15
*** rom|zZZZ has quit IRC18:16
*** SureshV has quit IRC18:16
*** jinty has joined #zope3-dev18:19
*** mgedmin has joined #zope3-dev18:28
*** rom|zZZZ has joined #zope3-dev18:28
*** sashav has joined #zope3-dev18:40
*** sashav has joined #zope3-dev18:41
*** projekt01 has quit IRC18:44
*** stu1 has joined #zope3-dev18:48
*** stu1 has left #zope3-dev18:50
*** stu1 has joined #zope3-dev18:50
*** stub has quit IRC18:51
*** stu1 is now known as stub18:52
TheuniJ1m:  lol *G18:58
J1m:)18:58
*** oferw has joined #zope3-dev18:59
*** yutakashino has joined #zope3-dev19:00
*** gumpa is now known as gumpa-away19:02
* faassen tries to find out what funny thing happened where. :019:02
benjiI think they're referring to a thread on zope3-dev19:04
philiKONTheuni, see my email regarding the missing BBB packages in zope 3.3b119:11
*** Aiste has joined #zope3-dev19:12
Theunisaw it19:13
Theunigood that it's so easy to resolve19:13
philiKONyeah, make a new beta ;)19:14
J1mNobody tris beta.19:14
J1mtries19:14
J1mhas to be a final.19:14
J1mIn fact, probably a .1.19:15
benjiapparently Theuni tries betas :)19:15
philiKONJ1m, i think lots of people are trying zope 3.3b119:15
philiKONif they're not tryin gthe release, it's because they're trying the checkout directly19:15
Theuniapparently i get so confused how to work with checkouts that I also use the releases19:16
Theuniand as long as we have packaging issues, we should be betaing19:16
philiKONTheuni, what's confusing abut them?19:16
Theunidunno. that's the confusing part ;)19:16
philiKONuh huh19:16
philiKONsvn co ...; make ; bin/mkzopeinstance19:17
philiKONthat's the usual dance for me19:17
*** Pupeno has joined #zope3-dev19:30
Pupenois the macro context/@@form_macros/widget_rows provided by zope ?19:31
*** zagy has quit IRC19:32
mgedminPupeno: yes, usually -- although a skin can override it19:41
mgedminjust look for a view named 'form_macros' in various zcml files19:41
Pupenook. thank you.19:41
mgedminI suppose ++apidoc++ can be useful here19:41
*** retsu__ has quit IRC19:49
*** rom|zZZZ has quit IRC19:54
*** BjornT__ is now known as BjornT19:54
*** admp has quit IRC19:55
*** nathany has quit IRC19:56
*** rom|zZZZ has joined #zope3-dev19:56
rockyhrm, 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 whit20:01
mgedminrm Data.fs*20:05
mgedminwell, that's what I do20:06
*** efge has joined #zope3-dev20:06
mgedminthe alternative is to make an alias for the old class name in the old module20:06
mgedminwhat exactly do you mean by "changing the signature of a class"?20:07
rockyclass Foo(btree.BTreeContainer) becomes class Foo(ordered.OrderedContainer)20:07
*** yutakashino has quit IRC20:11
*** whit is now known as whit|work20:24
rockyhm, 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-dev20:30
efgehuh?20:33
mgedminrocky: your situation is tricky: what you need to do is to write a generation script that finds all instances of your class and recreates them20:36
rockymgedmin: 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
efgerocky: you can monkey-patch __bases__ too if that helps :)20:39
rockylol20:39
*** RaFromBRC has joined #zope3-dev20:45
*** J1m has quit IRC20:45
*** J1m has joined #zope3-dev20:46
*** J1m has joined #zope3-dev20:46
*** J1m has joined #zope3-dev20:47
*** dobee has joined #zope3-dev20:49
*** mkerrin has quit IRC20:50
*** faassen has quit IRC21:00
*** alecm|away is now known as alecm21:17
*** ignas has quit IRC21:24
*** srichter has joined #zope3-dev21:30
*** ChanServ sets mode: +o srichter21:32
*** jinty has quit IRC21:33
*** jinty has joined #zope3-dev21:35
*** roman_ has joined #zope3-dev21:41
*** rocky is now known as rocky|away21:45
*** RaFromBRC is now known as RaFromBRC|mtg22:00
*** oferw has quit IRC22:01
*** efge has quit IRC22:03
*** gintas has joined #zope3-dev22:13
*** febb has joined #zope3-dev22:15
*** dokai has quit IRC22:16
*** dokai has joined #zope3-dev22:16
*** admp has joined #zope3-dev22:21
*** fcorrea has joined #zope3-dev22:28
*** admp has quit IRC22:32
*** whit|work is now known as whit22:34
*** roman_ has quit IRC22:43
*** dunny has joined #zope3-dev22:46
*** roman_ has joined #zope3-dev22:54
*** alga has quit IRC22:55
*** RaFromBRC|mtg is now known as RaFromBRC23:02
*** mgedmin has quit IRC23:04
*** gintas has quit IRC23:15
*** mgedmin has joined #zope3-dev23:31
*** RaFromBRC is now known as RaFromBRC|away23:40
*** philiKON has quit IRC23:46
*** philiKON has joined #zope3-dev23:47
*** rocky|away is now known as rocky23:56

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