IRC log of #zope3-dev for Tuesday, 2006-09-12

*** RaFromBRC has joined #zope3-dev00:02
*** RaFromBRC has quit IRC00:05
*** edgordon has joined #zope3-dev00:16
*** natea_ has quit IRC00:18
*** philiKON has joined #zope3-dev00:21
*** schwendinger has quit IRC00:22
*** batlogg has quit IRC00:22
*** ianbicking has quit IRC00:23
*** g_n_o_s_i_s has joined #Zope3-dev00:30
g_n_o_s_i_safternoon all00:31
g_n_o_s_i_scan anyone tell me how to setup a menu item to only show for an unauthenticated user?00:32
Theunii think you might be able to use a condition for that00:32
Theunido menuitems have conditions? i think i saw something like that.00:32
philiKONthey  have a filter00:32
g_n_o_s_i_si'm not talking the add menu... a page added to the zmi_views00:32
philiKON?00:33
g_n_o_s_i_sso it would be on the <page..... with menu=zmi_views title=register00:33
g_n_o_s_i_sdidn't see any filters in the zcml referece to <browser:page>00:33
philiKONuse <browser:menuItem />00:34
philiKONstill, i would do it via the permission00:34
philiKONuse a permission on the menu item that an unauthenticate duser won't have00:34
g_n_o_s_i_si want it for the unauthenticated user... i want it to be gone for anyone taht is authenticated00:35
philiKONyou can do that too00:35
g_n_o_s_i_show?00:35
philiKONi just told you00:35
g_n_o_s_i_sdo i need to define a permission for principal zope.anybody?00:35
philiKONgive one the permission and the other one not00:35
philiKONyou define a pmerission, then you grant it to zope.anybody00:36
philiKONbut not to anyone else00:36
g_n_o_s_i_sok... that is what i needed00:36
g_n_o_s_i_sthanks00:36
*** edgordon has quit IRC00:38
g_n_o_s_i_syes!!!!, thanks philiKON00:41
*** projekt01 has left #zope3-dev00:41
*** RaFromBRC has joined #zope3-dev00:47
*** BjornT has quit IRC00:49
*** BjornT has joined #zope3-dev00:49
*** RaFromBRC is now known as RaFromBRC|afk00:50
*** ktwilight has quit IRC00:53
*** benji has quit IRC00:54
*** gumpa has left #zope3-dev00:54
*** timte has quit IRC00:56
*** RaFromBRC|afk is now known as RaFromBRC01:02
*** g_n_o_s_i_s has quit IRC01:05
*** ktwilight has joined #zope3-dev01:17
*** RaFromBRC has quit IRC01:34
*** RaFromBRC has joined #zope3-dev01:38
*** febb has joined #zope3-dev01:45
febbHola !!    hi all !01:45
*** RaFromBRC has quit IRC01:46
*** yota has quit IRC01:47
*** RaFromBRC has joined #zope3-dev01:49
*** J1m has quit IRC02:04
*** philiKON has quit IRC02:07
*** febb has quit IRC02:13
*** RaFromBRC has quit IRC02:25
*** RaFromBRC has joined #zope3-dev02:27
*** whit has joined #zope3-dev02:29
*** whit has quit IRC02:31
*** RaFromBRC has quit IRC02:36
*** edgordon has joined #zope3-dev02:44
*** niemeyer has joined #zope3-dev03:07
*** edgordon has quit IRC03:10
*** nathany has quit IRC03:19
*** alecm has quit IRC03:20
*** whit has joined #zope3-dev03:21
*** wrobel has quit IRC03:29
runyagahey03:35
runyagais 304 expensive to compute in z3 land?03:35
*** RaFromBRC has joined #zope3-dev03:39
*** replicant has quit IRC03:42
*** runyaga_ has joined #zope3-dev03:52
*** hazmat has quit IRC03:53
*** RaFromBRC has quit IRC03:56
*** RaFromBRC has joined #zope3-dev03:56
*** alga has quit IRC03:56
*** runyaga has quit IRC04:05
*** niemeyer has quit IRC04:14
*** whit has quit IRC04:22
*** whit has joined #zope3-dev04:39
*** RaFromBRC has quit IRC04:57
*** markup_ has quit IRC05:05
*** RaFromBRC has joined #zope3-dev05:18
*** ofer has quit IRC05:20
*** jinty has quit IRC05:41
*** stub has joined #zope3-dev06:00
*** baijum has joined #zope3-dev06:32
*** dobee has joined #zope3-dev06:41
*** RaFromBRC has quit IRC06:57
*** alecm has joined #zope3-dev07:32
*** alecm has quit IRC07:37
*** alecm has joined #zope3-dev07:44
*** Aiste has joined #zope3-dev07:47
*** SmokeyD has quit IRC07:53
*** eins has joined #zope3-dev08:01
einshi08:01
*** Aiste has quit IRC08:09
*** febb has joined #zope3-dev08:10
*** dobee has quit IRC08:11
*** timte has joined #zope3-dev08:27
*** d2m has left #zope3-dev08:42
*** dobee has joined #zope3-dev08:45
*** alecm has quit IRC08:50
*** alecm has joined #zope3-dev08:52
*** dobee has quit IRC08:52
*** dobee has joined #zope3-dev08:53
*** d2m has joined #zope3-dev08:53
*** zagy has joined #zope3-dev09:00
*** RaFromBRC has joined #zope3-dev09:12
*** hdima has joined #zope3-dev09:18
*** Aiste has joined #zope3-dev09:22
*** romanofski has quit IRC09:23
*** romanofski has joined #zope3-dev09:24
romanofskimorjens09:29
*** flox has quit IRC09:29
*** febb has quit IRC09:38
*** wrobel has joined #zope3-dev09:40
*** febb has joined #zope3-dev09:44
*** batlogg_ has joined #zope3-dev09:49
*** SmokeyD has joined #zope3-dev09:54
*** schwendinger has joined #zope3-dev09:58
*** yota has joined #zope3-dev10:12
*** flox has joined #zope3-dev10:13
*** febb has quit IRC10:22
*** baijum has quit IRC10:28
*** baijum has joined #zope3-dev10:32
*** philiKON has joined #zope3-dev10:35
*** kobol1 has joined #zope3-dev10:44
*** hazmat has joined #zope3-dev10:44
*** ChanServ sets mode: +o hazmat10:44
*** alecm has quit IRC10:47
*** MJ has quit IRC10:52
*** yotaff has joined #zope3-dev10:56
*** flox has quit IRC11:07
*** b_52CEntos has joined #zope3-dev11:07
*** flox has joined #zope3-dev11:26
*** romanofs1i has joined #zope3-dev11:28
*** romanofski has quit IRC11:31
*** MJ has joined #zope3-dev11:31
*** romanofs1i is now known as romanofski11:32
*** faassen has joined #zope3-dev11:58
*** baijum_ has joined #zope3-dev12:02
*** volvox has joined #zope3-dev12:13
*** baijum has quit IRC12:14
*** ofer has joined #zope3-dev12:15
*** flox has quit IRC12:16
*** b_52CEntos has quit IRC12:21
*** baijum_ is now known as baijum12:30
*** andrew_m has joined #zope3-dev12:38
*** andrew_m has quit IRC12:39
*** flox has joined #zope3-dev13:22
*** rocky has quit IRC13:42
*** mkerrin has joined #zope3-dev13:47
*** dunny has quit IRC13:58
*** jinty has joined #zope3-dev14:04
*** edgordon has joined #zope3-dev14:12
*** J1m has joined #zope3-dev14:18
*** ofer has quit IRC14:21
*** ChrisW_ has joined #zope3-dev14:23
*** ChrisW_ has quit IRC14:23
*** ChrisW_ has joined #zope3-dev14:23
*** ChrisW_ is now known as ChrisW14:24
ChrisWis there any way to register a teardown method for a DocFileSuite? I'm creating some temp files that I need to get rid of...14:25
*** mgedmin has joined #zope3-dev14:25
philiKONChrisW, DocFileSuite(..., tearDown=myTearDown)14:28
philiKONsee Zope3/dut.py14:29
ChrisWcool, thanks, just rtfm'ing :-)14:29
ChrisWnot used to code actually being documented ;-)14:29
philiKONyeah, i refrained from rtfming you this time :)14:29
philiKONChrisW, you gotta stop complaining about code being documented...14:29
*** edgordon has quit IRC14:30
einsI want to use multiple schemas in forms using formlib. however some fields have the same name and zope complains with ValueError: ('Duplicate name', blah blah). what do I do?14:34
mgedminyou could have two sets of form fields, with different prefixes, I suppose14:38
mgedminI think you can do form_fields = form.Fields(IFoo, prefix='foo') + form.Fields(IBar, prefix='bar')14:38
mgedminbut I'm not entirely sure14:39
* mgedmin found that reading the source code of zope.formlib often helps, when the documentation is too scarce14:39
einsthanks, i'll try that14:39
*** jinty has quit IRC14:40
philiKONmgedmin, the prefix="" option to form.Fields is buggy, btw14:42
philiKONi meant to file a bug report for that14:42
mgedminyay, joy14:42
philiKONwell, it's functional14:42
* mgedmin is confused14:42
philiKONbut the form ids it creates are funny14:42
mgedminwould it have anything to do with trailing periods?14:42
philiKONfirst field will be14:42
philiKONprefix.field14:42
philiKONsecond field will be14:42
philiKONprefix.prefix.field214:43
mgedminahh14:43
philiKONthen prefix.prefix.prefix.field314:43
mgedminI think I saw that once14:43
philiKONetc.14:43
*** jinty has joined #zope3-dev14:43
* baijum added this formlib question to http://kpug.zwiki.org/Zope3Faq14:46
einsright, it has that bug philiKON14:47
einsform.abc.abc.abc.warehouseLocation, form.abc.abc.abc.abc.webServicesURL, and so on14:48
philiKONeins, file a bug report please :)14:48
* eins is looking at formlib code, maybe it's a minor one14:49
philiKONeins, yup, bug report + patch is always appreciated :)14:49
philiKONeins, esp. if the patch has a teset14:50
*** niemeyer has joined #zope3-dev14:50
einssure;)14:50
*** ignas has joined #zope3-dev14:54
*** baijum has quit IRC14:58
*** regebro has joined #zope3-dev14:59
*** edgordon has joined #zope3-dev14:59
*** baijum has joined #zope3-dev15:00
*** edgordon has quit IRC15:01
*** edgordon has joined #zope3-dev15:01
*** baijum has quit IRC15:04
*** baijum has joined #zope3-dev15:06
*** nathany has joined #zope3-dev15:15
*** baijum has joined #zope3-dev15:16
*** batlogg_ has quit IRC15:24
*** schwendinger has quit IRC15:25
*** niemeyer has quit IRC15:27
*** batlogg has joined #zope3-dev15:28
*** niemeyer has joined #zope3-dev15:30
*** whit has quit IRC15:32
*** Aiste has quit IRC15:33
*** benji has joined #zope3-dev15:36
*** schwendinger has joined #zope3-dev15:40
*** hazmat has quit IRC16:02
* baijum thinks to split up the book : http://kpug.zwiki.org/ZopeGuideSandboxBaijuMuthukadan16:12
*** edgordon has quit IRC16:16
*** volvox has quit IRC16:25
*** gumpa has joined #zope3-dev16:27
*** stub has quit IRC16:28
*** benji has quit IRC16:37
*** torkel_ has joined #zope3-dev16:38
*** benji has joined #zope3-dev16:38
*** eins has quit IRC16:40
*** mgedmin has quit IRC16:41
*** whit has joined #zope3-dev16:45
*** mgedmin has joined #zope3-dev16:53
*** whit_ has joined #zope3-dev16:54
*** baijum has quit IRC17:05
*** srichter has joined #zope3-dev17:07
*** ChanServ sets mode: +o srichter17:07
*** whit has quit IRC17:08
*** Aiste has joined #zope3-dev17:09
*** whit_ has quit IRC17:14
*** flox has quit IRC17:19
*** tfws has joined #zope3-dev17:23
*** tfws has quit IRC17:39
*** hdima has quit IRC17:40
*** tfws has joined #zope3-dev17:41
*** gumpa has quit IRC17:46
*** gump1 has joined #zope3-dev17:46
*** gump1 is now known as gumpa_afk17:54
*** zagy has quit IRC18:07
*** gumpa_afk has quit IRC18:13
*** gumpa has joined #zope3-dev18:13
*** dobee has quit IRC18:14
*** alecm has joined #zope3-dev18:35
*** philiKON has quit IRC19:03
*** MJ has quit IRC19:09
*** zagy has joined #zope3-dev19:12
*** norro has joined #zope3-dev19:21
*** batlogg has quit IRC19:21
*** romanofski has quit IRC19:22
*** volvox has joined #zope3-dev19:30
*** markup_ has joined #zope3-dev19:36
*** runyaga_ has quit IRC19:44
*** Aiste has quit IRC19:45
*** philiKON has joined #zope3-dev19:52
*** volvox has quit IRC19:54
*** MJ has joined #zope3-dev19:54
*** hazmat has joined #zope3-dev19:56
*** ChanServ sets mode: +o hazmat19:56
J1mphiliKON: could you set up the 3.3.0c1 release on www.zope.org?20:02
J1mI have a source release.20:02
philiKONJ1m, will do20:02
J1mI'm about to start working on the windows release.20:02
philiKONawesome20:02
philiKONJ1m, http://www.zope.org/Products/Zope3/3.3.0c1/folder_contents20:05
J1mk20:06
J1mI'm not going to upload the source release until I test the windows release.20:06
*** ChrisW has left #zope3-dev20:07
philiKONJ1m, ok. lemme know.20:07
philiKONi'll work on the announcements20:07
philiKONJ1m, srichter, who has the rights to the cheeseshop section for zope 3?20:08
*** andrew_m has joined #zope3-dev20:08
J1mNot me. :(20:09
philiKONhm :(20:09
*** schwendinger has quit IRC20:10
srichterI do :-)20:11
philiKONsrichter, can you give me rights, too, plz?20:11
srichteraehm, at least IU can upload Zope 3 releases20:11
philiKONmy cheeseshop login is philikon20:11
srichterI am not aware about the section, but me or Fred did the first Zope 3 release20:11
*** hazmat has quit IRC20:12
srichterphiliKON: what do I have to do?20:12
srichterok, I am the owner I see20:13
philiKONsrichter, go to Admin20:13
philiKONwhere it says:20:13
philiKONPackage: admin | view | edit | files | PKG-INFO20:13
philiKON(you click on 'admin')20:13
philiKONand grant me maintainer role20:14
philiKONme = philikon :)20:14
srichterdone20:14
philiKONthx20:15
*** whit has joined #zope3-dev20:23
*** whit has joined #zope3-dev20:23
*** whit has quit IRC20:26
*** ChrisW has joined #zope3-dev20:34
ChrisWhey all, if I'm developing a brand new thiungy for Zope 2, where should I import Persistent from? In Zope 2.9, can I use the Zope 3 one yet? if so, what is it?20:34
philiKONpersistent.Persistent20:35
philiKONyou can use that20:35
ChrisWcool :-)20:35
philiKONbut only if you don't need ExtensionClass semantics20:35
ChrisWI don't think I do...20:35
ChrisWif fact, if I use persistent.Persistent, am I free to use properties?20:35
philiKONyup20:36
philiKONbut you're free to use properties with extensionclass as well20:36
J1mYou can use properties in either case.20:36
philiKONbecause since zope 2.8 they're new style20:36
ChrisWah, okay20:36
*** kobol1 has quit IRC20:36
ChrisWcan I mix Acquisition.Implicit with persistent.Persistent?20:36
J1mno20:36
philiKONno20:36
ChrisW:-(20:36
philiKONChrisW, Implicit is an ExtensionClass20:37
ChrisW*sigh*20:37
ChrisWright, but Zope 2's security is non-functional without Implicit20:37
ChrisW(tried without, kept getting told I hadn't provided a usernaem or password)20:37
philiKONactually, Explicit is enough20:37
philiKONbut yes, zope 2 security needs acquisition20:37
philiKONi have a fix, but it's not ready yet20:37
ChrisWyeah, Explicit it may well need, but that's stil lan ExtensionClass, no?20:38
philiKONyeah, it is20:38
ChrisW*sigh*20:38
philiKON:(20:38
philiKONzope 2...20:38
ChrisWok, what persistent should I use/20:38
ChrisW?20:38
philiKONPersistence.Persistence i guess20:38
philiKONor whatever it was called20:38
ChrisWHow's Zope 3's webdav story nowadays?20:39
philiKONapparently better when you use zope.webdav (optional)20:39
srichtervery, very good thanks to mkerrin :-)20:39
ChrisWheh20:40
ChrisWI wish I wasn't behind on this project, there's little reason to do it on Zoep 2 other than force of habit...20:40
ChrisW...the customer might shit bricks too, but not many ;-)20:40
ChrisWI hope it'll be fun to see how comparatively easy it is to use twiddler in Zope 3 :-)20:41
philiKONwhat's twiddler?20:42
ChrisWlike meld3 but with a more style-pedant author20:42
ChrisW(ie: me ;-) )20:42
ChrisWoh, and pluggable input parsers, output renderers and filters20:42
philiKONnice20:43
ChrisWcurrent have a plain text and html/xml input, unicode and email output renders, and an html quoting filter by default20:43
ChrisWyeah, I've been keeping it under wraps for about 9 months now, but I wanna use it on this custoemr project20:43
ChrisWhmm, there a pastbin around? I'll shwo you  a snippet...20:44
* philiKON always uses http://paste.lisp.org20:44
ChrisWheh, trying pastebin.com now :-)20:45
ChrisWheh20:46
ChrisWhttp://paste.lisp.org/display/2590420:46
ChrisWI can even use icky dtml bits to build zmi pages ;-)20:47
ChrisW...although the plaintext parser makes it even less icky20:47
philiKONcool20:47
ChrisWthe only confusing thing o nthere are the params to ZopeTwiddler's constructor20:47
ChrisW(id,source,**kw)20:47
ChrisWthe id is to appease the Zope 2 gods20:48
ChrisWthe rest are as for a normal twiddler20:48
ChrisWI'm really happy with out the FileWrapper input turned out20:48
ChrisWno need for a seperate FileTwiddler or some such20:48
philiKONwhat's FileWrapper do?20:49
ChrisWit's an input that treats the source argument as a filename, reads it, and then parses it to the "real" input parser passed to its constructor20:49
ChrisWin this case, PlainText20:49
philiKONok20:49
*** batlogg has joined #zope3-dev20:50
ChrisWI was trying to avoid a having the PageTemplate,ZopePageTemplate,PageTemplateFile triality :-)20:50
philiKONyeah, makes sense20:50
ChrisWI'm _very_ happy with how the pipelines input and output have turned out20:51
philiKONin zope, you should look at ViewPageTemplateFile20:51
philiKONin zope 3 that is20:51
ChrisW*nods*20:51
philiKONit's a good scheme to implement "methods" as a template20:51
philiKONe.g.:20:51
philiKONclass FooPage(BrowserPage):20:51
philiKON    __call__ = ViewPageTempalteFile('foo.pt')20:51
philiKONyou can call a FooPage object and the template gets rendered20:51
ChrisWsweet20:51
ChrisWI think for me that'd be:20:52
philiKONthe trick is that the template has access to FooPage's request, etc.20:52
ChrisWclass FooPage(BrowserPage):20:52
ChrisW  __call__ = Twiddler('foo.twiddler',FileWrapper(prefix=__file__),executor=myCallable)20:53
ChrisW...which will work as-is :-)20:53
*** dunny has joined #zope3-dev20:53
ChrisWoops, forgot an input= before the FileWrapper20:53
philiKONk20:53
ChrisWok, but how _do_ you get acccess to the request and other context?20:53
philiKONnote that Twidder has to be something that's callable by itself20:54
philiKONyeah, that's the trick20:54
philiKONTwiddler.__call__ won't get request and context20:54
philiKONactually, you'd have something like20:54
philiKONclass FooPage(BrowserPage):20:54
ChrisWgood thing too, it wouldn't know what to do with them ;-)20:54
philiKON    __call__ = TwiddlerMethod(**kw)20:54
philiKONand TwiddlerMethod is an property-style object20:54
ChrisWproperty-style object?20:54
philiKONon __get__, it fetches the page's context and request object, and returns a Twiddler object20:54
philiKONyou know, thos ethings with __get__ and __set__20:55
philiKONlike:20:55
philiKONclass Foo(object):20:55
philiKON    @property20:55
philiKON    def bar(self): return 120:55
*** Aiste has joined #zope3-dev20:55
ChrisWah, ok20:55
ChrisWhmm, that''s probably be a Zope3Twiddler then ;-)20:55
ChrisWsounds pretty sweet though :-)20:55
ChrisWTTW Zope 3  Twiddlers will be fun too ;-)20:55
*** Aiste has quit IRC20:55
philiKONyes, look at ViewPageTemplateFile, it's a pretty powerful scheme20:56
*** srichter has quit IRC20:56
ChrisWshame there's a relaince on having a __call__ method20:56
mgedminwhy?20:56
philiKONbasically, a ViewPageTemplateFile object is just a surrogate which returns a "real", request-and-context-bound page template object upon __get__20:56
ChrisWTwiddler's only have a render method at present20:56
ChrisWmmm20:56
ChrisWmaybe they should have a call method?20:57
mgedminah20:57
mgedminwell, very often you want to do more than just render a template20:57
mgedminmy usual pattern is20:57
mgedminclass SomeView(BrowserPage):20:57
mgedmin    template = ViewPageTemplateFile('templates/foo.pt')20:57
mgedmin    def __call__(self):20:57
mgedmin        self.update()20:57
mgedmin        return self.template()20:57
ChrisWyeah, that's what I figured20:58
mgedminand sometimes I have more than one template with an if statement choosing which one should be rendered20:58
ChrisWin fact, that suites twiddler even better20:58
ChrisWclass SomeView(BrowserPage):20:58
philiKONyeah, but self.template is a Twiddler object20:58
philiKONso, you'd have to say self.template.render()20:58
ChrisW  template = Twiddler('myfile.twiddler',input=FileWrapper(prefix=__file__))20:58
ChrisW  def __call__(self):20:58
ChrisW   t = self.template.clone()20:59
ChrisW  t['some_id'].replace('my_value',style='font-weight: bold;')20:59
ChrisW return t.render()20:59
ChrisW...if you see what I mean20:59
ChrisWTwiddler's are like lumps of putty20:59
ChrisWthey don't have any "code" as such21:00
* philiKON sees what you mean21:00
ChrisWso actually, I think they'll be _ideal_ for Zope 3 :-)21:00
philiKON:)21:00
philiKONyes, i think twiddler fits into browserpages nicely21:00
ChrisWfunnilly enough, I started working o nthe m in January when I was going through your book and learnign Zope 3 for the first time21:00
philiKONheh, cool21:01
*** faassen has quit IRC21:01
ChrisWthat was when I finally snapped and thought "Zpt sux"21:01
ChrisW;-)21:01
ChrisWtemplates should have no code21:01
ChrisWalthough I allow code to be associated with a twiddler for execution at runtime21:01
philiKONi still like the meld idea better21:01
ChrisWwhat's the meld idea?21:01
philiKONbut i agree that twiddler is cool for non-xml data21:01
philiKONwell, meld is about modifying an xml tree, right?21:01
ChrisWyeah21:02
ChrisWso's twiddler ;-)21:02
philiKONfor markup, i like working on an elementtree21:02
philiKONor something that like that21:02
* mgedmin sees 'meld', me thinks about the Gtk+ visual merge tool21:02
ChrisWer, twiddler uses elementree under the hood ;-)21:02
philiKONnice :)21:02
philiKONi gotta check this out then21:02
philiKONis it on the cheeseshop? egg?21:02
philiKONah, wait, it's you :)21:02
philiKONof course not21:02
ChrisWt = Twiddler('<node id="fish">something</node>')21:02
ChrisWt['fish'].replace('foo')21:02
* mgedmin likes zpts21:03
ChrisWt.render() -> u'<node id="fish">foo</node>'21:03
ChrisWsadly nto released yet21:03
ChrisWI'm very glad I waited21:03
ChrisWI've changed the api a _lot_ in the last month or two21:03
philiKONhehe21:03
philiKONhelloooo mr. "stop changing apis!"21:04
philiKON:)21:04
ChrisWyes, but these aren't released yet :-P21:04
ChrisWhmmm, I'm now thinking of renaming 'render' to __call__21:04
ChrisWmaybe just a synonim?21:05
ChrisWTwiddler('<node id="fish">something</node>')() looks perverse to me :-S21:05
ChrisWTwiddler('<node id="fish">something</node>').render() looks better21:05
ChrisWthat said, msg = t.render(), where msg ends up being a MIMEMultipart doesn't feel quite right either ;-)21:06
mgedminhow often will you render a template immediately after constructing it?21:07
ChrisWvery true ;-)21:07
ChrisWthat said, I can't see any harm in having __call__ as a synonym for render21:07
mgedminsynonym's aren't very pythonic -- There Should Be One Obvious Way To Do It21:09
mgedminformlib, I'm looking at you21:09
mgedminform.fields == form.Fields == form.FormFields21:09
ChrisWblegh21:09
ChrisWokay, I'll just stick with render for now ;-)21:09
ChrisWphiliKON: btw: I was very scared how close to meld3 I came having not even looked at it until I finished my 1st pass ;-)21:10
philiKONhehe21:10
ChrisWI did point this out at EPC21:10
* philiKON misses your talk due to hangover21:10
ChrisWthe pipelines input was so I could do a plaintext parser and stop Guido's "I hate xml" whine ;-)21:11
ChrisWbut I _like_ the plaintext parser _a lot_ now, especially when generating email21:11
ChrisWthe output front was mainly for symetry, but having written the Email output renderer, I'm very glad I did21:11
mgedminooh, generating JavaScript from ZPT *is* a pain21:11
ChrisWthe filters idea is borrowed from Django - makes html_quote and translation very easy to do :-)21:12
ChrisWmgedmin: come to the twiddler side ;-)21:12
ChrisW(it's not that dark here)21:12
ChrisW*chuckles*21:12
ChrisWit's all oss and I'm happy to mail .tgz's to anyone who's interested21:12
ChrisWthere's a raft of documentation21:13
ChrisWjust don't want torelease until I;'ve tidied a few things up...21:13
*** hazmat has joined #zope3-dev21:14
*** ChanServ sets mode: +o hazmat21:14
J1mphiliKON: the new release files have been uploaded21:18
philiKONook21:18
philiKONcool21:18
J1mI'll go ahead and publish them21:18
philiKONok21:19
J1mIt looks like the files are publicly available.21:20
philiKONyup21:21
philiKONthanks21:21
*** zagy_ has joined #zope3-dev21:22
* Theuni claps in the hands21:22
*** philiKON changes topic to "logs available at http://zope3.pov.lt/irclogs/ || paste code examples into http://zope3.pastebin.com/ or http://paste.plone.org/ || 3.3c1 is out || bug day live at http://www.zope.org/Collectors/Zope3-dev || FAQ at http://kpug.zwiki.org/Zope3Faq"21:23
*** ignas has quit IRC21:25
*** norro has quit IRC21:32
*** zagy has quit IRC21:33
philiKONdang, srichter is gone21:37
philiKONi don't seem to have cheeseshop privileges after all21:37
ChrisWI should really look at the cheesshop sometime :_S21:38
philiKONit's a pathetic web app21:39
ChrisWthat's why I've been avoiding it ;-)21:39
*** alecm is now known as alecm|away21:40
*** mkerrin has quit IRC21:50
*** rocky has joined #zope3-dev21:56
*** rocky has quit IRC22:05
*** rocky has joined #zope3-dev22:07
*** ChrisW has quit IRC22:08
*** faassen has joined #zope3-dev22:09
*** rocky has quit IRC22:10
*** rocky has joined #zope3-dev22:11
*** hazmat has quit IRC22:24
*** alecm|away is now known as alecm22:31
*** rocky is now known as rocky|hereandthe22:33
*** romanofski has joined #zope3-dev22:33
*** rocky|hereandthe is now known as rocky|here|there22:33
*** zagy_ has quit IRC22:50
*** TresEquis has joined #zope3-dev22:54
TheuniJ1m: Is it intentional that an adapter registration overwrites earlier registrations with the same triple of (required, provided, name)?22:57
*** alecm has quit IRC22:57
*** ChrisW has joined #zope3-dev22:57
J1mYes22:57
* Theuni humms22:58
TheuniWhy?22:58
ChrisWdo Zope 3 security proxies work with Zope 2 security yet?22:58
J1mChrisW: no22:58
ChrisWhurmph ;-)22:58
J1mTheuni: because it's simpler.22:58
J1mIf you want conflict detection, you can write that on top, as we do w zcml.22:59
Theunibut handlers don't work that way, right?22:59
J1mYou might as well ask why dictionary objects don't raise exceptions when you overwrite a key.22:59
*** hazmat has joined #zope3-dev22:59
J1mHandlers never conflict, so, of course, they don't so conflict detection.23:00
J1mdon't do23:00
TheuniAh.23:00
TheuniSo the reason is that we can't have two adapters with the same level of 'specificity' (is that a word?)?23:00
* mgedmin wants to ask why containers raise exceptions when you overwrite a key23:00
J1mI prefer to use the term "adapter type".23:01
J1mwhere type is the required and provided interfaces.23:01
Theuniah, ok. so we can't have two adapters with the same adapter type, becauset the CA wouldn't know what to do.23:01
Theuni(and the name?)23:01
J1mYou can't have 2 regular adapters of the same type and name.23:01
Theuniok23:02
J1mright23:02
Theuniand why don't we conflict on registry-level?23:02
J1mmgedmin: containers are higher level.23:02
Theuniwhy don't we force people to delete first?23:02
Theunis/delete/unregister/23:02
J1mwhy should we?23:02
*** gumpa has quit IRC23:03
J1mI don't remember atm what the registration UI does.23:03
*** gumpa has joined #zope3-dev23:03
Theuniwell, the docstring for registerAdapter doesn't tell for example that a previous registration will be lost. i was kind of thinking registering an adapter and unregistering it again would get me the original state.23:03
*** rocky|here|there has quit IRC23:04
Theunii was extrapolating from handlers i think23:04
*** nathany has quit IRC23:05
*** alga has joined #zope3-dev23:05
Theunii think the comparison of adapter registrations with dictionary keys is not *that* obvious23:05
* J1m shrugs23:07
J1mI think it makes a lot of sense to keep registration machinery as simple as possible.23:07
* Theuni wonders what the goal of that shrug was23:07
J1mThat means the simplest or no policies.23:07
TheuniI agree on that.23:07
J1mIf you want to protect people, then do it at a higher level.23:08
*** ChanServ sets mode: +o hazmat23:08
Theuniok23:08
* Theuni needs to protect his functional test23:08
J1mFor example, I made a bare bones UI for registering things locally.23:08
philiKONwhere things is only utilities23:08
J1mI'm sure it can be improved in many ways.23:08
TheuniRight now I have a problem with test isolation again.23:08
* philiKON has adapters on his list ;)23:08
J1mphiliKON: well, yes23:08
TheuniOne test registers (and unregisters) an adapter, and the next test fails.23:09
Theunibecause the original adapter is gone23:09
J1mah23:09
J1ma functional test messes with the glbal registry at the next test's peril. :)23:09
J1mwhy not use a local registry.23:10
J1m?23:10
J1mThey are very easy to use now.23:10
Theunilooks like i'll do that23:10
philiKONftests should not modify the global registries IMO23:10
*** ChrisW has left #zope3-dev23:10
TheuniphiliKON: tests should be isolated better23:10
philiKONperhaps23:11
J1mso write well-behaved tests.23:11
J1mThe testing infrastructure can only do so much.23:12
TheuniI know. Unfortunately I keep expecting the wrong things.23:12
* mgedmin dreams a "what's new/cool in zope 3" blog with short code examples23:16
* mgedmin should be forced to pay $1 for every wish/dream/whine he doesn't actually plan to implement23:20
*** flox has joined #zope3-dev23:24
*** gumpa has quit IRC23:27
*** gump1 has joined #zope3-dev23:27
*** zbir has quit IRC23:32
*** mgedmin has quit IRC23:37
*** febb has joined #zope3-dev23:37
febbhola...23:37
*** zbir has joined #zope3-dev23:43
*** niemeyer has quit IRC23:47
*** MJ has quit IRC23:51

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