Re: [Zope3-Users] Re: Conflicting configuration actions for protectName __setitem__

2006-09-20 Thread Martijn Pieters
On 9/20/06, Rob Campbell <[EMAIL PROTECTED]> wrote: In zcml I have require subdirectives for FosterRecord. They set permissions for zope.app.container.interfaces.IReadContainer/IWriteContainer and IFosterRecord, along with set_schema for IFosterRecord. I started getting the errors when I added

[Zope3-Users] Re: Is this a bug of HTTP response's head handling? (publisherhttpserver.py)

2006-09-20 Thread Simon Hang
How about below changes?   in httptask.py     def prepareResponseHeaders(self):    version = self.version    # Figure out whether the connection should be closed.    connection = self.request_data.headers.get('CONNECTION', '').lower()     close_it = 0    response_headers = self

[Zope3-Users] Re: new install, missing meta.zcml files

2006-09-20 Thread Philipp von Weitershausen
Kent Tenney wrote: Howdy, I'm using Z3 from svn, W2K. Which branch? Which revision? This info is useless like that. - run mkzopeinstance - run instance\bin\runzope It fails with; IOError: [Errno 2] No such file or directory: 'C:\\Python24\\Lib\\site-packages\\zope3\\src\\zope\\app\\mail\\m

[Zope3-Users] Re: Conflicting configuration actions for protectName __setitem__

2006-09-20 Thread Rob Campbell
Philipp von Weitershausen wrote: Rob Campbell wrote: Ok, that's what I thought. How can I fix the problem? What problem? (Yeah, I know, I could read your original post now but I think you'll be able to figure it out by youself now. You'll just have to work with the fact that contains() add

[Zope3-Users] Re: Conflicting configuration actions for protectName __setitem__

2006-09-20 Thread Philipp von Weitershausen
Rob Campbell wrote: Ok, that's what I thought. How can I fix the problem? What problem? (Yeah, I know, I could read your original post now but I think you'll be able to figure it out by youself now. You'll just have to work with the fact that contains() adds a __setitem__ declaration to you

[Zope3-Users] Re: Conflicting configuration actions for protectName __setitem__

2006-09-20 Thread Rob Campbell
Ok, that's what I thought. How can I fix the problem? I think I can create an IFosterSourceContainer interface and have the constraint there. Then I would have to implement that interface for FosterRecord. Would that work? Also, is there any other/better way to do it? -- Rob Campbell Phi

[Zope3-Users] Re: Conflicting configuration actions for protectName __setitem__

2006-09-20 Thread Philipp von Weitershausen
Rob Campbell wrote: Hi Darryl, That is how I had the IFosterRecord interface before, and I got a lot more errors than just __setitem__. I am only getting the __setitem__ error now, after changing it to something like: class IFosterRecord(Interface): contains('.IFosterSource') title =

Re: [Zope3-Users] Conflicting configuration actions for protectName __setitem__

2006-09-20 Thread Rob Campbell
Hi Darryl, That is how I had the IFosterRecord interface before, and I got a lot more errors than just __setitem__. I am only getting the __setitem__ error now, after changing it to something like: class IFosterRecord(Interface): contains('.IFosterSource') title = TextLine(...) and th

Re: [Zope3-Users] Zope3 PDF Searching and Indexing HOWTO

2006-09-20 Thread Sreeram Raghav
Hi all, I was wondering if there was a way to use a keyword index with zope.app, what I mean is that if there is a way to use a keyword index just as a text index, like if i can add a keyword through the ZMI under the catalog's add menu Thanks -- Sreeram Nudurupati __

RE: [Zope3-Users] assigning roles to principals onAuthenticatedPrincipalCreated event

2006-09-20 Thread Mats Nordgren
As I understand a principal is created and destroyed with each request. This would make your application set the permission at each request which might not be exactly what you had in mind. I use a group folder from pau and set the group with a subscriber when the site object is created. def Sit

[Zope3-Users] new install, missing meta.zcml files

2006-09-20 Thread Kent Tenney
Howdy, I'm using Z3 from svn, W2K. - run mkzopeinstance - run instance\bin\runzope It fails with; IOError: [Errno 2] No such file or directory: 'C:\\Python24\\Lib\\site-packages\\zope3\\src\\zope\\app\\mail\\meta.zcml' ..\instance\etc\package-includes seems to contain a number of *-meta.zcml

[Zope3-Users] Re: Adding another "special" traversal component type

2006-09-20 Thread Philipp von Weitershausen
FB wrote: Hi, I'd like to make URLs like http://servername/~username possible on my Zope3 server which should instantly redirect a visitor to one of my site user's home pages. Like Jonathan suggests, this smells like you want an Apache rewrite rule. Is this possible? Of course, the answer

[Zope3-Users] assigning roles to principals on AuthenticatedPrincipalCreated event

2006-09-20 Thread Hassan Alirezaei
Hello zope3-users, I am trying to do make easy user registrations for my website. but I am having problems assigning roles to the principals automatically. the question is WHEN should I assign these roles to the new principals? which is the standard procedure? right now I am doing : 1. User a

Re: [Zope3-Users] Adding another "special" traversal component type

2006-09-20 Thread Jonathan
- Original Message - From: "FB" <[EMAIL PROTECTED]> To: Sent: Wednesday, September 20, 2006 9:49 AM Subject: [Zope3-Users] Adding another "special" traversal component type Hi, I'd like to make URLs like http://servername/~username possible on my Zope3 server which should instant

Re: [Zope3-Users] Adding another "special" traversal component type

2006-09-20 Thread Fred Drake
On 9/20/06, FB <[EMAIL PROTECTED]> wrote: Is this possible? Of course, the answer ist yes (by patching zope.traversing.adapters.traversePathElement) - but is there a more Zope3ish way to do that? You could create a new traverser that deals with ~username names, and register that instead of the

[Zope3-Users] Adding another "special" traversal component type

2006-09-20 Thread FB
Hi, I'd like to make URLs like http://servername/~username possible on my Zope3 server which should instantly redirect a visitor to one of my site user's home pages. Is this possible? Of course, the answer ist yes (by patching zope.traversing.adapters.traversePathElement) - but is there a more

[Zope3-Users] Zope Guide book update 4

2006-09-20 Thread Baiju M
Hi all, Ref: http://kpug.zwiki.org/ZopeGuide The major changes in last few days: - Title changed to "Zope Guide" from "Zope 3 Distilled" - The content split to many pages - Unit testing chapter started Please continue editing. If you have contributed, please add your name here: http://kpu