IRC log of #zope3-dev for Tuesday, 2007-04-03

*** avoine has quit IRC00:04
*** jbb666 has quit IRC00:07
*** mgedmin has quit IRC00:10
*** natea|sorrento has joined #zope3-dev00:17
*** J1m has joined #zope3-dev00:18
*** J1m has quit IRC00:20
*** J1m has joined #zope3-dev00:24
*** cbcunc is now known as __cbcunc__00:25
*** J1m has quit IRC00:31
*** natea|sorrento has quit IRC00:37
*** natea|sorrento has joined #zope3-dev00:37
*** natea|sorrento is now known as natea|naples00:38
*** pcardune has joined #zope3-dev00:41
*** ktwilight has joined #zope3-dev00:56
*** benji has quit IRC00:56
*** marcin_ant has joined #zope3-dev01:05
*** TresEquis has quit IRC01:06
*** jinty has quit IRC01:06
*** ccomb has quit IRC01:06
*** tonico has quit IRC01:06
*** BjornT has quit IRC01:06
*** Vq^ has quit IRC01:06
*** ktwilight has quit IRC01:06
*** pcardune has quit IRC01:06
*** natea|naples has quit IRC01:06
*** bigkevmcd has quit IRC01:06
*** dunny has quit IRC01:06
*** dokai has quit IRC01:06
*** jkakar__ has quit IRC01:06
*** b52laptop has quit IRC01:06
*** niemeyer has quit IRC01:06
*** timte has quit IRC01:06
*** wrobel has quit IRC01:06
*** SteveA has quit IRC01:06
*** marcin_ant has quit IRC01:06
*** rocky|sorrento has quit IRC01:06
*** srichter has quit IRC01:06
*** jodok|LA has quit IRC01:06
*** d2m has quit IRC01:06
*** yota has quit IRC01:06
*** srichter has joined #zope3-dev01:07
*** marcin_ant has joined #zope3-dev01:07
*** rocky|sorrento has joined #zope3-dev01:07
*** jodok|LA has joined #zope3-dev01:07
*** d2m has joined #zope3-dev01:07
*** irc.freenode.net sets mode: +o srichter01:07
*** ccomb has joined #zope3-dev01:07
*** TresEquis has joined #zope3-dev01:07
*** jinty has joined #zope3-dev01:07
*** tonico has joined #zope3-dev01:07
*** BjornT has joined #zope3-dev01:07
*** SteveA has joined #zope3-dev01:07
*** yota has joined #zope3-dev01:07
*** Vq^ has joined #zope3-dev01:07
*** ktwilight has joined #zope3-dev01:07
*** pcardune has joined #zope3-dev01:07
*** natea|naples has joined #zope3-dev01:07
*** bigkevmcd has joined #zope3-dev01:07
*** dunny has joined #zope3-dev01:07
*** dokai has joined #zope3-dev01:07
*** jkakar__ has joined #zope3-dev01:07
*** b52laptop has joined #zope3-dev01:07
*** niemeyer has joined #zope3-dev01:07
*** timte has joined #zope3-dev01:07
*** wrobel has joined #zope3-dev01:07
*** yota has quit IRC01:08
*** deo has quit IRC01:13
*** ccomb has quit IRC01:15
*** timte has quit IRC01:21
*** jinty has quit IRC01:28
*** redir has quit IRC01:33
*** bigkevmcd has quit IRC01:43
*** J1m has joined #zope3-dev01:52
*** TresEquis has quit IRC01:57
*** whit has quit IRC02:06
*** marcin_ant has quit IRC02:11
*** jrc2e_ has joined #zope3-dev02:12
*** b52laptop has quit IRC02:12
*** rocky|sorrento has quit IRC02:23
*** seonew has joined #zope3-dev02:31
*** jrc2e has quit IRC02:32
seonewi had thought that given an object, only the viewlets with a compatible interface would be displayed, any other viewlets in the manager would just be ignored02:37
seonewis that not the case?02:37
*** d2m has quit IRC02:38
*** seonew has quit IRC02:43
*** natea|naples has quit IRC02:57
*** pbugni is now known as pbugni|afk03:03
*** wrobel has quit IRC03:24
*** pcardune has quit IRC03:55
*** niemeyer has quit IRC04:09
*** wreutz has quit IRC04:13
*** stub has joined #zope3-dev04:52
*** jrc2e_ has quit IRC04:55
*** mrevoir has joined #zope3-dev05:14
*** lucielejard has joined #zope3-dev05:35
*** baijum has joined #zope3-dev05:42
*** jkakar__ has quit IRC06:40
*** jkakar__ has joined #zope3-dev06:40
*** jodok|LA has quit IRC06:43
*** twcook has joined #zope3-dev06:50
*** mrevoir has left #zope3-dev07:23
*** febb has joined #zope3-dev07:28
*** febb has quit IRC07:29
*** twcook has left #zope3-dev07:30
*** dunny has quit IRC07:35
*** stub has quit IRC07:36
*** jodok|LA has joined #zope3-dev07:38
*** stub has joined #zope3-dev07:40
*** pghoratiu has joined #zope3-dev08:05
*** stub has quit IRC08:05
*** zagy has joined #zope3-dev08:10
*** dunny has joined #zope3-dev08:19
*** dobee has joined #zope3-dev08:22
*** sorin has joined #zope3-dev08:24
*** sorin is now known as sorindregan08:24
*** wrobel has joined #zope3-dev08:32
*** jodok|LA has quit IRC08:39
*** afd__ has joined #zope3-dev08:39
*** jukart has joined #zope3-dev08:42
*** jodok|LA has joined #zope3-dev08:45
*** Aiste has joined #zope3-dev08:48
*** yota has joined #zope3-dev08:52
*** ghendi has joined #zope3-dev09:01
*** pcardune has joined #zope3-dev09:04
*** afd__ has quit IRC09:07
*** afd__ has joined #zope3-dev09:11
*** timte has joined #zope3-dev09:13
*** Aiste has quit IRC09:19
*** zagy has quit IRC09:28
*** zagy has joined #zope3-dev09:28
*** natea|naples has joined #zope3-dev09:29
*** natea|naples has quit IRC09:31
*** d2m has joined #zope3-dev09:31
*** pcardune has quit IRC09:33
*** dlk has joined #zope3-dev09:34
*** natea|naples has joined #zope3-dev09:35
*** ignas has joined #zope3-dev09:56
*** jinty has joined #zope3-dev09:57
*** philiKON_ has quit IRC09:59
*** zagy has quit IRC10:05
*** natea|naples has quit IRC10:07
*** harobed has joined #zope3-dev10:18
*** stub has joined #zope3-dev10:33
*** tarek has joined #zope3-dev10:35
*** b52laptop has joined #zope3-dev10:42
*** natea|naples has joined #zope3-dev10:42
*** rocky|sorrento has joined #zope3-dev10:53
*** rocky|sorrento has quit IRC10:53
*** rocky has joined #zope3-dev10:54
*** lurker has joined #zope3-dev10:57
*** zagy has joined #zope3-dev11:04
*** andrew_m has joined #zope3-dev11:06
*** tarek has quit IRC11:13
*** tarek has joined #zope3-dev11:21
*** Jell-O-Fishi has joined #zope3-dev11:50
*** zagy has quit IRC11:53
*** Aiste has joined #zope3-dev12:04
*** ccomb has joined #zope3-dev12:04
*** stub has quit IRC12:19
*** afd__ has quit IRC12:22
*** b52lap has joined #zope3-dev12:29
*** softdevr has joined #zope3-dev12:31
*** b52laptop has quit IRC12:45
*** niemeyer has joined #zope3-dev12:49
*** dlk has left #zope3-dev12:51
*** dunny has quit IRC13:03
*** mkerrin has joined #zope3-dev13:14
*** darrylcousins has joined #zope3-dev13:38
*** tarek has quit IRC13:45
*** natea|naples has quit IRC14:04
*** tarek has joined #zope3-dev14:10
*** yvl has joined #zope3-dev14:17
*** tarek has quit IRC14:32
*** tarek has joined #zope3-dev15:02
*** stub has joined #zope3-dev15:12
*** darrylcousins has quit IRC15:19
*** benji has joined #zope3-dev15:21
*** opetznick has joined #zope3-dev15:24
*** faassen has joined #zope3-dev15:34
*** philiKON has joined #zope3-dev15:53
*** yvl has quit IRC15:55
*** jrc2e has joined #zope3-dev16:13
*** afd_ has joined #zope3-dev16:21
*** jodok|LA has quit IRC16:30
*** jrc2e has quit IRC16:32
*** pghoratiu has left #zope3-dev16:41
*** norro has joined #zope3-dev16:44
*** baijum has quit IRC16:48
*** stub has quit IRC16:53
*** baijum has joined #zope3-dev16:54
*** mgedmin has joined #zope3-dev17:08
*** mgedmin has quit IRC17:08
*** mgedmin has joined #zope3-dev17:08
*** philiKON has quit IRC17:17
*** __cbcunc__ has quit IRC17:18
*** philiKON has joined #zope3-dev17:18
*** philiKON has quit IRC17:20
*** sorindregan has quit IRC17:21
*** zagy has joined #zope3-dev17:32
*** tarek_ has joined #zope3-dev17:32
*** whit has joined #zope3-dev17:33
baijumanyone familiar with zope.paste here ?17:36
* baijum was just looking at zope.paste now17:36
baijumHow do I know the server running is the one from wsgiutils itself if my conf is like this:17:37
baijum[server:main]17:37
baijum  use = egg:PasteScript#wsgiutils17:37
*** tarek has quit IRC17:38
baijumIt's working fine, Just to make sure it's not running on ZServer or twisted ...17:38
*** BjornT has quit IRC17:39
timtehow do you write in zope.conf for that to work?17:40
baijum<server>17:41
baijum  type Paste.Main17:41
baijum  address 808017:41
baijum</server>17:41
timteoh, nice17:41
*** benji has quit IRC17:41
baijumI just removed twisted and it still worked.. hmm..I will look into this later17:42
*** faassen has quit IRC17:42
timteit looks too easy  :)17:43
baijumyeah :)17:43
*** alga has joined #zope3-dev17:44
baijumI like this:  paster serve paste.ini17:44
* baijum leaving, see you all tomorrow !17:45
timtebye bye17:45
*** baijum has quit IRC17:45
*** tarek__ has joined #zope3-dev17:46
*** tarek_ has quit IRC17:54
*** philiKON has joined #zope3-dev17:59
*** tarek_ has joined #zope3-dev18:01
*** zagy has quit IRC18:03
*** ghendi has quit IRC18:08
*** pcardune has joined #zope3-dev18:10
*** jrc2e has joined #zope3-dev18:10
*** jrc2e has quit IRC18:11
*** timte has quit IRC18:12
*** afd_ has quit IRC18:12
*** tarek__ has quit IRC18:14
*** jodok|LA has joined #zope3-dev18:14
*** benji has joined #zope3-dev18:14
*** meatballhat has joined #zope3-dev18:15
*** natea|naples has joined #zope3-dev18:17
meatballhatI've set up an interface with a schema that includes a TextLine where value_type=Choice with a Source.  I want to use the source.SourceRadioWidget for this field .... but figure out how to do this ... how to specify a widget (?)18:19
meatballhat*but can't figure out how to do this   :P18:19
*** benji has quit IRC18:20
*** whit has quit IRC18:21
srichtermeatballhat: use the custom_widget attribut in formlib's FormField18:22
meatballhatsrichter: that's what I was wondering about ... so I use custom_widget whenever I don't want the formlib machinery to automatically decide on a widget (or if it can't, in the case of Choice) ?18:23
srichteryes18:23
meatballhatsrichter: many thanks  :)18:24
*** jfroche has joined #zope3-dev18:29
*** whit has joined #zope3-dev18:35
*** avoine has joined #zope3-dev18:36
*** harobed has quit IRC18:38
*** Aiste has quit IRC18:39
*** pcardune has quit IRC18:39
*** tarek__ has joined #zope3-dev18:41
*** norro has quit IRC18:41
*** tarek_ has quit IRC18:42
*** jodok|LA has quit IRC18:46
*** timte has joined #zope3-dev18:48
*** twcook has joined #zope3-dev18:51
*** whit has quit IRC18:52
*** harobed has joined #zope3-dev18:58
*** lurker has quit IRC19:21
*** ignas has quit IRC19:29
*** natea|naples has quit IRC19:29
*** natea|naples has joined #zope3-dev19:29
*** dobee has quit IRC19:29
*** natea|naples has quit IRC19:30
*** natea|naples has joined #zope3-dev19:31
*** mkerrin has quit IRC19:38
*** opetznick has quit IRC19:39
*** softdevr has quit IRC19:42
*** alecm has joined #zope3-dev19:49
*** whit_ has joined #zope3-dev19:50
*** BjornT has joined #zope3-dev19:51
*** pcardune has joined #zope3-dev19:54
*** tarek__ has quit IRC20:01
*** benji has joined #zope3-dev20:02
*** replaceafill has joined #zope3-dev20:05
*** whit_ has quit IRC20:06
*** jrc2e has joined #zope3-dev20:07
*** jukart has quit IRC20:16
*** jbb666 has joined #zope3-dev20:24
*** bigkevmcd has joined #zope3-dev20:35
*** avoine has quit IRC20:37
*** harobed has quit IRC20:45
*** jukart has joined #zope3-dev20:46
niemeyerWould anyone know what's the proper way to make Zope3 use "https" rather than "http" in the injected <base href="..."> when operating behind a proxy that will deal with SSL?20:50
*** dunny has joined #zope3-dev20:52
mgedminniemeyer: make the proxy insert ++vh++https:servername:443 in the url20:53
niemeyermgedmin: Thanks!20:54
*** dawhimo has joined #zope3-dev20:55
niemeyermgedmin: Apparently it still doesn't work..20:57
* niemeyer checks the vh namespace20:57
*** dawhimo is now known as whit20:57
mgedmindo you use apache or something else?20:58
mgedminthe ++vh++ stuff is tricky to get right, but it works20:58
niemeyermgedmin: Cool.. I'll get it to work eventually then. That was just the pointer I needed.20:59
niemeyerMany thanks20:59
niemeyermgedmin: Yeah, I'm using apache with mod_rewrite20:59
mgedminworking example:21:00
mgedmin  RewriteRule ^/$ http://localhost:28080/zope3-checkins/++vh++https:z3c.pov.lt:443/++ [P,L]21:00
mgedmin  RewriteRule ^/(.*) http://localhost:28080/zope3-checkins/++vh++https:z3c.pov.lt:443/++/$1 [P]21:00
*** romanofski has joined #zope3-dev21:01
mgedminiirc you need two rules because the trailing / causes a zope error of some kind21:01
mgedminempty traversal step or some such21:01
*** natea|naples_ has joined #zope3-dev21:01
niemeyerHmm.. interesting21:04
mgedminand if you start rewriting to a portion of a zope tree, you start to need extra rewrite rules for resources21:05
mgedminah, that's what I use elsewhere to avoid two rules:21:05
mgedminRewriteRule ^/something(/.*?)$ http://localhost:8080/++vh++https:servername:443/++$1 [P,L]21:06
mgedminno, that's not right21:07
mgedminRewriteRule ^/something(/.*?)$ http://localhost:8080/bar/++vh++https:servername:443/foo/++$1 [P,L]21:07
mgedminI wonder why the trailing slash doesn't cause any problems here... :/21:07
niemeyermgedmin: Ahh, I see!21:08
niemeyermgedmin: Well.. why would that be an issue?21:08
mgedminno idea21:09
SteveAI consider all the ++xxxx++ URL things harmful21:09
SteveAwe disabled them all on launchpad, except for ++debug++ for development servers21:09
SteveAit's tricky to get apache to ban ++xxx++whatever path steps that users can enter21:10
SteveAand when you get ++xxxx++ stuff that zope doesn't like, it gives ValueErrors or other application errors, rather than NotFound errors21:10
mgedmindo you then configure vhosting on the zope side as well as on apache side?21:10
mgedmin(that's assuming you use apache in front)21:10
SteveAyes and no21:10
SteveAwe have apache pass through the Host: header21:11
SteveAand use that to look up appropriate protocol and host data in the config file21:11
*** alecm has quit IRC21:11
SteveAthis also makes the apache config much simpler21:12
SteveAand less error-prone21:12
* SteveA --> food21:13
*** avoine has joined #zope3-dev21:13
* meatballhat can't get Choice + Source widget to work (ACK!) http://pastecode.com/2106121:16
mgedminyeah, choice widgets are weird21:18
meatballhathere's the whole shebang  :P   http://python.pastecode.com/21062     ... and I'm mostly hijacking philiKON's worldcookery code  ...21:18
mgedminworkaround: use CustomWidgetFactory(lambda field, request: YourWidgetClass(field, field.vocabulary, request))21:18
mgedminor something like that21:19
mgedmini.e. you need a wrapper around the widget constructor (a function that takes two arguments and converts them to the three that the widget needs)21:19
niemeyermgedmin: It works!21:20
niemeyerWell.. you already knew that21:20
niemeyer:)21:20
meatballhathmmm... the book was saying that Vocabularies are being deprecated, which is why I was using a Source...   gotcha21:20
meatballhat*are* Vocabularies being deprecated?  :)21:20
mgedminyeah, something like that21:20
mgedminbut field.vocabulary was not renamed for backwards-compatibility reasons21:20
mgedminit may contain a source instead of a vocabulary21:21
meatballhathummmm....    I fear I'm still far too much of a n00b to grasp most of this  :(21:21
mgedminit's one of the murkier and more complicated places of zope 321:22
meatballhatfigures ...     :D21:22
mgedminwhat sort of widget do you want to use?21:22
mgedminor, simpler, could you pastebin your form code?21:22
*** natea|naples has quit IRC21:24
meatballhatwell... it's still *very* simple (my current form,) but I want to be able to supply several Select or Radio widgets that get their values from variable sources21:24
meatballhatwhat's the preferred method for constructing Select and Radio widgets?21:24
meatballhathttp://python.pastecode.com/21063    <-- worldcookery ripoff21:26
mgedminabout what I wrote above21:26
mgedminthe page template is not very interesting21:26
mgedminthe python code is what is interesting21:26
meatballhatah .... sorry ...21:27
meatballhathttp://python.pastecode.com/2106421:27
*** tarek has joined #zope3-dev21:28
niemeyerHmm.. I'm wondering if allowing ++vh++ isn't something wonderful for XSS21:29
niemeyerOr at least for basic phishing21:29
mgedminmeatballhat: if you replace21:29
mgedmin        form_fields['type'].custom_widget = SourceRadioWidget21:29
mgedminwith21:29
mgedmin        form_fields['type'].custom_widget = lambda f, r: SourceRadioWidget(f, f.vocabulary, r)21:29
mgedminit should work21:29
mgedminif you also want to make the code pretty21:30
mgedminwrite a function21:30
mgedmindef CustomSourceRadionWidget(field, request):21:30
mgedmin    return SourceRadioWidget(field, field.vocabulary, request)21:30
meatballhatmgedmin: thank you!!!   /me tries it out21:30
mgedminand then21:30
mgedmin        form_fields['type'].custom_widget = CustomSourceRadioWidget21:31
*** alecm has joined #zope3-dev21:32
*** tarek has quit IRC21:37
meatballhatmgedmin: okay....  getting closer  :D   .... if my interface looks like this: http://python.pastecode.com/21068    ...and my Source looks like this: http://python.pastecode.com/21069  ....     how should I adjust the wrapper?   SourceRadioWidget(field, field.????, request)21:39
mgedminthe field is a Choice field, right?21:39
meatballhatit's a List with value_type Choice21:39
mgedminoh, my, you're in trouble21:40
meatballhatshould I make it just a Choice21:40
meatballhat?21:40
meatballhat:D21:40
mgedminevery time I tried to use Zope's sequence widgets, I felt pain21:40
meatballhatso lemme step back ... there's no real need to have it as a List with a Choice inside ...  :D21:41
meatballhatnew interface == http://python.pastecode.com/2107021:42
*** replaceafill has quit IRC21:42
* mgedmin boldly claims that verifyObject is unpythonic21:46
srichtermgedmin: what software is povbot?21:58
mgedminsupybot21:58
srichterok, thanks21:58
mgedminit's written in python, which is good21:58
mgedminI don't quite like how it's not entirely convenient to use, which is bad21:59
*** alecm has quit IRC22:09
srichtermgedmin: he he, that's bold! :-)22:11
*** pcardune has quit IRC22:12
mgedminmind, my definition of pythonic is "I can remember how to use it without looking it up"22:12
mgedminwith verifyObject I can never remember if the object or the interface comes first22:13
mgedminverifyObject(foo, provides=ISomeInterface) would scan well if you read it aloud22:13
mgedminbut turns out it's the other way around22:13
*** opetznick has joined #zope3-dev22:23
*** jukart has quit IRC22:25
*** natea|naples_ has quit IRC22:40
*** tarek has joined #zope3-dev22:41
*** tarek has quit IRC22:42
*** dobee has joined #zope3-dev22:44
mgedminum, suppose I have an IObjectAddedEvent subscriber that does some initial customizations of a content object22:46
mgedminit also gets triggered when I copy and paste those content objects22:47
mgedminbut I do not want to do initial customizations on the copies22:47
mgedminany ideas how to distinguish creation from copy/paste?22:47
mgedminIObjectCreatedEvent/IObjectCopiedEvent aren't really suitable, because I need to know the location when I do those customizations...22:48
mgedminhey, actually I don't!22:48
mgedminproblem solved22:48
*** romanofski has quit IRC22:55
*** jukart has joined #zope3-dev23:01
*** opetznick has quit IRC23:12
*** Jell-O-Fishi has quit IRC23:17
*** pbugni|afk is now known as pbugni23:21
*** CSWookie has joined #zope3-dev23:23
*** alga has quit IRC23:25
*** mgedmin has quit IRC23:27
*** dobee has quit IRC23:29
*** dunny has quit IRC23:31
*** dobee has joined #zope3-dev23:33
*** tarek has joined #zope3-dev23:36
*** stub has joined #zope3-dev23:46
*** jukart has quit IRC23:47
*** tarek has quit IRC23:53
*** ccomb has left #zope3-dev23:53
*** jkakar__ is now known as jkakar23:54

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