IRC log of #zope3-dev for Wednesday, 2007-06-13

*** schwendinger has quit IRC00:07
*** afd__ has quit IRC00:08
*** ignas has joined #zope3-dev00:09
*** dobee has quit IRC00:18
*** tarek_ has quit IRC00:19
*** dobee has joined #zope3-dev00:20
*** bigkevmcd has joined #zope3-dev00:21
*** tarek has joined #zope3-dev00:23
*** lucielejard has quit IRC00:25
*** grahal has quit IRC00:31
*** rcrafton has quit IRC00:32
*** norro has quit IRC00:42
*** norro has joined #zope3-dev00:43
*** jodok has quit IRC00:49
*** derek_richardson is now known as derek|office00:50
*** dunny has joined #zope3-dev00:57
*** timte has quit IRC00:57
*** zez_zez has joined #zope3-dev01:01
*** bigkevmcd has quit IRC01:06
*** NomadNate_ has joined #zope3-dev01:13
*** norro has quit IRC01:15
*** yota has quit IRC01:27
*** yvl has quit IRC01:31
*** dunny has quit IRC01:42
*** dunny_ has joined #zope3-dev01:42
*** harobed has quit IRC01:48
*** febb has quit IRC02:03
*** meatballhat has left #zope3-dev02:10
*** J1m has quit IRC02:19
*** jfroche has quit IRC02:41
*** ignas has quit IRC02:55
*** malthe has quit IRC03:29
*** zez_zez has quit IRC04:23
CSWookieI'm creating some PageTemplates on the fly in my view, and they don't recognize the significance @@ for views.  Can anyone tell me what I'm likely missing?04:26
CSWookies/@@/of @@/04:27
*** RaFromBRC has quit IRC05:01
*** niemeyer has quit IRC05:23
*** alecm has quit IRC06:01
*** huajie has joined #zope3-dev06:06
*** NomadNate_ has quit IRC06:17
*** NomadNate_ has joined #zope3-dev06:17
*** baijum has joined #zope3-dev06:39
*** NomadNate_ has quit IRC06:57
*** stub has joined #zope3-dev07:15
*** dunny_ has quit IRC07:57
*** afd__ has joined #zope3-dev08:04
*** d2m has joined #zope3-dev08:24
*** jukart has joined #zope3-dev08:40
*** alecm has joined #zope3-dev08:47
*** pcardune has joined #zope3-dev08:47
*** romanofski has quit IRC08:47
*** deo has quit IRC08:49
*** dobee has joined #zope3-dev08:59
*** yota_ has joined #zope3-dev09:01
*** dobee has quit IRC09:01
*** dobee has joined #zope3-dev09:02
*** afdff has joined #zope3-dev09:04
*** afd__ has quit IRC09:05
*** yvl has joined #zope3-dev09:08
*** ghendi has joined #zope3-dev09:10
*** jodok has joined #zope3-dev09:20
*** schwendinger has joined #zope3-dev09:27
*** pcardune has quit IRC09:32
*** afdff is now known as afd__09:39
*** MJ has joined #zope3-dev09:40
*** romanofski has joined #zope3-dev09:45
*** stub has quit IRC09:47
*** NomadNate_ has joined #zope3-dev09:47
*** stub has joined #zope3-dev09:50
*** bigkevmcd has joined #zope3-dev09:56
romanofskimoin :)09:58
*** jodok has quit IRC10:00
*** timte has joined #zope3-dev10:02
*** jodok has joined #zope3-dev10:04
*** harobed has joined #zope3-dev10:18
*** wreutz has joined #zope3-dev10:27
*** alecm has quit IRC10:35
*** MJ has quit IRC11:08
*** jfroche has joined #zope3-dev11:18
*** MJ has joined #zope3-dev11:28
*** ignas has joined #zope3-dev11:31
*** jfroche_ has joined #zope3-dev11:36
*** NomadNate_ has quit IRC11:36
*** NomadNate_ has joined #zope3-dev11:38
*** afd__ has quit IRC11:48
*** tarek_ has joined #zope3-dev11:51
*** jinty has quit IRC11:52
*** jfroche has quit IRC11:53
*** NomadNate_ has quit IRC11:59
*** tarek has quit IRC11:59
*** NomadNate_ has joined #zope3-dev12:00
*** pcardune has joined #zope3-dev12:00
*** philiKON has joined #zope3-dev12:04
*** Aiste has quit IRC12:05
*** dunny has joined #zope3-dev12:07
*** tarek_ has quit IRC12:12
*** tarek_ has joined #zope3-dev12:13
*** afd__ has joined #zope3-dev12:17
*** philiKON_ has quit IRC12:21
*** jfroche__ has joined #zope3-dev12:28
*** malthe has joined #zope3-dev12:28
*** jinty has joined #zope3-dev12:40
*** malthe has left #zope3-dev12:43
*** jfroche_ has quit IRC12:45
*** Aiste has joined #zope3-dev12:47
*** jodok has quit IRC12:51
*** jodok has joined #zope3-dev12:58
*** jukart has quit IRC13:01
*** mkerrin has joined #zope3-dev13:04
*** ksmith99 has quit IRC13:06
*** bigkevmcd has quit IRC13:07
*** jfroche has joined #zope3-dev13:15
*** bigkev has joined #zope3-dev13:16
*** bigkevmcd has joined #zope3-dev13:16
*** jfroche__ has quit IRC13:32
*** projekt01 has joined #zope3-dev13:43
*** huajie has quit IRC13:46
*** dunny has quit IRC13:50
*** MJ is now known as MJ|lunch14:12
*** WebMaven has joined #zope3-dev14:13
*** Aswin_S has joined #Zope3-dev14:16
*** mgedmin has joined #zope3-dev14:23
dennis_Am I supposed to be able to register viewlet for=ISomeInterface, where I have an IContent object and an adapter which can adapt IContent to ISomeInterface - such that the viewlet shows up when viewing an IContent object?   In the debug shell this works ( ISomeInterface(ContectObject),  but the viewlet does not show.14:27
*** BjornT has quit IRC14:31
*** BjornT has joined #zope3-dev14:32
*** jfroche_ has joined #zope3-dev14:34
*** kleist has joined #zope3-dev14:37
*** grahal has joined #zope3-dev14:42
*** NomadNate_ has quit IRC14:44
dennis_hmm ok, figured it out, need to register for the interface which can be adapted _from_ rather than _to_14:45
*** benji has quit IRC14:53
*** jfroche has quit IRC14:55
*** norro has joined #zope3-dev15:03
*** niemeyer has joined #zope3-dev15:07
*** MJ|lunch is now known as MJ15:08
*** BjornT has quit IRC15:19
*** baijum has quit IRC15:20
*** Newfie2007 has joined #zope3-dev15:23
*** baijum has joined #zope3-dev15:26
*** BjornT has joined #zope3-dev15:30
*** kleist is now known as kleist^lurking15:31
*** jfroche__ has joined #zope3-dev15:40
*** schwendinger has quit IRC15:46
*** schwendinger has joined #zope3-dev15:52
Crippsromanofski: moin?15:54
Crippsdennis_: did you get my question yesterday?15:54
dennis_see it now15:55
Crippsdennis_: I'd asked if I could quote you in a doctest.15:55
Crippsaweseom :)15:55
*** jfroche_ has quit IRC15:55
*** rcrafton has joined #zope3-dev16:00
*** norro has quit IRC16:06
romanofskihey Cripps :)16:07
Crippsromanofski: hey. what does "moin" mean?16:08
romanofskiit's like 'hi' or 'hello'16:10
romanofskiand also synonym for either good morning, good day, or good evening16:11
Crippsah. Cool. What language, or is it just slang?16:11
romanofskiyeh... more like slang16:12
*** schwendinger has quit IRC16:12
romanofskiyou'll here it on the coast16:12
Crippsach so. Ich hat das nicht gehören vor jetzt. ;)16:12
*** schwendinger has joined #zope3-dev16:12
*** baijum has quit IRC16:27
*** romanofski has quit IRC16:30
*** romanofski has joined #zope3-dev16:33
*** alga has joined #zope3-dev16:37
*** baijum has joined #zope3-dev16:41
*** BjornT has quit IRC16:42
*** jodok has left #zope3-dev16:43
*** reco has joined #zope3-dev16:49
xbeanxAnybody know of any examples of combining two fields into one?  I want a field that contains a radio and a textbox...16:49
*** meatballhat has joined #zope3-dev16:50
*** jinty has quit IRC16:52
Crippsalright ... I'm having a really weird issue here .. in my file I have: from doctest import DocFileSuite,ELLIPSIS  and then in my DocFileSuite call I have optionflags = ELLIPSIS  ... so in the doctest file I call a function that generates a unicode uuid, so for my results I 'expect' u'...'   and now the tests bitch at me saying: failed example: Expected:<newline>    u'...'<newline> Got:<newline>    u'3779eb36-2089-4208-8279-9aba618c9baa16:54
Cripps'   does anyone have any ideas what I'm *forgetting* ?16:54
*** stub has quit IRC16:54
*** BjornT has joined #zope3-dev16:55
*** reco has quit IRC16:55
*** reco has joined #zope3-dev16:55
Cripps... I can put some code into a pastebin if it's required.16:56
*** reco has quit IRC16:57
*** baijum has quit IRC16:57
*** Aiste has quit IRC17:02
*** schwendinger has quit IRC17:02
*** Aiste has joined #zope3-dev17:05
*** reco has joined #zope3-dev17:06
*** kleist^lurking is now known as kleist17:08
*** Aiste has quit IRC17:08
*** Aiste has joined #zope3-dev17:09
*** Aiste_ has joined #zope3-dev17:10
*** ghendi has quit IRC17:11
*** Aiste has quit IRC17:12
*** jinty has joined #zope3-dev17:13
*** Aiste_ has quit IRC17:13
Crippsokay, I don't know what I did, but it works now. PFM my friends, PFM.17:19
*** Aiste has joined #zope3-dev17:20
*** Aiste_ has joined #zope3-dev17:22
*** Aiste_ has quit IRC17:23
*** Aiste has quit IRC17:24
*** Aiste has joined #zope3-dev17:24
*** norro has joined #zope3-dev17:24
*** philiKON has quit IRC17:25
*** yvl has quit IRC17:34
*** alga has quit IRC17:35
*** mgedmin has quit IRC17:39
*** alecm has joined #zope3-dev17:44
*** ignas has quit IRC17:46
*** jinty has quit IRC17:58
*** J1m has joined #zope3-dev18:02
*** wreutz has quit IRC18:14
*** MJ has quit IRC18:22
*** philiKON has joined #zope3-dev18:22
*** BjornT_ has joined #zope3-dev18:34
*** naro has joined #zope3-dev18:58
*** naro has left #zope3-dev18:58
*** projekt01 has quit IRC18:59
*** grahal_ has joined #zope3-dev19:07
*** harobed has quit IRC19:11
*** philiKON has quit IRC19:16
*** grahal has quit IRC19:18
*** Aiste has quit IRC19:25
*** grahal_ has quit IRC19:28
*** grahal_ has joined #zope3-dev19:28
ccombHi, a very simple question:19:29
ccombI want to render some plain text description using PlainTextToHTMLRenderer19:29
ccombie just replacing \n with <br/>19:29
ccombhow do I do in the page template?19:30
ccombif I put  tal:content="structure view/description", one can insert html markup19:31
ccombview/description is PlainTextToHTMLRenderer(self.context).render()19:31
ccomband if I don't put  "structure" in TALES, everything is escaped and quoted19:32
ccombas a summary, I would like  '\n' to be rendered as '<br/>' but everything else should be quoted19:34
*** romanofski has quit IRC19:39
*** jfroche__ has quit IRC19:48
*** BjornT has quit IRC19:59
*** dobee has quit IRC20:02
*** J1m has quit IRC20:03
*** pcardune has quit IRC20:04
*** mgedmin has joined #zope3-dev20:04
*** yota_ is now known as yota20:05
*** Aiste has joined #zope3-dev20:05
*** grahal has joined #zope3-dev20:08
*** schwendinger has joined #zope3-dev20:13
*** afd__ has quit IRC20:25
*** schwendinger has quit IRC20:33
*** yvl has joined #zope3-dev20:38
*** RaFromBRC has joined #zope3-dev20:41
*** alecm has quit IRC20:41
dennis_ccomb if you render the whole "html" (text including tags) to text, everything will be quoted, but \n is still \n, no? Then do a regexp to replace \n with <br /> to add some newlines to your quoted text. This text you should view with structure, but you know everything has been quoted already20:43
ccombthanks for your answer20:49
ccombI've finally found something similar :20:49
ccombfrom import escape20:50
ccomb        return PlainTextToHTMLRenderer(escape(self.context.description), self.request).render()20:50
ccombsomeone has asked the exactly same question 3 months ago20:50
ccombI'll put also this one to the FAQ20:51
*** afd__ has joined #zope3-dev20:52
*** alecm has joined #zope3-dev20:57
d2mis there a convention to define a readonly attribute in an interface ?21:04
Theuniattribute or schema field?21:05
d2mplain zope.interface21:05
d2mbut schema is interesting too21:05
Theunithen there is no formal way. write it in the description of the attribute.21:05
d2mthats what i did ;)21:06
Theunithe description is part of the contract as well and needs to be respected by the programmer21:06
mgedminsometimes I wish to add an item into a container, don't mind the name21:12
mgedminand I find repeating the three lines that effectively do21:12
mgedmincontainer[INameChooser(container).chooseName('', item)] = item21:12
mgedminand i wish zope had some syntactic sugar for it, e.g. container.add(item)21:13
Theuniisn't that what iadding is for?21:13
mgedminbut that's probably a bit unrealistic, backwards-compatibility wise (adding the same method to all the container implementations)21:13
TheuniIAdding(container).add(item) ?21:13
mgedminoh?  I always though IAdding was just a gimmick for container views21:14
Theunilet's ask the interface ;)21:14
mgedminclass IAdding(IView):21:15
mgedminand the implementation inherits from BrowserView21:15
mgedminI was just wondering whether I am alone in wishing for a shorter expression21:15
TheuniProbably not21:16
mgedminsomething like, item, name='')21:16
*** gumpa_afk has joined #zope3-dev21:16
TheuniHowever, I think having another interface for this would be reasonable21:16
Theunithen we could write a *default* adapter for normal containers that would autoamte the three-liner21:16
Theunimore specific containers with a different need for adding could have a different adapter21:17
mgedminbut is there need for a different implementations?21:17
TheuniIAdding seems overdesigned and underengineered ;)21:17
mgedminthe only pluggable thing is the policy for choosing some name21:17
mgedminand that's what INameChooser is for21:17
Theunihmm. true. otherwise we hae the object events21:18
*** gumpa_afk is now known as gumpa21:18
*** schwendinger has joined #zope3-dev21:19
Theunihowever, using a different interface brings backwards-compatibility for your code21:19
mgedminhow do you mean?21:19
Theuniyou can provide a new interface that old containers don't have to know about21:20
Theuniyou don't have to change containers to implement this21:20
Theuniif it's part of the interface of the containers then you might fail if there are older implementations21:20
mgedminthat was my argument against adding an 'add' method to IWritableContainer21:20
Theunias is mine :)21:21
Theunievolving interfaces sucks21:21
mgedminso the choice is (1) a global function, (2) an adapter and (3) forget it, just keep writing the three-liner everywhere21:21
mgedminyou seem to prefer (2) over (1), and I'd like to hear more about the reasons21:22
mgedminan argument for (1) instead of (2): less unit test setup necessary21:22
mgedminunit test fixtures is the place where I find that I need to add objects into containers without caring about the names too much21:22
mgedminnot a very good argument, perhaps, since hardcoding the names would be even simpler21:23
mgedminand require even less setup21:23
*** schwendinger_ has joined #zope3-dev21:25
*** schwendinger has quit IRC21:25
Theunihmm. for *unit* tests you'd need stubs anyway.21:27
Theuniintegration tests should get set up with some parts of your normal zcml anyway21:28
*** whit is now known as whit|lunch21:28
*** Theuni is now known as lion21:29
*** NomadNate_ has joined #zope3-dev21:30
*** mkerrin has quit IRC21:31
*** lion is now known as Theuni21:34
*** whitmo has joined #zope3-dev21:35
*** whit|lunch has quit IRC21:36
*** brandon_rhodes has joined #zope3-dev21:41
*** lucielejard has joined #zope3-dev21:43
*** whitmo is now known as whit21:50
*** NomadNate_ has quit IRC21:50
*** NomadNate_ has joined #zope3-dev21:50
*** Newfie2007 has quit IRC21:58
*** alecm has quit IRC22:04
*** romanofski has joined #zope3-dev22:05
*** NomadNate_ has quit IRC22:07
*** NomadNate_ has joined #zope3-dev22:08
*** mgedmin has quit IRC22:09
*** dunny has joined #zope3-dev22:17
*** alecm has joined #zope3-dev22:19
*** dobee has joined #zope3-dev22:19
*** jpcw2002 has joined #zope3-dev22:22
*** NomadNate_ has quit IRC22:25
*** NomadNate_ has joined #zope3-dev22:26
*** dobee has quit IRC22:34
*** RaFromBRC is now known as RaFromBRC|mtg22:37
*** dobee has joined #zope3-dev22:38
*** gumpa has quit IRC22:38
*** RaFromBRC has joined #zope3-dev22:41
*** RaFromBRC is now known as RaFromBRC|mac22:41
*** bigkevmcd has quit IRC22:43
*** NomadNate_ has quit IRC22:50
*** NomadNate_ has joined #zope3-dev22:51
*** whit has quit IRC22:58
*** whit has joined #zope3-dev22:58
*** dobee has quit IRC22:59
*** dobee has joined #zope3-dev23:01
*** NomadNate_ has quit IRC23:06
*** NomadNate_ has joined #zope3-dev23:08
*** grahal has quit IRC23:08
*** grahal has joined #zope3-dev23:08
*** malthe_ has joined #zope3-dev23:09
*** MrTopf has joined #zope3-dev23:11
*** grahal has quit IRC23:16
*** d2m has quit IRC23:27
*** kobold has joined #zope3-dev23:29
*** RaFromBRC|mac has quit IRC23:35
*** RaFromBRC|mtg is now known as RaFromBRC|lunch23:36
*** timte has quit IRC23:37
*** NomadNate_ has quit IRC23:50
*** NomadNate_ has joined #zope3-dev23:53
*** NomadNate_ has quit IRC23:53
*** jodok has joined #zope3-dev23:57
*** schwendinger_ has quit IRC23:59

Generated by 2.15.1 by Marius Gedminas - find it at!