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

2006-09-22 Thread FB
Hi,

On Wed, Sep 20, 2006 at 03:49:07PM +0200, 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.
> 
> 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?

Thanks for all the tips.

I'm going to implement an alternative IPublishTraverse adapter.
Using apache might be an option but I'm writing an application
which should depend on as few other applications as possible
which is why I'd like not to use apache if I don't have to.

Regards,

Frank
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Logout

2006-09-22 Thread FB
Hi,

On Thu, Sep 21, 2006 at 07:25:06AM -0500, David Johnson wrote:
> Does anyone know how to logout? We've been using logout.html as the logout
> page for Zope Realm Basic Auth, and it does not seem to log us out.  We're
> using IE 6. 

It's not possible to log out when Basic Auth is used (except if you want
your users to install a fancy browser extension like Webdeveloper for
Firefox). Use a different auth method (=PAU credential plugin) like
cookie-base-auth.

Regards,

Frank
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


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

2006-09-22 Thread Stephan Richter
On Friday 22 September 2006 03:22, FB 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?
>
> Thanks for all the tips.
>
> I'm going to implement an alternative IPublishTraverse adapter.
> Using apache might be an option but I'm writing an application
> which should depend on as few other applications as possible
> which is why I'd like not to use apache if I don't have to.

Have a look at z3c.traverser. You will love it. :-) Your use case will become 
easy to implement.

Regrads,
Stephan

-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


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

2006-09-22 Thread Philipp von Weitershausen
Looks better now. I suggest filing a collector issue and attaching the 
patch. Somebody knowledgeable can then look at it.


Simon Hang wrote:

Philipp,
Sorry for being lazy, and thanks for the tips.  Here is my update version.
--- httptask.py.origFri Jan 06 02:15:48 2006
+++ httptask.py Fri Sep 22 09:13:48 2006
@@ -126,6 +126,11 @@
 else:
 close_it = 1
 elif version == '1.1':
+#modified by Simon
+if 'connection: close' in (header.lower() for header in
+self.accumulated_headers):
+#Close if 'connection: close' found in http response's 
header

+close_it = 1
 if connection == 'close':
 close_it = 1
 elif 'Transfer-Encoding' in response_headers:
@@ -134,8 +139,13 @@
 elif self.status == '304':
 # Replying with headers only.
 pass
+#modified by simon
 elif not ('Content-Length' in response_headers):
-close_it = 1
+if 'content-length' not in (header[:14].lower() for 
header in

+self.accumulated_headers):
+#Close if 'content-length' not found in
+#http response's header and self.response_headers
+close_it = 1
 else:
 # Close if unrecognized HTTP version.
 close_it = 1


___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Logout

2006-09-22 Thread Florian Lindner
Am Freitag, 22. September 2006 09:42 schrieb FB:
> Hi,
>
> On Thu, Sep 21, 2006 at 07:25:06AM -0500, David Johnson wrote:
> > Does anyone know how to logout? We've been using logout.html as the
> > logout page for Zope Realm Basic Auth, and it does not seem to log us
> > out.  We're using IE 6.
>
> It's not possible to log out when Basic Auth is used (except if you want
> your users to install a fancy browser extension like Webdeveloper for
> Firefox). 

I don't think that's right for the trunk. This feature was checked in lately:

Log message for revision 69975:
  Fix issue 239. Logout feature for Basic HTTP auth.

However I haven't tried it.

Regards,

Florian

> Use a different auth method (=PAU credential plugin) like 
> cookie-base-auth.
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Are there some French Zope user here ? If the number of french user is important, I propose the creation of zope-french-user and zope3-french-user mailing list

2006-09-22 Thread KLEIN Stéphane

Are there some French Zope user here ?

If the number of french user is important, I propose the creation of
zope-french-user and zope3-french-user mailing list.

What do you think about this idea ?

Regards,
Stephane
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Logout

2006-09-22 Thread Lennart Regebro

On 9/22/06, Florian Lindner <[EMAIL PROTECTED]> wrote:

  Fix issue 239. Logout feature for Basic HTTP auth.


Basic HTTP auth has no logout. All you can do is open a page which you
are not allowed to access. The browser should then drop the
login/password, however, IE doesn't.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Are there some French Zope user here ?

2006-09-22 Thread Thierry Florac
Le vendredi 22 septembre 2006 à 11:29 +0200, KLEIN Stéphane a écrit :
> Are there some French Zope user here ?
> 
> If the number of french user is important, I propose the creation of
> zope-french-user and zope3-french-user mailing list.
> 
> What do you think about this idea ?
> 
> Regards,
> Stephane


  Hi,

I'm here :-) 
+1

  Thierry Florac
-- 
  Chef de projet intranet/internet
  Office National des Forêts - Département Informatique
  2, Avenue de Saint-Mandé
  75570 PARIS Cedex 12
  Mél : [EMAIL PROTECTED]
  Tél. : +33 01.40.19.59.64
  Fax. : +33 01.40.19.59.85

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Are there some French Zope user here ? If the number of french user is important, I propose the creation of zope-french-user and zope3-french-user mailing list

2006-09-22 Thread Reinoud van Leeuwen
On Fri, Sep 22, 2006 at 11:29:12AM +0200, KLEIN St?phane wrote:
> Are there some French Zope user here ?
> 
> If the number of french user is important, I propose the creation of
> zope-french-user and zope3-french-user mailing list.
> 
> What do you think about this idea ?

Although French users might prefer to use their native language (which is 
a problem for me too sometimes ";-), I really prefer to keep everything on 
one list rather then to spread knowledge over multiple lists 

so a -1 for me.

-- 
__
"Nothing is as subjective as reality"
Reinoud van Leeuwen[EMAIL PROTECTED]
http://www.xs4all.nl/~reinoud
__
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Are there some French Zope user here ?

2006-09-22 Thread Encolpe Degoute
Thierry Florac a écrit :
> Le vendredi 22 septembre 2006 à 11:29 +0200, KLEIN Stéphane a écrit :
>> Are there some French Zope user here ?
>>
>> If the number of french user is important, I propose the creation of
>> zope-french-user and zope3-french-user mailing list.
>>
>> What do you think about this idea ?
>
>   Hi,
> 
> I'm here :-) 
> +1

There yet the http://afpy.org mailing lists and forums on Zope.
They can open a Zope3 space if you want, but don't create an other list
please.

Regards,
-- 
Encolpe Degoute
INGENIWEB (TM) - S.A.S 5 Euros - RC B 438 725 632
17 rue Louise Michel - 92300 Levallois Perret - France
web : www.ingeniweb.com - « les Services Web Ingénieux »
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Are there some French Zope user here ?

2006-09-22 Thread Thierry Florac
Le vendredi 22 septembre 2006 à 14:55 +0200, Encolpe Degoute a écrit :
> Thierry Florac a écrit :
> > Le vendredi 22 septembre 2006 à 11:29 +0200, KLEIN Stéphane a écrit :
> >> Are there some French Zope user here ?
> >>
> >> If the number of french user is important, I propose the creation of
> >> zope-french-user and zope3-french-user mailing list.
> >>
> >> What do you think about this idea ?
> >
> >   Hi,
> > 
> > I'm here :-) 
> > +1
> 
> There yet the http://afpy.org mailing lists and forums on Zope.
> They can open a Zope3 space if you want, but don't create an other list
> please.

Right ! Correct !!  Mea culpa !!!
-10 for me :-(
(But in fact I hope to be excused as I don't use these lists... even if
I don't know why...)

  Thierry Florac
-- 
  Chef de projet intranet/internet
  Office National des Forêts - Département Informatique
  2, Avenue de Saint-Mandé
  75570 PARIS Cedex 12
  Mél : [EMAIL PROTECTED]
  Tél. : +33 01.40.19.59.64
  Fax. : +33 01.40.19.59.85

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re : [Zope3-Users] Are there some French Zope user here ?

2006-09-22 Thread Stéphane Brault
I'm here to, ;-)
 +1
 
 Stéphane Brault

- Message d'origine 
De : Thierry Florac <[EMAIL PROTECTED]>
À : KLEIN Stéphane <[EMAIL PROTECTED]>
Cc : zope3-users@zope.org
Envoyé le : Vendredi, 22 Septembre 2006, 2h29mn 06s
Objet : Re: [Zope3-Users] Are there some French Zope user here ?

Le vendredi 22 septembre 2006 à 11:29 +0200, KLEIN Stéphane a écrit :
> Are there some French Zope user here ?
> 
> If the number of french user is important, I propose the creation of
> zope-french-user and zope3-french-user mailing list.
> 
> What do you think about this idea ?
> 
> Regards,
> Stephane


  Hi,

I'm here :-) 
+1

  Thierry Florac
-- 
  Chef de projet intranet/internet
  Office National des Forêts - Département Informatique
  2, Avenue de Saint-Mandé
  75570 PARIS Cedex 12
  Mél : [EMAIL PROTECTED]
  Tél. : +33 01.40.19.59.64
  Fax. : +33 01.40.19.59.85

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users



___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Re: Are there some French Zope user here ?

2006-09-22 Thread Philipp von Weitershausen

Encolpe Degoute wrote:

Thierry Florac a écrit :

Le vendredi 22 septembre 2006 à 11:29 +0200, KLEIN Stéphane a écrit :

Are there some French Zope user here ?

If the number of french user is important, I propose the creation of
zope-french-user and zope3-french-user mailing list.

What do you think about this idea ?

  Hi,

I'm here :-) 
+1


There yet the http://afpy.org mailing lists and forums on Zope.
They can open a Zope3 space if you want, but don't create an other list
please.


+1 to localized list being the responsibility of the local user groups. 
DZUG, for example, maintains a German Zope mailing list. So, I think 
that afpy would be the logical place for French speaking lists.


___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Are there some French Zope user here ? If the number of french user is important, I propose the creation of zope-french-user and zope3-french-user mailing list

2006-09-22 Thread KLEIN Stéphane

2006/9/22, Reinoud van Leeuwen <[EMAIL PROTECTED]>:

On Fri, Sep 22, 2006 at 11:29:12AM +0200, KLEIN St?phane wrote:
> Are there some French Zope user here ?
>
> If the number of french user is important, I propose the creation of
> zope-french-user and zope3-french-user mailing list.
>
> What do you think about this idea ?

Although French users might prefer to use their native language (which is
a problem for me too sometimes ";-), I really prefer to keep everything on
one list rather then to spread knowledge over multiple lists

so a -1 for me.


Ok, then only zope-french-user list ?
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Are there some French Zope user here ?

2006-09-22 Thread KLEIN Stéphane

2006/9/22, Encolpe Degoute <[EMAIL PROTECTED]>:


There yet the http://afpy.org mailing lists and forums on Zope.
They can open a Zope3 space if you want, but don't create an other list
please.


Yes, I agree with you, but :
* I prefer mailing than forum
* [EMAIL PROTECTED] is more official than afpy.org domain
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Re: Are there some French Zope user here ?

2006-09-22 Thread Tarek Ziadé
Philipp von Weitershausen wrote:
> Encolpe Degoute wrote:
>> Thierry Florac a écrit :
>>> Le vendredi 22 septembre 2006 à 11:29 +0200, KLEIN Stéphane a écrit :
 Are there some French Zope user here ?

 If the number of french user is important, I propose the creation of
 zope-french-user and zope3-french-user mailing list.

 What do you think about this idea ?
>>>   Hi,
>>>
>>> I'm here :-) +1
>>
>> There yet the http://afpy.org mailing lists and forums on Zope.
>> They can open a Zope3 space if you want, but don't create an other list
>> please.
>
> +1 to localized list being the responsibility of the local user
> groups. DZUG, for example, maintains a German Zope mailing list. So, I
> think that afpy would be the logical place for French speaking lists.
>
No problemo, we can handle that list here at afpy.

+10 for localisation, i think it's a good thing because it can attract
some people that are not so used to english (there are some, even though
it's hard for them :) )

Cheers,

Tarek



> ___
> Zope3-users mailing list
> Zope3-users@zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Are there some French Zope user here ?

2006-09-22 Thread Tarek Ziadé
KLEIN Stéphane wrote:
> 2006/9/22, Encolpe Degoute <[EMAIL PROTECTED]>:
>
>> There yet the http://afpy.org mailing lists and forums on Zope.
>> They can open a Zope3 space if you want, but don't create an other list
>> please.
>
> Yes, I agree with you, but :
> * I prefer mailing than forum
> * [EMAIL PROTECTED] is more official than afpy.org domain
oh well whatever name it has / domain it's under :)

though, at afpy we are developing a tool that gathers forums and mailing
list (a mailman enhanced web UI front end for the web site)
so people can use both way,  so +1 for a ML within afpy

Tarek
> ___
> Zope3-users mailing list
> Zope3-users@zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] When I modify one class in my source code, I need always to restart zope server ?

2006-09-22 Thread KLEIN Stéphane

Hi,

When I modify one class in my source code, I need always to restart
zope server ? I can't tell Zope to reload one class only ?

Regards,
Stephane
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Re: When I modify one class in my source code, I need always to restart zope server ?

2006-09-22 Thread Philipp von Weitershausen

KLEIN Stéphane wrote:

When I modify one class in my source code, I need always to restart
zope server ? I can't tell Zope to reload one class only ?


Nope.

And to answer some of your follow-up questions:

* No, this probably isn't going to be implemented (it's very much 
non-trivial)


* Yes, you have to restart the server, though we recommend writing unit 
tests that take a lot less time than [re]starting Zope)


* No, you don't have to restart for changes in resources or Page Templates.

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Re: When I modify one class in my source code, I need always to restart zope server ?

2006-09-22 Thread Warren Turkal
On Friday 22 September 2006 17:44, Philipp von Weitershausen wrote:
> Nope.
>
> And to answer some of your follow-up questions:
>
> * No, this probably isn't going to be implemented (it's very much
> non-trivial)
>
> * Yes, you have to restart the server, though we recommend writing unit
> tests that take a lot less time than [re]starting Zope)
>
> * No, you don't have to restart for changes in resources or Page Templates.

Why aren't these in a FAQ off the Zope3 page if they are common enough to 
respond like that?

wt
-- 
Warren Turkal (w00t)
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Re: When I modify one class in my source code, I need always to restart zope server ?

2006-09-22 Thread Baiju M

On 9/23/06, Warren Turkal <[EMAIL PROTECTED]> wrote:

On Friday 22 September 2006 17:44, Philipp von Weitershausen wrote:
> Nope.
>
> And to answer some of your follow-up questions:
>
> * No, this probably isn't going to be implemented (it's very much
> non-trivial)
>
> * Yes, you have to restart the server, though we recommend writing unit
> tests that take a lot less time than [re]starting Zope)
>
> * No, you don't have to restart for changes in resources or Page Templates.

Why aren't these in a FAQ off the Zope3 page if they are common enough to
respond like that?


Please add this to FAQ :)
Here is the link : http://kpug.zwiki.org/Zope3Faq

Thanks,
Baiju M
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Re: When I modify one class in my source code, I need always to restart zope server ?

2006-09-22 Thread Darryl Cousins
I was just doing that. Done.

Thanks to the Kerala connection.  ;-)

Regards,
Darryl

> > Why aren't these in a FAQ off the Zope3 page if they are common enough to
> > respond like that?
> 
> Please add this to FAQ :)
> Here is the link : http://kpug.zwiki.org/Zope3Faq
> 
> Thanks,
> Baiju M
> ___
> Zope3-users mailing list
> Zope3-users@zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users