RE: [Zope3-Users] Container Contents View

2006-04-12 Thread David Johnson
Thank you. Exactly what I needed. > -Original Message- > From: Tom Dossis [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 11, 2006 4:46 PM > To: David Johnson > Cc: zope3-users@zope.org > Subject: Re: [Zope3-Users] Container Contents View > > David Johnson wrote: > > This is probably a

Re: [Zope3-Users] maybe a bug in formlib?

2006-04-12 Thread Fred Drake
On 4/12/06, Lorenzo Gil Sanchez <[EMAIL PROTECTED]> wrote: > I'm trying to use formlib and while looking at the source code of this > package for a better understanding I realized that the form.Action class > has two methods with the same name: 'submitted'. You can see it at: ... > Is that ok or is

Re: FW: [Zope3-Users] maybe a bug in formlib?

2006-04-12 Thread Pete Taylor
I noticed the same the other day don't remember if i said anything in IRC about it or not, but i meant to. looks like a bug to me, but i am not (as those who've put up with my PAU confusion can attest) an expert :) > Hi list, > > I'm trying to use formlib and while looking at the source code

[Zope3-Users] request.principal and render/update

2006-04-12 Thread Pete Taylor
Hi all... here goes "yet another PAU email", after a fashion. it's really more a question of design, and "am i thinking about this correctly" than anything else. what follows is wordy and potentially too specific to my own implementation to be reasonably troubleshootable, so feel free to ignore.

[Zope3-Users] Blobs and filestream iterator

2006-04-12 Thread David Pratt
Hi. I had written a repository product in zope2 for blobs. I am looking at bringing this into Z3 at the moment and looking for equivalent for stream iterator of zpublisher. Regards, David ___ Zope3-users mailing list Zope3-users@zope.org http://mail.z

Re: [Zope3-Users] Programatically add plugins to PAU

2006-04-12 Thread Michael Howitz
Florian Lindner wrote: Am Mittwoch, 12. April 2006 08:39 schrieb Michael Howitz: reg = site.UtilityRegistration(name, interface, utility) Thanks for the code. One question: Of what type is site? Sorry i forgot one import: from zope.app.component import site -- Mit freundlichen Grüßen M

[Zope3-Users] Best structure for a large schema

2006-04-12 Thread David Pratt
I realize this question my be a bit off topic but I am trying to determine the best structure for storing a large schema where some attributes are lists or dictionaries. There are about 70 attributes in the schema and I am trying to choose a structure that will not necessarily have to hold a bu

[Zope3-Users] maybe a bug in formlib?

2006-04-12 Thread Lorenzo Gil Sanchez
Hi list, I'm trying to use formlib and while looking at the source code of this package for a better understanding I realized that the form.Action class has two methods with the same name: 'submitted'. You can see it at: http://svn.zope.org/Zope3/trunk/src/zope/formlib/form.py?rev=66255&view=auto

Re: [Zope3-Users] Programatically add plugins to PAU

2006-04-12 Thread Florian Lindner
Am Mittwoch, 12. April 2006 08:39 schrieb Michael Howitz: > Florian Lindner wrote: > > Hello, > > I've a PluggableAuthentication and want to add and register some plugins > > to it. > > > > Adding works fine: > > > > principal_folder = > > zope.app.authentication.principalfolder.PrincipalFolder(pre

Re: [Zope3-Users] Programatically add plugins to PAU

2006-04-12 Thread Florian Lindner
Am Mittwoch, 12. April 2006 08:50 schrieb Stephan Richter: > On Wednesday 12 April 2006 02:39, Michael Howitz wrote: > > This is how we did it in a project: > > createAuthenticationUtils is called on handling the ObjectAddedEvent for > > the folder (which is programmatically made a site) which shou

[Zope3-Users] Re: Programmatically changing GroupInformation.principals

2006-04-12 Thread Andreas Elvers
Thanks Michael, this did the trick. Zope3 stores the current site in a tread-global variable, so if you want to change this context, you have to set a hook like this: try: old_site = zope.app.component.hooks.getSite() zope.app.component.hooks.setSite(root_folder) # do the pau t

Re: [Zope3-Users] Re: Programmatically changing GroupInformation.principals

2006-04-12 Thread Michael Howitz
Andreas Elvers wrote: Hi, I looked a bit deeper and found that zapi.principals().getPrincipal does not know about principals defined in a local site. It will only return principals defined in zcml. zapi.principals().getPrincipal is used in groupfolder.py in line 261 for Zope 3.2.0 and magicall

[Zope3-Users] Re: Programmatically changing GroupInformation.principals

2006-04-12 Thread Andreas Elvers
Hi, I looked a bit deeper and found that zapi.principals().getPrincipal does not know about principals defined in a local site. It will only return principals defined in zcml. zapi.principals().getPrincipal is used in groupfolder.py in line 261 for Zope 3.2.0 and magically finds the right princ

Re: [Zope3-Users] RE: principal folder subclassing

2006-04-12 Thread Pete Taylor
yessir, it was documented well... i was just up too late, and the error was being thrown from a place i didn't expect... i had done my principal info class a few days before, and hadn't used it in a way that would cause that error until then. threw me for a loop, albeit one of my own (flawed) de

Re: [Zope3-Users] ILoginPassword and Unauthorized Exception

2006-04-12 Thread Stephan Richter
On Saturday 01 April 2006 21:02, David Johnson wrote: > I have created and am using a custom ILoginPassword (an updated version of > what's in Phillip's book - cookieauth), and Zope does not seem to raise the > Unauthorized exception for unauthorized users. > > In otherwords, if a user who is not a

Re: [Zope3-Users] wfmc/README.txt ... now what?

2006-04-12 Thread Stephan Richter
On Tuesday 04 April 2006 16:48, Marco Mariani wrote: > Is there some example I could look at to use wfmc "in my forms"? > > The readme is well done and I like the package but ... how am I supposed > to link process contexts to my content objects? He he. I had to read this README.txt at least 3-4 t