IRC log of #zope3-dev for Tuesday, 2009-01-27

*** pelle_ has quit IRC00:01
*** cshenton has quit IRC00:02
*** jhauser has quit IRC00:06
*** markusleist has quit IRC00:14
*** malthe|away is now known as malthe00:23
*** benji has quit IRC00:29
*** sparcd has joined #zope3-dev00:30
sparcdI've added a catalog index: sm['catalog']['email'] = FieldIndex("email", IPerson, False)00:30
sparcdI have then tried to search by the email index for an object I know has this attribute00:31
sparcdbut the catalog is showing documentCount of 000:31
*** benji has joined #zope3-dev00:33
*** Jell-O-Fishi has quit IRC00:34
*** timte has quit IRC00:36
sparcddo all I need to do is add an index and then those objects are automatically indexed?00:41
*** romanofski has joined #zope3-dev00:46
*** vimes656_ has joined #zope3-dev00:51
*** vimes656 has quit IRC00:54
*** benji has quit IRC00:55
*** malthe is now known as malthe|Zzz00:56
*** CSWookie has joined #zope3-dev00:57
*** Theuni has quit IRC00:57
*** vimes656 has joined #zope3-dev01:01
*** reco has quit IRC01:02
*** tarek has joined #zope3-dev01:05
*** davisagli_ has joined #zope3-dev01:05
*** aaronv has joined #zope3-dev01:08
sparcdanyone able to help?01:09
*** vimes656_ has quit IRC01:10
*** harobed has joined #zope3-dev01:11
*** jamur2 has quit IRC01:14
*** sparcd has quit IRC01:19
*** sparcd has joined #zope3-dev01:22
*** davisagli has quit IRC01:22
*** J1m has quit IRC01:23
sparcdhow do I enable indexing of my content type? I've added an index to the catalog01:24
*** lucielejard has quit IRC01:26
*** vimes656 has quit IRC01:29
*** harobed has quit IRC01:30
*** davisagli_ is now known as davisagli01:36
*** alga has joined #zope3-dev01:36
sparcdhmmm01:38
*** lurkymclurkleton has quit IRC01:46
*** junk|afk is now known as junkafarian01:52
*** junkafarian_ has joined #zope3-dev01:58
*** pcardune has joined #zope3-dev02:02
*** rmarianski has quit IRC02:05
*** junkafarian has quit IRC02:13
*** tarek has quit IRC02:23
*** davisagli has left #zope3-dev02:33
*** sparcd has quit IRC02:36
*** tarek has joined #zope3-dev02:44
*** quodt has quit IRC02:52
*** projekt01 has joined #zope3-dev03:01
*** alecm has quit IRC03:08
*** alecm has joined #zope3-dev03:13
*** TresEquis has quit IRC03:20
*** davisagli has joined #zope3-dev03:25
*** hazmat has quit IRC03:34
*** troter has joined #zope3-dev03:38
*** kaeru has joined #zope3-dev04:00
*** srichter has quit IRC04:11
*** kaeru has quit IRC04:16
*** pcardune has quit IRC04:18
*** aaronv is now known as aaronv|Away04:37
*** junkafarian_ has quit IRC04:38
*** kaeru has joined #zope3-dev04:42
*** alecm has quit IRC04:43
*** srichter has joined #zope3-dev04:47
*** pcardune has joined #zope3-dev04:53
pcarduneDoes anyone mind if I do a new release of zc.zope3recipes?  There are some fixes in trunk that I would like... namely the logger fix04:54
*** nathany has quit IRC04:55
pcardunequi tacet consentit04:55
*** alecm has joined #zope3-dev04:56
*** srichter has quit IRC05:00
*** srichter has joined #zope3-dev05:00
pcardunesrichter: wow, that is strange05:04
pcardunepypi says the latest version of zc.zope3recipes is 0.6.205:05
pcardunebut behold: http://pypi.python.org/pypi/zc.zope3recipes/0.7.005:05
pcarduneI think someone must have uploaded 0.6.2 *after* 0.7.0 was uploaded.  The pypi website uses the upload date for the "latest version" but setuptools uses the actual version number05:06
projekt01pcardune, ouch05:08
srichtersigh05:09
srichterpcardune: there is a settings page somewhere that lets you specify the version to show05:09
pcardunehmm05:10
pcardunesrichter: in other news, I figured out the problem with zdaemon05:10
pcarduneyou can't put directory = . into the buildout.cfg, otherwise zdaemon is unhappy and won't start up05:10
pcarduneif you specify a non-relative path, then it works just fine05:11
srichterdarn05:11
*** alga has quit IRC05:14
*** stub has joined #zope3-dev05:21
*** alecm has quit IRC05:24
*** aaronv|Away has quit IRC05:30
*** alecm has joined #zope3-dev05:38
*** pcardune_ has joined #zope3-dev05:39
*** pcardune has quit IRC05:45
*** pcardune_ has quit IRC05:45
*** greenman has quit IRC05:48
*** andycat has quit IRC05:57
*** binseer has joined #zope3-dev05:58
*** andycat has joined #zope3-dev06:18
*** alecm has quit IRC06:19
*** srichter has quit IRC06:24
*** srichter has joined #zope3-dev06:36
*** pcardune has joined #zope3-dev06:42
*** baijum has joined #zope3-dev07:05
*** vimes656 has joined #zope3-dev07:05
*** bigkevmcd has quit IRC07:09
*** bigkevmcd has joined #zope3-dev07:09
*** dunny has quit IRC07:09
*** multani has quit IRC07:09
*** philiKON_ has quit IRC07:09
*** ccomb has quit IRC07:09
*** multani has joined #zope3-dev07:09
*** kobold has quit IRC07:10
*** ccomb has joined #zope3-dev07:10
*** stub has quit IRC07:11
*** kaeru has quit IRC07:11
*** projekt01 has quit IRC07:11
*** tarek has quit IRC07:11
*** binbrain_ has quit IRC07:11
*** d2m has quit IRC07:11
*** danfairs has quit IRC07:11
*** fairwinds has quit IRC07:11
*** Vejeta has quit IRC07:11
*** troter has quit IRC07:11
*** ktwilight has quit IRC07:11
*** Mebibyte has quit IRC07:11
*** Mebibyte has joined #Zope3-Dev07:11
*** binbrain_ has joined #zope3-dev07:11
*** Vejeta has joined #zope3-dev07:11
*** tarek has joined #zope3-dev07:11
*** projekt01 has joined #zope3-dev07:11
*** troter has joined #zope3-dev07:12
*** ktwilight has joined #zope3-dev07:12
*** srichter has quit IRC07:12
*** romanofski has quit IRC07:12
*** rocky has quit IRC07:12
*** BjornT has quit IRC07:12
*** BjornT_ has joined #zope3-dev07:12
*** srichter has joined #zope3-dev07:12
*** d2m has joined #zope3-dev07:12
*** rocky has joined #zope3-dev07:12
*** stub has joined #zope3-dev07:12
*** ChanServ sets mode: +o srichter07:12
*** tarek has quit IRC07:12
*** multani has quit IRC07:12
*** andycat has quit IRC07:12
*** yotaff has quit IRC07:12
*** redir has quit IRC07:12
*** sunoano has quit IRC07:12
*** yvl has quit IRC07:12
*** lisppaste6 has quit IRC07:12
*** Aiste has quit IRC07:12
*** redir` has joined #zope3-dev07:13
*** tarek has joined #zope3-dev07:13
*** multani has joined #zope3-dev07:13
*** Aiste has joined #zope3-dev07:13
*** yvl has joined #zope3-dev07:13
*** povbot has joined #zope3-dev07:22
*** djinni has joined #zope3-dev07:22
*** srichter has joined #zope3-dev07:23
*** davisagli has joined #zope3-dev07:24
*** BjornT has joined #zope3-dev07:27
*** Mebibyte has quit IRC07:27
*** yvl has quit IRC07:27
*** vimes656 has quit IRC07:27
*** andres has quit IRC07:27
*** VladDrac has quit IRC07:27
*** olavgg has quit IRC07:27
*** BjornT_ has quit IRC07:27
*** binseer has quit IRC07:27
*** ktwilight has quit IRC07:27
*** sunoano has quit IRC07:27
*** andycat has quit IRC07:27
*** projekt01 has quit IRC07:27
*** romanofski has quit IRC07:27
*** JaRoel|4D has quit IRC07:27
*** romanofski has joined #zope3-dev07:27
*** yvl has joined #zope3-dev07:27
*** sunoano has joined #zope3-dev07:27
*** binseer has joined #zope3-dev07:27
*** andycat has joined #zope3-dev07:27
*** JaRoel|4D has joined #zope3-dev07:27
*** projekt01 has joined #zope3-dev07:27
*** olavgg has joined #zope3-dev07:28
*** andres has joined #zope3-dev07:28
*** projekt01 has quit IRC07:28
*** JaRoel|4D has quit IRC07:28
*** srichter has quit IRC07:28
*** olavgg has quit IRC07:28
*** andycat has quit IRC07:28
*** sunoano has quit IRC07:28
*** yvl has quit IRC07:28
*** davisagli has quit IRC07:28
*** djinni has quit IRC07:28
*** Aiste has quit IRC07:28
*** Vejeta has quit IRC07:28
*** andres has quit IRC07:28
*** BjornT has quit IRC07:28
*** tarek has quit IRC07:28
*** bigkevmcd has quit IRC07:28
*** rocky has quit IRC07:28
*** binseer has quit IRC07:28
*** romanofski has quit IRC07:28
*** ccomb has quit IRC07:28
*** multani has quit IRC07:28
*** yotaff has quit IRC07:28
*** CSWookie_ has quit IRC07:28
*** malthe|Z_ has quit IRC07:28
*** jpcw has quit IRC07:28
*** d2m has quit IRC07:28
*** tomislav- has quit IRC07:28
*** redir`` has quit IRC07:28
*** aclark has quit IRC07:28
*** kiorky has quit IRC07:28
*** binbrain_ has quit IRC07:28
*** troter has quit IRC07:28
*** SteveA has quit IRC07:28
*** stub has quit IRC07:28
*** chaoflow has quit IRC07:28
*** Vq^ has quit IRC07:28
*** hazmat has quit IRC07:28
*** projekt01 has joined #zope3-dev07:28
*** JaRoel|4D has joined #zope3-dev07:28
*** srichter has joined #zope3-dev07:28
*** olavgg has joined #zope3-dev07:29
*** andycat has joined #zope3-dev07:29
*** sunoano has joined #zope3-dev07:29
*** yvl has joined #zope3-dev07:29
*** davisagli has joined #zope3-dev07:29
*** djinni has joined #zope3-dev07:29
*** Aiste has joined #zope3-dev07:29
*** Vejeta has joined #zope3-dev07:29
*** bigkevmcd has joined #zope3-dev07:29
*** tarek has joined #zope3-dev07:29
*** tomislav- has joined #zope3-dev07:29
*** redir`` has joined #zope3-dev07:29
*** malthe|Z_ has joined #zope3-dev07:29
*** jpcw has joined #zope3-dev07:30
*** ccomb has joined #zope3-dev07:30
*** rocky has joined #zope3-dev07:30
*** redir`` has quit IRC07:31
*** yvl has quit IRC07:31
*** olavgg has quit IRC07:31
*** Aiste has quit IRC07:31
*** Vejeta has quit IRC07:31
*** sunoano has quit IRC07:31
*** djinni has quit IRC07:31
*** davisagli has quit IRC07:31
*** andycat has quit IRC07:31
*** djinni has joined #zope3-dev07:31
*** Vejeta has joined #zope3-dev07:31
*** Aiste has joined #zope3-dev07:31
*** yvl has joined #zope3-dev07:31
*** sunoano has joined #zope3-dev07:31
*** wgrant has joined #zope3-dev07:31
*** andres has joined #zope3-dev07:31
*** olavgg1 has joined #zope3-dev07:32
*** romanofski has joined #zope3-dev07:32
*** chaoflow has joined #zope3-dev07:32
*** redir`` has joined #zope3-dev07:32
*** multani has joined #zope3-dev07:32
*** binbrain_ has joined #zope3-dev07:32
*** binseer has joined #zope3-dev07:32
*** yotaff has joined #zope3-dev07:32
*** troter has joined #zope3-dev07:33
*** ktwilight has joined #zope3-dev07:33
*** stub has joined #zope3-dev07:33
*** hazmat has joined #zope3-dev07:33
*** ChanServ sets mode: +o hazmat07:33
*** d2m has joined #zope3-dev07:33
*** CSWookie has joined #zope3-dev07:34
*** mcdonc has joined #zope3-dev07:36
*** andycat has joined #zope3-dev07:37
*** Mebibyte has joined #Zope3-Dev07:37
*** BjornT has joined #zope3-dev07:37
*** SteveA has joined #zope3-dev07:37
*** aclark has joined #zope3-dev07:39
*** andycat has quit IRC07:40
*** kobold has joined #zope3-dev07:40
*** kaeru has joined #zope3-dev07:40
*** Vq^ has joined #Zope3-dev07:41
*** kiorky has joined #zope3-dev07:42
*** stub has quit IRC07:44
*** andycat has joined #zope3-dev07:59
*** jayaraj has joined #zope3-dev08:03
*** davisagli has joined #zope3-dev08:15
*** afd__ has joined #zope3-dev08:38
*** jukart has joined #zope3-dev08:46
*** pyqwer has joined #zope3-dev08:48
*** JaRoel|4D has quit IRC08:57
*** agroszer has joined #zope3-dev09:00
*** hgeldenhuys has joined #zope3-dev09:08
*** zagy has joined #zope3-dev09:08
*** zagy has joined #zope3-dev09:10
*** __mac__ has joined #zope3-dev09:14
*** davisagli has left #zope3-dev09:16
*** binseer has quit IRC09:41
*** Theuni has joined #zope3-dev09:42
*** junkafarian has joined #zope3-dev09:43
*** JaRoel|4D has joined #zope3-dev09:50
*** pelle_ has joined #zope3-dev09:51
*** harobed has joined #zope3-dev09:52
*** tarek has quit IRC09:55
*** basti__ has joined #zope3-dev09:57
*** JaRoel|4_ has joined #zope3-dev09:57
*** agroszer has quit IRC09:58
*** quodt has joined #zope3-dev10:00
*** troter has quit IRC10:00
*** iham has joined #zope3-dev10:08
*** projekt01 has quit IRC10:09
*** kursor has joined #zope3-dev10:13
*** markusleist has joined #zope3-dev10:17
*** harobed has quit IRC10:19
*** harobed_ has joined #zope3-dev10:19
*** pcardune has joined #zope3-dev10:22
*** ChanServ sets mode: +o srichter10:22
*** JaRoel|4D has quit IRC10:22
*** troter has joined #zope3-dev10:23
*** romanofski has quit IRC10:23
*** quodt has quit IRC10:25
pcardunesrichter: do you know the xmlns uri for tal and metal?10:27
srichterhttp://namespaces.zope.org/tal10:28
srichterhttp://namespaces.zope.org/metal10:28
srichterI think10:28
srichter<html xmlns:tal="http://xml.zope.org/namespaces/tal"10:29
srichter  xmlns:metal="http://xml.zope.org/namespaces/metal">10:29
*** mkerrin has joined #zope3-dev10:34
*** MJ has joined #zope3-dev10:44
*** zagy has quit IRC10:52
*** zagy has joined #zope3-dev10:52
*** multani has quit IRC10:53
*** multani has joined #zope3-dev10:53
*** tarek has joined #zope3-dev10:58
*** brandon_rhodes has joined #zope3-dev11:13
*** stub has joined #zope3-dev11:14
*** iham has quit IRC11:14
*** malthe|Z_ is now known as malthe11:26
*** jayaraj has quit IRC11:29
*** baijum has joined #zope3-dev11:29
*** menesis has joined #zope3-dev11:36
*** nyo has joined #zope3-dev11:40
*** andycat has quit IRC11:40
*** yotaff has quit IRC11:42
*** yotaff has joined #zope3-dev11:42
*** MJ has quit IRC11:49
*** j-w has joined #zope3-dev11:50
*** quodt has joined #zope3-dev11:53
*** iham has joined #zope3-dev11:56
*** andycat has joined #zope3-dev11:56
*** MrTopf has joined #zope3-dev11:57
*** danfairs has joined #zope3-dev12:03
*** VladDrac has joined #zope3-dev12:05
*** sparcd has joined #zope3-dev12:08
*** junkafarian_ has joined #zope3-dev12:08
*** pelle__ has joined #zope3-dev12:15
*** agroszer has joined #zope3-dev12:16
*** dunny has joined #zope3-dev12:22
*** jpcw has left #zope3-dev12:28
*** MJ has joined #zope3-dev12:31
*** pelle_ has quit IRC12:34
*** zagy has quit IRC12:37
*** __mac___ has joined #zope3-dev12:37
*** gc_basti has joined #zope3-dev12:37
*** binseer has joined #zope3-dev12:37
*** zagy has joined #zope3-dev12:37
*** binseer has quit IRC12:38
*** danfairs has quit IRC12:42
*** danfairs has joined #zope3-dev12:42
*** basti__ has quit IRC12:43
*** junkafarian has quit IRC12:43
*** junkafarian has joined #zope3-dev12:44
*** __mac__ has quit IRC12:44
*** markusleist has quit IRC12:45
*** menesis has quit IRC12:46
*** lisppaste6 has joined #zope3-dev12:49
*** mintsauce has joined #zope3-dev12:51
*** pelle_ has joined #zope3-dev12:51
*** regebro has joined #zope3-dev12:52
*** regebro has quit IRC12:52
*** regebro has joined #zope3-dev12:52
*** __mac___ has quit IRC12:58
*** zagy_ has joined #zope3-dev12:58
*** zagy has quit IRC12:59
*** __mac__ has joined #zope3-dev12:59
*** pelle__ has quit IRC12:59
*** pelle___ has joined #zope3-dev12:59
*** pelle_ has quit IRC13:02
*** pelle_ has joined #zope3-dev13:02
*** markusleist has joined #zope3-dev13:08
*** aaronv has joined #zope3-dev13:08
*** tarek has quit IRC13:14
*** mintsauce has quit IRC13:14
*** troter has quit IRC13:21
*** pelle___ has quit IRC13:23
*** kleist has joined #zope3-dev13:26
*** faassen has joined #zope3-dev13:27
*** pelle_ has quit IRC13:30
afd__what to do in case zope.interface is installed on the system as 3.3 (as a dependency for a distro app) and the instance script generated by zc.zope3recipes doesn't include a specific egg entry for the zope.interface 3.4 egg?13:33
*** basti__ has joined #zope3-dev13:34
afd__virtualenv FTW, I know, but I was wondering if there's another way13:34
*** junkafarian has quit IRC13:36
*** mintsauce has joined #zope3-dev13:38
*** jhauser has joined #zope3-dev13:40
*** baijum has quit IRC13:40
*** regebro has quit IRC13:40
*** regebro has joined #zope3-dev13:40
*** dunny has quit IRC13:41
pcarduneafd__: in your buildout.cfg, specify a versions part, and in the versions part put zope.interface = 3.413:45
afd__pcardune: I've tried that, it didn't work13:45
pcarduneafd__: well, I'm fresh out of ideas13:45
afd__what is weird is that the bin/instance script only contains 4 paths: zdaemon, zconfig, the system sitepackages and zc.zope3recipes13:46
mintsauceis there a view / context function in tal to return the name of the current template being displayed?13:47
mintsauceor at least a better way than this! --> tal:content="python:str(view.request.URL)[(len(str(view.request.URL))-5):]"13:47
pcarduneafd__: look carefully, it probably just forwards to a different python scripts that has a much bigger path13:47
afd__I've uninstalled the zope.interface and only after I ran buildout again I could start the instance, so probably the correct location is somewhere deeper embeded13:47
pcardunemintsauce: are you using z3c.template and z3c.pagelet? or the more standard zope views?13:49
nyomintsauce: iirc, view/__name__ will work13:50
mintsaucepcardune: standard zope views13:50
nyomintsauce: with either of them13:50
*** malthe is now known as malthe|lunch13:50
pcardunenyo: I thought he meant the name the the template file itself... not just the view name13:50
*** kleist_ has joined #zope3-dev13:51
mintsauceview/__name__ is good enough for what i need - should have realised that myself - thanks :)13:51
nyopcardune: well, you can't get template name with str(view.request.URL)[(len(str(view.request.URL))-5):] )13:51
pcardunenyo: yeah, that's what I thought to... but it would work if you name all your views after the name of your templates :)13:52
nyohaha))13:52
*** gc_basti has quit IRC13:55
*** mintsauce has quit IRC14:00
*** MJ is now known as MJ|lunch14:02
*** junkafarian_ is now known as junkafarian14:03
*** jayaraj has joined #zope3-dev14:06
*** binseer has joined #zope3-dev14:06
*** binseer has quit IRC14:07
*** binseer has joined #zope3-dev14:08
*** kleist has quit IRC14:08
*** fairwinds has joined #zope3-dev14:13
*** multani has quit IRC14:15
*** multani has joined #zope3-dev14:16
*** afd_ has joined #zope3-dev14:22
*** afd__ has quit IRC14:23
*** aaronv has quit IRC14:25
*** ignas has joined #zope3-dev14:26
*** MJ|lunch is now known as MJ14:38
*** tarek has joined #zope3-dev14:39
*** mintsauce has joined #zope3-dev14:39
mintsauceHow do I stop the zope compiler raising validation errors on <p> tags in javascript?14:40
*** kleist_ has quit IRC14:40
afd_mintsauce: wrap those in CDATA14:40
afd_<script>14:40
afd_ /* <[CDATA[ */14:41
afd_js...14:41
afd_ /* ]]> */14:41
afd_</script>14:41
afd_I think that would work14:41
afd_if not... maybe replace the angle brackets with &lt; and &gt;14:42
mintsauceHmm ... i've already tried <![CDATA[ --- will give your version a try14:42
afd_maybe I spelled it wrong14:42
afd_yours is correct14:43
mintsaucehtml entity codes did the job14:44
mintsaucedoh - almost does the job  - im using jquery .html to replace a div - it doesn't interpret the entities14:48
* mintsauce off to #jquery ;)14:49
*** stub has quit IRC15:04
*** thetet has joined #zope3-dev15:08
*** zagy_ is now known as zagy15:09
mintsauce"The TAL interpretter parses the source of hte ZPT as XML, and so doesn't15:19
mintsauce  do anything with CDATA sections. "15:19
mintsaucegrr15:19
zagywhat's the problem?15:21
afd_mintsauce: I usually declare global javascript functions in separate js files, then just call them in pt15:21
zagyor use an onload event15:21
mintsauceafd_: that would stop the compiler checking them?15:21
afd_they wouldn't sit in ZPT templates anymor15:21
afd_e15:22
mintsauceafd_: good point :)15:23
*** VladDrac has quit IRC15:26
*** lucielejard has joined #zope3-dev15:32
*** tiredbones has joined #zope3-dev15:39
*** J1m has joined #zope3-dev15:40
*** kursor has quit IRC15:41
*** mintsauce has quit IRC15:42
*** VladDrac has joined #zope3-dev15:43
*** whit has joined #zope3-dev15:44
*** fRiSi has joined #zope3-dev15:45
*** cshenton has joined #zope3-dev15:47
*** yvl has quit IRC15:49
*** aaronv has joined #zope3-dev15:59
*** lurkymclurkleton has joined #zope3-dev16:01
*** malthe|lunch is now known as malthe16:08
*** jamur2 has joined #zope3-dev16:09
srichter__mac__: hi andreas16:11
__mac__srichter: hi, I'm not andreas16:12
srichterdarn sorry16:12
__mac__srichter: andreas is macyet16:12
srichter__mac__: I was not sure anymore, that's the reason I used the name in the greaating :-)16:12
srichterthx16:13
__mac__srichter: never mind16:13
*** danfairs has quit IRC16:15
*** danfairs has joined #zope3-dev16:16
*** mintsauce has joined #zope3-dev16:21
*** binseer has quit IRC16:22
mintsauceHave 'interesting' problem where jquery form element seems to render form widget, *before* i18n has finished translating. When exactly does i18n run?16:23
*** J1m has quit IRC16:23
*** markusleist has quit IRC16:23
*** markusleist has joined #zope3-dev16:24
*** kaeru has quit IRC16:24
hgeldenhuysanybody know why Plone room is offline?16:26
*** binbrain_ has quit IRC16:28
*** J1m has joined #zope3-dev16:30
*** jayaraj has quit IRC16:37
*** projekt01 has joined #zope3-dev16:39
sparcdafd_: any idea why my objects might not be indexing in the catalog? I;ve set up a catalog with the correct fieldname and interface, but it doesn't seem to index16:40
CSWookieTheuni: I'd like to modify zc.sourcefactory.factories.ContextualSourceFactory and .FactoredContextualSourceBinder to create instances of class variables, rather than hardcoded classes.  Since you're listed as an owner in PyPi, I thought I'd check with you first.  Any objections?16:40
Theunii didn't understand that16:41
ignassparcd: did you register the catalog as a local utility properly?16:44
CSWookieTheuni: I'd like to be able to bind my contextual source with more than just context (in this case, I also want to be able to bind in a datetime).  The best way to do that, it seems, would be to subclass FactoredContextualSource to include that, but the Factory and the Binder have the classes they'll generate coded into the methods.  I'd rather then have a class variable binder_class and source_class, and call then to create the binder and the source.16:44
sparcdignas: sm['catalog'] = Catalog(); sm.registerUtility(sm['catalog'], ICatalog); sm['catalog']['email'] = FieldIndex("email", IPerson, False)16:45
CSWookies/then/them/16:45
*** mgedmin has joined #zope3-dev16:45
ignassparcd: well, what can I say - "import pdb; pdb.set_trace()" in FieldIndex ;)16:46
ignasand see what goes through it16:46
ignasand check if you have IntId utility set up16:46
sparcdsm['intids'] = IntIds(); sm.registerUtility(sm['intids'], IIntIds)16:46
sparcdbefore the catalog entry16:46
ignaswell - pdb then16:47
sparcdyup, will give it a go16:47
ignassparcd: actually16:48
ignassparcd: add pdb to the index_doc of AttributeIndex16:48
ignasas it is the first one to get called16:48
ignasand just see if your object is passed to the index at all, and if it is - see if it passes through all the filters16:49
sparcdignas: in the __init__ method?16:49
ignasnope16:49
ignasindex_doc16:49
sparcdsorry, misread16:49
sparcdignas: the pdb statement never gets called16:51
sparcddoes my interface (or content type) need to implement a special interface for this?16:52
*** basti__ has quit IRC16:54
*** mintsauce has quit IRC16:56
*** kaeru has joined #zope3-dev16:56
afd_sparcd: maybe your object is not caught in an ObjectAddedEvent that would index it16:58
*** thetet has quit IRC16:58
afd_when you modify an object, usually you have to say zope.event.notify(ObjectModifiedEvent(obj))16:58
sparcdafd_: so I need to create an event subscriber17:01
afd_I think when you add an object to a container it is automatically indexed17:02
afd_if the object inherits from Contained, it seems17:03
sparcdso I guess something I'm doing is wrong17:03
afd_look in zope.app.container.contained17:03
*** hazmat has quit IRC17:04
sparcdafd_: this is weird then17:09
*** hgeldenhuys_ has joined #zope3-dev17:10
*** reco has joined #zope3-dev17:12
*** pelle_ has joined #zope3-dev17:20
sparcdmy interface is definitely IContained17:26
sparcdand my class is class Person(Persistent, Contained)17:27
*** menesis has joined #zope3-dev17:28
*** hgeldenhuys has quit IRC17:28
*** hgeldenhuys_ has quit IRC17:29
sparcdafd_: any more ideas?17:38
*** MJ has quit IRC17:39
afd_sparcd: I'd go to the basics. Check that the index is properly registered, check with an object that you didn't define, stuff like that17:44
*** pyqwer has quit IRC17:44
*** J1m has quit IRC17:48
*** J1m has joined #zope3-dev17:49
sparcdafd_: I have checked that the index is correctly in the catalog as a FieldIndex, with "email" and it's registered to IPerson17:52
sparcdafd_: I've also checked that IPerson implements IContained17:52
sparcdand that the object is inherited from Persistent and Contained17:52
*** J1m has quit IRC17:57
*** lurkymclurkleton has quit IRC17:58
*** alga has joined #zope3-dev18:01
*** lurkymclurkleton has joined #zope3-dev18:02
afd_sparcd: you don't need IPerson inheriting from IContained18:03
afd_but check that your class declares to implement IPerson18:04
afd_also, check that when the catalog indexes your object it doesn't get an error when accessing that method or property18:04
sparcdafd_: my interface: http://paste.plone.org/2603718:06
sparcdand the object: http://paste.plone.org/2603818:06
afd_you don't really need a factory...18:09
sparcdno?18:09
*** nathany has joined #zope3-dev18:09
afd_right, no18:09
sparcdok18:10
sparcdwill remove it18:10
afd_would be great if you could show the code that adds the person to the container18:10
sparcdafd_: the factory does it18:11
sparcdI click on 'Person' on the left menu and I get a edit screen18:11
afd_I see18:11
*** davisagli has joined #zope3-dev18:12
afd_try giving up on the factory, to see if it changes things18:12
afd_also, make sure you add security assertions for the Person class18:12
sparcdok, well I'll need to change a bit of code18:12
sparcdto remove the factory18:12
sparcdafd_: in fact, I don't know how to do it without the factory, its from the tutorials18:13
sparcdthat's all I've got18:13
*** cshenton has quit IRC18:15
afd_sparcd: in the browser:addMenuItem, just say class="path.to.Class" instead of factory18:15
sparcdafd_: OK, will give it a go18:15
sparcdafd_: is it this you want: http://paste.plone.org/2603918:19
*** cshenton has joined #zope3-dev18:20
sparcdafd_: what do I change this line to: as it complains about a factory: person = createObject(u'hammerhead.Person')18:20
afd_person = Person()18:20
sparcdtrying not18:20
sparcdnot=now18:20
sparcddoesn't seem to have made any difference18:21
afd_ok, override the add() method18:22
afd_I'm never sure about the context.add() thing...18:22
afd_you could write there context['somename'] = obj18:22
afd_later you could use INameChooser to decide the name18:22
afd_that should trigger the ObjectAddedEvent18:22
sparcdafd in the addform bit?18:25
afd_yes18:25
afd_look at the source of the AddFormBase from formlib18:25
*** rmarianski has joined #zope3-dev18:27
sparcdchange self.createAndAdd(data) to context['test'] = obj18:28
*** J1m has joined #zope3-dev18:28
*** davisagli has left #zope3-dev18:28
*** nyo has quit IRC18:31
*** j-w has quit IRC18:34
sparcdafd_: doing that gets me TypeError: object does not support item assignment18:36
afd_who is self.context?18:36
sparcddef createAndAdd(self, data):18:37
sparcdwithin the add form18:38
*** projekt01 has quit IRC18:38
afd_before the self.context['test'] = obj line, insert a pdb line and look at who context is18:39
sparcdok18:39
sparcdhttp://paste.plone.org/26041 at the moment18:39
afd_self.context['test'] = obj should work, provided self.context is a container18:39
*** jukart has quit IRC18:41
*** quodt has quit IRC18:41
*** J1m has quit IRC18:41
*** J1m has joined #zope3-dev18:44
sparcd<zope.app.publisher.browser.viewmeta.+ object at 0x2dc0e10>18:45
afd_well, that's wrong18:45
afd_that's a view, it should be a container18:45
afd_are you using some sort of viewlets?18:45
sparcdclass PersonAddForm(AddForm):18:46
sparcdtemplate = NamedTemplate('hammerhead.form')18:46
afd_oh, I see what happens18:46
afd_it's the IAdding view that's the context18:46
sparcdyes, I guess so18:47
afd_try to define your adding page as a regular page, not as a adding page18:47
sparcdbut then I won't get the form fields18:47
afd_you will18:47
sparcdok18:47
afd_there are two form libraries included in zope18:48
sparcdNotImplementedError: Subclasses should override __call__ to provide a response body18:48
afd_inherit AddFormPage or something like that from zope.formlib.form18:48
sparcdit was inheriting AddForm from zope.formlib.form18:49
afd_hmm, I check and that's fine18:49
afd_how did you register the page in zcml?18:49
*** iham has quit IRC18:50
sparcdhttp://paste.plone.org/2604218:50
afd_replace zope.app.container.interfaces.IAdding with *18:52
afd_just for now18:52
*** alga has quit IRC18:52
afd_can you show me the addMenuItem that you have in zcml?18:53
sparcdso should PersonAddForm inherit from AddForm or BrowserPage18:53
sparcdadd menu item: http://paste.plone.org/2604318:54
afd_you shouldn't need the class there, I think18:55
afd_in the addMenuItem18:55
sparcdValueError: Must specify either class or factory18:55
afd_hm... ok18:55
afd_try that change in the browser:page declaration, with the interface, and try again18:56
sparcdalready done, same self.context18:56
afd_you can access the real parent as self.context.context, probably18:57
afd_let me make a quick test page and I'll tell you for certain what you need to do18:57
*** malthe is now known as malthe|away18:57
sparcdif I just go to 'http://localhost:8080/hammerhead.Person, the self.context is <zope.app.folder.folder.Folder object at 0x18c4330>18:58
sparcdbut with the '+' in the URL it's the old self.context18:58
afd_yeah...18:58
afd_usually people don't really code for the ZMI skin... just the basics, like adding a site, configuring... so I pretty much forgot this things :) I'll have to make a quick test package and I'll tell you how to use that formlib view18:59
sparcd<hammerhead.content.folder.PeopleFolder object at 0x2f4b070> is self.context.context19:00
sparcdOK, what would you recommend, I'm not fussed about coding for the ZMI, just started from there19:00
afd_I think you should also learn how to code for the zmi19:01
afd_at least the basics19:01
sparcdI've done that now and I have a person with id 'test' in the people folder19:02
sparcdbut still nothing from index_doc19:02
*** alga has joined #zope3-dev19:07
*** davisagli has joined #zope3-dev19:08
*** tarek has quit IRC19:08
afd_sparcd: http://paste.plone.org/2604719:10
*** menesis has quit IRC19:11
*** fRiSi has quit IRC19:13
afd_sparcd: I've just tested my version, has no problem getting that title field indexed19:13
*** rmarianski has quit IRC19:14
sparcdafd_: I need to leave .omit('__name__', '__parent__') on mine otherwise it breaks19:16
*** rmarianski has joined #zope3-dev19:17
*** afd__ has joined #zope3-dev19:17
sparcdafd_: do you get a documentCount of 1?19:18
afd__yes19:18
*** afd_ has quit IRC19:18
sparcdI get 019:18
sparcdwith your code19:18
afd__then you're missing some zcml registration, let me check19:19
sparcdignore that: I now get ForbiddenAttribute: ('add', <hammerhead.content.site.HammerheadSite object at 0x1d36af0>)19:19
sparcdob = self.context.add(object)19:19
sparcdI need to add it to my peoplefolder I guess19:20
*** malthe|away is now known as malthe19:20
afd__no... probably that's not the problem19:20
sparcdi get the same error in my people container19:20
afd__ForbiddenAttribute usually means that there's no security assertion for that attribute (add)19:20
sparcdah OK19:20
afd__I wouldn't use context.add19:20
afd__try19:20
sparcdit's currently self.add(ob)19:21
afd__name = INameChooser(self.context).chooseName(obj.title, obj)19:21
afd__are you sure you're using the same code as me?19:22
afd__I mean, that you copied that example and running it the same?19:22
sparcdI can't get rid of everything, or my site doesn't work19:23
sparcdI have replaced all the 'Person' stuff with yours19:23
afd__try it in a context outside of your current code19:23
afd__I mean, create another package if you must19:23
sparcdmy URL is: http://localhost:8080/hh/people/+/addperson.html=19:24
afd__try it in the zope root19:24
sparcdhttp://localhost:8080/hh/+/addperson.html= ?19:25
afd__no, go to the root of zope and try it from there19:25
afd__it won't get your object indexed, but you'll see if it works there19:26
sparcdInvalidContainerType: (<zope.app.folder.folder.Folder object at 0x18c4330>, [<InterfaceClass hammerhead.interfaces.IPeopleContainer>])19:26
afd__get rid of the contraint for now19:26
sparcdit works in the people folder, when you click on it from the 'Add' menu19:26
afd__ok19:26
afd__but the person is not succesfully created, right?19:26
sparcdthe person is created fine, just not indexed19:26
afd__just before you said something about the forbiddenattribute19:27
afd__do you still get it?19:27
sparcdyes, I was using http://localhost:8080/addperson.html, which is wrong19:27
afd__ok19:27
sparcdrather than /+/addperson.html19:27
afd__I see19:27
*** JaRoel|4_ has quit IRC19:27
sparcdI added a person with 'test' as the title19:27
afd__and it's not indexed?19:28
afd__check the index...19:28
sparcdif I go to manage site and then the catalog19:28
sparcdInterface: hammerhead.interfaces.IPerson19:28
sparcdField Name: title19:29
sparcdintids is showing 0 objects too19:29
sparcdthe person objects say "This object isn't yet registered" is that right?19:30
afd__it's ok19:31
afd__if you reindex the catalog, does it pick up the object?19:31
sparcdno19:32
afd__is the catalog registered in the site manager for the hammerhead site?19:32
sparcdshould I email you the package?19:32
afd__sure19:32
afd__see pm19:32
*** timte has joined #zope3-dev19:33
afd__ok19:33
sparcdI'm sure I must be doing something obvious wrong19:34
afd__sparcd: could you paste the setup.py on pastebin?19:36
sparcdyup19:36
sparcdhttp://pastebin.com/d2a0fd76719:37
*** alga has quit IRC19:38
*** pcardune has quit IRC19:39
*** alga has joined #zope3-dev19:41
sparcdafd__: it's a mess of tutorials I'm afraid19:51
afd__np19:51
afd__I'm trying to adapt a buildout.cfg to your package... could you page your buildout.cfg? That would make it easier..19:52
sparcdyup19:52
afd__paste19:52
sparcdv simple: http://pastebin.com/d73dbf54b19:52
*** mkerrin has quit IRC19:56
afd__sparcd: your catalog indexes email fields, your person right now doesn't have one20:00
*** jukart has joined #zope3-dev20:01
sparcdafd__: I changed it to 'title' on the instance20:01
sparcdI added a FieldIndex for title to IPerson20:01
afd__ok20:01
sparcdbut I'm pretty much stumped20:04
afd__the intid didn't register any objects... I'll track it20:04
sparcdk20:04
*** nyo has joined #zope3-dev20:08
*** alga has quit IRC20:09
*** tarek has joined #zope3-dev20:17
sparcdafd__: I have to head off in a few mins :-(20:17
afd__sparcd:     add this to your application.zcml <include package="zope.app.keyreference" />20:20
afd__after that it should work20:21
*** tarek has quit IRC20:21
sparcdand then recreate my site and objects?20:22
afd__yes, that would be best20:23
afd__btw, I've just tested with your code, and it works20:23
afd__I need to go too, so good luck :)20:23
afd__see you tomorrow :)20:23
sparcdafd__: thanks, I owe you 100 beers20:24
nyomgedmin: ayt?20:24
mgedminmebbe20:25
nyomgedmin: are you maintaining zope 3.4 buildbots? i just wanted to ask if there are any plans for adding python 2.6 support to it?20:25
mgedminhmm20:25
mgedminwell, no, there were no plans before you asked20:25
mgedmincan I apt-get install python2.6 from some ubuntu backports repository?20:26
nyomgedmin: looks like most of zope packages are working well with python2.6 now, but there are some issues for sure, so it would be great...20:26
*** sp0cksbeard has joined #zope3-dev20:26
nyomgedmin: hmm. I just builded py2.6 on my ubuntu from the source20:26
nyomgedmin: dunno about debs20:26
sparcdafd__: that worked!!! :-)20:27
*** sparcd has quit IRC20:27
* nyo is looking for a repo20:27
*** Theuni has left #zope3-dev20:29
nyomgedmin: https://launchpad.net/~doko/+archive <-- here's python 2.6.0 :)20:33
mgedminit has python2.6 for intrepid only20:34
mgedminone of the build slaves is running hardy, the other gutsy20:34
nyomgedmin: ah.. okay then, I'll look for those releases)20:34
*** markusleist has quit IRC20:37
*** junkafarian has quit IRC20:45
nyomgedmin: looks like there's no packages for hardy and gutsy available :((20:49
*** harobed_ has quit IRC20:50
*** iham has joined #zope3-dev20:57
*** iham is now known as iham|away20:58
*** yotaff has quit IRC21:05
*** yotaff has joined #zope3-dev21:08
*** junkafarian has joined #zope3-dev21:10
*** yotaff has quit IRC21:14
*** Theuni has joined #zope3-dev21:17
TheuniCSWookie: that's what you meant. looks fine to me :)21:17
CSWookieTheuni: Rockin'.  You want me to tag it and you stick it on pypi, or do you want to give me pypi power?21:24
*** MrTopf has quit IRC21:24
Theunii'll give you pypi power21:25
CSWookieTheuni: Thanks.21:25
Theuniwhat's your pypi name?21:25
CSWookieeCool.21:26
CSWookieOoops.21:26
TheuniI used ecool.21:26
Theuni?>21:26
CSWookieTheuni: That was aimed at another channel...  My pypi name is aaron.21:26
Theunihmm21:27
Theuniecool is a user though :)21:27
CSWookieWell, he has the power now!21:27
Theuniremoved his rights again. ...21:27
Theunigot it21:27
CSWookieA breif moment of power for ecool.21:27
TheuniI hope he enjoyed it while it lasted.21:27
*** dunny has joined #zope3-dev21:28
*** brandon_rhodes has quit IRC21:30
aclarkhah21:41
*** agroszer_ has joined #zope3-dev21:45
*** afd__ has quit IRC21:47
*** mgedmin has quit IRC21:49
*** agroszer has quit IRC22:03
*** pcardune has joined #zope3-dev22:04
*** ignas has quit IRC22:05
*** strichter has joined #zope3-dev22:12
*** srichter has quit IRC22:12
*** strichter is now known as srichter22:12
*** ChanServ sets mode: +o srichter22:12
*** hgeldenhuys__ has joined #zope3-dev22:22
*** brandon_rhodes has joined #zope3-dev22:24
*** JaRoel|4D has joined #zope3-dev22:25
*** hgeldenhuys has joined #zope3-dev22:33
*** junkafarian_ has joined #zope3-dev22:33
*** sawdog has joined #zope3-dev22:38
*** vimes656 has joined #zope3-dev22:44
*** hgeldenhuys_ has joined #zope3-dev22:44
*** hgeldenhuys__ has quit IRC22:44
*** junkafarian has quit IRC22:47
*** tarek has joined #zope3-dev22:47
*** tarek has quit IRC22:50
*** hgeldenhuys has quit IRC22:57
*** hgeldenhuys has joined #zope3-dev22:59
*** tarek has joined #zope3-dev23:03
*** hgeldenhuys_ has quit IRC23:07
*** tarek has quit IRC23:09
*** lurkymclurkleton has quit IRC23:09
*** agroszer_ has quit IRC23:09
*** lurkymclurkleton has joined #zope3-dev23:10
*** vimes656 has quit IRC23:11
*** markusleist has joined #zope3-dev23:16
*** Theuni has left #zope3-dev23:18
*** sparcd has joined #zope3-dev23:20
*** harobed_ has joined #zope3-dev23:21
*** sparcd has quit IRC23:24
*** tarek has joined #zope3-dev23:39
*** hgeldenhuys has quit IRC23:40
*** faassen has quit IRC23:44
*** brandon_rhodes has quit IRC23:45
*** aaronv has quit IRC23:51

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