IRC log of #zope3-dev for Wednesday, 2008-08-13

*** benji has quit IRC00:06
*** J1m has quit IRC00:36
*** sm has joined #zope3-dev00:37
*** aclark|away is now known as aclark00:50
*** _srichter has joined #zope3-dev00:51
*** strichter has quit IRC00:51
*** dbfrombrc has joined #zope3-dev01:00
*** afd__ has quit IRC01:01
*** sp0cksbeard has quit IRC01:07
*** sm has quit IRC01:07
*** sm has joined #zope3-dev01:07
*** sm has joined #zope3-dev01:15
*** oggers has joined #zope3-dev01:22
*** whit has quit IRC01:27
*** lurkymclurkleton has quit IRC01:28
*** lucielejard has quit IRC01:30
*** flox has quit IRC01:37
*** flox has joined #zope3-dev01:39
*** whit has joined #zope3-dev01:44
*** J1m has joined #zope3-dev01:49
*** b52laptop has quit IRC01:51
*** greenman has joined #zope3-dev02:09
*** malthe is now known as malthe|Zzz02:12
*** fairwinds has quit IRC02:25
*** oggers has quit IRC02:43
*** fairwinds has joined #zope3-dev02:46
*** J1m has quit IRC02:57
*** J1m has joined #zope3-dev03:06
*** J1m has quit IRC03:06
*** J1m has joined #zope3-dev03:08
*** rmarianski has quit IRC03:10
*** quodt has quit IRC03:17
*** Jell-O-Fishi has quit IRC03:22
*** _srichter has quit IRC03:39
*** aclark is now known as aclark|away03:58
*** rmarianski has joined #zope3-dev04:08
*** rmarianski has quit IRC04:27
*** rmarianski has joined #zope3-dev04:54
*** whit has quit IRC05:03
*** J1m has quit IRC05:05
*** whit has joined #zope3-dev05:26
*** alecm has quit IRC05:45
*** brandon_rhodes has quit IRC05:55
*** jodok has quit IRC06:10
*** flox has left #zope3-dev06:31
*** greenman has quit IRC06:36
*** rmarianski has quit IRC06:54
*** greenman has joined #zope3-dev07:27
*** binseer has joined #zope3-dev07:30
*** tdoggette has joined #zope3-dev07:36
*** fairwinds has quit IRC07:36
*** philiKON_ has joined #zope3-dev07:45
*** philiKON has quit IRC07:47
*** greenman has quit IRC07:59
*** whit has quit IRC08:05
*** jodok has joined #zope3-dev08:09
*** alecm has joined #zope3-dev08:19
*** timte has quit IRC08:26
*** timte has joined #zope3-dev08:38
*** timte has joined #zope3-dev08:45
*** BjornT has quit IRC08:45
*** BjornT has joined #zope3-dev08:48
*** srichter has joined #zope3-dev08:54
*** BjornT has quit IRC08:57
*** BjornT has joined #zope3-dev08:57
*** ChanServ sets mode: +o srichter09:07
*** srichter has quit IRC09:07
*** srichter has joined #zope3-dev09:08
*** jayaraj has joined #zope3-dev09:09
*** redir has joined #zope3-dev09:10
*** redir has quit IRC09:11
*** afd__ has joined #zope3-dev09:22
*** tarek has joined #zope3-dev09:23
*** tarek_ has joined #zope3-dev09:32
*** tarek has quit IRC09:33
*** srichter has quit IRC09:34
*** Aiste has joined #zope3-dev09:34
*** tarek_ has quit IRC09:42
*** jodok has quit IRC09:47
*** stub has joined #zope3-dev09:51
*** tarek has joined #zope3-dev09:51
*** alecm has quit IRC09:56
*** mintsauce has joined #zope3-dev10:13
*** mintsauce has left #zope3-dev10:14
*** jodok has joined #zope3-dev10:14
*** projekt01 has joined #zope3-dev10:17
*** dbfrombrc has quit IRC10:26
*** dbfrombrc has joined #zope3-dev10:29
*** b52laptop has joined #zope3-dev10:32
*** charith_para has joined #zope3-dev10:32
*** thruflo has joined #zope3-dev10:35
*** agroszer has joined #zope3-dev10:37
*** goschtl has joined #zope3-dev10:41
*** stub has quit IRC10:43
*** flox has joined #zope3-dev10:46
*** danfairs has joined #zope3-dev10:47
*** jayaraj_ has joined #zope3-dev10:52
*** mustap has joined #zope3-dev10:54
*** charith_para has quit IRC11:01
*** stub has joined #zope3-dev11:01
*** jayaraj has quit IRC11:05
*** binseer has quit IRC11:05
*** binseer has joined #zope3-dev11:05
*** goschtl has left #zope3-dev11:05
*** goschtl has joined #zope3-dev11:07
*** maurits has joined #zope3-dev11:08
*** MJ has joined #zope3-dev11:12
*** ccomb_ has joined #zope3-dev11:16
*** malthe|Zzz is now known as malthe|out11:20
*** mintsauce has joined #zope3-dev11:21
mintsauce'lo all. I'm having user permissions issues on an adding an object view (.pt). Short of taking my zcml apart (which im sure is correct), what is the best way of debugging this? Is there a way to interactively see what permissions the edit page is expecting and getting?11:23
afd__mintsauce: set the error log utility to log Unauthorized errors and you'll get pointers to the exact permission you're missing11:24
afd__when you have a full zope stack, you go to the error utility and remove the Unauthorized from the list of errors that it ignores11:24
*** jayaraj_ has quit IRC11:24
afd__in the ZMI, I mea11:25
afd__n11:25
mintsauceafd__: great thanks :)11:25
*** jayaraj has joined #zope3-dev11:25
*** mustap has quit IRC11:26
*** mustap has joined #zope3-dev11:26
mintsauceVery odd. When 'logged out', if I try to view a protected page I log the following user error (as you'd expect): unauthenticated, zope.anybody, Unauthenticated User,11:32
mintsauceHowever when 'logged in', if i try to view the same page I get: unauthenticated, prefix_prefix_mintsauce, Mr Mintsauce,11:32
mintsauceSo two problems I guess - why is that first value unauthenticated (how does it differ from the others?) and double prefixes, wha??11:33
afd__mintsauce: the double prefix comes from your user authentication source11:33
mintsauceafd__: k, do you think that is related to / causing the first problem?11:34
mintsauceWhat is that first value - why isn't it being updated by my login?11:35
afd__it might be, who knows... I'd look first for the missing permission and make sure you grant it to that user11:36
mintsauceWhen viewing it in the error reporting utility, there are 3 columns. Time, User and Exception. The User column contains those 3 csv's, what exactly are they? I'm guessing: error, username, title?11:44
*** mlundwall has joined #zope3-dev11:49
*** mlundwall has quit IRC11:50
mintsauce(tracked down the error - permissions on the object were fine, those on the container weren't!)11:52
*** elro has joined #zope3-dev12:01
*** regebro has joined #zope3-dev12:13
*** greenman has joined #zope3-dev12:19
*** alga has joined #zope3-dev12:27
*** oggers has joined #zope3-dev12:27
*** afd__ has quit IRC12:30
*** afd__ has joined #zope3-dev12:30
*** yotaff has joined #zope3-dev12:35
*** mustap has quit IRC12:39
*** MJ has quit IRC12:39
*** mustap has joined #zope3-dev12:40
*** ChrisW has joined #zope3-dev12:56
ChrisWmornin' all... if I have an egg that's not on pypi but for which I have a sdist or bdist, how can I get zc.buildout to find it?12:57
*** aclark|away is now known as aclark13:05
ChrisWhmm, I guess download-cache?13:06
*** mintsauce_ has joined #zope3-dev13:07
philiKON_ChrisW: find-links = /the/directory13:14
*** philiKON_ is now known as philiKON13:14
* ChrisW tries to find docs for the find-links options on pypi :-(13:15
*** afd__ has quit IRC13:18
ChrisWphiliKON: wow, there isn't a single piece of documentation for find-links on http://pypi.python.org/pypi/zc.buildout/1.1.1 :-(13:19
ChrisWwhere can I find out what it does and how it works?13:19
philiKONfind-links is like easy_install's --find-links13:20
philiKONit just points easy_install to alternate locations13:21
philiKONalternate in the sense of alternatives to the index13:21
*** mintsauce has quit IRC13:21
* ChrisW goes hunting docs on --find-links13:21
*** Jell-O-Fishi has joined #zope3-dev13:23
*** afd_ has joined #zope3-dev13:28
ChrisWcool, I guess you can jhust specify the egg file dirrectly in find links...13:29
mintsauce_I want a browser view (that's a listing of objects) to only show objects the user owns - where should this logic appear? Is it possible in zcml? Or is it a .py thing?13:29
ChrisWI assume you're using zpt for the templating language?13:30
ChrisWif so, your view should expose some kind of iterator method that provides a filtered list for the zpt code to iterate over13:30
ChrisWthe filtering then goesi n the code for that method13:30
danfairsmintsauce_: so in the python, to answer your question ;)13:31
* ChrisW goes back to trying to improve zc.buildout's docs...13:31
mintsauce_heh - thanks (mornin' dan)13:32
* ChrisW wodners who mintsauce_ is?13:32
mintsauce_ChrisW: Zope3 noob :)13:32
ChrisWrun ,run away ;-)13:33
mintsauce_lol13:33
*** stub has quit IRC13:38
ChrisWmintsauce_: you coming to PyConUK?13:44
mintsauce_ChrisW: I want to but it clashes with another conference and more importantly the due date of my first born!13:46
* mintsauce_ still wondering what it is about September and conferences13:46
ChrisWpah, send the sprog to the other conference - both problems solved ;-)13:47
danfairsChrisW: And I should have my wedding there, right? :)13:47
ChrisWnah, just don't get married.. silly idea this wedding malarky if ever I heard one...13:47
mintsauce_lol, told the wife earlier (who's bored and on maternity leave) to do something useful and learn python - didn't work - shes eating cookies and watching the olympics instead ;)13:48
*** yvl has left #zope3-dev13:48
ChrisWhah13:49
mintsauce_just using zcml template=nicename.pt always exposes nice technology agnostic urls (eg: site.com/nicename)- why would i want to use name=nicename.html (site.com/@@nicename.html) ?13:49
ChrisWhmm, it's been a long time since a bunmch of brits took over a zope or python channel for directionless banter... ah, the good old days...13:49
ChrisWmintsauce_: well, the defaults are supposed to be helpful like that ;-)13:50
ChrisWalthough some custoemrs get hung up on that .html...13:51
mintsauce_ChrisW: So theres no need for the html name?13:51
mintsauce_ChrisW: Whereabouts in the UK are you? I'm in Bristol - yes Zope is catching down here ;)13:52
* ChrisW is in Reading13:52
ChrisWI blame Matt for any Zope contageon is Bristol13:52
ChrisWalthough I bet it's mainly fucking Plohn :-(13:52
*** MJ has joined #zope3-dev13:54
* mintsauce_ did come from P**** - but saw the light13:54
*** ignas has joined #zope3-dev13:55
ChrisWhey Ignas :-)13:56
mintsauce_Sooooooo .... how *would* I access the owner of an object via python?13:56
ignashi13:56
* ChrisW doesn't know in "zope 3"13:56
ignasmintsauce_: what is the owner?13:56
ChrisWI didn't even know "zope 3" had the concept of object ownership...13:57
mintsauce_metadata creator ...13:57
mintsauce_i want to list objects only the logged in member has created ..13:58
ignasis it a part of dublin core?13:58
ChrisWthis *is* plone, isn't it?13:58
mintsauce_ignas: yup13:58
*** tdoggette has quit IRC13:58
ignasthen adapt the object to IDublinCoreWhatever13:58
ignasand look at the attributes13:58
mintsauce_ignas: thanks14:02
ignasmintsauce_: did I even help?14:03
* ChrisW still wonders if it's plohn...14:03
mintsauce_ignas: yup - reminded me that it was a dc function and that philiKON has a section on returning dc stuff in pts in his book :)14:05
*** tdoggette has joined #zope3-dev14:05
* mintsauce_ wonders if its ever gonna stop raining14:05
* ChrisW has new toys... a selection of adsl modems and a shiny new 8 port router... aren't I special :-D14:06
*** jsadjohnson has joined #zope3-dev14:14
*** junkafarian has joined #zope3-dev14:15
*** Jell-O-Fishi has quit IRC14:15
ChrisWanyone know what order the entries in find-links are used14:16
ChrisW?14:16
ChrisW...and I assume pypi is always searched?14:16
*** fairwinds has joined #zope3-dev14:18
*** afd_ has quit IRC14:22
*** afd_ has joined #zope3-dev14:26
*** thruflo has quit IRC14:41
*** rocky has quit IRC14:43
*** MrTopf has joined #zope3-dev14:46
*** redir has joined #zope3-dev14:48
*** redir has quit IRC15:01
*** rocky has joined #zope3-dev15:01
*** benji has joined #zope3-dev15:03
*** sunew has joined #zope3-dev15:10
ccomb_ChrisW: I think PyPI is not searched if you specify your own index15:14
ChrisWnot convinced by that ;-)15:20
ChrisW(since the plone buildout.cfg specifies find-links, doesn't include pypi and yet can find packages only on pypi)15:21
philiKONfind-links != index15:22
ccomb_not specifying index= is equivalent to specifying PyPI15:22
philiKONif you specify your own index, pypi's index isn't considered15:22
philiKONif you specify find-links, whatever index you're using *and* find-links are used15:22
ChrisWphiliKON: what's the ordering? particularly when multiple entries are specified in find-links?15:23
philiKONnot sure there's an order15:23
philiKONif just takes the newest version available15:23
philiKONof a package15:24
philiKONno matter where it finds it15:24
ChrisWhurm, would be great to know for definite...15:24
philiKONunless there are certain version number boundaries15:24
*** greenman has quit IRC15:33
ChrisWphiliKON: is that for definite?15:36
*** aclark is now known as aclark|away15:45
rockybtw.. if you specify an index, and one of the packages installed by your buildout includes distribution_links your build will magically look at different places to pull down eggs15:50
rockyhttp://plope.com/Members/chrism/distribution_links_considered_harmful15:51
rockyi also had a situation where one of my third-party eggs was causing pypi to get added to my indexes  but i don't recall the exact cause of that15:52
*** jayaraj has quit IRC15:53
*** sm has quit IRC15:53
*** lurkymclurkleton has joined #zope3-dev15:57
*** ChrisW1 has joined #zope3-dev16:02
*** J1m has joined #zope3-dev16:06
*** ChrisW2 has joined #zope3-dev16:06
*** sp0cksbeard has joined #zope3-dev16:07
*** mustap has quit IRC16:09
*** afd_ has quit IRC16:10
*** ChrisW has quit IRC16:11
*** mintsauce_ has quit IRC16:16
*** hazmat has joined #zope3-dev16:19
*** ChanServ sets mode: +o hazmat16:19
*** lucielejard has joined #zope3-dev16:23
*** ChrisW1 has quit IRC16:24
elroChrisW: that is for definite16:24
elro(that was to not searching pypi when index is set)16:25
*** sm has joined #zope3-dev16:29
*** afd_ has joined #zope3-dev16:32
ChrisW2elro: shame my question was about whether find-links options are all searched or searched in order until a match is found ;-)16:46
*** binseer has quit IRC16:49
*** __mac__ has quit IRC16:56
*** dunny has quit IRC17:00
*** junkafarian_ has joined #zope3-dev17:24
*** junkafarian has quit IRC17:25
*** junkafarian_ is now known as junkafarian17:25
*** nathany has joined #zope3-dev17:29
*** goschtl has left #zope3-dev17:29
chaoflowI have an object with one attribute, which is once assigned in __init__ with a OOBtree. Does the object need to inherit from Persistent or is it enough, that the attribute, where changes are taking place, is a persistent object?17:31
*** rmarianski has joined #zope3-dev17:36
elrochaoflow: the object will follow the rules for non-persistent objects in zodb, i.e. it will be stored in the parent's pickle. The persistent attribute (the OOBTree) will still get pickled seperately17:37
*** mintsauce has joined #zope3-dev17:38
mintsauceTrying to access DublinCore metadata - ZopeTalesAPI can access created,description,modified,title - but not creator - yet this is displayed on metadata page ..... grrrrr!17:39
elrochaoflow: interesting things happen if you store more than one reference to the non-persistent object, you end up with multiple instances of it (well, once it has been deghostedified). This still won't affect the persistent attribute though17:40
elroso if a=MyOb(); ob1.a = a; ob2.a=a; eventually ob1.a is not ob2.a, but ob1.a.btree is ob2.a.btree17:42
*** projekt01 has quit IRC17:45
*** MJ has quit IRC17:47
*** afd_ has quit IRC17:51
*** whit has joined #zope3-dev18:10
danfairsmintsauce: go look at the code for the metadata page then, see how it does it :)18:18
mintsaucedanfairs: funny you should say that ;)18:19
*** timte has quit IRC18:19
mintsauceexactly what ive done, just using it in my own code now18:19
*** fcorrea has quit IRC18:24
*** alecm has joined #zope3-dev18:26
mintsauceWorks - but result in pt is in the format (u'zope.manager', u'prefix_mintsauce'), which is unicode? How do return plain text?18:26
*** sunew has quit IRC18:28
*** fcorrea has joined #zope3-dev18:31
*** brandon_rhodes has joined #zope3-dev18:46
*** MJ has joined #zope3-dev18:46
chaoflowelro: thx a lot!18:56
ignasmintsauce: what do you mean "return plain text"?18:58
mintsauceignas: it's alright  - worked it out (tuple when i wasn't expecting one)18:58
*** sunew has joined #zope3-dev19:01
*** alga has quit IRC19:02
*** whitmo has joined #zope3-dev19:07
*** junkafarian_ has joined #zope3-dev19:12
*** whit has quit IRC19:13
*** srichter has joined #zope3-dev19:14
*** whitmo has quit IRC19:14
*** djohnson has joined #zope3-dev19:19
*** alecm has quit IRC19:22
*** junkafarian has quit IRC19:26
*** alecm has joined #zope3-dev19:26
*** djohnson has quit IRC19:28
*** kursor has joined #zope3-dev19:29
*** mintsauce has quit IRC19:32
*** whitmo has joined #zope3-dev19:46
*** srichter has quit IRC19:49
*** srichter has joined #zope3-dev19:49
*** danfairs has quit IRC19:53
*** jodok has quit IRC19:54
*** MJ has quit IRC19:57
*** junkafarian_ has quit IRC20:05
*** aclark|away is now known as aclark20:08
*** srichter has quit IRC20:10
*** srichter has joined #zope3-dev20:11
*** whitmo is now known as whit20:17
*** rmarianski has quit IRC20:22
*** rmarianski has joined #zope3-dev20:25
*** norro has joined #zope3-dev20:37
*** jodok has joined #zope3-dev20:40
*** nathany_ has joined #zope3-dev20:50
*** nathany has quit IRC20:50
*** nathany_ is now known as nathany20:50
*** maurits has quit IRC20:55
*** junkafarian has joined #zope3-dev20:59
*** andres_f has joined #zope3-dev21:06
*** junkafarian_ has joined #zope3-dev21:14
*** kursor has left #zope3-dev21:21
*** ccomb_ has left #zope3-dev21:25
*** ignas has quit IRC21:27
*** elro has quit IRC21:29
*** junkafarian has quit IRC21:30
*** MrTopf has quit IRC21:30
*** RaFromBRC has joined #zope3-dev21:31
*** dunny has joined #zope3-dev22:10
*** hazmat has left #zope3-dev22:25
*** sunew has quit IRC22:25
*** mcdonc has quit IRC22:29
*** sm is now known as sm-afk22:30
*** RaFromBRC has left #zope3-dev22:34
*** mcdonc has joined #zope3-dev22:44
*** hazmat has joined #zope3-dev22:51
*** ChanServ sets mode: +o hazmat22:51
*** timte has joined #zope3-dev22:51
*** hazmat has quit IRC22:52
*** vipod has joined #zope3-dev22:58
*** sunew has joined #zope3-dev23:09
*** norro has quit IRC23:11
*** ignas has joined #zope3-dev23:14
*** ChrisW2 has left #zope3-dev23:14
*** brandon_rhodes has quit IRC23:16
*** sunew has quit IRC23:17
*** greenman_ has joined #zope3-dev23:26
*** timte has quit IRC23:48
*** regebro has quit IRC23:59

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