Re: [Zope3-Users] Best way to add a Principal to PAU

2006-02-07 Thread Rupert Redington
Florian Lindner wrote:
 Am Sonntag, 5. Februar 2006 22:37 schrieb Stephan Richter:
 On Sunday 05 February 2006 12:34, Florian Lindner wrote:
 I've managed to add a principal to a principal folder inside a PAU:

   pau = getUtility(IAuthentication)
   pfolder = pau.keys()[0]
   principal = InternalPrincipal(def, pwd123,a title, a
 description) pfolder[def] = principal

 but I doubt that the most elegant way. How can I achieve do it more or
 less agnostic form the principal source (or a least from the name and
 ordinal postion inside PAU)?
 Basically, your application should know the location of the Authentication
 Utility and the name of the principal folder. Also note that the principal
 class is principal folder specific.
 
 Ok, so the way above is the way to go?
 
 Why is the principal class folder specific?
 
 BTW: Why does z.a.authentication.principalfolder.InternalPrincipal does not 
 implement z.security.interfaces.IPrincipal? Or let 
 z.a.authentication.principalfolder.IInternalPrincipal derive from IPrincipal?
 
 Florian
 ___
 Zope3-users mailing list
 Zope3-users@zope.org
 http://mail.zope.org/mailman/listinfo/zope3-users

This:

from zope.interface import directlyProvides

pau = getUtility(IAuthentication)

for plugin in pau.authenticatorPlugins:
if directlyProvides(plugin, IMyMarkerInterface):
pfolder = plugin

Seems to me to avoid embarrassment when there are two authenticators in
the stack in pau and you can't guarantee the position of the one you want.

I think...

Rupert

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


[Zope3-Users] Re: Zope 3 Marketing Competition? (was Re: [Zope3-dev] Re: Selecting a code name)

2006-02-07 Thread Stephan Richter
On Monday 06 February 2006 20:49, Gary Poster wrote:
 How about we have a marketing competition? :-)

+1 from me plus everything else you said below.

Regards,
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: Zope 3 Marketing Competition? (was Re: [Zope3-dev] Re: Selecting a code name)

2006-02-07 Thread Paul Everitt

Stephan Richter wrote:

On Monday 06 February 2006 20:49, Gary Poster wrote:

How about we have a marketing competition? :-)


+1 from me plus everything else you said below.


Yep, it's a good idea.

--Paul

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


Re: [Zope3-Users] Best way to add a Principal to PAU

2006-02-07 Thread Stephan Richter
On Monday 06 February 2006 15:02, Florian Lindner wrote:
 Ok, so the way above is the way to go?

Almost, except that you do not want to rely on position as you do when getting 
the pfolder name.

 Why is the principal class folder specific?

Because principals from LDAP or SQL might not have this type of information.

 BTW: Why does z.a.authentication.principalfolder.InternalPrincipal does not
 implement z.security.interfaces.IPrincipal? Or let
 z.a.authentication.principalfolder.IInternalPrincipal derive from
 IPrincipal?

Because InternalPrincipal is not a principal, but just the information to 
create one. Probably a better name for InternalPrincipal would be 
PrincipalInfo.

BTW, you should really read the README.txt file carefully again, especially 
where it talks about principal creation at authentication time.

Regards,
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


Re: [Zope3-Users] Re: Zope 3 Marketing Competition? (was Re: [Zope3-dev] Re: Selecting a code name)

2006-02-07 Thread Adam Summers
Despite my silence, I have been watching this with interest - I think 
its a great way to get moving. +2 for me :)


Regards,
Adam

Paul Everitt wrote:

Stephan Richter wrote:

On Monday 06 February 2006 20:49, Gary Poster wrote:

How about we have a marketing competition? :-)


+1 from me plus everything else you said below.


Yep, it's a good idea.

--Paul

___
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] Selecting a code name

2006-02-07 Thread Martijn Faassen

Hi there,

Just to drop a note that I think a discussion about a potential brand 
name for Zope 3 is far less important than actually fixing our website 
and presenting Zope 3 (and Zope 2 for that matter) in a better way.


Perhaps we can better redirect our energies to that than to have long 
(but easy, as everybody can say something without having to do anything) 
discussions about something that in the end isn't going to matter that 
much.


Zope 3 already has a recognized brand as a rewrite of Zope 2 in the 
community - let's go with that.


A brandname won't help us a bit if we don't do anything with it to 
present it properly, so the website is primary again there too. If we 
suddenly all start to talk about Zope 3 Odyssey without updating our 
website I fear we'll end up looking like flailing around wildly to keep 
up instead, and confusing people more.


If we do manage to build a new website and are a good way done with it, 
*then* is the time to discuss possible branding options.


Regards,

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


Re: [Zope3-Users] Zope 3 Marketing Competition? (was Re: [Zope3-dev] Re: Selecting a code name)

2006-02-07 Thread Max M

Martijn Faassen wrote:

Alternatively, we could use our energy to actually work together on a 
new website instead of competing. There's a zope-web mailing list, 
after all, so go and talk there. This would have my preference.




If you want to fix the Zope 2 website at the same time as branding Zope 
3, I fear it is a monumental task that will never happen.


The Zope 2 website is so big, and has so much content that it should 
have somebody working on it full time if it needs changing.


Perhaps this monumental approach to a zope site is wrong. Microsites 
with well defined boundaries, that a few or a single person could be 
responsible for might be a better approach.


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science


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


[Zope3-Users] Stylesheet caching

2006-02-07 Thread Graham Stratton

Is there any way to prevent zope3 caching stylesheets?
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Re: Stylesheet caching

2006-02-07 Thread Stephan Richter
On Tuesday 07 February 2006 08:15, Tonico Strasser wrote:
 Stephan Richter wrote:
  On Tuesday 07 February 2006 07:29, Graham Stratton wrote:
  Is there any way to prevent zope3 caching stylesheets?
 
  Zope 3 is not caching them. It reads them from the filesystem, if they
  changed. It is your browser that is caching them.

 Does something like a HTTPCacheManager in Zope 2 exist in Zope 3?

 In Zope 2 this is one important key for fast loading Web pages.

No, not yet. I think companies use other strategies, such as squid.

Regards,
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


Re: [Zope3-Users] Stylesheet caching

2006-02-07 Thread Stephan Richter
On Tuesday 07 February 2006 08:34, Graham Stratton wrote:
 Very strange.  If I modify the stylesheet, then in firefox I don't get
 the updated version, even if I request the stylesheet directly and then
 press refresh.  It says it's fetching from the server, but I get the old
 version again.  As soon as I restart zope3, refreshing gives me the
 updated stylesheet.

Press Ctrl+Shift+R to force a true reload. Turn off all caching too.

Regards,
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


Re: [Zope3-Users] Zope 3 Marketing Competition? (was Re: [Zope3-dev] Re: Selecting a code name)

2006-02-07 Thread Martijn Faassen

Tarek Ziadé wrote:

Martijn Faassen wrote:


Yes. Rest assured my ambition is to keep ambitions as low as possible. 
:) Otherwise nothing will happen.



The front page of Zope.org doesn't show the activity around Z3 at all. 
That wouln't cost anything to start to add a few z3 links in Zope Exits 
for example.

(beside the point to have a marco/micro approach)


Good point. I'm not a maintainer of the current zope.org so this 
suggestion will have to be made to someone who can change things. I'm 
sure someone is listening on the zope-web mailing list who can?


Regards,

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