*** schwendinger has quit IRC | 00:07 | |
*** afd__ has quit IRC | 00:08 | |
*** ignas has joined #zope3-dev | 00:09 | |
*** dobee has quit IRC | 00:18 | |
*** tarek_ has quit IRC | 00:19 | |
*** dobee has joined #zope3-dev | 00:20 | |
*** bigkevmcd has joined #zope3-dev | 00:21 | |
*** tarek has joined #zope3-dev | 00:23 | |
*** lucielejard has quit IRC | 00:25 | |
*** grahal has quit IRC | 00:31 | |
*** rcrafton has quit IRC | 00:32 | |
*** norro has quit IRC | 00:42 | |
*** norro has joined #zope3-dev | 00:43 | |
*** jodok has quit IRC | 00:49 | |
*** derek_richardson is now known as derek|office | 00:50 | |
*** dunny has joined #zope3-dev | 00:57 | |
*** timte has quit IRC | 00:57 | |
*** zez_zez has joined #zope3-dev | 01:01 | |
*** bigkevmcd has quit IRC | 01:06 | |
*** NomadNate_ has joined #zope3-dev | 01:13 | |
*** norro has quit IRC | 01:15 | |
*** yota has quit IRC | 01:27 | |
*** yvl has quit IRC | 01:31 | |
*** dunny has quit IRC | 01:42 | |
*** dunny_ has joined #zope3-dev | 01:42 | |
*** harobed has quit IRC | 01:48 | |
*** febb has quit IRC | 02:03 | |
*** meatballhat has left #zope3-dev | 02:10 | |
*** J1m has quit IRC | 02:19 | |
*** jfroche has quit IRC | 02:41 | |
*** ignas has quit IRC | 02:55 | |
*** malthe has quit IRC | 03:29 | |
*** zez_zez has quit IRC | 04:23 | |
CSWookie | I'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 |
---|---|---|
CSWookie | s/@@/of @@/ | 04:27 |
*** RaFromBRC has quit IRC | 05:01 | |
*** niemeyer has quit IRC | 05:23 | |
*** alecm has quit IRC | 06:01 | |
*** huajie has joined #zope3-dev | 06:06 | |
*** NomadNate_ has quit IRC | 06:17 | |
*** NomadNate_ has joined #zope3-dev | 06:17 | |
*** baijum has joined #zope3-dev | 06:39 | |
*** NomadNate_ has quit IRC | 06:57 | |
*** stub has joined #zope3-dev | 07:15 | |
*** dunny_ has quit IRC | 07:57 | |
*** afd__ has joined #zope3-dev | 08:04 | |
*** d2m has joined #zope3-dev | 08:24 | |
*** jukart has joined #zope3-dev | 08:40 | |
*** alecm has joined #zope3-dev | 08:47 | |
*** pcardune has joined #zope3-dev | 08:47 | |
*** romanofski has quit IRC | 08:47 | |
*** deo has quit IRC | 08:49 | |
*** dobee has joined #zope3-dev | 08:59 | |
*** yota_ has joined #zope3-dev | 09:01 | |
dobee | test | 09:01 |
*** dobee has quit IRC | 09:01 | |
*** dobee has joined #zope3-dev | 09:02 | |
dobee | test | 09:02 |
*** afdff has joined #zope3-dev | 09:04 | |
*** afd__ has quit IRC | 09:05 | |
*** yvl has joined #zope3-dev | 09:08 | |
*** ghendi has joined #zope3-dev | 09:10 | |
*** jodok has joined #zope3-dev | 09:20 | |
*** schwendinger has joined #zope3-dev | 09:27 | |
*** pcardune has quit IRC | 09:32 | |
*** afdff is now known as afd__ | 09:39 | |
*** MJ has joined #zope3-dev | 09:40 | |
*** romanofski has joined #zope3-dev | 09:45 | |
*** stub has quit IRC | 09:47 | |
*** NomadNate_ has joined #zope3-dev | 09:47 | |
*** stub has joined #zope3-dev | 09:50 | |
*** bigkevmcd has joined #zope3-dev | 09:56 | |
romanofski | moin :) | 09:58 |
*** jodok has quit IRC | 10:00 | |
*** timte has joined #zope3-dev | 10:02 | |
*** jodok has joined #zope3-dev | 10:04 | |
*** harobed has joined #zope3-dev | 10:18 | |
*** wreutz has joined #zope3-dev | 10:27 | |
*** alecm has quit IRC | 10:35 | |
*** MJ has quit IRC | 11:08 | |
*** jfroche has joined #zope3-dev | 11:18 | |
*** MJ has joined #zope3-dev | 11:28 | |
*** ignas has joined #zope3-dev | 11:31 | |
*** jfroche_ has joined #zope3-dev | 11:36 | |
*** NomadNate_ has quit IRC | 11:36 | |
*** NomadNate_ has joined #zope3-dev | 11:38 | |
*** afd__ has quit IRC | 11:48 | |
*** tarek_ has joined #zope3-dev | 11:51 | |
*** jinty has quit IRC | 11:52 | |
*** jfroche has quit IRC | 11:53 | |
*** NomadNate_ has quit IRC | 11:59 | |
*** tarek has quit IRC | 11:59 | |
*** NomadNate_ has joined #zope3-dev | 12:00 | |
*** pcardune has joined #zope3-dev | 12:00 | |
*** philiKON has joined #zope3-dev | 12:04 | |
*** Aiste has quit IRC | 12:05 | |
*** dunny has joined #zope3-dev | 12:07 | |
*** tarek_ has quit IRC | 12:12 | |
*** tarek_ has joined #zope3-dev | 12:13 | |
*** afd__ has joined #zope3-dev | 12:17 | |
*** philiKON_ has quit IRC | 12:21 | |
*** jfroche__ has joined #zope3-dev | 12:28 | |
*** malthe has joined #zope3-dev | 12:28 | |
*** jinty has joined #zope3-dev | 12:40 | |
*** malthe has left #zope3-dev | 12:43 | |
*** jfroche_ has quit IRC | 12:45 | |
*** Aiste has joined #zope3-dev | 12:47 | |
*** jodok has quit IRC | 12:51 | |
*** jodok has joined #zope3-dev | 12:58 | |
*** jukart has quit IRC | 13:01 | |
*** mkerrin has joined #zope3-dev | 13:04 | |
*** ksmith99 has quit IRC | 13:06 | |
*** bigkevmcd has quit IRC | 13:07 | |
*** jfroche has joined #zope3-dev | 13:15 | |
*** bigkev has joined #zope3-dev | 13:16 | |
*** bigkevmcd has joined #zope3-dev | 13:16 | |
*** jfroche__ has quit IRC | 13:32 | |
*** projekt01 has joined #zope3-dev | 13:43 | |
*** huajie has quit IRC | 13:46 | |
*** dunny has quit IRC | 13:50 | |
*** MJ is now known as MJ|lunch | 14:12 | |
*** WebMaven has joined #zope3-dev | 14:13 | |
*** Aswin_S has joined #Zope3-dev | 14:16 | |
*** mgedmin has joined #zope3-dev | 14: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 IRC | 14:31 | |
*** BjornT has joined #zope3-dev | 14:32 | |
*** jfroche_ has joined #zope3-dev | 14:34 | |
*** kleist has joined #zope3-dev | 14:37 | |
*** grahal has joined #zope3-dev | 14:42 | |
*** NomadNate_ has quit IRC | 14: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 IRC | 14:53 | |
*** jfroche has quit IRC | 14:55 | |
*** norro has joined #zope3-dev | 15:03 | |
*** niemeyer has joined #zope3-dev | 15:07 | |
*** MJ|lunch is now known as MJ | 15:08 | |
*** BjornT has quit IRC | 15:19 | |
*** baijum has quit IRC | 15:20 | |
*** Newfie2007 has joined #zope3-dev | 15:23 | |
*** baijum has joined #zope3-dev | 15:26 | |
*** BjornT has joined #zope3-dev | 15:30 | |
*** kleist is now known as kleist^lurking | 15:31 | |
*** jfroche__ has joined #zope3-dev | 15:40 | |
*** schwendinger has quit IRC | 15:46 | |
*** schwendinger has joined #zope3-dev | 15:52 | |
Cripps | romanofski: moin? | 15:54 |
Cripps | dennis_: did you get my question yesterday? | 15:54 |
dennis_ | no? | 15:54 |
dennis_ | ah | 15:55 |
dennis_ | see it now | 15:55 |
Cripps | dennis_: I'd asked if I could quote you in a doctest. | 15:55 |
dennis_ | sure | 15:55 |
dennis_ | :) | 15:55 |
Cripps | aweseom :) | 15:55 |
Cripps | %s/aweseom/awesome | 15:55 |
*** jfroche_ has quit IRC | 15:55 | |
*** rcrafton has joined #zope3-dev | 16:00 | |
*** norro has quit IRC | 16:06 | |
romanofski | hey Cripps :) | 16:07 |
Cripps | romanofski: hey. what does "moin" mean? | 16:08 |
romanofski | it's like 'hi' or 'hello' | 16:10 |
romanofski | and also synonym for either good morning, good day, or good evening | 16:11 |
Cripps | ah. Cool. What language, or is it just slang? | 16:11 |
romanofski | german | 16:11 |
romanofski | yeh... more like slang | 16:12 |
romanofski | dialect | 16:12 |
*** schwendinger has quit IRC | 16:12 | |
romanofski | you'll here it on the coast | 16:12 |
Cripps | ach so. Ich hat das nicht gehören vor jetzt. ;) | 16:12 |
*** schwendinger has joined #zope3-dev | 16:12 | |
romanofski | hehe | 16:17 |
Cripps | :D | 16:18 |
*** baijum has quit IRC | 16:27 | |
*** romanofski has quit IRC | 16:30 | |
*** romanofski has joined #zope3-dev | 16:33 | |
*** alga has joined #zope3-dev | 16:37 | |
*** baijum has joined #zope3-dev | 16:41 | |
*** BjornT has quit IRC | 16:42 | |
*** jodok has left #zope3-dev | 16:43 | |
*** reco has joined #zope3-dev | 16:49 | |
xbeanx | Anybody 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-dev | 16:50 | |
*** jinty has quit IRC | 16:52 | |
Cripps | alright ... I'm having a really weird issue here .. in my tests.py 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-9aba618c9baa | 16:54 |
Cripps | ' does anyone have any ideas what I'm *forgetting* ? | 16:54 |
*** stub has quit IRC | 16:54 | |
*** BjornT has joined #zope3-dev | 16:55 | |
*** reco has quit IRC | 16:55 | |
*** reco has joined #zope3-dev | 16:55 | |
Cripps | ... I can put some code into a pastebin if it's required. | 16:56 |
*** reco has quit IRC | 16:57 | |
*** baijum has quit IRC | 16:57 | |
*** Aiste has quit IRC | 17:02 | |
*** schwendinger has quit IRC | 17:02 | |
*** Aiste has joined #zope3-dev | 17:05 | |
*** reco has joined #zope3-dev | 17:06 | |
*** kleist^lurking is now known as kleist | 17:08 | |
*** Aiste has quit IRC | 17:08 | |
*** Aiste has joined #zope3-dev | 17:09 | |
*** Aiste_ has joined #zope3-dev | 17:10 | |
*** ghendi has quit IRC | 17:11 | |
*** Aiste has quit IRC | 17:12 | |
*** jinty has joined #zope3-dev | 17:13 | |
*** Aiste_ has quit IRC | 17:13 | |
Cripps | okay, I don't know what I did, but it works now. PFM my friends, PFM. | 17:19 |
*** Aiste has joined #zope3-dev | 17:20 | |
*** Aiste_ has joined #zope3-dev | 17:22 | |
*** Aiste_ has quit IRC | 17:23 | |
*** Aiste has quit IRC | 17:24 | |
*** Aiste has joined #zope3-dev | 17:24 | |
*** norro has joined #zope3-dev | 17:24 | |
*** philiKON has quit IRC | 17:25 | |
*** yvl has quit IRC | 17:34 | |
*** alga has quit IRC | 17:35 | |
*** mgedmin has quit IRC | 17:39 | |
*** alecm has joined #zope3-dev | 17:44 | |
*** ignas has quit IRC | 17:46 | |
*** jinty has quit IRC | 17:58 | |
*** J1m has joined #zope3-dev | 18:02 | |
*** wreutz has quit IRC | 18:14 | |
*** MJ has quit IRC | 18:22 | |
*** philiKON has joined #zope3-dev | 18:22 | |
*** BjornT_ has joined #zope3-dev | 18:34 | |
*** naro has joined #zope3-dev | 18:58 | |
*** naro has left #zope3-dev | 18:58 | |
*** projekt01 has quit IRC | 18:59 | |
*** grahal_ has joined #zope3-dev | 19:07 | |
*** harobed has quit IRC | 19:11 | |
*** philiKON has quit IRC | 19:16 | |
*** grahal has quit IRC | 19:18 | |
*** Aiste has quit IRC | 19:25 | |
*** grahal_ has quit IRC | 19:28 | |
*** grahal_ has joined #zope3-dev | 19:28 | |
ccomb | Hi, a very simple question: | 19:29 |
ccomb | I want to render some plain text description using PlainTextToHTMLRenderer | 19:29 |
ccomb | ie just replacing \n with <br/> | 19:29 |
ccomb | how do I do in the page template? | 19:30 |
ccomb | if I put tal:content="structure view/description", one can insert html markup | 19:31 |
ccomb | view/description is PlainTextToHTMLRenderer(self.context).render() | 19:31 |
ccomb | and if I don't put "structure" in TALES, everything is escaped and quoted | 19:32 |
ccomb | as a summary, I would like '\n' to be rendered as '<br/>' but everything else should be quoted | 19:34 |
*** romanofski has quit IRC | 19:39 | |
*** jfroche__ has quit IRC | 19:48 | |
*** BjornT has quit IRC | 19:59 | |
*** dobee has quit IRC | 20:02 | |
*** J1m has quit IRC | 20:03 | |
*** pcardune has quit IRC | 20:04 | |
*** mgedmin has joined #zope3-dev | 20:04 | |
*** yota_ is now known as yota | 20:05 | |
*** Aiste has joined #zope3-dev | 20:05 | |
*** grahal has joined #zope3-dev | 20:08 | |
*** schwendinger has joined #zope3-dev | 20:13 | |
*** afd__ has quit IRC | 20:25 | |
*** schwendinger has quit IRC | 20:33 | |
*** yvl has joined #zope3-dev | 20:38 | |
*** RaFromBRC has joined #zope3-dev | 20:41 | |
*** alecm has quit IRC | 20: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 already | 20:43 |
ccomb | thanks for your answer | 20:49 |
ccomb | I've finally found something similar : | 20:49 |
ccomb | from zope.app.form.browser.textwidgets import escape | 20:50 |
ccomb | return PlainTextToHTMLRenderer(escape(self.context.description), self.request).render() | 20:50 |
ccomb | someone has asked the exactly same question 3 months ago | 20:50 |
ccomb | I'll put also this one to the FAQ | 20:51 |
*** afd__ has joined #zope3-dev | 20:52 | |
*** alecm has joined #zope3-dev | 20:57 | |
d2m | is there a convention to define a readonly attribute in an interface ? | 21:04 |
Theuni | attribute or schema field? | 21:05 |
d2m | plain zope.interface | 21:05 |
d2m | but schema is interesting too | 21:05 |
Theuni | then there is no formal way. write it in the description of the attribute. | 21:05 |
d2m | thats what i did ;) | 21:06 |
Theuni | the description is part of the contract as well and needs to be respected by the programmer | 21:06 |
mgedmin | sometimes I wish to add an item into a container, don't mind the name | 21:12 |
mgedmin | and I find repeating the three lines that effectively do | 21:12 |
mgedmin | container[INameChooser(container).chooseName('', item)] = item | 21:12 |
mgedmin | and i wish zope had some syntactic sugar for it, e.g. container.add(item) | 21:13 |
Theuni | isn't that what iadding is for? | 21:13 |
mgedmin | but that's probably a bit unrealistic, backwards-compatibility wise (adding the same method to all the container implementations) | 21:13 |
Theuni | IAdding(container).add(item) ? | 21:13 |
mgedmin | oh? I always though IAdding was just a gimmick for container views | 21:14 |
Theuni | let's ask the interface ;) | 21:14 |
mgedmin | class IAdding(IView): | 21:15 |
mgedmin | and the implementation inherits from BrowserView | 21:15 |
Theuni | bah | 21:15 |
mgedmin | I was just wondering whether I am alone in wishing for a shorter expression | 21:15 |
Theuni | Probably not | 21:16 |
mgedmin | something like zope.app.container.add(container, item, name='') | 21:16 |
*** gumpa_afk has joined #zope3-dev | 21:16 | |
Theuni | However, I think having another interface for this would be reasonable | 21:16 |
Theuni | then we could write a *default* adapter for normal containers that would autoamte the three-liner | 21:16 |
Theuni | more specific containers with a different need for adding could have a different adapter | 21:17 |
mgedmin | but is there need for a different implementations? | 21:17 |
Theuni | IAdding seems overdesigned and underengineered ;) | 21:17 |
Theuni | sure | 21:17 |
mgedmin | the only pluggable thing is the policy for choosing some name | 21:17 |
mgedmin | and that's what INameChooser is for | 21:17 |
Theuni | hmm. true. otherwise we hae the object events | 21:18 |
Theuni | s/hae/have/ | 21:18 |
*** gumpa_afk is now known as gumpa | 21:18 | |
*** schwendinger has joined #zope3-dev | 21:19 | |
Theuni | however, using a different interface brings backwards-compatibility for your code | 21:19 |
mgedmin | how do you mean? | 21:19 |
Theuni | you can provide a new interface that old containers don't have to know about | 21:20 |
Theuni | you don't have to change containers to implement this | 21:20 |
Theuni | if it's part of the interface of the containers then you might fail if there are older implementations | 21:20 |
mgedmin | right | 21:20 |
mgedmin | that was my argument against adding an 'add' method to IWritableContainer | 21:20 |
Theuni | as is mine :) | 21:21 |
Theuni | evolving interfaces sucks | 21:21 |
mgedmin | so the choice is (1) a global function, (2) an adapter and (3) forget it, just keep writing the three-liner everywhere | 21:21 |
mgedmin | you seem to prefer (2) over (1), and I'd like to hear more about the reasons | 21:22 |
mgedmin | an argument for (1) instead of (2): less unit test setup necessary | 21:22 |
mgedmin | unit test fixtures is the place where I find that I need to add objects into containers without caring about the names too much | 21:22 |
mgedmin | not a very good argument, perhaps, since hardcoding the names would be even simpler | 21:23 |
mgedmin | and require even less setup | 21:23 |
*** schwendinger_ has joined #zope3-dev | 21:25 | |
*** schwendinger has quit IRC | 21:25 | |
Theuni | hmm. for *unit* tests you'd need stubs anyway. | 21:27 |
Theuni | integration tests should get set up with some parts of your normal zcml anyway | 21:28 |
*** whit is now known as whit|lunch | 21:28 | |
*** Theuni is now known as lion | 21:29 | |
*** NomadNate_ has joined #zope3-dev | 21:30 | |
*** mkerrin has quit IRC | 21:31 | |
*** lion is now known as Theuni | 21:34 | |
*** whitmo has joined #zope3-dev | 21:35 | |
*** whit|lunch has quit IRC | 21:36 | |
*** brandon_rhodes has joined #zope3-dev | 21:41 | |
*** lucielejard has joined #zope3-dev | 21:43 | |
*** whitmo is now known as whit | 21:50 | |
*** NomadNate_ has quit IRC | 21:50 | |
*** NomadNate_ has joined #zope3-dev | 21:50 | |
*** Newfie2007 has quit IRC | 21:58 | |
*** alecm has quit IRC | 22:04 | |
*** romanofski has joined #zope3-dev | 22:05 | |
*** NomadNate_ has quit IRC | 22:07 | |
*** NomadNate_ has joined #zope3-dev | 22:08 | |
*** mgedmin has quit IRC | 22:09 | |
*** dunny has joined #zope3-dev | 22:17 | |
*** alecm has joined #zope3-dev | 22:19 | |
*** dobee has joined #zope3-dev | 22:19 | |
*** jpcw2002 has joined #zope3-dev | 22:22 | |
*** NomadNate_ has quit IRC | 22:25 | |
*** NomadNate_ has joined #zope3-dev | 22:26 | |
*** dobee has quit IRC | 22:34 | |
*** RaFromBRC is now known as RaFromBRC|mtg | 22:37 | |
*** dobee has joined #zope3-dev | 22:38 | |
*** gumpa has quit IRC | 22:38 | |
*** RaFromBRC has joined #zope3-dev | 22:41 | |
*** RaFromBRC is now known as RaFromBRC|mac | 22:41 | |
*** bigkevmcd has quit IRC | 22:43 | |
*** NomadNate_ has quit IRC | 22:50 | |
*** NomadNate_ has joined #zope3-dev | 22:51 | |
*** whit has quit IRC | 22:58 | |
*** whit has joined #zope3-dev | 22:58 | |
*** dobee has quit IRC | 22:59 | |
*** dobee has joined #zope3-dev | 23:01 | |
*** NomadNate_ has quit IRC | 23:06 | |
*** NomadNate_ has joined #zope3-dev | 23:08 | |
*** grahal has quit IRC | 23:08 | |
*** grahal has joined #zope3-dev | 23:08 | |
*** malthe_ has joined #zope3-dev | 23:09 | |
*** MrTopf has joined #zope3-dev | 23:11 | |
*** grahal has quit IRC | 23:16 | |
*** d2m has quit IRC | 23:27 | |
*** kobold has joined #zope3-dev | 23:29 | |
*** RaFromBRC|mac has quit IRC | 23:35 | |
*** RaFromBRC|mtg is now known as RaFromBRC|lunch | 23:36 | |
*** timte has quit IRC | 23:37 | |
*** NomadNate_ has quit IRC | 23:50 | |
*** NomadNate_ has joined #zope3-dev | 23:53 | |
*** NomadNate_ has quit IRC | 23:53 | |
*** jodok has joined #zope3-dev | 23:57 | |
*** schwendinger_ has quit IRC | 23:59 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!