Re: [Zope-dev] SVN: zope2book/trunk/ Lot's of updates over the weekend!

2009-02-17 Thread Simon Michael
Tres Seaver wrote:
>>> I think it is too premature to be moving the DTML chapters out of the
>>> book:  if we arent just updating the book to be current with 2.12, then
>>> we probably need to discuss what kind of book we want, before chopping
>>> it apart.

and

> I would rather make the case, explaining the tradeoffs, including the
> fact that the consensus of the community is as you express, but then let
> people make up their own minds.

+1 to both.

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Single Sign On

2009-02-17 Thread Shane Hathaway
Gary Poster wrote:
> Launchpad uses OpenID.  We don't have that slated for abstraction and 
> open-sourcing immediately. However, most of the Launchpad code 
> (including this bit) is to be open-sourced by this summer, abstracted or 
> not.  Therefore, we should at least be able to give you some idea of 
> what we have done before then.
> 
> I've forwarded your email to the primary implementer/designer of our 
> OpenID integration.  Hopefully he can directly participate, or at least 
> give me some answers to forward to you.

Cool, thanks.

> Generally, we're using python-openid for the Zope code, and an Apache 
> plugin as a front-end for hooking up other bits.

In that case, what do you pass to Consumer.begin()?  It expects a user 
URL and no password, yet launchpad.net accepts a user name and password.

Shane

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Single Sign On

2009-02-17 Thread Gary Poster
Hi Shane.

Launchpad uses OpenID.  We don't have that slated for abstraction and  
open-sourcing immediately. However, most of the Launchpad code  
(including this bit) is to be open-sourced by this summer, abstracted  
or not.  Therefore, we should at least be able to give you some idea  
of what we have done before then.

I've forwarded your email to the primary implementer/designer of our  
OpenID integration.  Hopefully he can directly participate, or at  
least give me some answers to forward to you.

Generally, we're using python-openid for the Zope code, and an Apache  
plugin as a front-end for hooking up other bits.

Gary

On Feb 17, 2009, at 7:06 PM, Shane Hathaway wrote:

> I'm working with a customer on a single sign on (SSO) system for Zope.
> We haven't yet chosen which SSO system we want to use.  I would like  
> to
> hear from anyone who has set up SSO with Zope.
>
> We have some definite requirements:
>
> * We can't accept arbitrary identities like OpenID normally does.  We
> need to set up our own identity provider (IDP) and force our servers  
> to
> accept only identities provided by our own IDP.
>
> * The SSO process should be very similar to an ordinary cookie-based
> login process.  I don't want the user to have to enter their  
> username on
> one form and their password on another, but that's the standard OpenID
> process.
>
> * This will be implemented in Zope 3.
>
> We are considering OpenID, Shibboleth, CAS, and any other mature  
> system
> that others might suggest.  Shibboleth seems like the most obvious  
> fit,
> but it's nowhere near as popular as OpenID.  I haven't yet looked at  
> CAS
> in detail.
>
> Alternatively, I have wondered if we actually need full-blown SSO;
> perhaps a carefully constructed domain-wide cookie would do the trick.
> Any experiences with that?
>
> Thanks to anyone who participates.
>
> Shane
> ___
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://mail.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope )

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Single Sign On

2009-02-17 Thread Shane Hathaway
I'm working with a customer on a single sign on (SSO) system for Zope. 
We haven't yet chosen which SSO system we want to use.  I would like to 
hear from anyone who has set up SSO with Zope.

We have some definite requirements:

* We can't accept arbitrary identities like OpenID normally does.  We 
need to set up our own identity provider (IDP) and force our servers to 
accept only identities provided by our own IDP.

* The SSO process should be very similar to an ordinary cookie-based 
login process.  I don't want the user to have to enter their username on 
one form and their password on another, but that's the standard OpenID 
process.

* This will be implemented in Zope 3.

We are considering OpenID, Shibboleth, CAS, and any other mature system 
that others might suggest.  Shibboleth seems like the most obvious fit, 
but it's nowhere near as popular as OpenID.  I haven't yet looked at CAS 
in detail.

Alternatively, I have wondered if we actually need full-blown SSO; 
perhaps a carefully constructed domain-wide cookie would do the trick. 
Any experiences with that?

Thanks to anyone who participates.

Shane
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] SVN: zope2book/trunk/ Lot's of updates over the weekend!

2009-02-17 Thread Stephan Richter
On Tuesday 17 February 2009, Wichert Akkerman wrote:
> > You need to generate CSS when you want to use absolute paths for
> > images referred to in your CSS. This can easily be done with ZPT:
>
> Very often you don't need to do that though, and it actively breaks the
> ability to do prototyping with your html and css outside of the
> application.

You could also port z3c.zrtresource to Zope 2, which solves this exact 
problem.

Regards,
Stephan
-- 
Stephan Richter
Web Software Design, Development and Training
Google me. "Zope Stephan Richter"
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Zope Tests: 7 OK, 1 Failed

2009-02-17 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Mon Feb 16 12:00:00 2009 UTC to Tue Feb 17 12:00:00 2009 UTC.
There were 8 messages: 8 from Zope Tests.


Test failures
-

Subject: FAILED (failures=1) : Zope-trunk-alltests Python-2.5.4 : Linux
From: Zope Tests
Date: Mon Feb 16 20:57:28 EST 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-February/011128.html


Tests passed OK
---

Subject: OK : Zope-2.8 Python-2.3.7 : Linux
From: Zope Tests
Date: Mon Feb 16 20:43:25 EST 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-February/011121.html

Subject: OK : Zope-2.9 Python-2.4.6 : Linux
From: Zope Tests
Date: Mon Feb 16 20:45:26 EST 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-February/011122.html

Subject: OK : Zope-2.10 Python-2.4.6 : Linux
From: Zope Tests
Date: Mon Feb 16 20:47:26 EST 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-February/011123.html

Subject: OK : Zope-2.11 Python-2.4.6 : Linux
From: Zope Tests
Date: Mon Feb 16 20:49:26 EST 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-February/011124.html

Subject: OK : Zope-trunk Python-2.4.6 : Linux
From: Zope Tests
Date: Mon Feb 16 20:51:27 EST 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-February/011125.html

Subject: OK : Zope-trunk Python-2.5.4 : Linux
From: Zope Tests
Date: Mon Feb 16 20:53:28 EST 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-February/011126.html

Subject: OK : Zope-trunk-alltests Python-2.4.6 : Linux
From: Zope Tests
Date: Mon Feb 16 20:55:28 EST 2009
URL: http://mail.zope.org/pipermail/zope-tests/2009-February/011127.html

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] SVN: zope2book/trunk/ Lot's of updates over the weekend!

2009-02-17 Thread Wichert Akkerman
Previously Martijn Pieters wrote:
> On Tue, Feb 17, 2009 at 12:08, Tino Wildenhain  wrote:
> > You should really not generate CSS ;) And JS is best generated with
> > Jason :-)
> 
> You need to generate CSS when you want to use absolute paths for
> images referred to in your CSS. This can easily be done with ZPT:

Very often you don't need to do that though, and it actively breaks the
ability to do prototyping with your html and css outside of the
application.

Wichert.

-- 
Wichert Akkerman It is simple to make things.
http://www.wiggy.net/   It is hard to make things simple.
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] SVN: zope2book/trunk/ Lot's of updates over the weekend!

2009-02-17 Thread Martijn Pieters
On Tue, Feb 17, 2009 at 12:08, Tino Wildenhain  wrote:
> You should really not generate CSS ;) And JS is best generated with
> Jason :-)

You need to generate CSS when you want to use absolute paths for
images referred to in your CSS. This can easily be done with ZPT:



The above code snippet is taken from a current project; the portal_url
dance is there because this is a browser:resource template and such a
template only has access to the request, not a context.

We also generate some JS to provide client-side code with translated
labels. Alternatively you can do this with hidden elements in your
main template as well, but the generated JS way was more maintainable
as this keeps the labels and the code close together.

-- 
Martijn Pieters
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] SVN: zope2book/trunk/ Lot's of updates over the weekend!

2009-02-17 Thread Tino Wildenhain

Dieter Maurer wrote:

Tres Seaver wrote at 2009-2-15 10:45 -0500:

...
At the moment, the book is largely a guide to what can be done with Zope
TTW.  DTML is still part of that store: it isn't gone, nor even
deprecated:  its just that most core developers prefer not to use it in
most cases.  Note that there is still no replacement for DTML for at
least one major TTW use case (SQL methods).


In addition, CSS and Javascript is easier generated with DTML than
with page templates.


You should really not generate CSS ;) And JS is best generated with
Jason :-)

Regards
Tino


smime.p7s
Description: S/MIME Cryptographic Signature
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )