[Zope3-Users] Groups, Principals and Permissions

2006-08-25 Thread Darryl Cousins
Hi,

I must be misunderstanding something with zope.app.authentication and
using the classes directly as contained in that package.

I have a PluggableAuthentication utility, registered, with GroupFolder
and PrincipalFolder authenticator plugins. I have GroupInformations for
groups in the group folder and InternalPrincipals for principals in
principal folder.

I have added principals to groups. All good, everything looks ok. But
the principals do not 'inherit' the permissions assigned to the group
(using PrincipalPermissionManager) they have been added to.

I can get the groups for the principal easy enough:

context = principal
pau = zapi.getUtility(IAuthentication)
members = pau['members']
principalid = pau.prefix + members.prefix + context.login
groups = groupfolder.getGroupsForPrincipal(principalid)

So it 'appears' to me that the security looks up the groups differently?
Or have I missed something?

Best regards, confused (as often is the case).
Darryl

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


Re: [Zope3-Users] z3c vs. the zorg

2006-08-25 Thread Martijn Faassen

Benji York wrote:
Stephan's ZSCP proposal suggests using the package name z3c for 
community packages.  IOW, packages that aren't part of a larger 
collection like lovely.*, zc.*, etc..  There are currently several z3c 
packages in existence.


The zope3.org packages currently use the package name zorg.  I 
personally (and at least a couple other people feel the same way) like 
zorg better than z3c.  I'd like to propose that zorg become the name 
space package for otherwise homeless modules/packages.


(In fairness, I'll note that Stephan likes z3c better, and that name is 
already in semi-wide-spread use).


+1 to zorg, for various reasons:

It's pronouncable. People can say zorg, and it's less syllables than z3c 
if you manage to pronounce the latter.


It's cute:

* zorg sounds like an evil alien emperor

  EXTERMINATE THEM!

  Yes emperor Zorg, immediately!

* zorg sounds like a very biological species of alien: Swarms of zergs, 
I mean, zorgs, completely overwhelmed the Terran command post.


* zorg is actually a common word in Dutch. It means care, and can be 
used in contects like healthcare. Steve Alexander saw a van here with 
the word zorg once and was highly amused.


Regards,

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


[Zope3-Users] Re: [Zope3-dev] z3c vs. the zorg

2006-08-25 Thread Martijn Faassen

Stephan Richter wrote:
[snip]
Also, z3c 
does not try to be the holy grail of community work. It is just another 
namespace and I think this should be accepted. 


I actually think it would be *nice*, if not at all essential, to have a 
common namespace for community work. For such a common namespace z3c 
is a bit unwieldier than something like zorg. We could consider 
establishing a more coherent pattern in the future, perhaps.


[snip]
BTW, I am not aggravated about the mail; I am just very tired of those 
pointless namespace discussions.


I'm glad you're not aggravated by something Benji brought something up 
this time.. He's certainly not trying to waste your time, but brings up 
 things that he considers are important.


Regards,

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


Re: [Zope3-Users] Re: zc.tables integration with Zope3

2006-08-25 Thread Jim Washington

Luis De la Parra wrote:

Hello

this is how indexes are implemented in RDBMs.. don't know if sqllite has
such a feature, but in oracle the table content is just stored in files
(structured, but unordered) and a set of sorted indexes is kept for the
primary key and all other secundary indexes. 


each index has the search fields like index0 = lastname/firstname and
index1 = telephone and a  file/segment/row pointer to the information.
every update to the table triggers an update to all indices in the same
transaction, but you get searching, sorting and batching in return.

  
Yup.  But if your data is in a zodb,  you only have one (maybe two, with 
an OrderedFolder)  canonical ordering of things in a container.  Any 
other order requires sorting the entire set on the fly.


... At the moment. ;)

For anyone following this thread, I have updated my factoradic 
implementation code this morning.  It now memoizes to an sqlite db, and 
is much much faster overall.  http://blog.hill-street.net


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


[Zope3-Users] Re: [Zope3-dev] z3c vs. the zorg

2006-08-25 Thread Olivier Grisel

Martijn Faassen a écrit :

Technically it isn't a problem, that's why it's not at all essential. 
But it might be nice for some other reasons:


* people who write a new community package knows which namespace to use

* we could present this to the outside world a bit more coherently; look 
at all these nice zorg components.


Yes. Especially if components get packaged as eggs and advertised on the 
cheeseshop. Just a quick glance on you RSS feed and you spot all the new 
releases of Zope3 related components. This will probably make a lot of good 
publicity for Zope3 w.r.t. the rest of the python dev community.


--
Olivier

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


Re: [Zope3-Users] z3c vs. the zorg

2006-08-25 Thread Jegenye 2001 Bt (Miklós Prisznyák)
Hey, +1 for zorg (because it's cool) and -1 for z3c (because it's hard to pronounce ) !
:)

Best,-- Miklós Prisznyák Principal Consultant, owner http://www.jegenye.com
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Installing Zope3 on Windows

2006-08-25 Thread catonano

Hello people,

I downloaded the 3.2.1 version from http://zope.org/Products/Zope3 
but it has no windows installer.


the previous 3.2.o has it.

That is, the last version marked as stable has no windows installer, 
while the versions marked as developement and the previous stable 
versions do have it.


The download page says:

The version Trunk contains the pyd files necessary to get the trunk 
working on win32 without a C compiler. The ZIP files will get marked 
with SVN revision number (Unzip into the root of a Zope3 trunk checkout).


So I suspect that the versions with no windows installer can work on 
windows BUT the readme file explicitly says to use a windows 
installer to install Zope, otherwise you must have a supported C 
compiler (it's not my case).


In a few words: what should I do to make the 3.2.1 version I downloaded work ?

I've been playing with Zope 2 and I also made a small job with that 
and I liked it.


Now I want to see wether I can reach a reasonable setup also with Zope3.

Thanks SO much for any help !

Bye
Catonano


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


Re: Re : [Zope3-Users] Re: Zope 3 SSL

2006-08-25 Thread Chris Withers

Stéphane Brault wrote:

But I can't seem to be able to use apache as a proxy.


If you elaborate, people may be able to help you.

However, for that specific problem #apache on irc.freenode.net will 
probably be of more service...


Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk

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


Re: [Zope3-Users] Installing Zope3 on Windows

2006-08-25 Thread Adam Groszer
Hello Catonano,

Just uploaded a win32 installer and the pyds.

Friday, August 25, 2006, 5:01:37 PM, you wrote:

c Hello people,

c I downloaded the 3.2.1 version from http://zope.org/Products/Zope3 
c but it has no windows installer.

c the previous 3.2.o has it.

c That is, the last version marked as stable has no windows installer, 
c while the versions marked as developement and the previous stable 
c versions do have it.

c The download page says:

c The version Trunk contains the pyd files necessary to get the trunk 
c working on win32 without a C compiler. The ZIP files will get marked 
c with SVN revision number (Unzip into the root of a Zope3 trunk checkout).

c So I suspect that the versions with no windows installer can work on 
c windows BUT the readme file explicitly says to use a windows 
c installer to install Zope, otherwise you must have a supported C 
c compiler (it's not my case).

c In a few words: what should I do to make the 3.2.1 version I downloaded work 
?

c I've been playing with Zope 2 and I also made a small job with that 
c and I liked it.

c Now I want to see wether I can reach a reasonable setup also with Zope3.

c Thanks SO much for any help !

c Bye
c Catonano


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

-- 
Best regards,
 Groszer Adam
--
Quote of the day:
Dig the well before you are thirsty. 
- Chinese Proverb 

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


Re: [Zope3-Users] Installing Zope3 on Windows

2006-08-25 Thread catonano

Adam,

At 20.02 25/08/2006, you wrote:

Hello Catonano,

Just uploaded a win32 installer and the pyds.


Wow ! Really fast ! Thanks SO much !

Bye
Catonano 



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


[Zope3-Users] Simple Sources tutorial?

2006-08-25 Thread Alec Munro

Anyone have a simple reference on the usage of sources? I'm in need of
a vocabulary-like thing, and my understanding is that vocabularies
have been replaced by sources, but I am unable to find any
documentation on their use. There are numerous discussions on specific
details of sources, but I haven't found any real tutorials that cover
how you register them, how you reference them, and real-world examples
of their use.

Thanks,

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


[Zope3-Users] Re: [Zope3-dev] z3c vs. the zorg

2006-08-25 Thread Lennart Regebro

On 8/25/06, Martijn Faassen [EMAIL PROTECTED] wrote:

Technically it isn't a problem, that's why it's not at all essential.
But it might be nice for some other reasons:

* people who write a new community package knows which namespace to use

* we could present this to the outside world a bit more coherently; look
at all these nice zorg components.


I completely agree.

--
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] z3c - be or not to be

2006-08-25 Thread Roger Ineichen
Hi to all Zope3 Visionairs ;-) 

CC: to some of the z3c namespace chooser which are 
to busy to answer, flying back to Boston or are at 
holiday this week ;-)

Yes, I didn't do much for Zope3 core the last couple month,
except publishing to z3c. But as on of the initiator of 
z3c I need to give a statement before it turns me crazy.

I only speak for myself here, but I guess the rest of the 
active z3c developer, package user team can agree on the 
following:

I (we) will *NOT* rename the z3c namspace. We never told 
that z3c is the *ONLY* namespace for z3 community. Let's 
see the z3c namspace as some usefull packages commited 
from a team of z3 developers they work and share its work. 
I'm sure and hope there is more space for other developer 
teams using it's own namespace.

The reason why;
We really have no time to do this in the next couple of 
month. And the option sombody else doing it is also *NO*
option because we have allready productive projects build
on this libraries and have no time to migrate them for 
nothing. Yes renaming the z3c namspace whould technicaly 
possible, but for me(us) it's just a waist of time right 
now. Could be that I will change my mind in the future
but not in the next couple of months.

btw,
Onw of my next task, whould be to update the documentation 
and write more tests, but for sure not to change a namespace.

Philipp,
Renaming sandbox to trunk in some z3c pkgs is one of my 
first steps I will do if I'm finished the next project. 
Or does anybody else take this task?

Regards
Roger Ineichen
_
Projekt01 GmbH



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


[Zope3-Users] zope 3 book - is it still meaningful ?

2006-08-25 Thread catonano

Hello people,

I'm trying to follow the Zope 3, precisely the part that you can find 
at http://dev.zope.org/Zope3/Zope3Book/contentobject.html.


it shows how to create new content type components ( a message board 
type and a message type)


All the source code files are downloadable from the svn, so you can 
try , following the instructions in the book.


The book is quite old ! In the svn I see it's been edited last time in 2004  !

In chapter 13, paragraph 6, there's this sentence:


 ... There is a script called test.py that will run all or only 
specified tests for you. To run the test against your implementation, 
execute the following line from the Zope 3 root directory:


1  python2.3 test.py -vpu --dir src/book/messageboard ...


Well, is there a test.py file ? I can't find it !

Also in the svn there's so much material that isn't regarded at all 
in the book text !


Is that text still valuable ? Or is it obsolete and meaningless, at now ?

Thanks so much
Bye

Catonano


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


Re: [Zope3-Users] zope 3 book - is it still meaningful ?

2006-08-25 Thread Andreas Reuleaux
Yes, it is still a very valuable text, Stephan just has plenty of
other things to do and hasn't found the time to update the book (he
can tell you better if and when there will be an update). But this is
a general problem of computer texts: It takes some effort to keep them
up to date.

Note that this is still Stephans book, not a book written by the Zope
3 community (don't know if he would be interested in having more
people maintain the book).

You might want to read Stephans book in parallel with Philipps book
and find out which suits you better in which area. (Note that Philipps
is preparing a second edition of his book)



On Sat, Aug 26, 2006 at 12:07:56AM +0200, catonano wrote:
 Hello people,
 
 I'm trying to follow the Zope 3, precisely the part that you can find 
 at http://dev.zope.org/Zope3/Zope3Book/contentobject.html.
 
 it shows how to create new content type components ( a message board 
 type and a message type)
 
 All the source code files are downloadable from the svn, so you can 
 try , following the instructions in the book.
 
 The book is quite old ! In the svn I see it's been edited last time in 2004 
 !
 
 In chapter 13, paragraph 6, there's this sentence:
 
 
  ... There is a script called test.py that will run all or only 
 specified tests for you. To run the test against your implementation, 
 execute the following line from the Zope 3 root directory:
 
 1  python2.3 test.py -vpu --dir src/book/messageboard ...
 
 
 Well, is there a test.py file ? I can't find it !


...from the Zope 3 root directory means:

   $ svn co svn://svn.zope.org/repos/main/Zope3/trunk z3
   $ cd z3
   $ python2.4 ./test.py ...

I. e. test.py is in the checkout of Zope 3, not of the example

-Andreas

 
 Also in the svn there's so much material that isn't regarded at all 
 in the book text !
 
 Is that text still valuable ? Or is it obsolete and meaningless, at now ?
 
 Thanks so much
 Bye
 
 Catonano
 
 
 ___
 Zope3-users mailing list
 Zope3-users@zope.org
 http://mail.zope.org/mailman/listinfo/zope3-users
 
 
 !DSPAM:44ef776c193711660682232!
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users