IRC log of #zope3-dev for Wednesday, 2005-05-25

*** zagy has joined #zope3-dev00:00
*** jinty has joined #zope3-dev00:02
*** niemeyer has quit IRC00:09
*** timte has quit IRC00:20
*** SureshZ has left #zope3-dev00:22
*** bradb has quit IRC00:34
*** jinty has quit IRC00:58
philiKONwee, svn 1.2 is out01:02
philiKONwith versioning for symlinks and a flat filesystem backend01:03
*** jinty has joined #zope3-dev01:06
J1mI thought 1.1 had a flat file-system back end01:31
J1mI guess 1.2 has the ability to suppress external output from svn status01:32
J1mwhich is enough reason to upgrade for me. :)01:32
philiKONmaybe it was already 1.101:36
philiKONi'll wait for 1.2.1 to be safe :)01:37
J1m:)01:39
*** J1m has quit IRC01:39
*** tarek has quit IRC01:41
*** yota has quit IRC01:42
*** stub has joined #zope3-dev01:47
*** jinty has quit IRC02:01
*** bradb has joined #zope3-dev02:07
*** dagnachew has joined #zope3-dev02:35
*** tvon has quit IRC03:32
*** dagnachew has quit IRC04:03
*** dagnachew has joined #zope3-dev04:03
*** projekt01 has quit IRC04:42
*** BjornT has joined #zope3-dev05:11
*** cwells_ is now known as cwells05:15
*** BjornT_ has quit IRC05:27
*** tvon_ has quit IRC05:28
*** BjornT has quit IRC06:10
*** philiKON has quit IRC06:24
*** bradb has quit IRC06:37
*** BjornT has joined #zope3-dev07:00
*** cwells has quit IRC08:39
*** philiKON has joined #zope3-dev09:17
*** yota has joined #zope3-dev09:29
*** sashav_ has joined #zope3-dev09:57
*** timte has joined #zope3-dev09:58
*** SteveA has quit IRC10:18
*** timte has quit IRC10:18
*** d2m has quit IRC10:18
*** Jim7J1AJH has quit IRC10:18
*** vinsci has quit IRC10:18
*** VladDrac has quit IRC10:18
*** bob2 has quit IRC10:18
*** sashav_ has quit IRC10:18
*** philiKON has quit IRC10:18
*** jp has quit IRC10:18
*** timte has joined #zope3-dev10:18
*** sashav_ has joined #zope3-dev10:18
*** philiKON has joined #zope3-dev10:18
*** d2m has joined #zope3-dev10:18
*** SteveA has joined #zope3-dev10:18
*** Jim7J1AJH has joined #zope3-dev10:18
*** jp has joined #zope3-dev10:18
*** bob2 has joined #zope3-dev10:18
*** vinsci has joined #zope3-dev10:18
*** VladDrac has joined #zope3-dev10:18
*** jp_ has joined #zope3-dev10:20
*** Jim7J1AJ1 has joined #zope3-dev10:20
*** jp has quit IRC10:20
*** Jim7J1AJH has quit IRC10:21
*** projekt01 has joined #zope3-dev10:24
*** faassen has joined #zope3-dev10:27
*** guido_g has joined #zope3-dev10:37
*** hdima has joined #zope3-dev10:43
*** Jim7J1AJ1 has quit IRC10:59
*** Jim7J1AJH has joined #zope3-dev11:00
*** mooded has joined #zope3-dev11:12
*** The|uni has joined #zope3-dev11:36
*** lunatik has joined #zope3-dev11:52
VladDracargh!!!12:00
VladDrac...12:00
VladDracLuckily for you, I just made the later easier on the Zope 3 trunk last12:00
VladDracnight.  :-)  See src/zope/app/dublincore/partial.txt for more12:00
VladDracinformation on how to do this.12:00
VladDrac...12:00
VladDracwell.. no partial.txt here :(12:00
VladDracah12:00
VladDrachmm12:00
VladDracit's in testing, hurray12:01
*** lunatik has left #zope3-dev12:31
*** mgedmin has joined #zope3-dev12:49
*** tvon has joined #zope3-dev13:18
*** tarek has joined #zope3-dev13:26
*** bskahan has joined #zope3-dev13:36
*** jinty has joined #zope3-dev13:43
*** Jim7J1AJH has quit IRC13:53
*** Jim7J1AJH has joined #zope3-dev13:53
*** alga has joined #zope3-dev14:05
*** bskahan has quit IRC14:05
*** bskahan has joined #zope3-dev14:05
*** regebro has joined #zope3-dev14:10
*** srichter has quit IRC14:15
VladDracI wonder how Z3-ish my implementation is..14:22
VladDracI define a dcmap attribute on my base content type that maps dc attributes to content attributes (which partialAnnotatableAdapterFactory adapts)14:22
VladDracand my derived content adds additional fields to this attribute14:23
*** mkerrin has joined #zope3-dev14:27
*** apoirier has joined #zope3-dev14:40
*** Aiste has joined #zope3-dev14:45
*** stub has left #zope3-dev14:54
*** srichter has joined #zope3-dev15:12
*** lunati1 has joined #zope3-dev15:12
*** SureshZ has joined #zope3-dev15:15
*** ChanServ sets mode: +o srichter15:16
*** lunati1 is now known as lunatik15:19
*** lunatik has left #zope3-dev15:19
*** dagnachew has joined #zope3-dev15:32
*** SureshZ has left #zope3-dev15:32
guido_ghi15:37
guido_gcan someone enlighten me on how to create a catalog?15:37
guido_gwhen I try to add one through the zmi I get a stacktrace...15:38
*** mgedmin has quit IRC15:39
*** ignas has joined #zope3-dev15:39
VladDraccan you paste the trace somewhere? (paste.plone.org?)15:39
VladDracalso, Zope3 trunk?15:39
* VladDrac is not only using the catalog, 15:40
guido_gtrunk from this morning, revision 3049315:40
* VladDrac is actually indexing workflow states using the catalog and using TextIndexNG 3 !15:40
VladDrac(well not using ting for the workflowstates, but for other attributes)15:41
guido_gcool!15:42
guido_ghere's the traceback: http://rafb.net/paste/results/mihAwG24.html15:42
VladDracah ok15:42
VladDracplease read src/zope/app/catalog/browser/README.txt15:43
guido_gok15:43
VladDracthe short answer is: create a intid utility first15:43
VladDracthe shorter answer is: rtfm :)15:43
guido_gjust a second15:43
*** __gotcha has joined #zope3-dev15:44
guido_gi'm going to create a Unique Id Utility, this is the thing, right?15:44
* dagnachew is away: a coter 15:45
*** niemeyer has joined #zope3-dev15:45
VladDracguido yes15:46
* VladDrac shoud find some time to finalize and release a very first version of his code15:46
VladDracI think it might alot of people get started with Zope315:47
*** Aiste_ has joined #zope3-dev15:47
VladDracanyone here available to give me a hint on how to intercept the containment of my created objects? (I want to change the default __name__ generation if no name is supplied)15:48
guido_gexcuse me, what shall the above mentioned README.txt tell me?15:48
*** Aiste has quit IRC15:48
guido_gI see a lot of funny requests...15:48
guido_g.. but I doubt that I've to do it this way15:49
VladDracguido: correct15:49
VladDracbut you can derive that:15:49
VladDrac- Before creating a catalog, you must create a intid tool:15:49
VladDracAnd register it:15:50
*** Aiste_ has quit IRC15:50
VladDracOnce we have a unique-id tool, you can add a catalog:15:50
VladDracand register it:15:50
VladDracOnce we have a catalog, we can add indexes to it.  Before we add an15:50
VladDracindex, let's add a templated page.  When adding indexes, existing15:50
VladDracobjects are indexed, so the document we add now will appear in the15:50
VladDracindex:15:50
VladDracetc.15:50
VladDracit'll provide the steps to get started. In stead of replaying the requests, you'll have to perform something similar in the ZMI15:50
VladDrac(or from Code, eventually, Like I do)15:50
guido_gok, I figured this out15:51
guido_gbut even with a Unique Id Utility installed I get this error15:52
VladDracdid you register it?15:53
guido_gyes15:53
guido_gwith the 'Regsiter' button showing up after I added it15:53
guido_git look like that the component lookup cant find the utility15:55
guido_gI figure, the empty name parameter indicates that the first found utiklity should be returned15:55
VladDracno, actually, the nameless one I think15:58
VladDracdon't enter a name yourself15:58
guido_gok15:58
*** jinty has quit IRC15:59
guido_gYES!15:59
guido_gThanks!16:00
guido_gcan someone add this in bold to the README,txt in catalog, please?16:00
VladDractype_name=BrowserAdd__zope.app.intid.IntIds&id=&add=+Add+""") <- It's there, clearly! >:)16:02
*** The|uni has quit IRC16:05
guido_ghar har har16:06
guido_gbtw, what do you do with the workflow component?16:07
VladDracerm.. workflow? :)16:08
* VladDrac has some simple content types. Their searchable text is indexed, as is ther DC Metadata and workflow state16:08
VladDracI can then use it to, for example, search all "published" News content16:08
guido_gok, indices work for my content type too16:13
*** SureshZ has joined #zope3-dev16:15
guido_gthanks again16:15
*** j-w has joined #zope3-dev16:15
j-wI'm trying to grant a user the site manager role16:17
j-wso I added a principal source, and added a user to it16:17
j-wthen, I granted this user de site manager role16:17
j-whowever, logging in with this user's credentials doesn't work16:17
j-wso I do something wrong...16:18
j-wbut I don't have a clue where to start looking...16:18
* VladDrac 's not really into authentication yet16:19
faassenit the thing that is easy in Zope 2. :)16:21
faassenyou make a user in some user folder, and give it a role, and then you can log in. :)16:21
faassenin Zope 3.1 this seems to be more involved...16:21
VladDracis infrae moving to Zope3 today? :)16:23
srichterit got easier though16:31
srichtercreate a PAU16:31
srichteradd the credentials plugin and sutnetication plugin16:31
srichteradd a user to the authentication plugin16:31
srichtergo to a folder and enter the grant screen16:31
*** bradb has joined #zope3-dev16:33
j-wsrichter: yes, that16:33
j-w's what I did16:33
j-wsrichter: but I just cannot login with new user's credentials16:33
j-wI used the Zope Realm basic-auth credentials plugin16:34
j-wcreated a user folder, and selected that for authenticator plugin16:35
j-wusing the grant screen I can then search for (and find) this user and I grant it the site-manager role16:36
j-wexpecting this to be "enough" for this user to be able to login16:36
faassenanyway, we must be doing something wrong, but jw and I can't figure it out.16:38
*** mooded has quit IRC16:39
*** The|uni has joined #zope3-dev16:41
*** Aiste has joined #zope3-dev16:41
*** alga has quit IRC16:44
srichterI think you have to use 2 credential thingies16:48
srichterone that is a null thing that ignores everything, if the user is already logged in16:48
j-wsrichter: aha... let me try...16:49
j-wsrichter: is that the 'No challenge if authenticated' credential thingy you meant?16:51
j-wmaybe its because this is all configured in a local site manager (I guess that's the right terminology)16:55
*** tvon has quit IRC16:57
VladDracargh16:58
VladDracthe hunt for where-is-that-error-exactly starts again :(16:58
VladDrac(z3 stops at zcml, the error is at a much deeper level)16:59
VladDracthis is sooooo frustrating17:03
*** ignas has quit IRC17:03
*** hdima has quit IRC17:03
VladDracI don't understand I'm the only one having a problem with this :)17:05
* VladDrac considers it a Zope3-developer-acceptance-showstopper17:05
*** BjornT has quit IRC17:06
VladDrac*finally* found it17:07
*** MacDa has joined #zope3-dev17:08
srichterj-w: yesh17:08
VladDracanother 20 minutes wasted on crappy zcml error reporting :(17:08
MacDamorning17:08
VladDracmogge17:10
*** tvon has joined #zope3-dev17:10
projekt01VladDrac, I'm sure with the right UnitTest this whould not happen ;-)17:11
VladDracprojekt: somewhat true17:15
VladDracstill I don't see why ZCML must "mask" inner python stacktraces17:15
projekt01Yes, this makes the traceback sometimes not very usefull.17:17
VladDrac(and yes, I should write unittests, but at this moment I'm still prototyping/trying to understand how stuff works)17:19
j-wVladDrac: that's exactly where I am too :-)17:21
j-wtrying to understand how stuff works17:21
projekt01Mee too17:21
VladDracjw if you get stuck, let me know - I might have been there already :)17:23
VladDrac(jw and guido, btw)17:26
guido_gyep, thanks17:26
guido_gbtw, I get a traceback when I click on a index in a catalog17:27
VladDracguido yeah17:27
VladDracprobably involving string.replace?17:27
guido_gsee http://rafb.net/paste/results/7hfR5G59.html17:28
guido_gyes17:28
VladDraca zope3 bug - I reported it in the tracker17:28
VladDracthe fix is to limit the attributes the schemaview should render17:29
guido_gahh... ok, thx17:30
*** MacDa has left #zope3-dev17:31
*** guido_g has quit IRC17:32
*** tvon has quit IRC17:33
*** BjornT has joined #zope3-dev17:34
projekt01Are the last changes in i18n:translate="" somewhere documented?17:37
projekt01Whould be nice to have a deprecation warning index and some documentation about a deprecation index number ;-)17:38
SteveAlike, a bug URL ?17:42
projekt01SteveA, yes, why not. Could ba a link to additional infos on the web, where this changes can be explained or disscussed17:48
* dagnachew is back17:56
*** SteveA is now known as SteveA|afk17:57
*** sashav_ has quit IRC18:02
tarekhi all18:04
tarekshould i use PyTZ (Python Time Zone) to translates datetimes or there's such integrated feature in z3 ?18:05
*** gintas has joined #zope3-dev18:05
regebrotarek: translate how and to what?18:08
regebroThere is a timezone implementaion in zope.app.datetimeutils if you wonder. It ain't great, but it's there.18:09
tareki think this module is gone18:10
tareki remember srichter saying it, if i am not mistaken18:11
tarekis or *will*18:11
regebrowill, it's still in the trunk.18:13
tareksrichter: ayt ?18:13
regebroProblem is that you kinda need to use the same tz implementation as Zope in some cases, so having your own wont help. :-/18:14
tarekno it wont be a problem because it is just a translation of dates in mails to display them with the same zone than the imap server it was dropped in18:15
* tarek tries to search irc logs18:16
*** guido_g has joined #zope3-dev18:16
guido_gre18:16
VladDracas soon as I have my content implement zope.app.container.interfaces.IContainerNamesContainer, I get (to me) completely unrelated errors18:18
VladDrac  File "/home/ivo/Work/Zope3/Zope3-svn/src/zope/app/container/contained.py", line 207, in sublocations18:18
VladDrac    for key in container:18:18
VladDracTypeError: iteration over non-sequence18:18
guido_guhhh... sounds like something I got days ago18:19
guido_gdo you have an adapter registered for INameChooser and you content type?18:20
VladDracyes18:25
guido_gI think the point was: even when the content-type implements INameChooser, you have to have an adapter for it18:25
guido_gah, ok18:26
VladDracwell no, it implements IContainerNamesContainer (through a zcml directive)18:26
VladDracwhich is basically a marker interface18:26
guido_gyes18:26
VladDracand it adapts to INameChooser through an adapter18:26
guido_gah, I see18:26
VladDracwithout IContainerNamesContainer, my chooseName only gets invoked if name is empty18:26
VladDracand things work okay, but I won't be able to 'intercept' non-empty names18:27
timteis zope 3 harder to develop with than zope 2 ?18:30
VladDracin theory: no, in practice: yes :(18:30
VladDracbut that's the immaturity of both Zope3 and the developers18:30
guido_gfor me? no, because I don't know much of zope218:30
VladDracok18:31
VladDracI'm giving up on IContainerNamesContainer18:31
VladDracI'll call it an awkward undocumented z3 feature18:31
*** ignas has joined #zope3-dev18:33
*** mgedmin has joined #zope3-dev18:35
guido_gdo you use the setitem from zope.app.container.contained?18:35
guido_gbecause this simply returns if the object has a __name__18:36
guido_g... and the name is in the container18:36
*** lunatik has joined #zope3-dev18:38
*** __gotcha has quit IRC18:43
*** gintas has quit IRC18:46
*** SureshZ has quit IRC19:04
*** lunatik has left #zope3-dev19:13
*** j-w has quit IRC19:14
*** faassen has quit IRC19:24
*** mkerrin has quit IRC19:43
*** J1m has joined #zope3-dev19:43
*** SteveA|afk is now known as SteveA19:51
srichterzope.app.datetimeutils are deprecated19:55
srichterif not officially than at least inofiicially19:55
srichterone should use the zope.i18n code instead19:56
*** guido_g has quit IRC20:11
*** Jim7J1AJ1 has joined #zope3-dev20:12
*** regebro has quit IRC20:12
*** tvon has joined #zope3-dev20:14
*** guido_g has joined #zope3-dev20:15
guido_gre20:15
*** srichter has quit IRC20:16
*** Jim7J1AJH has quit IRC20:17
philiKONVladDrac, IContainerNamesCOntainer is not undocumented; i'm fairly certain it's in my book20:23
VladDracphil it's definately documented in your book20:23
VladDracthe odd behaviour I'm experiencing, isn't :)20:23
philiKONah, ok20:25
*** SureshZ has joined #zope3-dev20:31
*** mkerrin has joined #zope3-dev20:31
*** dagnachew has quit IRC20:36
*** gintas has joined #zope3-dev20:37
*** bskahan has quit IRC20:44
*** srichter has joined #zope3-dev20:50
philiKONJ1m, srichter, zope.app.securitypolicy right now doesn't check whether a principal provides IGroupAwarePrincipal but it just tries to getattr the 'groups' attribute. wouldn't it be saner to test for the interface?20:51
*** ChanServ sets mode: +o srichter20:51
J1mphiliKON, sure20:55
philiKONok. i thought maybe there was a reason for the current impl20:55
SteveAor adapt?20:55
philiKONadapt would probably be the sanest approach20:56
philiKONSteveA, will we see you at EP, btw?20:56
philiKONnevermind, i already know you#re coming...20:56
philiKON:)20:56
*** apoirier has quit IRC21:13
*** mgedmin has quit IRC22:24
*** hazmat has joined #zope3-dev23:09
*** ignas has quit IRC23:11
*** mkerrin has quit IRC23:16

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