IRC log of #zope3-dev for Wednesday, 2007-01-10

*** HakTom has joined #zope3-dev00:01
*** flox has quit IRC00:06
*** redir has quit IRC00:09
*** dobee has joined #zope3-dev00:11
*** dobee has quit IRC00:16
*** waa has quit IRC00:23
*** tomus has quit IRC00:38
*** alga has quit IRC00:41
*** timte has quit IRC00:43
*** rlo has quit IRC01:09
*** RaFromBRC is now known as RaFromBRC|away01:14
*** schwendinger_ has quit IRC01:26
*** harobed has quit IRC01:29
*** RaFromBRC|away is now known as RaFromBRC01:29
*** HakTom has quit IRC01:30
*** lamike has quit IRC01:37
*** b_52Free has quit IRC01:42
*** b_52Free has joined #zope3-dev01:43
*** rmarianski has quit IRC01:44
*** reco has quit IRC01:55
*** replaceafill has left #zope3-dev02:23
*** tarek has left #zope3-dev02:24
*** b_52Free has quit IRC02:28
*** b_52Free has joined #zope3-dev02:29
*** rocky is now known as rocky|Zzz02:40
*** jfroche has quit IRC02:44
*** jkakar has quit IRC02:47
*** ccomb has quit IRC02:52
*** b_52GM has joined #zope3-dev03:01
*** jkakar has joined #zope3-dev03:01
*** b_52Free has quit IRC03:03
*** yota has quit IRC03:11
*** b_52GM has quit IRC03:17
*** xenru_ has joined #zope3-dev03:25
*** deo has quit IRC03:26
*** b_52GM has joined #zope3-dev03:36
*** xenru has quit IRC03:39
*** oferw has joined #zope3-dev04:00
*** J1m has quit IRC04:03
oferwxenru_: awake?04:21
*** MiUlEr has joined #zope3-dev04:25
*** xenru has joined #zope3-dev04:33
*** xenru_ has quit IRC04:33
*** MiUlEr has quit IRC04:34
*** MiUlEr has joined #zope3-dev04:34
*** projekt01 has quit IRC04:38
*** RaFromBRC has quit IRC04:39
*** oferw has quit IRC04:44
*** MiUlEr has quit IRC04:53
*** b_52GM has quit IRC04:54
*** b_52GM has joined #zope3-dev04:55
*** xenru has quit IRC04:56
*** niemeyer has quit IRC05:07
*** jkakar has quit IRC05:30
*** jkakar has joined #zope3-dev05:35
*** b_52GM has quit IRC05:43
*** b_52GM has joined #zope3-dev05:46
*** stub has joined #zope3-dev06:04
*** b_52GM has quit IRC06:32
*** b_52GM has joined #zope3-dev06:32
*** baijum has joined #zope3-dev06:42
*** stub has quit IRC06:50
*** stub has joined #zope3-dev06:52
*** stub has quit IRC06:56
*** stub has joined #zope3-dev07:05
*** whit has quit IRC07:11
*** b_52GM has quit IRC07:27
*** b_52GM has joined #zope3-dev07:28
*** eins has joined #zope3-dev08:06
*** dobee has joined #zope3-dev08:08
*** alecm has quit IRC08:10
WebMavenWhat determines whether, when adding an object, a 'name' form field appears in the container?08:13
*** timte has joined #zope3-dev08:16
*** dlk has joined #zope3-dev08:25
*** timte_ has joined #zope3-dev08:28
*** dobee has quit IRC08:37
*** zagy has joined #zope3-dev08:53
*** dobee has joined #zope3-dev09:08
*** zagy has quit IRC09:11
*** zagy has joined #zope3-dev09:11
*** d2m has joined #zope3-dev09:13
*** dlk has left #zope3-dev09:13
*** dlk has joined #zope3-dev09:16
*** wrobel has joined #zope3-dev09:26
*** dobee has quit IRC09:32
*** alecm has joined #zope3-dev09:33
*** philiKON_ has joined #zope3-dev09:35
romanofskimoin09:37
*** srichter has joined #zope3-dev09:47
WebMavensrichter: Back again, I see.09:49
*** philiKON has quit IRC09:50
*** hdima has joined #zope3-dev09:51
*** schwendinger has joined #zope3-dev09:52
*** ChanServ sets mode: +o srichter09:52
*** jodok has quit IRC09:52
*** dlk has quit IRC09:55
*** opetznick has joined #zope3-dev09:58
*** jkakar has quit IRC10:09
*** dobee has joined #zope3-dev10:12
WebMavensrichter: OK, I got your email.10:15
*** harobed has joined #zope3-dev10:16
*** sureshvv has joined #zope3-dev10:16
WebMavensrichter: the bug in the version attached to the email you replied to was fixed in the version I sent six hours later.10:17
srichterok10:18
WebMavenSo, the message objects can only be added inside a SQLAlchemy container.10:19
WebMavenSince you don't consider the import changes an improvement, I can put them back.10:19
srichterit's ok, I have my version on my system10:20
srichterI am pretty much done with my example, so I have no further interest looking into this; I just know I would not develop this way10:21
*** sureshvv has quit IRC10:21
WebMavenWell, what do you think of constraining the containment, then?10:21
WebMavenAh. OK.10:21
srichterIt is not transparent enough at this stage; Maybe I should have a look at sqlos10:21
*** dlk has joined #zope3-dev10:21
WebMavenDid you look at the two examples I wrote?10:22
srichterno, I have no time this week10:23
WebMavenI have no clue what's going on with the second one, but if you could look at the small UI bug in the first one I'd be very grateful.10:23
WebMavenI don't know why the name-choosing form field reappeared.10:23
WebMaventhis is the latest version of rogue.za_example_110:24
WebMavenBTW, I got very frustrated with SQLOS/SQLObject, it has bugs when you don't follow the database column naming conventions, which are *supposed* to be overridable, but you apparently can't override the naming of the id column of you have FK relationships between tables.10:27
WebMavenThis was about six months ago. Maybe these bugs have been fixed.10:28
WebMavenBut at least SQLOS had an example. ;-)10:29
*** jodok has joined #zope3-dev10:30
harobedsrichter: you are here ?10:30
*** matthewrevell has joined #zope3-dev10:31
srichteryes10:33
*** HakTom has joined #zope3-dev10:33
*** b_52Free has joined #zope3-dev10:33
*** b_52GM has quit IRC10:35
*** sureshvv has joined #zope3-dev10:39
*** jodok has quit IRC10:47
*** jfroche has joined #zope3-dev10:47
*** yota has joined #zope3-dev10:48
*** stu1 has joined #zope3-dev10:48
*** lamike has joined #zope3-dev10:56
*** dobee has quit IRC10:56
*** dobee has joined #zope3-dev10:56
*** hdima has quit IRC11:01
*** jodok has joined #zope3-dev11:04
*** stub has quit IRC11:06
harobedsrichter: I wonder why my post in zope3-dev about README in root svn directory isn't commented :(11:30
srichterharobed: could be one of two reasons: (a) people think it is not interesting to them, or/and (b) they have no strong objection11:34
*** tonico|away is now known as tonico11:34
srichterharobed: people are usually really busy, so they only respond to messages that push their button11:34
*** timte_ has quit IRC11:35
*** henri_ has joined #zope3-dev11:35
harobedsrichter: ok, I know but I haven't svn access then I can't commit this README file11:35
harobedI think this README can be very useful for zope3 newbies users11:37
*** jinty has joined #zope3-dev11:38
srichterok, I'll look into it over the weekend, I just cannot do it now11:38
harobedthanks11:39
*** tarek has joined #zope3-dev11:47
*** kobold has joined #zope3-dev11:52
*** dunny has quit IRC12:04
*** HakTom has quit IRC12:11
*** borax has joined #zope3-dev12:14
*** b_52Free has quit IRC12:18
*** b_52Free has joined #zope3-dev12:19
*** b_52Free has quit IRC12:20
*** norro has joined #zope3-dev12:24
*** tarek_ has joined #zope3-dev12:27
*** norro has quit IRC12:27
*** tarek has quit IRC12:36
*** b_52Free has joined #zope3-dev12:37
*** ccomb has joined #zope3-dev12:46
*** stu1 has quit IRC12:51
*** stub has joined #zope3-dev12:51
*** vlado has joined #zope3-dev12:55
*** henri_ has quit IRC12:55
*** sureshvv has quit IRC12:58
*** henri_ has joined #zope3-dev13:00
*** niemeyer has joined #zope3-dev13:06
*** tonico has quit IRC13:10
*** tonico has joined #zope3-dev13:15
*** J1m has joined #zope3-dev13:23
*** harobed_ has joined #zope3-dev13:29
*** niemeyer has quit IRC13:34
*** niemeyer has joined #zope3-dev13:35
*** WebMaven has quit IRC13:37
*** tarek_ has quit IRC13:38
ccombIs there a reason why __init__ constructors and their docstring are not documented automatically by the ++apidoc++ ?13:43
ccombfor ex,  the SimpleTerm class  has the following constructor  __init__(self, value, token=None, title=None) and the following docstring :   """Create a term for value and token. If token is omitted, str(value) is used for the token.  If title is provided, term implements ITitledTokenizedTerm."""13:45
ccombBut I had to look at the source code to find it13:45
ccombIt's important documentation, but it is not visible.  Or did I miss something ?13:48
*** borax has quit IRC14:08
*** nathany has joined #zope3-dev14:22
*** J1m has quit IRC14:29
*** b_52Free has quit IRC14:40
*** b_52Free has joined #zope3-dev14:40
*** andrew_m2 has joined #zope3-dev15:05
*** andrew_m has quit IRC15:05
*** andrew_m2 is now known as andrew_m15:05
*** harobed_ has quit IRC15:08
*** ignas has joined #zope3-dev15:13
*** baijum has quit IRC15:41
*** henri_ has left #zope3-dev15:56
*** rocky|Zzz is now known as rocky16:01
*** tarek has joined #zope3-dev16:10
*** J1m has joined #zope3-dev16:23
*** schwendinger_ has joined #zope3-dev16:27
*** jodok has quit IRC16:29
*** dobee_ has joined #zope3-dev16:29
*** schwendinger_ has quit IRC16:29
*** schwendinger has quit IRC16:29
*** jodok has joined #zope3-dev16:29
*** schwendinger has joined #zope3-dev16:30
*** tonico is now known as tonico|away16:30
*** dobee has quit IRC16:30
*** dobee_ has quit IRC16:35
*** mkerrin has joined #zope3-dev16:37
*** tarek_ has joined #zope3-dev16:47
*** faassen has joined #zope3-dev16:49
*** stub has quit IRC16:51
*** eins has quit IRC16:55
*** tarek has quit IRC16:55
*** ccomb has left #zope3-dev17:00
*** ccomb has joined #zope3-dev17:01
*** dlk has left #zope3-dev17:03
*** mgedmin has joined #zope3-dev17:09
*** rmarianski has joined #zope3-dev17:20
*** redir has joined #zope3-dev17:27
*** nathany has quit IRC17:45
*** jodok has quit IRC17:45
*** nathany has joined #zope3-dev17:58
*** regebro_ has joined #zope3-dev18:03
*** regebro_ is now known as regebro18:07
mgedminI would like to commit a couple of bugfixes to the zope 3 test runner (bare except: clauses that trap KeyboardInterrupts)18:08
mgedminhowever if I try to run the testrunner tests in a Zope 3 svn checkout with ./test.py -s zope.testing, I get 0 tests18:09
mgedminwhat am I doing wrong?18:09
*** dobee has joined #zope3-dev18:09
mgedminnot setting the PYTHONPATH correctly, most likely18:12
*** srichter has quit IRC18:15
*** srichter has joined #zope3-dev18:16
*** whit has joined #zope3-dev18:17
*** replaceafill has joined #zope3-dev18:21
*** vlado has quit IRC18:36
*** dobee has quit IRC18:43
*** dobee has joined #zope3-dev18:53
*** dobee has quit IRC18:59
*** replaceafill has quit IRC19:04
*** jinty has quit IRC19:11
*** harobed has quit IRC19:18
*** grahal has quit IRC19:22
*** deo has joined #zope3-dev19:24
*** ignas has quit IRC19:31
*** matthewrevell has quit IRC19:32
*** grahal has joined #zope3-dev19:35
*** grahal has quit IRC19:35
*** jkakar has joined #zope3-dev19:40
*** jkakar has joined #zope3-dev19:40
*** matthewrevell has joined #zope3-dev19:43
*** rmarianski has quit IRC19:56
*** grahal has joined #zope3-dev19:56
*** rmarianski has joined #zope3-dev19:56
*** jfroche has quit IRC20:00
*** redir has quit IRC20:03
* mgedmin tries to remember if there's a way to list all names adapters from IFoo to IBar20:04
*** RaFromBRC has joined #zope3-dev20:08
*** Aiste has quit IRC20:09
*** philiKON_ is now known as philiKON20:11
ccombgetAdapters ?20:11
mgedminit doesn't mention anything about names20:13
mgedminI could loop through absolutely all adapter registrations and filter, but that seems so inelegant20:14
mgedminwhat I actually need is a set of adapters with the same name, and I want the name to be choosable from the UI20:14
*** lamike has quit IRC20:14
mgedminI think I'll go with utilities that describe the set and provide some additional information (e.g. description)20:15
ccombyou have several adapters to the same interface with the same name ?20:15
ccombfor the same object ?20:15
mgedminno, I have several adapters to the same interface with different names for the same object20:16
ccombok20:16
mgedminand my "set of adapters" are adapters to different interfaces, but with the same name20:16
ccombah20:18
ccombmaybe components.registerAdapter20:19
ccombno20:19
ccombcomponents.registeredAdapters20:19
ccomblook at zope.component.registry.txt  in the section adapters20:20
*** dunny has joined #zope3-dev20:27
*** Aiste has joined #zope3-dev20:28
*** mkerrin has quit IRC20:32
ccombif I do  getUtility(IFoo, 'name', context)   and context is not locatable20:44
ccombI won't be able to get my utility, right ?20:44
*** jodok has joined #zope3-dev20:45
mgedminif the utility is a local one, then probably not20:45
mgedminbut if you're calling getUtility while processing a request you don't need to pass context to it20:46
mgedminit will look in the current site20:46
ccombI'm in a Source20:46
ccomband I can't get my local utility20:46
mgedminwhat's the context that gets passed to the source?20:50
ccombin the source, the context is my  AnnotationCategorizable  adapter20:50
ccombthat adapts any IAnnotationCategorizable object to my ICategories20:51
ccombhuh, actually I should have called it AnnotationCategories20:52
mgedminyou may want to have the adapter's __init__ set self.__parent__ = context20:54
mgedminthat will also let any local permission grants take effect20:55
ccombaaaah, maybe ! thanks, I'll try20:55
ccomband I was obliged to set the adapter trusted, what I didn't like20:56
*** tarek_ has quit IRC20:56
mgedmintwo different things20:57
mgedmintrusted adapter has an unproxied self.context and can do anything it likes with it20:58
ccombmy adapter needs to write in __annotations__20:58
mgedminbut the adapter itself is then wrapped in a proxy, and you therefore need to provide permission declarations for the adapter class, *and* set the adapter's __parent__ so that local permission grants work20:58
mgedminuntrusted adapters are zope.Public by default (IIRC) so you do not need to worry about security declarations and __parent__, but anything you want to get from self.context must be allowed by the security declarations on the context class20:59
mgedminthe traditional pattern is that when you create an adapter that accesses context's annotations you make it a trusted adapter20:59
*** srichter has quit IRC21:00
*** tomus has joined #zope3-dev21:11
*** jamesh has quit IRC21:14
*** jamesh has joined #zope3-dev21:16
*** norro has joined #zope3-dev21:29
*** b_52Centos has joined #zope3-dev21:35
*** b_52Free has quit IRC21:37
*** WebMaven has joined #zope3-dev21:38
*** b_52Free has joined #zope3-dev21:39
*** natea is now known as natea|away21:41
*** grahal has quit IRC22:02
*** b_52Centos has quit IRC22:04
*** faassen has quit IRC22:05
*** rocky is now known as rocky|away22:15
*** schwendinger has quit IRC22:24
*** benji has joined #zope3-dev22:25
*** b_52GM has joined #zope3-dev22:25
*** CSWookie has joined #zope3-dev22:25
benjianyone know why the tests are failing?22:26
*** schwendinger has joined #zope3-dev22:30
benjiahh, in a different message, Adam Groszer fessed up and said that he wouldn't be able to fix it until tomorrow22:32
mgedminanyone knows why ./test.py -s zope.testing in a z3 checkout finds 0 tests?22:36
*** jamesh has quit IRC22:40
*** jamesh has joined #zope3-dev22:41
benjithat's a good question, mgedmin :)22:43
mgedminhere's a simple one: how much tests do you see if you run that command?22:43
mgedminis it my setup, or something more sinister?22:44
benji% python ./test.py -s zope.testing22:44
benjiTotal: 0 tests, 0 failures, 0 errors22:44
*** b_52Free has quit IRC22:44
mgedminnot my fault then22:46
benjimgedmin: if you create an instance and run bin/test -s zope.testing, it should work22:46
* mgedmin does not like instances22:46
mgedminfor development, that is, I quite like them for deployment22:47
mgedminmy preferred work cycle is simple: check out; hack; run tests; commit22:47
mgedminanother silly question: if I do run the tests manually with PYTHONPATH=src python src/zope/testing/tests.py22:48
mgedminI see 4 failures22:48
benjiyeah, I don't like instances either22:49
mgedmindoes anyone else see them?22:49
benjichecking22:49
benjiyep, I see four as well22:50
benjimgedmin: let me guess, you're running with Python 2.4.422:52
mgedminyes, probably22:52
mgedmindifferences in traceback formatting?22:52
*** matthewrevell has quit IRC22:52
benjidifferences in formatting, but not tracebacks I don't think22:53
*** natea|away is now known as natea22:54
ccombI'm fed up with /me not beeing able to get his utility22:54
mgedminone of the failures is due to an extra function call in unittest.py22:56
benjimgedmin: they pass when run with 2.4.322:56
mgedminso, if I fixed the tests with 2.4.4 and committed, would a buildbot notice that I broke 2.4.3?22:57
mgedmindo zope 3 buildbots use instances for testing?22:57
mgedmin(my first question presupposes that I (accidentally, of course) break the tests with 2.4.3)22:58
mgedmin(I have no intention of breaking things for 2.4.3)22:58
*** schwendinger has quit IRC23:00
benjimgedmin: I bleive so, but it's very likely you'll break 2.4.3, so I would recommend testing for youself; unfortuanately that bit of text matching is very brittle, so it would also be best if you tested with several flavors of 2.4 and 2.3 :(23:01
mgedmintalk about barriers for entry :(23:01
* mgedmin has python 2.4.1 handy on a debian machine23:02
benjiapparently very few people depend on consistency between Python point releases for those particular messages, they seem to change with each release23:02
mgedminshould the test runner care?  A judicious application of ELLIPSIS or the normalizer would help, I think23:03
mgedminis 2.3 important for zope.testing?  IIRC zope 3 as a whole started requiring 2.4 a while ago23:03
benjiit might; I think there is already some normalizing going on23:04
benjiright, Z3 requires 2.4, but zope.testing works on 2.323:04
*** mgedmin has quit IRC23:12
*** d2m has quit IRC23:19
*** opetznick has quit IRC23:32
*** rocky|away is now known as rokcy23:34
*** rokcy is now known as rocky23:34
*** benji has quit IRC23:35
*** benji has joined #zope3-dev23:35
*** RaFromBRC is now known as RaFromBRC|lunch23:37
*** hazmat has joined #zope3-dev23:41
*** ChanServ sets mode: +o hazmat23:41
*** ksmith99 has joined #zope3-dev23:41
*** marcin_ant has joined #zope3-dev23:41
*** ofer has joined #zope3-dev23:43
*** benji has quit IRC23:44
*** ofer has quit IRC23:44
*** jfroche has joined #zope3-dev23:45
*** ktwilight_ has joined #zope3-dev23:49
*** ktwilight has quit IRC23:50
*** ktwilight_ is now known as ktwilight23:50
*** schwendinger_ has joined #zope3-dev23:53

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