IRC log of #zope3-dev for Tuesday, 2005-01-11

*** povbot has joined #zope3-dev01:05
J1mIt's set when the view is created.01:05
srichtermmh, ok, so browser view is broken01:05
srichterok01:05
* srichter notices how much code is not unit tested01:06
srichterJ1m: mmh, during initialization only the __parent__ is set01:06
srichterthe name must be somewhere else01:07
J1mIn hooks.py in queryview01:08
J1m    if ILocation.providedBy(view):01:08
J1m        locate(view, object, name)01:08
J1mThe name really isn't important though01:08
srichterit is01:08
srichterfor absolute_url ;-)01:09
J1mok, how often to we compute absolute_url of a view?01:09
srichterin every AddingView :-)01:09
srichterin action()01:09
J1mk01:09
srichterwhere is hooks.py?01:10
J1mzope/app/component/hooks.py01:10
J1mI don't see any tests for that :(01:10
srichteroh, I removed that probably01:10
srichterok, I have to readd it01:10
srichterooh, I see01:11
srichterwe do not have queryView anymore01:11
srichterdarn01:11
*** RaFromBRC has joined #zope3-dev01:11
srichterthis is tought01:11
srichtertough01:11
J1myes01:12
srichterthis was an evil trick :-)01:12
J1mwe could do something similar for adapters01:12
srichterso hook into queryAdapter?01:14
srichterJ1m: or even adapter_hook?01:14
J1mit has to be in zope.app01:15
J1mcan't have zope.component or zope.interface do any of this.01:15
srichterright, in hooks.py01:15
srichterof course01:15
srichteroh, ok; it has to be queryMultiAdapter01:16
srichterand then I assume that the first object of the provided tuple is the parent :-)01:16
srichterthis hack is just evil01:17
*** mgedmin has quit IRC01:18
J1mhuh?01:19
J1mOh01:20
J1mHm.01:20
J1mIt wasn't evil in the contexts of single-object views01:20
srichterright01:20
J1mIt's not evil for single-object adapters01:21
J1mMaybe this is something the view factory should do01:21
srichterI would like this much better01:21
J1mhm01:21
srichterthe factory of a page would know about its name01:22
J1msure, this could be asome added value provided by the page directives01:23
J1msure, this could be some added value provided by the page directives01:23
srichteryep01:23
srichterit would be really easy, since the view class is a location anyways, so I could just say: new_class.__name__ = name01:25
srichterzope.app.publisher.browser.viewmeta page()01:25
*** stub has joined #zope3-dev01:28
srichterJ1m: this is cumbersome too; I have to find every view directive for browser and ensure I set the name01:43
srichterdarn01:43
srichteri wish there was an event subscriber01:44
srichterJ1m: what if the traverser sets the location?01:45
srichterJ1m: this seems to be the best approach01:45
J1mperhaps01:54
J1mThere aren't that many directives01:56
srichterwell, I just checked and it is pretty confusing01:56
J1mwhat's the big deal with letting the directives do it?01:56
J1mOK, I'll help01:56
J1mI think having the directives do this is the way to go.01:56
srichterwell, we have the page, form and view directive01:56
srichterok, then I do that01:57
J1mnot so bad. :)01:57
J1mk01:57
J1mlater01:57
srichterbye01:57
*** J1m has quit IRC01:57
*** benji_york has quit IRC02:00
*** jhauser has quit IRC02:31
*** d2m has quit IRC02:33
*** vlado has joined #zope3-dev02:38
*** RaFromBRC has quit IRC02:42
*** `anthony has quit IRC03:31
*** tvon has quit IRC03:40
*** tvon has joined #zope3-dev03:42
*** stub has quit IRC03:54
*** stub has joined #zope3-dev03:55
*** vlado has quit IRC03:56
*** stub has quit IRC04:01
*** stub has joined #zope3-dev04:01
*** `anthony has joined #zope3-dev04:49
* Damascene wonders how hard it is to get a book published... ;)06:09
*** Suresh-E has joined #zope3-dev06:21
*** tav_ is now known as tav07:00
*** mohsen-away has quit IRC07:27
*** sashav has quit IRC08:48
AJCi have a question about incremental development of a working site (i guess not technically a "production" site then ;)  under what circonstances will the objects saved by Zope3 be reloadable, in the case of a code change?  if the interfaces remain the same, if the implementation, or schema remains the same?09:02
*** hdima has joined #zope3-dev09:07
*** stub has quit IRC09:17
*** deo has quit IRC09:38
*** vlado has joined #zope3-dev09:41
*** Theuni has joined #zope3-dev09:45
*** d2m has joined #zope3-dev09:49
*** `anthony has quit IRC09:50
*** sashav has joined #zope3-dev09:52
*** paolo has joined #zope3-dev09:52
*** mgedmin has joined #zope3-dev09:52
*** RaFromBRC has joined #zope3-dev09:53
*** mgedmin has joined #zope3-dev09:55
*** `anthony has joined #zope3-dev09:59
*** zagy has joined #zope3-dev10:01
*** mgedmin has quit IRC10:19
*** jhauser has joined #zope3-dev10:34
*** SteveA has quit IRC11:00
*** RaFromBRC has quit IRC11:04
*** SteveA has joined #zope3-dev11:15
*** bskahan has quit IRC11:34
*** bskahan has joined #zope3-dev12:02
*** __gotcha has joined #zope3-dev12:18
*** Aiste has quit IRC12:20
*** J1m has joined #zope3-dev12:37
*** stub has joined #zope3-dev12:45
*** jhauser_ has joined #zope3-dev12:46
*** sashav is now known as sashav|afk13:01
*** apoirier has joined #zope3-dev13:01
*** jhauser has quit IRC13:04
*** mooded has joined #zope3-dev13:24
*** mkerrin has joined #zope3-dev13:31
*** dlk has joined #zope3-dev13:40
*** agenteo has joined #zope3-dev14:18
*** mohsen has joined #zope3-dev14:21
*** Aiste has joined #zope3-dev14:27
DamasceneAJC:  not sure what you mean.  do you mean in what cases can you make a change and zope3 objs will see it immediately vs restarting the service?14:35
Damasceneserver14:35
AJClets say i make a news item object, with summary body and headline.14:36
AJCit has an interface, then if i add another text field "source" to the .py schema, would all other existing objects still work?14:37
srichterAJC: yes, as long as your implementation sets a default value14:38
AJCok, great14:42
AJCthanks14:42
AJCand a question about turn-around times.  when i have a new .css resource (or anything) or a new interface, i have to restart the server right?14:43
* VladDrac is about to import his zope3 photostuff into svn.zope.org14:44
VladDracwhat would be best... separate photo / photoslide folders?14:45
VladDraci.e. /repos/main/photo and /repos/main/photoslide, or /repos/main/photo/photo + photoslide?14:46
VladDraceach of them with their own trunk14:46
*** J1m has quit IRC14:56
srichterVladDrac: why would you want to do this?15:00
srichterVladDrac: does it make sense to use photoslide without photo?15:00
VladDracnot really. it might make sense to use photo without slide15:09
VladDracalso, it's the way it was in the original cvs15:09
* VladDrac prefers bundling the two as well15:09
srichterI think putting them in the same pacakge will be better15:11
DamasceneAJC:  i think you do need to restart since resources are in the zcml15:12
srichterHaving many top level packages is annoying15:12
srichterno, PAge Templates and resource files are updated without restart15:12
VladDracsrichter: so, /repos/main/photo/photoslide/trunk and /repos/main/photo/photo/trunk?15:13
srichterno, /repos/main/photo/trunk/photo and /repos/main/photo/trunk/photoslide15:13
srichterthis way you can check out one trunk and get both15:14
Damascenesrichter:  wait, i can just add a <resource> zcml and it will re-read it on the fly?  or you mean if i replace the same <resource> declared in the zcml itself?15:14
Damasceneadd a new <resource> zcml i mean15:14
srichterno, the resource file itself will be updated15:15
srichterany change in ZCML requires a restart15:15
Damascenek15:15
AJCthanks15:16
*** zagy has quit IRC15:20
VladDracsrichter ok makes sense15:30
*** sashav|afk is now known as sashav15:52
*** agenteo has quit IRC15:55
*** benji_york has joined #zope3-dev16:07
*** AJC is now known as donkey16:14
*** hdima has quit IRC16:32
*** J1m has joined #zope3-dev17:09
*** bskahan has quit IRC17:15
*** stub has quit IRC17:23
*** mgedmin has joined #zope3-dev17:28
*** Suresh-E has left #zope3-dev17:30
*** Voblia has quit IRC17:31
*** tav_ has joined #zope3-dev17:32
*** jhunior has joined #zope3-dev17:36
*** tvon has quit IRC17:39
*** jhunior has left #zope3-dev17:40
*** tav has quit IRC17:47
*** tav_ is now known as tav17:59
srichterJ1m: are you there?18:20
J1myes18:20
*** tvon has joined #zope3-dev18:20
srichterJ1m: there is this nifty function absoluteURL(ob, request) in zope.app.traversing.browser.absoluteurl18:20
srichterI would like to add it to zapi18:20
srichteris that ok?18:20
J1mk18:21
srichtercool18:21
*** zagy has joined #zope3-dev18:30
mgedminhuh?18:32
mgedminI thought it was already in zapi18:32
srichternot that I could see18:33
srichterand all over the place it used getView(ob, 'absolute_url', req)18:33
mgedminI was surprised by the discovery myself18:33
mgedminand surprised that almost no code used it18:33
srichterI think someone forgot to add it18:34
mgedminsrc/zope/app/zapi/__init__.py:35:from zope.app.traversing.browser.absoluteurl import absoluteURL18:34
srichteryeah, I think a big find and replace would be good18:34
J1mabsoluteURL is already there18:34
srichter:-(18:34
srichterwhy did I not see it? eeek18:34
srichterall set then18:35
srichtercool18:35
*** dlk has quit IRC18:38
*** povbot has joined #zope3-dev18:52
*** tvon has quit IRC18:54
*** deo has joined #zope3-dev19:00
*** tvon|x31 is now known as tvon19:13
*** mooded has quit IRC19:25
*** mooded has joined #zope3-dev19:25
*** povbot` has joined #zope3-dev19:37
*** agenteo has joined #zope3-dev19:37
*** povbot has quit IRC19:37
*** Ragica has quit IRC19:37
*** MalcolmC has quit IRC19:37
*** vinsci has quit IRC19:37
*** Ragica has joined #zope3-dev19:38
*** MalcolmC has joined #zope3-dev19:38
*** vinsci has joined #zope3-dev19:38
*** zagy has quit IRC19:38
*** SteveA has quit IRC19:38
*** zagy has joined #zope3-dev19:39
*** SteveA has joined #zope3-dev19:39
*** paolo has quit IRC19:42
*** mkerrin has quit IRC19:45
*** donkey has quit IRC19:50
*** AJC has joined #zope3-dev19:51
*** MalcolmC has quit IRC19:55
*** apoirier has quit IRC20:03
*** agenteo has quit IRC20:29
*** efge has joined #zope3-dev20:38
*** Aiste has quit IRC21:05
*** RaFromBRC has joined #zope3-dev21:22
*** tvon has quit IRC21:33
*** bskahan has joined #zope3-dev21:38
*** alga has joined #zope3-dev21:43
algaI've to a problem with PAU21:44
J1mwhat's that?21:44
algaIt claims to implement IAuthenticationUtility, but does not have a getPrincipals method21:44
J1mah21:44
algashould that method not be on that interface, or should it be implemented?21:44
J1mIt should not be in that interface.21:45
J1mpau has no good way to implement it.21:45
algait's a pity21:45
J1mwhat's a pity?21:45
algathat there's no good way to list all principals21:46
algathat the search interface is so lax21:46
SteveAI don't implement getPrincipals in my utility21:46
SteveAi raise NotImplementedError21:46
J1mThe problem is that we want to support user databases so large that it's not practical to list them.21:46
SteveAthere could be another interface for inspecting / searching principals21:46
*** tvon has joined #zope3-dev21:47
SteveAbut that's probably a different role in the system, not an authentication role21:47
SteveAbut a "database of people" role21:47
J1mright21:47
J1mwhen we want to search for users, we have to get a search view21:47
algabut PAU is a database of people as well, isn't it?21:47
SteveAwhy?21:47
SteveAwho is to say how principals map onto people?21:48
J1mno21:48
J1mThe plugins may be databases of people, or they may not21:48
J1mIt is often some external system, like ldap21:48
SteveAin launchpad, we use IPerson(request.principal), for example21:48
SteveAto get a Person for the principal.  a person is a content object21:48
algathis is all well for the complex use case21:50
algabut what if I just want to list all users in my user folder?21:50
SteveAmake your user folder provide an interface to do so21:50
J1mYou can do that in an indirect way21:50
J1mLook at how the granting ui works21:50
J1mand as Steve said, the plugin can provide any ui it wants to21:51
algaYes21:52
algathere's a view for the global auth service that provides ISourceQueryView21:53
algabut there is not adapter for it to ISourceQueriables ...21:53
J1mRight21:53
algaso, even though the global service works fine in the granting view,21:54
algamy application has to distinguish between the global and the local one21:54
algaI think it's a wart21:55
J1mThere's a point at which, if we can't get an adapter to ISourceQueriables, then we use a list containing just the auth service as the queryables.21:55
J1mno, it doesn't21:55
algaah21:56
algaOK21:56
algaso, what about getPrincipals?21:58
J1mIt's a problem.21:58
J1mA loose end that I forgot to tie up.21:58
SteveAwhat about no verifyObject test for PUA?21:58
J1mThat's probably a problem too.21:59
algacan we remove it and move it so some interface that just the global principal registry implements?21:59
J1mI think we should deprecate it.22:00
J1mand provide a crappy warning implementation in pau22:01
J1mI'm not sure the best way to do this though.22:01
algaso, the interface is frozen?22:02
J1minterfaces are always supposed to be frozen.22:02
J1mI think we should define an IAuthentication interface without this methos.22:03
J1mI think we should define an IAuthentication interface without this method.22:03
J1mI think then that IAutenticationUtility should extend this interface and, itself, be deprecated.22:03
J1mThen, eventually, we'll do away with IAuthenticationUtility.22:04
J1mI'll take a crack at this.22:05
algaok, thanks22:05
algaoh22:07
algazope3-checkins-owner refused my checkin message22:07
algadoes it mean that my checkins won't appear on the checkins list?22:07
algaThe idea is that the checkins list only gets the checkins of the people who are subscribed to it seems somewhat weird22:17
J1mIt is.22:20
J1mIt's to try to avoid spam22:20
J1mI guess I could change it to hold mail from non subscribers, which I could then approve. :(22:21
J1mI suppose that's better than the current situation.22:21
J1mI really really hate spammers22:22
*** SteveA has quit IRC22:24
DamasceneJ1m:  well you certainly are not alone.  ;)22:24
J1malga, don't subscribe yet22:25
J1mI've changed the setup.22:25
J1mPlease try to commit something and let me know when you do.22:25
*** zopepaul has joined #zope3-dev22:27
mgedmintwo of my checkin messages bounced on december 2922:28
mgedminI just subscribed, disabled email delivery and forgot about it22:29
mgedminI should have raised the issue here or on the mailing list22:29
algaJ1m: if you can get a list of emails of the committers off your LDAP directory, you can set that as Privacy->Sender Filters->Accept these nonmembers22:45
algathe problem is that it should be updated when a new person gets the commit privileges22:46
J1myes22:46
algathen you could reject the rest22:46
J1mIf I get the mail held, which is the setting change I just made, I can add names as the need arises.22:47
algabut you'll need to clean up every now and then22:47
J1myes22:48
*** tvon has quit IRC22:55
*** tvon has joined #zope3-dev22:56
*** tvon has joined #zope3-dev22:58
*** zopepaul has quit IRC22:58
mgedminbookmarklet!22:59
mgedminvery useful for cleaning up mailman admin queues full of spam22:59
tvonooh22:59
mgedminyou go through email titles, notice which ones are non-spam, approve them22:59
mgedminthen you click on a bookmarklet and discard the rest in one go22:59
* mgedmin wonders if mailman can be configured to accept all messages that have SVN: in the subject line23:00
*** alga has quit IRC23:20
*** mgedmin has quit IRC23:39
*** sashav has joined #zope3-dev23:39
*** RaFromBRC has quit IRC23:42
*** Aiste has joined #zope3-dev23:43

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