IRC log of #zope3-dev for Thursday, 2008-04-17

*** afd_ has quit IRC00:02
*** benji has quit IRC00:03
*** faassen has quit IRC00:09
*** lgs has left #zope3-dev00:09
*** MattBowen|work has left #zope3-dev00:14
*** djohnson has quit IRC00:14
*** faassen has joined #zope3-dev00:19
*** natea___ has quit IRC00:24
*** rmarianski has quit IRC00:30
*** rmarianski has joined #zope3-dev00:31
*** RaFromBRC is now known as RaFromBRC|mtg00:32
*** RaFromBRC has joined #zope3-dev00:35
*** RaFromBRC is now known as RaFromBRC|mac00:35
*** reedobrien has joined #zope3-dev00:44
*** RaFromBRC|mac is now known as RaFromBRC00:47
*** rcrafton has quit IRC00:48
*** RaFromBRC is now known as RaFromBRC|mac00:49
*** `ro has quit IRC00:51
*** fcorrea has quit IRC00:53
*** malthe has joined #zope3-dev00:54
*** sunew has quit IRC00:57
*** danielblackburn_ has quit IRC01:04
*** sm has quit IRC01:06
*** reedobrien has quit IRC01:06
*** dunny has quit IRC01:10
*** salfield has quit IRC01:11
*** tarek has joined #zope3-dev01:12
*** faassen has quit IRC01:15
*** sm has joined #zope3-dev01:16
*** RaFromBRC|mac has quit IRC01:18
*** RaFromBRC|mtg is now known as RaFromBRC01:18
*** RaFromBRC is now known as RaFromBRC|away01:18
*** norro has quit IRC01:20
*** tarek has quit IRC01:21
*** lucielejard has quit IRC01:24
*** jpcw2002 has left #zope3-dev01:27
*** J1m has quit IRC01:33
*** J1m has joined #zope3-dev01:35
*** redir has joined #zope3-dev01:46
*** J1m has quit IRC02:01
*** regebro has left #zope3-dev02:01
*** runyaga__ has joined #zope3-dev02:04
*** zagy has quit IRC02:06
*** nathany has quit IRC02:07
*** rmarianski has quit IRC02:13
*** junkafarian_ has quit IRC02:13
*** reco has quit IRC02:15
*** dunny has joined #zope3-dev02:16
*** greenman has quit IRC02:18
*** quodt has quit IRC02:21
*** runyaga_ has quit IRC02:32
*** danielblackburn has joined #zope3-dev02:38
*** RaFromBRC|away is now known as RaFromBRC02:39
*** danielblackburn has quit IRC02:54
*** malthe has quit IRC02:55
*** b52laptop has quit IRC03:07
*** danielblackburn has joined #zope3-dev03:08
*** djohnson has joined #zope3-dev03:13
*** lucielejard has joined #zope3-dev03:43
*** MattBowen has joined #zope3-dev03:44
*** lucielejard has quit IRC03:46
*** lucielejard has joined #zope3-dev03:57
*** dunny_ has joined #zope3-dev04:07
*** dunny has quit IRC04:17
*** srichter has quit IRC04:23
*** djohnson has quit IRC04:25
*** nathany has joined #zope3-dev04:26
smthis is frustrating. I have been trying hard to figure out how to make a custom formlib widget, and failing04:33
*** danielblackburn_ has joined #zope3-dev04:34
smform_fields['name'].custom_widget = CustomWidgetFactory(SequenceWidget) works. The same with MultiSelectWidget fails. The field is a Set of Choices04:36
*** redir has quit IRC04:38
smMultiSelectSetWidget is what I'm using, actually04:39
smCustomWidgetFactory.__call__ seems to select the wrong arguments for this widget.04:41
smI'm not sure what else someone could do to learn how to use this stuff. Ideas welcome !04:42
*** djohnson has joined #zope3-dev04:44
MattBowensm: i know philiKON's book has some pages on custom widgets, for what it's worth04:45
MattBowen(his book being worth a lot, my comment being of questionable value :) )04:46
*** redir has joined #zope3-dev04:46
danielblackburn_z3c.form may have some solutions for you as well sm04:46
* MattBowen has been using z3c.form for a little while and really enjoying it04:47
smthanks. MattBowen that's section 7.4 I think.. I'll re-read it. I have the first edition here alas04:48
smI may have to try z3c.form, I was hoping to be able to use the standard sw and not add another unknown to this already complex task04:49
*** nathany has quit IRC04:49
MattBowensm: understood there :) thankfully, there's a really nice Z3C form tutorial now at least; it makes it much less ... difficult to get started... and gets you neat things like pagelets to boot04:49
smI'm doing this on personal time now, client's funding and patience ran out04:50
danielblackburn_take a look at the .txt files for z3c.form they seem to be rather thorough04:51
MattBowenall my zope 3 work is personal time, currently...04:51
danielblackburn_that makes it more fun though ;)04:51
*** danielblackburn has quit IRC04:51
MattBowendanielblackburn_: the trick for me was unfortunately figuring out what other packages and ZCML includes I needed, then how to setup my pagelet -- I <3 doctests, but they never cover the ZCML that ends up messing me up me at first04:52
smI am close to telling them "I can't do this for you". Which are words I do not like to utter :)04:52
*** pcardune has quit IRC04:53
MattBowensm: did I see that you were cleaning up the wiki a bit?04:53
danielblackburn_MattBowen: that is a common issue I have with the doctests as well, they cover the python side but not the implementation04:53
smMattBowen: yes indeed, quite a bit04:53
smfeedback and help is very welcome04:53
danielblackburn_sm == simon >04:53
danielblackburn_?04:53
* sm <- simon04:54
danielblackburn_ah, very busy,04:54
danielblackburn_awesome04:54
hazmatsm, i typically use ordered multi select widgets04:54
hazmatsm, i've got a few examples in plonegetpaid.. i can direct you to if.. if thats helpful.04:54
MattBowensm: this isn't terribly useful feedback, but i did notice that things felt better organized and tended as I was browsing today and thought "someone must be cleaning this up; it's feeling a lot more useful"04:55
smhazmat: thanks, yes please04:56
smMattBowen: you noticed the front page had changed ?04:56
hazmatsm, can you make the set, a list instead?04:56
hazmatand are you in z3 or z2?04:57
smumm.. I can try, I think it will be semantically wrong04:57
smI'm in z2 & plone04:57
MattBowensm: yeah -- I came in through google, ended up on the front page, and was like, "this seems way more relevant and up-to-date than it was last month"04:57
hazmatsm, http://code.google.com/p/getpaid/source/browse/trunk/products/PloneGetPaid/browser/widgets.py?r=131404:57
smthx hazmat04:57
* MattBowen used hazmat's workflow versions utility from getpaid in a pure zope 3 project just last night... thank goodness for public repositories 04:58
hazmatsm we do alot of select/multiselects against list fields..  SelectWidgetFactory04:58
smMattBowen: but you didn't see any of my discussion/announcements ? as a wiki subscriber, or on the zope-dev list, or here ?04:58
hazmatMattBowen, its packaged up as ore.workflow and available from pypi now04:58
MattBowenhazmat: oh, sweet. i should just include it then. Thanks :)04:58
MattBowensm: i really just started paying attention seriously again really recently.04:59
MattBowensm: I hadn't had an excuse to use any pure zope 3 stuff until about two weeks ago04:59
smno problem.. just exploring our communication processes05:00
MattBowensm: i'm not a good example there, at least not currently :) hopefully in the future05:01
hazmatsm, actual usage of the select widget factory is admin.py just setting used via setting custom_widget on the form_fields['field_name']05:01
hazmathth05:02
smI see hazmat.. this is quite helpful, thanks05:03
*** RaFromBRC has quit IRC05:03
*** djohnson has quit IRC05:07
*** niemeyer has quit IRC05:19
*** pcardune has joined #zope3-dev05:28
*** lucielejard has quit IRC05:33
*** sm has quit IRC06:10
*** MattBowen has quit IRC06:18
*** redir has quit IRC06:20
*** andycat has quit IRC06:29
*** andycat has joined #zope3-dev06:32
*** redir has joined #zope3-dev07:03
*** sm has joined #zope3-dev07:19
*** srichter has joined #zope3-dev07:25
*** ChanServ sets mode: +o srichter07:26
*** srichter has quit IRC07:27
*** srichter has joined #zope3-dev07:28
*** ChanServ sets mode: +o srichter07:29
*** redir has quit IRC07:35
*** projekt01 has joined #zope3-dev07:37
*** jayaraj has joined #zope3-dev07:54
*** baijum has joined #zope3-dev08:17
*** afd_ has joined #zope3-dev08:32
*** timte has joined #zope3-dev08:33
*** junkafarian has joined #zope3-dev08:34
*** junkafarian has quit IRC08:43
*** jukart has joined #zope3-dev08:52
*** zagy has joined #zope3-dev09:00
*** sorindregan has joined #zope3-dev09:01
*** junkafarian has joined #zope3-dev09:02
*** junkafarian has quit IRC09:03
*** jodok_ has joined #zope3-dev09:03
*** jodok has quit IRC09:04
*** dobee has joined #zope3-dev09:18
*** Theuni_ has joined #zope3-dev09:32
*** __mac__ has joined #zope3-dev09:33
*** romanofs1i has joined #zope3-dev09:33
*** philiKON_ has joined #zope3-dev09:33
*** romanofski has quit IRC09:33
*** toutpt has joined #zope3-dev09:39
*** philiKON has quit IRC09:40
*** norro has joined #zope3-dev09:41
*** srichter has quit IRC09:43
*** Theuni has quit IRC09:44
*** goschtl has joined #zope3-dev09:52
*** yvl has joined #zope3-dev09:59
*** quodt has joined #zope3-dev10:04
*** jpcw2002 has joined #zope3-dev10:10
*** sm has quit IRC10:13
*** tarek has joined #zope3-dev10:18
*** MJ has joined #zope3-dev10:27
*** greenman has joined #zope3-dev10:28
*** junkafarian has joined #zope3-dev10:29
*** harobed has joined #zope3-dev10:30
*** alecghica has joined #zope3-dev10:36
*** junkafarian_ has joined #zope3-dev10:45
*** junkafarian has quit IRC10:46
*** afd_ has quit IRC10:48
*** junkafarian_ is now known as junkafarian10:49
goschtlHi i want set a *persistent* utility programmatic with provideUtility(self, IStormContainer, name). This works in my functional tests. But with provideUtility the utility is set to the GlobalSiteManager which is bad because it´s not persistent. How can i set the utility persistent?10:50
goschtlI have experiementet with getSiteManager(self) to get a local site-manager but in my tests i get these error: (Pdb) getSiteManager(self)10:52
goschtl*** ComponentLookupError: ('Could not adapt', <nva.stormcontainer.container.StormContainer object at 0xb774618c>, <InterfaceClass zope.component.interfaces.IComponentLookup>)10:52
*** zagy has quit IRC11:12
*** zagy has joined #zope3-dev11:12
__mac__goschtl: zope.app.appsetup.bootstrap.ensureUtility is your friend11:14
*** yvl has left #zope3-dev11:17
*** thruflo has joined #zope3-dev11:18
goschtl__mac__: i will look11:18
*** maurits has joined #zope3-dev11:29
*** malthe has joined #zope3-dev11:33
*** alga has joined #zope3-dev11:49
*** mkerrin has joined #zope3-dev11:49
zagygoschtl: actually using a generation is much better11:56
__mac__I actually ment ensureUtility inside a generation :)11:58
zagyeh? hum no. you  should explicitly add the utility to a container of your choice and tell the site_manager via provideUtility that it is a utility12:02
*** junkafarian has quit IRC12:02
*** junkafarian has joined #zope3-dev12:04
*** junkafarian has quit IRC12:06
*** junkafarian_ has joined #zope3-dev12:06
__mac__okay, ensureUtility was the zope 3.2 way12:06
*** maurits has quit IRC12:17
*** maurits has joined #zope3-dev12:36
*** vimes656 has joined #zope3-dev12:40
*** sunew has joined #zope3-dev12:50
*** maurits has left #zope3-dev12:52
*** junkafarian_ has quit IRC12:52
jayaraj__mac__ how about registerUtility?12:54
__mac__jayaraj: an idea, too, but zagy told how to do it in zope 3.412:56
jayarajic brand new way!12:56
zagy    utility = factory()12:56
zagy    container[name] = utility12:56
zagy    site_manager = zope.component.getSiteManager()12:56
zagy    site_manager.registerUtility(utility, interface, name=utility_name)12:56
*** b52laptop has joined #zope3-dev12:56
jayarajthats the way i too mean zagy!12:57
goschtlzagy: do i get with zope.component.getSiteManager() always the "GlobalSiteManager" or maybe a "LocalSiteManger" too. Whats the syntax to get a LocalSiteManager  getSiteManager(context)?13:03
zagygetSiteManager returns the "current" sitemanager13:04
zagyin a generation you can set the site before actually doing things13:04
zagygoschtl: sth like http://pastebin.com/d6133278613:05
goschtlzagy: thanks for the info. I will try that.13:08
*** greenman has quit IRC13:10
*** seletz has joined #zope3-dev13:12
*** agroszer has joined #zope3-dev13:14
*** pyqwer has joined #zope3-dev13:21
pyqwerDoes someone know how to create a new namespace, e.g. "++session++"?13:24
*** afd_ has joined #zope3-dev13:31
zagypyqwer: build a traverser13:33
pyqwerzagy: Ok, thanks, I'm just in traversing/namespace.py, where things like ++skin++ etc. are implemented.13:34
pyqwerHmmm, probably I also have to configure this as a view, too.13:35
pyqwerzagy: Ok, got it, that was easy, thanks!13:44
zagynp13:48
*** pyqwer has quit IRC13:48
*** markusleist has quit IRC13:49
*** pyqwer has joined #zope3-dev13:52
*** dunny_ has quit IRC14:00
*** vimes656 has quit IRC14:00
*** andycat has quit IRC14:15
*** redir has joined #zope3-dev14:17
*** danielblackburn_ has quit IRC14:26
*** djohnson has joined #zope3-dev14:29
*** ignas has joined #zope3-dev14:33
*** jpcw2002 has quit IRC14:34
*** pcardune has quit IRC14:37
*** reco has joined #zope3-dev14:43
*** vimes656 has joined #zope3-dev14:44
*** MJ has quit IRC14:50
*** MJ has joined #zope3-dev14:51
*** MJ is now known as MJ|lunch14:51
*** jpcw2002 has joined #zope3-dev14:57
*** junkafarian has joined #zope3-dev14:57
*** redir has quit IRC14:58
*** junkafarian_ has joined #zope3-dev15:06
*** junkafarian has quit IRC15:06
*** tarek has quit IRC15:06
*** rcrafton has joined #zope3-dev15:11
*** junkafarian_ is now known as junkafarian15:14
*** tarek has joined #zope3-dev15:14
*** danielblackburn has joined #zope3-dev15:20
*** reco has quit IRC15:21
*** reco has joined #zope3-dev15:22
*** djohnson_ has joined #zope3-dev15:26
*** maurits has joined #zope3-dev15:37
*** junkafarian has quit IRC15:37
*** MJ|lunch is now known as MJ|out15:38
*** djohnson has quit IRC15:42
*** malthe has quit IRC15:44
*** reco has quit IRC15:47
*** reco has joined #zope3-dev15:47
*** MattBowen|work has joined #zope3-dev15:48
*** __mac__ has quit IRC15:58
*** seletz has left #zope3-dev15:59
*** __mac__ has joined #zope3-dev16:01
*** jamur2 has quit IRC16:02
*** reco has quit IRC16:06
*** J1m has joined #zope3-dev16:06
*** jamur2 has joined #zope3-dev16:06
*** benji_ has joined #zope3-dev16:19
*** whit has quit IRC16:20
*** whit has joined #zope3-dev16:21
*** whit has quit IRC16:21
pyqwerJ1m: Some days ago you recommended me to solve my cookie-problems via a "++session++" namespace in the URL and write some URLClientIdManager. What I don't know is how to get the name from ++session++ into the manager - any hints?16:22
*** whit has joined #zope3-dev16:22
J1mpyqwer, look at the namespace framework in zope.app.traversing.namespace.16:23
pyqwerJ1m: Ok, thank's, I'll have a look.16:24
*** rcrafton has quit IRC16:30
*** rcrafton has joined #zope3-dev16:32
*** reco has joined #zope3-dev16:35
*** reco has quit IRC16:36
*** reco has joined #zope3-dev16:37
*** lucielejard has joined #zope3-dev16:37
*** __mac___ has joined #zope3-dev16:40
*** redir has joined #zope3-dev16:43
pyqwerJ1m: Hmmm, it seems that transporting information from the traverser to the ClientIdManager could be done via the request object, perhaps via an annotation? What do you think?16:43
pyqwerIs this "clean"?16:43
J1mNot sure.16:51
J1mI'd have to dig further, which I don't have time to do. :)16:52
*** sunew has quit IRC16:52
pyqwerOk, I'll use the request for now as I don't know of better ways (eventually the local thread?), maybe I'll improve this later.16:53
J1mhere's another off the cuff idea.16:54
*** sorindregan has quit IRC16:54
J1mThe client id manager is a utility.16:54
pyqwerYes.16:54
*** afd_ has quit IRC16:54
J1mso it is accessible to the traversal adapter.16:54
J1mThe traversal adapter can interact with it directly.16:54
pyqwerHmmm.16:55
J1mThe tricky bit is that the client id manager will need to cause a redirect if it isn't set.16:55
pyqwerYes, that's another difficulty.16:55
*** redir has quit IRC16:55
J1mI suppose that if a method is called on the manager to get the id and the id isn't set, a redirect could be raised at that point.16:57
J1mIt depends on the detail of the dance.16:57
pyqwerYes, I thought about something like that.16:57
*** __mac__ has quit IRC16:58
pyqwerWhat exactly does the redirect do? Does it directly stop all other things and redirect? Or may some zope magic block the redirect at this point?16:58
J1mraisomg a redirect (as opposed to calling redirect on the response) aborts the current request and redirects to a different URL.17:00
pyqwerJ1m: Ah, I can raise a redirect? I did not know that.17:00
*** sp0cksbeard has joined #zope3-dev17:01
J1mYes, see the Redirect exception in zope.publisher.interfaces17:01
*** sp0cksbeard has quit IRC17:01
pyqwerJ1m: Ah yes, perfect: class Redirect(PublishingException)17:02
*** sp0cksbeard has joined #zope3-dev17:02
*** afd_ has joined #zope3-dev17:08
*** __mac___ has quit IRC17:09
*** redir has joined #zope3-dev17:15
*** __mac__ has joined #zope3-dev17:19
*** MJ|out is now known as MJ17:22
*** rocky has quit IRC17:24
*** jayaraj has quit IRC17:24
*** redir has quit IRC17:26
*** thruflo has quit IRC17:27
*** afd_ has quit IRC17:32
*** djohnson_ has quit IRC17:33
*** rcrafton has quit IRC17:34
*** niemeyer has joined #zope3-dev17:40
*** mgedmin has joined #zope3-dev17:40
*** nathany has joined #zope3-dev17:41
*** redir has joined #zope3-dev17:41
*** rcrafton has joined #zope3-dev17:45
*** svenn has joined #zope3-dev17:47
*** rocky has joined #zope3-dev17:48
*** zagy has quit IRC17:50
*** zagy has joined #zope3-dev17:52
*** __mac__ has quit IRC17:53
*** rmarianski has joined #zope3-dev17:53
*** zagy has quit IRC17:59
*** projekt01 has quit IRC18:00
*** MJ has quit IRC18:00
*** zagy has joined #zope3-dev18:09
*** timte has quit IRC18:14
*** zagy has quit IRC18:15
*** __mac__ has joined #zope3-dev18:15
*** zagy has joined #zope3-dev18:15
*** alecghica has quit IRC18:17
*** whit has quit IRC18:19
*** whit has joined #zope3-dev18:21
*** srichter has joined #zope3-dev18:22
*** jukart has quit IRC18:23
*** ChanServ sets mode: +o srichter18:33
*** srichter has quit IRC18:35
*** srichter has joined #zope3-dev18:36
*** srichter has quit IRC18:39
*** rcrafton has quit IRC18:41
*** jpcw2002 has left #zope3-dev18:41
*** sm has joined #zope3-dev18:42
*** srichter has joined #zope3-dev18:42
*** afd_ has joined #zope3-dev18:43
*** __mac__ has quit IRC18:52
*** danielblackburn has quit IRC18:57
*** harobed has quit IRC18:57
*** goschtl has quit IRC18:59
*** dobee has quit IRC19:03
*** supton has joined #zope3-dev19:05
*** b52laptop has quit IRC19:06
*** pyqwer has quit IRC19:11
*** pcardune has joined #zope3-dev19:12
*** mkerrin has quit IRC19:14
*** ktwilight_ has joined #zope3-dev19:17
*** djohnson has joined #zope3-dev19:24
*** ktwilight has quit IRC19:31
*** ChanServ sets mode: +o srichter19:32
*** toutpt has quit IRC19:33
*** toutpt has joined #zope3-dev19:37
*** jodok_ has quit IRC19:41
*** quodt has quit IRC19:42
*** toutpt has quit IRC19:45
*** benji__ has joined #zope3-dev19:46
*** benji___ has joined #zope3-dev19:52
*** lgs has joined #zope3-dev19:52
*** djohnson has quit IRC19:52
*** RaFromBRC has joined #zope3-dev19:56
*** maurits has quit IRC19:58
*** benji_ has quit IRC20:03
*** tarek has quit IRC20:03
*** norro has quit IRC20:05
*** benji__ has quit IRC20:08
*** danielblackburn has joined #zope3-dev20:18
*** danielblackburn has quit IRC20:20
*** dobee has joined #zope3-dev20:20
*** quodt has joined #zope3-dev20:23
*** norro has joined #zope3-dev20:26
*** jukart has joined #zope3-dev20:27
*** reedobrien has joined #zope3-dev20:37
*** junkafarian has joined #zope3-dev20:39
*** ignas has quit IRC20:39
*** redir has quit IRC20:40
*** jodok has joined #zope3-dev20:46
*** jodok_ has joined #zope3-dev20:54
*** pcardune has quit IRC20:58
*** nathany has quit IRC21:00
*** rcrafton has joined #zope3-dev21:01
*** mgedmin has quit IRC21:02
whitis there a mock request in zope3 somewhere?21:03
*** alga has quit IRC21:08
svennwhit, is this what you are looking for: zope.publisher.browser.TestRequest?21:08
whitthat sounds promising21:08
whitthanks svenn!21:09
*** danielblackburn has joined #zope3-dev21:10
*** nathany has joined #zope3-dev21:11
*** jodok has quit IRC21:12
*** nathany has quit IRC21:14
*** replaceafill has joined #zope3-dev21:17
*** harobed has joined #zope3-dev21:17
*** danielblackburn_ has joined #zope3-dev21:18
*** danielblackburn has quit IRC21:18
*** replaceafill has quit IRC21:23
*** danielblackburn_ has left #zope3-dev21:24
*** agroszer has quit IRC21:31
vimes656is there any feed for svn.zope.org checkins?21:32
*** nathany has joined #zope3-dev21:34
*** b52laptop has joined #zope3-dev21:37
*** dunny has joined #zope3-dev21:38
*** timte has joined #zope3-dev21:41
*** replaceafill has joined #zope3-dev21:45
replaceafillhi everybody. is ZopeMessageFactory deprecated?21:46
replaceafilli ask because i see zope.session.interfaces try to import it from zope.i18nmessageid and it's not there21:47
*** timte has quit IRC21:50
replaceafillZopeMessageFactory is in zope.app.i18n though21:54
replaceafilli guess my problem is i'm using zope.i18nmessageid 3.4.0a1, because the zope.i18nmessageid trunk has ZopeMessageFactory21:57
*** jukart has quit IRC21:58
*** dobee has quit IRC22:05
*** dobee has joined #zope3-dev22:06
*** dobee has quit IRC22:14
*** jodok_ is now known as jodok22:32
*** djohnson has joined #zope3-dev22:35
*** rmarianski has quit IRC22:51
*** rcrafton has quit IRC22:54
*** vimes656 has quit IRC22:55
*** dobee has joined #zope3-dev23:03
*** djohnson has quit IRC23:08
*** replaceafill has quit IRC23:08
*** junkafarian has quit IRC23:19
*** djohnson has joined #zope3-dev23:25
*** norro has quit IRC23:32
*** rcrafton has joined #zope3-dev23:33
*** dunny has quit IRC23:44
*** rmarianski has joined #zope3-dev23:46
*** norro has joined #zope3-dev23:50
*** dobee has quit IRC23:56

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