Re: [Zope3-Users] Still trying to figure out PAU

2006-02-04 Thread Florian Lindner
Am Freitag, 3. Februar 2006 17:11 schrieb Rupert Redington:
 Florian Lindner wrote:
  Am Freitag, 3. Februar 2006 04:07 schrieb Gary Poster:
  On Feb 2, 2006, at 4:41 PM, Florian Lindner wrote:
  Hello,
  I'm still desperately trying to figure out the
  PluggableAuthentication.
 
  Since no one has replied, I'll try my 30-second remediation
  technique again. ;-)  That means I didn't really follow exactly what
  you are doing, and I'm just trying for low-hanging fruit to help
  you. :-)
 
  :-)
  :
  I perform the following steps:
 
  1) Create an instance of my folderish, possible site (named A),
  content
  object.
 
  2) I create a site in it.
 
  3) I add a PAU in the default software space
 
  4) I add a SessionCredentialsPlugin and a PrincipalFolder as plugins.
 
  5) I create a internal principal with Title =
  zope.Manager (tried also
  other ones). name = abc
 
  6) In the SessionCredentialsPlugin I leave to loginForm.html. I've a
  loginForm.html view in my A-object)
 
  7) I register all components (SessionCreadentiasPlugin,
  PrincipalFolder and
  PAU)
 
  So that means that http://127.0.0.1:8080/++etc++site/default/test.pau/
  @@configure.html (or similar) has one credentials plugin in the right
  column (Session Credentials (a utility)) and one authenticator
  plugin in the right column (PrincipalFolder (a utility) or
  something like that).  Right?
 
  If not, make it so.  :-)
 
  It was already like that, forgot to mention it.
 
  If that doesn't work, try making the right column of the Credentials
  Plugins field be No Challenge if Authenticated (a utility) first
  and then Session Credentials (a utility) second.  That's probably
  what you want anyway.
 
  Changed it a bit.
 
  I'm not redirected to the loginForm.html but a Not authorized page.
  Anything else is the same. I wonder why I'm not authorized, because in
  the authenticateCredentials() function the internal.title returns:
 
  (Pdb) internal.title
  u'zope.Manager'
 
  Which should be authorized for anything.
 
  Hope you can hang the fruits a few centimeter lower...  ,-)

 If this fruit is low enough for me I'll be very surprised, and you've
 probably done this already, but:

 Does the Principal you've added to your PAU authentication plugin have a
 grant on the site/folder you're trying to access?

I've given the principal the title (which is AFAIK the same as role) 
zope.Manager, which IMO does not need further grants.

Another way I've tried: I've created a principal with title CS.User.
In my configure.zcml I have: 

role
id=CS.User
title=centershock.net user /

grant permission=CS.View
role=CS.User /

The ressource I try to access has security declarations:

page
name=toHomeFolder
for=*
permission=CS.View
[...] /


Or do I need further grants or anything? Or do I misunderstand the title 
attribute of the principal.

Thanks,

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


Re: [Zope3-Users] Nine new ZC Zope 3 packages on zope.org

2006-02-04 Thread Benji York

David Johnson wrote:

Where are they? How can I find them?


They're all top level projects at svn://svn.zope.org/repos/main/.  You 
can browse through Subversion at http://svn.zope.org/.

--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Simple Acquisition

2006-02-04 Thread David Johnson








I am confused about acquisition in Zope 3. I apologize
if this is documented somewhere, but I cannot find it.



I have created a ZPT Page which I have no trouble accessing:

http://localhost/index.html



However, if I try to access it from the following URL, I see
the contents of MyFolder instead of the index.html. 

http://localhost/MyFolder/index.html



What is the proper way to acquire index.html
in other contexts?



--

David Johnson

[EMAIL PROTECTED]

201 Main Street
  Suite 1320

Fort Worth, TX 76102

(877) 572-8324 x2200








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


Re: [Zope3-Users] How To Solve in Zope 3

2006-02-04 Thread Fermigier Stefane
Gary Poster wrote:


 - Jean-Marc Orliaguet's relationship code, which is based on 
 extrinsic triadic relationships, GPL, and used for CPSSkins;


Cf.

http://svn.z3lab.org/trac/z3lab/file/cpsskins/branches/jmo-perspectives/doc/peirce-relations.txt
http://svn.z3lab.org/trac/z3lab/browser/cpsskins/branches/jmo-perspectives/relations/

in case you didn't find it naturally.

  S.

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


Re: [Zope3-Users] Please Guido, pick me, pick me!

2006-02-04 Thread ksmith99 (sent by Nabble.com)

some riffs on build, test and run

Zope3: Build, Test and Adapt
Enterprise class development for the changing web

Zope3: Build, Test and Evolve
Agile component development for the changing web

Kevin Smith

View this message in context: Re: Please Guido, pick me, pick me!
Sent from the Zope3 - users forum at Nabble.com.
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Simple Acquisition

2006-02-04 Thread Jean-Marc Orliaguet

David Johnson wrote:


I have created a ZPT Page which I have no trouble accessing:

http://localhost/index.html



However, if I try to access it from the following URL, I see the
contents of MyFolder instead of the index.html.

http://localhost/MyFolder/index.html

What is the proper way to acquire index.html in other contexts?
 


Zope 3 dropped implicit acquisition.  You could write a traverser
that did this trick, I suppose.  The standard Zope 3 way is to
define the views explicitly, though: connecting them through
interfaces does everything I've wanted in this regard, but YMMV.
   



If I understand correctly, a non-technical web designer would not be able to
do much design work with Zope 3 unless they understand how to program
interfaces also or they would have to design the old-fashioned way by
creating a separate page for each item/folder they want to display?

 



you can specify * as an interface, then you don't have to write an 
interface.


 browser:page
 for=*
 name=somepage.html
 permission=zope.Public
 template=some_template.pt
 /


/JM

/JM


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


Re: [Zope3-Users] Simple Acquisition

2006-02-04 Thread Garanin Michael
  
В Сбт, 04/02/2006 в 21:01 +0100, Jean-Marc Orliaguet пишет:
   
 David Johnson wrote:
 
 I have created a ZPT Page which I have no trouble accessing:
 
 http://localhost/index.html
 
 
 
 However, if I try to access it from the following URL, I see the
 contents of MyFolder instead of the index.html.
 
 http://localhost/MyFolder/index.html
 
 What is the proper way to acquire index.html in other contexts?
   
you can overwrite traverse-behavior for 'your folders': write simple
Traverse-adapter for you folders. 
What is 'your folders'? It's folders implements
'IMyAcquisitionBehavior'. 

This adapter will has  'traverse'-method.
example(only idea):

class MyAcquisitionTraverse:
  __used_for__ = myproduct.interfaces.IMyAcquisitionBehavior

  def traverse(self, name):
 my_folder = self.context
 parent_folder = my_folder.__parent__ 
 return zapi.traverse(parent_folder, name) 












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


Re: [Zope3-Users] Simple Acquisition

2006-02-04 Thread ksmith99 (sent by Nabble.com)

I believe after Zope2, acquisition was determined to be more of a liability than a feature, as such, it doesn't exist in Zope3. TTW skin development is not supported at this time and has moved to the filesystem. From the filesystem with a little zcml you can create much richer and easier to follow behavior.

Look for the skin development section of Stephan and/or Phillip's book

Kevin Smith

View this message in context: Re: Simple Acquisition
Sent from the Zope3 - users forum at Nabble.com.
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Re: Re: Please Guido, pick me, pick me!

2006-02-04 Thread Brad Allen


Here's example of someone who the Zope site has chased off:

http://online.effbot.org/#20060203

Excerpt:

(And I'm not so sure about Zope, really . It feels stuck in 1998, way 
too often. Reading zope.org is like discovering that you clicked on 
the wrong elevator button, and ended up in a basement full of old 
sales broschures and pre-historic computer manuals. A website that 
is dynamically-constructed uses an a computer program to provide the 
dynamism.. That's good to know.)

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


Re: [Zope3-Users] How To Solve in Zope 3

2006-02-04 Thread Lennart Regebro
On 2/3/06, David Johnson [EMAIL PROTECTED] wrote:
 There will exist the situation in which some hosts will have IP addresses on
 different networks.  Should networks be the container? Should hosts? Some
 other solution?  What would you do?

The network do ont contain the hosts, they conect them, and the hosts
do not contain the networks, so neither, a far as I can see. You need
separate networks and hosts lists, where the hosts can be connected to
one or more networks.

--
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] How To Solve in Zope 3

2006-02-04 Thread David Johnson
 The network do ont contain the hosts, they conect them, and the hosts
 do not contain the networks, so neither, a far as I can see. You need
 separate networks and hosts lists, where the hosts can be connected to
 one or more networks.
That is exactly it.  I wonder how to connect them in the ZMI.  So far, my
leading thought is to create a Network container that contains IP Addresses.
I will then register the Hosts as utilities.  Each IP address will have be
able to select a Host utility.
 
It's not elegant at all.  I am exploring how to use a Catalog as well.  

From a python perspective all of this is no problem; it's making it all
presentable and manageable that is the crux.



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


RE: [Zope3-Users] Simple Acquisition

2006-02-04 Thread David Johnson
  Repeat after me: Zope 3 is not a replacement for Zope 2.
Yes, I think that's my problem.  I will be patient and contribute as much as
I can; overall it's definitely worth it.




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


Re: [Zope3-Users] How To Solve in Zope 3

2006-02-04 Thread Lennart Regebro
On 2/5/06, David Johnson [EMAIL PROTECTED] wrote:
 That is exactly it.  I wonder how to connect them in the ZMI.  So far, my
 leading thought is to create a Network container that contains IP Addresses.
 I will then register the Hosts as utilities.  Each IP address will have be
 able to select a Host utility.

Well, how about storing is persistent list of ip-adresses on the host,
which you then can look up the ip-address object with?

 From a python perspective all of this is no problem; it's making it all
 presentable and manageable that is the crux.

I think you are overcomplicating it. When the python level is ready,
it's really only a question of how to generate the HTML code to
display it...

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


[Zope3-Users] Re: Re: Please Guido, pick me, pick me!

2006-02-04 Thread Martin Aspeli
On Fri, 03 Feb 2006 14:40:56 -, Graham Stratton  
[EMAIL PROTECTED] wrote:



I agree with those who have said that Zope3 should have its own website.
  If our aim is to make it clear to people that this is something new,
then that site needs a completely different design to the existing Zope
site.  For as long as Zope3 looks like Zope 2, people are not going to  
expect to find any major changes.


FYI, I just decided django would be a good framework to use if I ever  
needed an RDBMS driven, less content-centric application by reading  
http://www.djangoproject.com/documentation/tutorial1.


It took me all of five minutes to skim it.

Martin

--
(muted)

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