IRC log of #zope3-dev for Monday, 2008-08-11

*** whit has joined #zope3-dev00:07
*** ktwilight has joined #zope3-dev00:18
*** ktwilight_ has quit IRC00:31
*** malthe|away is now known as malthe00:34
*** zagy has quit IRC00:47
*** yota has quit IRC00:49
*** greenman_ has joined #zope3-dev00:50
*** fairwinds has quit IRC00:55
*** Jell-O-Fishi has quit IRC00:56
*** vipod has quit IRC01:02
*** aclark|away is now known as aclark01:07
*** malthe is now known as malthe|Zzz01:24
*** rocky is now known as rocky|away01:33
*** junkafarian has quit IRC01:53
*** aclark is now known as aclark|dinner01:58
*** oggers has quit IRC02:00
*** reco has quit IRC02:02
*** whit has quit IRC02:11
*** ignas has quit IRC02:23
*** quodt has quit IRC02:29
*** b52laptop has quit IRC02:47
*** fairwinds has joined #zope3-dev02:52
*** jsadjohnson has joined #zope3-dev02:59
*** aclark|dinner is now known as aclark03:04
*** jsadjohnson has left #zope3-dev03:09
*** flox has left #zope3-dev03:17
*** whit has joined #zope3-dev03:22
*** lurkymclurkleton has joined #zope3-dev04:15
*** wolfe_ is now known as wolfe04:33
*** lurkymclurkleton has quit IRC04:42
*** sm has quit IRC04:49
*** lurkymclurkleton has joined #zope3-dev04:57
*** sm has joined #zope3-dev05:06
*** lurkymclurkleton has quit IRC05:29
*** stub has joined #zope3-dev05:39
*** whit has quit IRC06:09
*** redir has joined #zope3-dev06:33
*** binseer has joined #zope3-dev07:02
*** sm has quit IRC07:24
*** sm has joined #zope3-dev07:28
*** philiKON_ has joined #zope3-dev07:53
*** philiKON has quit IRC08:02
*** afd_ has joined #zope3-dev08:44
*** philiKON_ has quit IRC08:47
*** zagy has joined #zope3-dev08:54
*** __mac__ has joined #zope3-dev09:07
*** binseer has quit IRC09:12
*** binseer has joined #zope3-dev09:13
*** philiKON has joined #zope3-dev09:14
*** greenman_ has quit IRC09:17
*** zagy has quit IRC09:19
*** markusleist has quit IRC09:22
*** zagy has joined #zope3-dev09:26
*** Theuni has joined #zope3-dev09:39
*** fairwinds has quit IRC09:41
*** quodt has joined #zope3-dev09:44
*** __mac___ has joined #zope3-dev09:48
*** redir has quit IRC09:50
*** __mac____ has joined #zope3-dev09:51
*** junkafarian has joined #zope3-dev10:00
*** __mac__ has quit IRC10:05
*** __mac___ has quit IRC10:08
*** jodok has joined #zope3-dev10:19
*** zagy has quit IRC10:34
*** yotaff has joined #zope3-dev10:50
Theuniwiki.zope.org is down10:56
TheuniWho can I poke?10:56
TheuniIt makes buildout fail to install zope.interface currently.10:56
*** stub has quit IRC11:01
*** stub has joined #zope3-dev11:01
*** junkafarian has quit IRC11:04
*** malthe|Zzz is now known as malthe11:04
*** yotaff_ has joined #zope3-dev11:06
*** yotaff has quit IRC11:11
*** goschtl has joined #zope3-dev11:21
*** yotaff_ has quit IRC11:22
*** afd__ has joined #zope3-dev11:27
*** zagy has joined #zope3-dev11:31
philiKONTheuni: shrug?11:32
philiKONis wiki.zope.org z.i's homepage?11:32
*** malthe has quit IRC11:33
philiKONwasn't sm our wiki guy? :)11:33
philiKONsm: ping?11:33
*** mustap has joined #zope3-dev11:37
*** agroszer has joined #zope3-dev11:39
*** maurits has joined #zope3-dev11:40
*** afd_ has quit IRC11:43
mcdoncTheuni: i used ppix and it didnt give me problems11:43
mcdonc(a few hours ago)... dunno what the deal is there11:44
Theunippix for buildout?11:44
Theunieasyinstall worked for me too11:44
mcdoncyeah..11:44
Theunithat's why I guessed a buildout/setuptools integration issue11:44
mcdonci kept getting "Bad Header Line" or somesuch with pypi11:44
mcdonc(when zope.interface was being gotten)11:45
Theuniwhat's ppix again?11:45
Theuniwe use pypi/simple AFAIK11:45
philiKONa mirror11:45
Theuniah11:45
philiKONit's a pypi/simple mirror11:45
Theuniso it doesn't mirror the homepage links11:45
Theunipypi/simple had the link to the homepage11:45
philiKONhttp://twitpic.com/6yyk11:45
philiKONerr11:45
philiKONhttp://download.zope.org/ppix/11:45
philiKONcopy'n'paste error :)11:46
philiKONhttp://download.zope.org/ppix/zope.interface/11:46
Theunihard to say now11:50
Theunibecause i removed that link from pypi and the mirror is probably updated already11:51
*** charith_para has joined #zope3-dev11:51
philiKONi think ppix only mirrors the package links11:51
philiKONi think it uses the xmlrpc api to pypi11:51
philiKONto find out the package links11:51
philiKONnot sure11:51
philiKONnot sure what's actually running ppix these days11:52
philiKONmaybe it's http://svn.zope.org/zc.mirrorcheeseshopslashsimple/trunk/11:52
philiKONbut that actually mirrors pypi/simple11:52
philiKONhmm. or not. /me sees code using xmlrpclib11:53
*** yvl has joined #zope3-dev11:57
TheuniphiliKON: do you know anything about five.localsitemanager?11:58
philiKONlittle11:58
philiKONit does horrible wrapping11:58
Theunido you know why it removes the requestcontainer from the acquisition chain?11:58
Theuniindeed it does11:58
philiKONno11:59
Theuniand it breaks lots of assumptions from zope 211:59
philiKONhm11:59
Theunie.g. you can't lookup views using @@foo from those objects11:59
philiKONi thought it was invented to actually make local utilities work with zope 2 assumptions11:59
philiKONshrug11:59
Theunishreek11:59
philiKONi'd say, feel free to fix it12:00
Theunilooking at the pypi entry, i probably need to write a list post12:00
*** markusleist has joined #zope3-dev12:02
*** malthe has joined #zope3-dev12:03
*** jodok has quit IRC12:07
*** tarek has joined #zope3-dev12:17
*** greenman has joined #zope3-dev12:17
*** ccomb_ has joined #zope3-dev12:23
*** flox has joined #zope3-dev12:25
*** jodok has joined #zope3-dev12:40
*** hazmat has joined #zope3-dev12:44
*** ChanServ sets mode: +o hazmat12:44
*** rocky|away is now known as rocky12:47
*** charith_para has quit IRC13:03
*** stub has quit IRC13:15
*** tarek has quit IRC13:15
markusleisthi, i want to send back my "Zope Contributor Agreement". It is signed but the field "Zope.org username" is still empty. What is the best e-mail address to send the signed agreement and the join-request for zope.org?13:22
agroszermarkusleist, my best guess for zope.org is webmaster at zope.org, for the agreement Jim himself13:25
*** jodok has quit IRC13:25
markusleistagroszer: k13:26
*** b52laptop has joined #zope3-dev13:32
*** zagy has quit IRC13:44
*** yotaff has joined #zope3-dev14:04
*** fcorrea has joined #zope3-dev14:11
*** jsadjohnson has joined #zope3-dev14:20
*** tarek has joined #zope3-dev14:40
*** projekt01 has joined #zope3-dev14:40
*** andres has quit IRC14:50
*** andres has joined #zope3-dev14:50
*** redir has joined #zope3-dev14:50
*** benji has joined #zope3-dev14:51
*** benji is now known as Guest4207514:51
*** Guest42075 is now known as benji14:53
*** ignas has joined #zope3-dev15:06
*** alga has joined #zope3-dev15:06
*** fairwinds has joined #zope3-dev15:10
*** stub has joined #zope3-dev15:14
*** Aiste has quit IRC15:15
*** redir has quit IRC15:22
*** redir has joined #zope3-dev15:23
*** redir has quit IRC15:24
*** jodok has joined #zope3-dev15:24
*** Aiste has joined #zope3-dev15:32
*** greenman has quit IRC15:47
*** dunny has quit IRC15:51
*** stub has quit IRC15:59
*** jamur2 has joined #zope3-dev16:00
*** lurkymclurkleton has joined #zope3-dev16:00
*** jamur2 has quit IRC16:01
*** jamur2 has joined #zope3-dev16:01
*** jamur2 has quit IRC16:02
*** jamur2 has joined #zope3-dev16:02
*** sp0cksbeard has joined #zope3-dev16:08
*** J1m has joined #zope3-dev16:11
*** rcrafton has joined #zope3-dev16:14
*** rcrafton has left #zope3-dev16:16
*** redir has joined #zope3-dev16:22
*** jamur2 has quit IRC16:25
*** jamur2 has joined #zope3-dev16:26
*** MJ has joined #zope3-dev16:26
*** yvl is now known as justas16:29
*** justas is now known as sjustas16:29
*** MrTopf has joined #zope3-dev16:32
*** aclark is now known as aclark|away16:35
*** jodok has quit IRC16:40
*** mintsauce has joined #zope3-dev16:41
mintsauceHi all - getting the following when trying to view custom member data (constructed via philiKON's book) - whats the best way of troubleshooting this error?16:44
mintsauceTypeError: ('Could not adapt', Principal(u'flatscone_jonh'), <InterfaceClass sandbox.interfaces.IMemberInfo>)16:44
philiKONyou're missing an adapter from the principal object to IMemberInfo16:44
mintsaucemissing it in code?16:45
philiKONperhaps16:45
philiKONdefinitely missing it in registration16:45
mintsauceregistration via zmi?16:46
afd__mintsauce: zcml16:46
mintsauceah16:46
afd__in zcml you usually register (or "configure") components16:46
philiKONunless you're using grok16:47
philiKONthen the registration is done for you16:47
mintsauceheh16:47
philiKONif you use the right base classes16:47
mintsauceGot it - was missing adapter factory in zcml - thanks guys16:50
*** jodok has joined #zope3-dev16:51
mintsauceAnyone done much with FOAF and Zope3?16:53
*** __mac____ has quit IRC16:57
*** brandon_rhodes has joined #zope3-dev16:58
*** MJ has quit IRC17:02
*** MJ|nickcollision has joined #zope3-dev17:02
afd__mintsauce: there's megrok.rdf... not sure that would help you17:04
*** lucielejard has joined #zope3-dev17:07
mintsauceafd__: worth a look, thanks.17:08
mintsaucezope3 blog product? or does everyone roll their own?17:18
*** binseer has quit IRC17:19
*** benji has quit IRC17:26
*** MJ|nickcollision is now known as MJ17:27
philiKONmintsauce: we just use whatever works. e.g. wordpress. or textpress (written in python).17:30
philiKONgrokstar is a zope-based blogging software, though far from done17:30
*** rcrafton has joined #zope3-dev17:36
*** kursor has joined #zope3-dev17:38
*** afd__ has quit IRC17:40
*** benji has joined #zope3-dev17:40
*** benji is now known as Guest8282017:40
*** Guest82820 is now known as benji17:40
*** rmarianski has joined #zope3-dev17:42
mintsaucetextpress looks nice, thanks17:42
*** rcrafton has left #zope3-dev17:48
*** aclark|away is now known as aclark17:52
*** mustap has left #zope3-dev17:56
*** malthe has quit IRC17:57
*** philiKON has quit IRC17:59
*** sp0cksbeard has quit IRC18:01
*** alecm has joined #zope3-dev18:03
*** aclark is now known as aclark|away18:03
*** projekt01 has quit IRC18:09
*** sp0cksbeard has joined #zope3-dev18:11
*** pyqwer has joined #zope3-dev18:12
*** pyqwer has left #zope3-dev18:14
*** b52laptop has quit IRC18:19
*** goschtl has left #zope3-dev18:26
*** philiKON has joined #zope3-dev18:27
*** srichter has quit IRC18:28
mintsaucePython FOAF Generator: http://leahculver.com/2008/02/01/python-foaf-generator/18:32
*** jodok has quit IRC18:33
*** b52laptop has joined #zope3-dev18:36
*** lucielejard has quit IRC18:37
*** fcorrea has quit IRC18:42
*** fcorrea has joined #zope3-dev18:42
*** jodok has joined #zope3-dev18:44
*** faassen has joined #zope3-dev18:48
*** jodok has quit IRC18:48
*** redir has quit IRC18:50
*** whit has joined #zope3-dev18:51
*** lucielejard has joined #zope3-dev18:53
*** nathany has joined #zope3-dev18:53
*** malthe has joined #zope3-dev18:54
*** tarek has quit IRC18:55
ignaswhat is the z3c way of displaying a date field with a javascript date time widget?18:57
*** ktwilight has quit IRC18:58
*** ktwilight has joined #zope3-dev19:00
benjiignas: I don't know about a z3c way, but zc.datetimewidget does that19:02
ignasexcept that zc.datetimewidget is using "2005-01-01" as the date format iirc, while z3c date fields are locale specific19:03
ignasI think19:03
benjihmm, could be19:03
*** srichter has joined #zope3-dev19:04
*** lucielejard_ has joined #zope3-dev19:04
ignassrichter: hi, maybe you know if there is z3c date time widget somewhere?19:04
ignasa javascript gadget for picking date for z3c.form...19:05
*** ChanServ sets mode: +o srichter19:05
*** lucielejard has quit IRC19:05
srichterignas: no, not for z3c.form I think :-(19:06
ignasI see19:06
srichterignas: Roger (projekt01) might know19:06
ignasit kind of makes UI look bad when half of your Date fields want Locale specific date format, and other date fields have the java script date picker gadget19:06
srichterright19:07
srichterI am very interested in such a widget (it is not very hard)19:07
ignashmm, not sure about it19:07
srichterwhy not?19:07
ignasespecially the locale specific part19:07
ignasunless you use ajax19:07
srichterjust insert the JS that puts a date into the text field19:07
ignasin which format?19:08
srichterno need to use ajax, only JS19:08
ignas01/05/2005 ?19:08
srichterany format you want19:08
ignasor 2005-05-0119:08
ignasbecause z3c.form will not accept one of them19:08
srichterbecause you then write a custom data converter for that widget19:08
srichterthat knows how to parse the entered date19:08
ignasoh, so you would have 2 z3c widgets that are doing it differently19:08
srichteryep19:08
ignasone - locale specific, and one with javascript... which still is crappy19:09
srichterthe data converter is specific to the field-widget-pair19:09
srichterright ;-)19:09
ignasI want to have both ;) i can have one of them already19:09
ignaszc.datetimewidget does the javascript19:09
ignasbut uses 2005-01-01 format19:09
srichterbut zc.datetimewidget is zope.formlib, right?19:09
ignasyes19:10
srichterso there is a little bit of work involved19:10
ignasunless I will try doing the locale specific javascript date picker thing19:10
*** mintsauce has quit IRC19:10
srichterignas: if you get that going, you are my hero :-)19:11
srichterthe hard part is really to build a JS function that understands our ICU date formats19:12
srichterwe can even send over all the calendar information, such as month and weekday names19:12
ignasnah, the hard part is making widgets register z3c.formjs handlers on views19:12
ignasso I could use 2005-01-01 in javascript internaly, and convert it both ways using ajax19:13
srichteroh, that's also an approach19:13
srichteryou culd do this by providing a date-localizer view on the site19:13
ignashmm, we do something like that for spellchecker19:14
srichterbtw, slightly OT, Paul has been working on his formjs branch and added some nice JSON functionality to AJAX handlers19:14
ignasnice, maybe some day I will have some use out of it ;)19:14
srichteroh, this is a great example :-)19:15
smTheuni, philiKON: looks like it's back19:15
ignashmm, widget gets site, and puts the date localizer into the widget java script code, then uses that url to convert date both ways, defaulting to today in serverside...19:16
ignasdate localizer url that is19:16
ignasthen I have to add schooltool specific code for getting today, and suddenly no one else can use it ;)19:17
srichterwhy?19:17
srichterjust make getting today pluggable19:17
srichterand make the default datetime.date.today()19:17
srichteroverride it in ST, if you have to19:17
ignasi'd rather get today in javascript then19:18
ignasdate.today() is always the wrong one19:18
srichterok, that's ok too :-)19:18
ignasi mean - date of the browser is always better than date of the server19:18
srichterright19:19
*** lucielejard_ is now known as lucielejard19:21
*** zagy has joined #zope3-dev19:34
*** regebro has joined #zope3-dev19:35
*** srichter has quit IRC19:35
*** srichter has joined #zope3-dev19:35
*** lurkymclurkleton has quit IRC19:45
*** srichter has quit IRC19:45
*** MJ is now known as MJ|out19:48
*** aclark|away is now known as aclark19:54
*** srichter has joined #zope3-dev20:00
*** lurkymclurkleton has joined #zope3-dev20:04
*** whit has quit IRC20:04
*** elro has joined #zope3-dev20:11
elrofaassen,  malthe: what do you think to making z3c.saconfig register a globally scoped session when an engine is registered through zcml?20:12
maltheelro: it should do that20:13
elromalthe: it already does?20:13
elroor I should make it?20:13
faassenelro: what else would it be doing for its ZCML?20:14
*** whit has joined #zope3-dev20:15
faassenooh, you mean only a utility is registered.20:15
faassenfor the engine factory.20:15
elroyep, I want both20:15
elroand I think it may make the code in my sandbox for dealing with named engines/sessions simple20:15
elrosimpler20:15
faassenelro: for ZCML, sounds reasonable. shouldn't even conflict with locally scoped sessions.20:17
elroI also think we need some sort of after_registration hook for the zcml so that mappers can be registered20:18
*** tarek has joined #zope3-dev20:24
*** quodt has quit IRC20:27
fairwindselro: you can create a subscriber to database opened event  - or is there no zodb?20:27
elrofairwinds: this is for sqlalchemy databases, but I guess I could send an event instead.20:29
elrobut a simple callback could be simpler20:29
fairwindsright, but do you still have zodb or not?20:29
elronormally, but not necessarily20:30
elroI mean we probably must for zcml, but I don't really want to make it a deep dependency20:30
fairwindsits a simple question. if you have a zodb, you can use this event. If not there are other events that can be uses. For a purely no zodb wsgi app using something like ore.wsgi, there is another event you can subscribe to there.20:33
*** maurits has quit IRC20:33
fairwindss/uses/used20:33
elrowell, I don't want to tie it to anything in particular20:34
maltheelro: but you must :-)20:34
*** tarek has quit IRC20:40
*** baijum has joined #zope3-dev20:41
fairwindsyou are working with a framework, its already got the functionality you need, you just need to use it. its not a big deal to change your subscriber to a different event if you change the type of application. If you've got a zodb, create a handler to initialize your models and create subscriber zcml with for="zope.app.appsetup.interfaces.IDatabaseOpenedEvent" and handler pointing to your method. That will do the job for you.20:41
fairwindselro: this should be part of your app configure.zcml typically.20:43
fairwindsanyways hth20:44
elrofairwinds: but I won't know the name of the utility I've registered that way, it's possible (and plausible) to register multiple database engines and each needs it's own setup20:44
fairwindsYour model initialization is different than defining your engines.20:46
elroyes, but if you want to use table reflection then you must supply it with an engine20:46
fairwindsyou use utility  and db directives to do that.20:47
fairwindsin your site.zcml is where i put it20:47
fairwindsie. <db:engine url="sqlite:///var/mydatabase.db" />20:49
fairwinds<utility factory="z3c.saconfig.GloballyScopedSession" />20:49
elroyes, but that doesn't help me with my scenario of needing to do mapper setup using Table(name='foo', reflect=True, with_engine=myengine)20:50
elro(or whatever the exact spelling is)20:50
elroThis discussion may be confused by the fact my sandbox has named scoped session support in it ;-)20:51
fairwindswhy not. you can get your engine passed in doing a getUtility(IEnginesomethingorother)20:52
elrobear in mind I have multiple engines registered, e.g. <db:engine url="sqlite:///var/dbone.db" name="one"/> <db:engine url="sqlite:///var/dbtwo.db" name="two/>20:53
fairwindsI have to confess I am not working with locally scoped engines though, i'd assume they are named20:54
elroI need to associate the setup code with either one or two, and I'd rather not put the name into the python code, but rather put the setup in the engine registration20:54
elroso something like engine1: url1: path.to.appA.setup,  engine2: url2: path.to.appB.setup, engine3: url3, path.to.appA.setup20:56
fairwindscan you not get the right one by passing name into getUtility. I am not sure how else you are going to get a handle on what you want.20:56
elrobut the python code would need to know the name then20:56
elroso instead I propose <db:engine url="sqlite:///var/mydatabase.db" name="foo" setup="path.to.setup" />20:57
elrowhich will end up with a call to path.to.setup(engine)20:58
elroI'll also make the  <utility factory="z3c.saconfig.GloballyScopedSession" /> redundant20:59
* elro wanders if there are named events21:03
fairwindsNot sure I can help you here. Regardless of what you set up in zcml, its really only a way for zope to be aware of it generally (so you can get a handle on it afterwards).  Think about the way you write test, you can do registration thru python as well. You are going to need to get and use the objects in you code at different points to do anything useful. You use zope's api's to do this. Anyway, hope this helps. I've got to get back to my21:05
*** alga has quit IRC21:07
*** faassen has quit IRC21:16
*** baijum has left #zope3-dev21:20
*** MrTopf has quit IRC21:20
*** mcdonc has quit IRC21:21
*** ignas has quit IRC21:27
*** whit is now known as whit|intransit21:29
*** kursor has quit IRC21:32
*** sjustas has quit IRC21:38
*** whit has joined #zope3-dev21:45
*** quodt has joined #zope3-dev21:49
*** elro has quit IRC21:56
*** mcdonc has joined #zope3-dev21:58
*** srichter has quit IRC21:59
*** srichter has joined #zope3-dev22:00
*** srichter has quit IRC22:04
*** nathany is now known as nathany_lunch22:07
*** agroszer has quit IRC22:13
*** Aiste has quit IRC22:18
*** vipod has joined #zope3-dev22:25
*** ignas has joined #zope3-dev22:32
*** philiKON has quit IRC22:35
*** alecm has quit IRC22:36
*** philiKON has joined #zope3-dev22:36
*** mcdonc has quit IRC22:36
*** oggers has joined #zope3-dev22:38
*** jodok has joined #zope3-dev22:41
*** mcdonc has joined #zope3-dev22:41
*** dunny has joined #zope3-dev22:45
*** jodok has quit IRC22:48
*** jodok has joined #zope3-dev22:52
*** tarek has joined #zope3-dev22:54
*** elro has joined #zope3-dev22:56
*** oggers has quit IRC23:01
*** oggers has joined #zope3-dev23:02
*** oggers has quit IRC23:02
*** tarek has quit IRC23:05
*** oggers has joined #zope3-dev23:06
*** srichter has joined #zope3-dev23:07
*** whit has quit IRC23:12
*** nathany_lunch is now known as nathany23:14
*** oggers_ has joined #zope3-dev23:27
*** andres_f has joined #zope3-dev23:29
*** andres has quit IRC23:29
*** andres_f is now known as andres23:29
*** oggers__ has joined #zope3-dev23:30
*** oggers_ has quit IRC23:31
*** whitmo__ has joined #zope3-dev23:34
*** oggers_ has joined #zope3-dev23:39
*** oggers has quit IRC23:40
*** regebro has quit IRC23:48
*** srichter has quit IRC23:50
*** srichter has joined #zope3-dev23:50
markusleisthi, i have to set a "value preselection" in a z3c.form-_Add_Form somewhere in the update-methode:23:52
*** greenman has joined #zope3-dev23:52
markusleisthttp://trac.ict-ok.org/browser/trunk/org/ict_ok/components/snmpvalue/browser/snmpvalue.py#L29123:52
markusleistthe value from templateData['oid1'] should go into the in the add-form-oid1-Value / see interface:23:53
markusleisthttp://trac.ict-ok.org/browser/trunk/org/ict_ok/components/snmpvalue/interfaces.py#L3523:53
markusleisti have no idea?23:53
*** ChanServ sets mode: +o srichter23:54
*** oggers__ has quit IRC23:54
*** oggers__ has joined #zope3-dev23:55
*** greenman has quit IRC23:57
*** oggers_ has quit IRC23:59

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