*** zagy has joined #zope3-dev | 00:00 | |
*** jinty has joined #zope3-dev | 00:02 | |
*** niemeyer has quit IRC | 00:09 | |
*** timte has quit IRC | 00:20 | |
*** SureshZ has left #zope3-dev | 00:22 | |
*** bradb has quit IRC | 00:34 | |
*** jinty has quit IRC | 00:58 | |
philiKON | wee, svn 1.2 is out | 01:02 |
---|---|---|
philiKON | with versioning for symlinks and a flat filesystem backend | 01:03 |
*** jinty has joined #zope3-dev | 01:06 | |
J1m | I thought 1.1 had a flat file-system back end | 01:31 |
J1m | I guess 1.2 has the ability to suppress external output from svn status | 01:32 |
J1m | which is enough reason to upgrade for me. :) | 01:32 |
philiKON | maybe it was already 1.1 | 01:36 |
philiKON | i'll wait for 1.2.1 to be safe :) | 01:37 |
J1m | :) | 01:39 |
*** J1m has quit IRC | 01:39 | |
*** tarek has quit IRC | 01:41 | |
*** yota has quit IRC | 01:42 | |
*** stub has joined #zope3-dev | 01:47 | |
*** jinty has quit IRC | 02:01 | |
*** bradb has joined #zope3-dev | 02:07 | |
*** dagnachew has joined #zope3-dev | 02:35 | |
*** tvon has quit IRC | 03:32 | |
*** dagnachew has quit IRC | 04:03 | |
*** dagnachew has joined #zope3-dev | 04:03 | |
*** projekt01 has quit IRC | 04:42 | |
*** BjornT has joined #zope3-dev | 05:11 | |
*** cwells_ is now known as cwells | 05:15 | |
*** BjornT_ has quit IRC | 05:27 | |
*** tvon_ has quit IRC | 05:28 | |
*** BjornT has quit IRC | 06:10 | |
*** philiKON has quit IRC | 06:24 | |
*** bradb has quit IRC | 06:37 | |
*** BjornT has joined #zope3-dev | 07:00 | |
*** cwells has quit IRC | 08:39 | |
*** philiKON has joined #zope3-dev | 09:17 | |
*** yota has joined #zope3-dev | 09:29 | |
*** sashav_ has joined #zope3-dev | 09:57 | |
*** timte has joined #zope3-dev | 09:58 | |
*** SteveA has quit IRC | 10:18 | |
*** timte has quit IRC | 10:18 | |
*** d2m has quit IRC | 10:18 | |
*** Jim7J1AJH has quit IRC | 10:18 | |
*** vinsci has quit IRC | 10:18 | |
*** VladDrac has quit IRC | 10:18 | |
*** bob2 has quit IRC | 10:18 | |
*** sashav_ has quit IRC | 10:18 | |
*** philiKON has quit IRC | 10:18 | |
*** jp has quit IRC | 10:18 | |
*** timte has joined #zope3-dev | 10:18 | |
*** sashav_ has joined #zope3-dev | 10:18 | |
*** philiKON has joined #zope3-dev | 10:18 | |
*** d2m has joined #zope3-dev | 10:18 | |
*** SteveA has joined #zope3-dev | 10:18 | |
*** Jim7J1AJH has joined #zope3-dev | 10:18 | |
*** jp has joined #zope3-dev | 10:18 | |
*** bob2 has joined #zope3-dev | 10:18 | |
*** vinsci has joined #zope3-dev | 10:18 | |
*** VladDrac has joined #zope3-dev | 10:18 | |
*** jp_ has joined #zope3-dev | 10:20 | |
*** Jim7J1AJ1 has joined #zope3-dev | 10:20 | |
*** jp has quit IRC | 10:20 | |
*** Jim7J1AJH has quit IRC | 10:21 | |
*** projekt01 has joined #zope3-dev | 10:24 | |
*** faassen has joined #zope3-dev | 10:27 | |
*** guido_g has joined #zope3-dev | 10:37 | |
*** hdima has joined #zope3-dev | 10:43 | |
*** Jim7J1AJ1 has quit IRC | 10:59 | |
*** Jim7J1AJH has joined #zope3-dev | 11:00 | |
*** mooded has joined #zope3-dev | 11:12 | |
*** The|uni has joined #zope3-dev | 11:36 | |
*** lunatik has joined #zope3-dev | 11:52 | |
VladDrac | argh!!! | 12:00 |
VladDrac | ... | 12:00 |
VladDrac | Luckily for you, I just made the later easier on the Zope 3 trunk last | 12:00 |
VladDrac | night. :-) See src/zope/app/dublincore/partial.txt for more | 12:00 |
VladDrac | information on how to do this. | 12:00 |
VladDrac | ... | 12:00 |
VladDrac | well.. no partial.txt here :( | 12:00 |
VladDrac | ah | 12:00 |
VladDrac | hmm | 12:00 |
VladDrac | it's in testing, hurray | 12:01 |
*** lunatik has left #zope3-dev | 12:31 | |
*** mgedmin has joined #zope3-dev | 12:49 | |
*** tvon has joined #zope3-dev | 13:18 | |
*** tarek has joined #zope3-dev | 13:26 | |
*** bskahan has joined #zope3-dev | 13:36 | |
*** jinty has joined #zope3-dev | 13:43 | |
*** Jim7J1AJH has quit IRC | 13:53 | |
*** Jim7J1AJH has joined #zope3-dev | 13:53 | |
*** alga has joined #zope3-dev | 14:05 | |
*** bskahan has quit IRC | 14:05 | |
*** bskahan has joined #zope3-dev | 14:05 | |
*** regebro has joined #zope3-dev | 14:10 | |
*** srichter has quit IRC | 14:15 | |
VladDrac | I wonder how Z3-ish my implementation is.. | 14:22 |
VladDrac | I define a dcmap attribute on my base content type that maps dc attributes to content attributes (which partialAnnotatableAdapterFactory adapts) | 14:22 |
VladDrac | and my derived content adds additional fields to this attribute | 14:23 |
*** mkerrin has joined #zope3-dev | 14:27 | |
*** apoirier has joined #zope3-dev | 14:40 | |
*** Aiste has joined #zope3-dev | 14:45 | |
*** stub has left #zope3-dev | 14:54 | |
*** srichter has joined #zope3-dev | 15:12 | |
*** lunati1 has joined #zope3-dev | 15:12 | |
*** SureshZ has joined #zope3-dev | 15:15 | |
*** ChanServ sets mode: +o srichter | 15:16 | |
*** lunati1 is now known as lunatik | 15:19 | |
*** lunatik has left #zope3-dev | 15:19 | |
*** dagnachew has joined #zope3-dev | 15:32 | |
*** SureshZ has left #zope3-dev | 15:32 | |
guido_g | hi | 15:37 |
guido_g | can someone enlighten me on how to create a catalog? | 15:37 |
guido_g | when I try to add one through the zmi I get a stacktrace... | 15:38 |
*** mgedmin has quit IRC | 15:39 | |
*** ignas has joined #zope3-dev | 15:39 | |
VladDrac | can you paste the trace somewhere? (paste.plone.org?) | 15:39 |
VladDrac | also, Zope3 trunk? | 15:39 |
* VladDrac is not only using the catalog, | 15:40 | |
guido_g | trunk from this morning, revision 30493 | 15: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_g | cool! | 15:42 |
guido_g | here's the traceback: http://rafb.net/paste/results/mihAwG24.html | 15:42 |
VladDrac | ah ok | 15:42 |
VladDrac | please read src/zope/app/catalog/browser/README.txt | 15:43 |
guido_g | ok | 15:43 |
VladDrac | the short answer is: create a intid utility first | 15:43 |
VladDrac | the shorter answer is: rtfm :) | 15:43 |
guido_g | just a second | 15:43 |
*** __gotcha has joined #zope3-dev | 15:44 | |
guido_g | i'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-dev | 15:45 | |
VladDrac | guido yes | 15:46 |
* VladDrac shoud find some time to finalize and release a very first version of his code | 15:46 | |
VladDrac | I think it might alot of people get started with Zope3 | 15:47 |
*** Aiste_ has joined #zope3-dev | 15:47 | |
VladDrac | anyone 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_g | excuse me, what shall the above mentioned README.txt tell me? | 15:48 |
*** Aiste has quit IRC | 15:48 | |
guido_g | I see a lot of funny requests... | 15:48 |
guido_g | .. but I doubt that I've to do it this way | 15:49 |
VladDrac | guido: correct | 15:49 |
VladDrac | but you can derive that: | 15:49 |
VladDrac | - Before creating a catalog, you must create a intid tool: | 15:49 |
VladDrac | And register it: | 15:50 |
*** Aiste_ has quit IRC | 15:50 | |
VladDrac | Once we have a unique-id tool, you can add a catalog: | 15:50 |
VladDrac | and register it: | 15:50 |
VladDrac | Once we have a catalog, we can add indexes to it. Before we add an | 15:50 |
VladDrac | index, let's add a templated page. When adding indexes, existing | 15:50 |
VladDrac | objects are indexed, so the document we add now will appear in the | 15:50 |
VladDrac | index: | 15:50 |
VladDrac | etc. | 15:50 |
VladDrac | it'll provide the steps to get started. In stead of replaying the requests, you'll have to perform something similar in the ZMI | 15:50 |
VladDrac | (or from Code, eventually, Like I do) | 15:50 |
guido_g | ok, I figured this out | 15:51 |
guido_g | but even with a Unique Id Utility installed I get this error | 15:52 |
VladDrac | did you register it? | 15:53 |
guido_g | yes | 15:53 |
guido_g | with the 'Regsiter' button showing up after I added it | 15:53 |
guido_g | it look like that the component lookup cant find the utility | 15:55 |
guido_g | I figure, the empty name parameter indicates that the first found utiklity should be returned | 15:55 |
VladDrac | no, actually, the nameless one I think | 15:58 |
VladDrac | don't enter a name yourself | 15:58 |
guido_g | ok | 15:58 |
*** jinty has quit IRC | 15:59 | |
guido_g | YES! | 15:59 |
guido_g | Thanks! | 16:00 |
guido_g | can someone add this in bold to the README,txt in catalog, please? | 16:00 |
VladDrac | type_name=BrowserAdd__zope.app.intid.IntIds&id=&add=+Add+""") <- It's there, clearly! >:) | 16:02 |
*** The|uni has quit IRC | 16:05 | |
guido_g | har har har | 16:06 |
guido_g | btw, what do you do with the workflow component? | 16:07 |
VladDrac | erm.. workflow? :) | 16:08 |
* VladDrac has some simple content types. Their searchable text is indexed, as is ther DC Metadata and workflow state | 16:08 | |
VladDrac | I can then use it to, for example, search all "published" News content | 16:08 |
guido_g | ok, indices work for my content type too | 16:13 |
*** SureshZ has joined #zope3-dev | 16:15 | |
guido_g | thanks again | 16:15 |
*** j-w has joined #zope3-dev | 16:15 | |
j-w | I'm trying to grant a user the site manager role | 16:17 |
j-w | so I added a principal source, and added a user to it | 16:17 |
j-w | then, I granted this user de site manager role | 16:17 |
j-w | however, logging in with this user's credentials doesn't work | 16:17 |
j-w | so I do something wrong... | 16:18 |
j-w | but I don't have a clue where to start looking... | 16:18 |
* VladDrac 's not really into authentication yet | 16:19 | |
faassen | it the thing that is easy in Zope 2. :) | 16:21 |
faassen | you make a user in some user folder, and give it a role, and then you can log in. :) | 16:21 |
faassen | in Zope 3.1 this seems to be more involved... | 16:21 |
VladDrac | is infrae moving to Zope3 today? :) | 16:23 |
srichter | it got easier though | 16:31 |
srichter | create a PAU | 16:31 |
srichter | add the credentials plugin and sutnetication plugin | 16:31 |
srichter | add a user to the authentication plugin | 16:31 |
srichter | go to a folder and enter the grant screen | 16:31 |
*** bradb has joined #zope3-dev | 16:33 | |
j-w | srichter: yes, that | 16:33 |
j-w | 's what I did | 16:33 |
j-w | srichter: but I just cannot login with new user's credentials | 16:33 |
j-w | I used the Zope Realm basic-auth credentials plugin | 16:34 |
j-w | created a user folder, and selected that for authenticator plugin | 16:35 |
j-w | using the grant screen I can then search for (and find) this user and I grant it the site-manager role | 16:36 |
j-w | expecting this to be "enough" for this user to be able to login | 16:36 |
faassen | anyway, we must be doing something wrong, but jw and I can't figure it out. | 16:38 |
*** mooded has quit IRC | 16:39 | |
*** The|uni has joined #zope3-dev | 16:41 | |
*** Aiste has joined #zope3-dev | 16:41 | |
*** alga has quit IRC | 16:44 | |
srichter | I think you have to use 2 credential thingies | 16:48 |
srichter | one that is a null thing that ignores everything, if the user is already logged in | 16:48 |
j-w | srichter: aha... let me try... | 16:49 |
j-w | srichter: is that the 'No challenge if authenticated' credential thingy you meant? | 16:51 |
j-w | maybe its because this is all configured in a local site manager (I guess that's the right terminology) | 16:55 |
*** tvon has quit IRC | 16:57 | |
VladDrac | argh | 16:58 |
VladDrac | the 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 |
VladDrac | this is sooooo frustrating | 17:03 |
*** ignas has quit IRC | 17:03 | |
*** hdima has quit IRC | 17:03 | |
VladDrac | I don't understand I'm the only one having a problem with this :) | 17:05 |
* VladDrac considers it a Zope3-developer-acceptance-showstopper | 17:05 | |
*** BjornT has quit IRC | 17:06 | |
VladDrac | *finally* found it | 17:07 |
*** MacDa has joined #zope3-dev | 17:08 | |
srichter | j-w: yesh | 17:08 |
VladDrac | another 20 minutes wasted on crappy zcml error reporting :( | 17:08 |
MacDa | morning | 17:08 |
VladDrac | mogge | 17:10 |
*** tvon has joined #zope3-dev | 17:10 | |
projekt01 | VladDrac, I'm sure with the right UnitTest this whould not happen ;-) | 17:11 |
VladDrac | projekt: somewhat true | 17:15 |
VladDrac | still I don't see why ZCML must "mask" inner python stacktraces | 17:15 |
projekt01 | Yes, 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-w | VladDrac: that's exactly where I am too :-) | 17:21 |
j-w | trying to understand how stuff works | 17:21 |
projekt01 | Mee too | 17:21 |
VladDrac | jw if you get stuck, let me know - I might have been there already :) | 17:23 |
VladDrac | (jw and guido, btw) | 17:26 |
guido_g | yep, thanks | 17:26 |
guido_g | btw, I get a traceback when I click on a index in a catalog | 17:27 |
VladDrac | guido yeah | 17:27 |
VladDrac | probably involving string.replace? | 17:27 |
guido_g | see http://rafb.net/paste/results/7hfR5G59.html | 17:28 |
guido_g | yes | 17:28 |
VladDrac | a zope3 bug - I reported it in the tracker | 17:28 |
VladDrac | the fix is to limit the attributes the schemaview should render | 17:29 |
guido_g | ahh... ok, thx | 17:30 |
*** MacDa has left #zope3-dev | 17:31 | |
*** guido_g has quit IRC | 17:32 | |
*** tvon has quit IRC | 17:33 | |
*** BjornT has joined #zope3-dev | 17:34 | |
projekt01 | Are the last changes in i18n:translate="" somewhere documented? | 17:37 |
projekt01 | Whould be nice to have a deprecation warning index and some documentation about a deprecation index number ;-) | 17:38 |
SteveA | like, a bug URL ? | 17:42 |
projekt01 | SteveA, yes, why not. Could ba a link to additional infos on the web, where this changes can be explained or disscussed | 17:48 |
* dagnachew is back | 17:56 | |
*** SteveA is now known as SteveA|afk | 17:57 | |
*** sashav_ has quit IRC | 18:02 | |
tarek | hi all | 18:04 |
tarek | should i use PyTZ (Python Time Zone) to translates datetimes or there's such integrated feature in z3 ? | 18:05 |
*** gintas has joined #zope3-dev | 18:05 | |
regebro | tarek: translate how and to what? | 18:08 |
regebro | There is a timezone implementaion in zope.app.datetimeutils if you wonder. It ain't great, but it's there. | 18:09 |
tarek | i think this module is gone | 18:10 |
tarek | i remember srichter saying it, if i am not mistaken | 18:11 |
tarek | is or *will* | 18:11 |
regebro | will, it's still in the trunk. | 18:13 |
tarek | srichter: ayt ? | 18:13 |
regebro | Problem is that you kinda need to use the same tz implementation as Zope in some cases, so having your own wont help. :-/ | 18:14 |
tarek | no 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 in | 18:15 |
* tarek tries to search irc logs | 18:16 | |
*** guido_g has joined #zope3-dev | 18:16 | |
guido_g | re | 18:16 |
VladDrac | as soon as I have my content implement zope.app.container.interfaces.IContainerNamesContainer, I get (to me) completely unrelated errors | 18:18 |
VladDrac | File "/home/ivo/Work/Zope3/Zope3-svn/src/zope/app/container/contained.py", line 207, in sublocations | 18:18 |
VladDrac | for key in container: | 18:18 |
VladDrac | TypeError: iteration over non-sequence | 18:18 |
guido_g | uhhh... sounds like something I got days ago | 18:19 |
guido_g | do you have an adapter registered for INameChooser and you content type? | 18:20 |
VladDrac | yes | 18:25 |
guido_g | I think the point was: even when the content-type implements INameChooser, you have to have an adapter for it | 18:25 |
guido_g | ah, ok | 18:26 |
VladDrac | well no, it implements IContainerNamesContainer (through a zcml directive) | 18:26 |
VladDrac | which is basically a marker interface | 18:26 |
guido_g | yes | 18:26 |
VladDrac | and it adapts to INameChooser through an adapter | 18:26 |
guido_g | ah, I see | 18:26 |
VladDrac | without IContainerNamesContainer, my chooseName only gets invoked if name is empty | 18:26 |
VladDrac | and things work okay, but I won't be able to 'intercept' non-empty names | 18:27 |
timte | is zope 3 harder to develop with than zope 2 ? | 18:30 |
VladDrac | in theory: no, in practice: yes :( | 18:30 |
VladDrac | but that's the immaturity of both Zope3 and the developers | 18:30 |
guido_g | for me? no, because I don't know much of zope2 | 18:30 |
VladDrac | ok | 18:31 |
VladDrac | I'm giving up on IContainerNamesContainer | 18:31 |
VladDrac | I'll call it an awkward undocumented z3 feature | 18:31 |
*** ignas has joined #zope3-dev | 18:33 | |
*** mgedmin has joined #zope3-dev | 18:35 | |
guido_g | do you use the setitem from zope.app.container.contained? | 18:35 |
guido_g | because this simply returns if the object has a __name__ | 18:36 |
guido_g | ... and the name is in the container | 18:36 |
*** lunatik has joined #zope3-dev | 18:38 | |
*** __gotcha has quit IRC | 18:43 | |
*** gintas has quit IRC | 18:46 | |
*** SureshZ has quit IRC | 19:04 | |
*** lunatik has left #zope3-dev | 19:13 | |
*** j-w has quit IRC | 19:14 | |
*** faassen has quit IRC | 19:24 | |
*** mkerrin has quit IRC | 19:43 | |
*** J1m has joined #zope3-dev | 19:43 | |
*** SteveA|afk is now known as SteveA | 19:51 | |
srichter | zope.app.datetimeutils are deprecated | 19:55 |
srichter | if not officially than at least inofiicially | 19:55 |
srichter | one should use the zope.i18n code instead | 19:56 |
*** guido_g has quit IRC | 20:11 | |
*** Jim7J1AJ1 has joined #zope3-dev | 20:12 | |
*** regebro has quit IRC | 20:12 | |
*** tvon has joined #zope3-dev | 20:14 | |
*** guido_g has joined #zope3-dev | 20:15 | |
guido_g | re | 20:15 |
*** srichter has quit IRC | 20:16 | |
*** Jim7J1AJH has quit IRC | 20:17 | |
philiKON | VladDrac, IContainerNamesCOntainer is not undocumented; i'm fairly certain it's in my book | 20:23 |
VladDrac | phil it's definately documented in your book | 20:23 |
VladDrac | the odd behaviour I'm experiencing, isn't :) | 20:23 |
philiKON | ah, ok | 20:25 |
*** SureshZ has joined #zope3-dev | 20:31 | |
*** mkerrin has joined #zope3-dev | 20:31 | |
*** dagnachew has quit IRC | 20:36 | |
*** gintas has joined #zope3-dev | 20:37 | |
*** bskahan has quit IRC | 20:44 | |
*** srichter has joined #zope3-dev | 20:50 | |
philiKON | J1m, 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 srichter | 20:51 | |
J1m | philiKON, sure | 20:55 |
philiKON | ok. i thought maybe there was a reason for the current impl | 20:55 |
SteveA | or adapt? | 20:55 |
philiKON | adapt would probably be the sanest approach | 20:56 |
philiKON | SteveA, will we see you at EP, btw? | 20:56 |
philiKON | nevermind, i already know you#re coming... | 20:56 |
philiKON | :) | 20:56 |
*** apoirier has quit IRC | 21:13 | |
*** mgedmin has quit IRC | 22:24 | |
*** hazmat has joined #zope3-dev | 23:09 | |
*** ignas has quit IRC | 23:11 | |
*** mkerrin has quit IRC | 23:16 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!