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

2006-09-20 Thread Jonathan
- Original Message - From: FB [EMAIL PROTECTED] To: zope3-users@zope.org 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

[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

[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

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

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

[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 =

[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

[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

[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:

[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.response_headers if version ==