[Zope] Re: Using the set object within page templates

2005-09-27 Thread Max M
Floyd May wrote: How can I use a set object within a page template? When I attempt to create a set (e.g. tal:define=myset python:set(some_list)), zope complains that the name 'set' is not defined. If you only need to read from some native python objects, you can make a simple wrapper. You

Re: [***SPAM*** Score/Req: 04.00/04.00] Re: [Zope] I still can't load Zope at start up on a Mac OS X Server

2005-09-27 Thread Chris Withers
Garito wrote: Chris Withers escribió: Now I'm trying launchd method Sorry but if I launch it manually (zopectl start) it works fine patient: ow, doctor, it hurts when I do that doctor: well, don't do that then! So just stick with zopectl. I suspect you'll find if you dig closer its' a

Re: [Zope] Using the set object within page templates

2005-09-27 Thread Chris Withers
Andreas Jung wrote: Is there no way to allow sets to be used within templates/scripts? As I said: No, by default. Look at lib/python/Products/PythonScripts/README.txt. Andreas means yes, but you need to do some work. See lib/python/Products/PythonScripts/standard for examples ;-)

[Zope] Aquisition, UserFolder and security

2005-09-27 Thread bruno modulix
Hello hi I have a little problem with aquisition and security. We have a project using multiple CPS instances (for those that don't know CPS, it's a CMF based groupware/CMS) running in the same Zope instance, and being siblings of each others [1]. One of these instances is the main entry point

Re: [Zope] Aquisition, UserFolder and security

2005-09-27 Thread Jens Vagelpohl
Each CPS instance has its own UserFolder. All users exists in the portal's UserFolder, but only exists in some CPMs UserFolders. Now the problem is that, due to acquisition, a member existing in the Portal but not in a given CPM can gain access to this CPM by faking the url - ie: going to

Re: [Zope] Aquisition, UserFolder and security

2005-09-27 Thread bruno modulix
Jens Vagelpohl wrote: Each CPS instance has its own UserFolder. All users exists in the portal's UserFolder, but only exists in some CPMs UserFolders. Now the problem is that, due to acquisition, a member existing in the Portal but not in a given CPM can gain access to this CPM by faking the

Re: [Zope] Aquisition, UserFolder and security

2005-09-27 Thread Jens Vagelpohl
On 27 Sep 2005, at 11:17, bruno modulix wrote: A normal pattern to use here would be to have one central user folder (e.g. at the root) and work with local roles in the sub-portals instead of having several user folders. I know, but I don't think it will possible here (this is an

Re: [Zope] Aquisition, UserFolder and security

2005-09-27 Thread Julien Anguenot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Bruno, If you're using a central LDAP for all the instances you can restrict the access from the different instances using either LDAPUserGroupsFolder or CPSUserFolder. Discrimination are done by LDAP branches (users or groups). If you can't

Re: [Zope] Aquisition, UserFolder and security

2005-09-27 Thread bruno modulix
Julien Anguenot wrote: Hi Bruno, Hi Julien, If you're using a central LDAP for all the instances you can restrict the access from the different instances using either LDAPUserGroupsFolder or CPSUserFolder. Discrimination are done by LDAP branches (users or groups). If you can't control

Re: [Zope] Aquisition, UserFolder and security

2005-09-27 Thread bruno modulix
Jens Vagelpohl wrote: On 27 Sep 2005, at 11:17, bruno modulix wrote: A normal pattern to use here would be to have one central user folder (e.g. at the root) and work with local roles in the sub-portals instead of having several user folders. I know, but I don't think it will

Re: [Zope] Aquisition, UserFolder and security

2005-09-27 Thread bruno modulix
Jonathan wrote: Could you create a central user folder (in root) and then create an external method which queries all of the LDAP branches and returns the appropriate local roles to the central user folder when the user logs in? This way you get a central user folder and can keep all your

[Zope] Re: Parse a XML file in Zope, zopeXMLmethods Product not working in Zope 2.8.1

2005-09-27 Thread Florent Guillaume
Dieter Maurer [EMAIL PROTECTED] wrote: Martin Koekenberg wrote at 2005-9-26 15:57 +0200: ... Does annyone knows a Product of method to parse xml in Zope without the zopeXMLmethods product ? You can use any of the methods for XML parsing supported by Python, among others * MiniDOM

Re: [Zope] Aquisition, UserFolder and security

2005-09-27 Thread Julien Anguenot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 bruno modulix wrote: Julien Anguenot wrote: Hi Bruno, Hi Julien, If you're using a central LDAP for all the instances you can restrict the access from the different instances using either LDAPUserGroupsFolder or CPSUserFolder.

[Zope] Vservers and ZOPE

2005-09-27 Thread Benmania Guin
Hi guys, I have some experience with Zope on my desktop pc with an WIN XP operating system. Now I want to order my own virtual server but I am unsure about the features I will need and I do not know how to install ZOPE on such a system at all. Can you give me any advice what features I will

Re: [Zope] Aquisition, UserFolder and security

2005-09-27 Thread bruno modulix
Julien Anguenot wrote: bruno modulix wrote: Julien Anguenot wrote: (snip) To sum up it's a matter of configuration. I'm afraid there's more to it than just a matter of configuration, cf below... I confirm. For having done the intranet of the Senegal gouvernement (almost 35 CPS (one

Re: [Zope] Aquisition, UserFolder and security

2005-09-27 Thread Jonathan
If you are really behind the 8-ball here is a really ugly work around that may buy you some time to fix it properly: after you authenticate a user, use a dtml method (eg. 'method1') to invoke the target method (eg. dtml-var /.../.../somemethod) in 'somemethod' check to make sure that it was

Re: [Zope] Aquisition, UserFolder and security

2005-09-27 Thread Julien Anguenot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 bruno modulix wrote: You'll find it on the cps-users list. I'm not a CPS expert[1] - and not even a Zope expert - but from what I saw, it seemed to imply more than only TALES expressions... [1] given the change pace and resulting lack of

Re: [Zope] Aquisition, UserFolder and security

2005-09-27 Thread bruno modulix
Julien Anguenot wrote: bruno modulix wrote: You'll find it on the cps-users list. I'm not a CPS expert[1] - and not even a Zope expert - but from what I saw, it seemed to imply more than only TALES expressions... [1] given the change pace and resulting lack of documentation, I guess only you

Re: [Zope] Vservers and ZOPE

2005-09-27 Thread Philip Kilner
Hi Benmania, Benmania Guin wrote: I have some experience with Zope on my desktop pc with an WIN XP operating system. Now I want to order my own virtual server but I am unsure about the features I will need and I do not know how to install ZOPE on such a system at all. Can you give me any

Re: [Zope] Aquisition, UserFolder and security

2005-09-27 Thread Julien Anguenot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 bruno modulix wrote: Julien Anguenot wrote: bruno modulix wrote: You'll find it on the cps-users list. I'm not a CPS expert[1] - and not even a Zope expert - but from what I saw, it seemed to imply more than only TALES expressions... [1] given

Re: [Zope] Vservers and ZOPE

2005-09-27 Thread Allen Schmidt
This same hosting thread went on a short time ago but I will throw another big plug for Zettai.net. George and his team have been incredibly helpful and supportive. Lots of great information upon signing up and help is ALWAYS there through a wide variety of communication channels. hth -Allen

[Zope] including a ZPT inside a repeat loop

2005-09-27 Thread Matthew White
Hello, I've got this following bit of ZPT: tal:loop repeat=t container.py.get_queue(whence=q, userid=userid))

Re: [Zope] including a ZPT inside a repeat loop

2005-09-27 Thread Jens Vagelpohl
On 27 Sep 2005, at 17:02, Matthew White wrote: Hello, I've got this following bit of ZPT: tal:loop repeat=tcontainer.py.get_queue(whence=q, userid=userid)) span tal:replace=structure here/queue_template Queue Template Goes Here /span you're using a

[Zope] Zope product for Customer Relationship Managment?

2005-09-27 Thread michael nt milne
I've had a look through the product listings and have noticed contactand project management tools but none for CRM etc? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related

[Zope] Re: including a ZPT inside a repeat loop

2005-09-27 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matthew White wrote: oops! I thought I'd clean up my code snippet to make it a little more readable, and instead introduced an error. Here it is in full: tal:loop repeat=t python:test(exists('/request/form/view_all'),

Re: [Zope] [resolved ???] Aquisition, UserFolder and security

2005-09-27 Thread bruno modulix
bruno modulix wrote: (snip) Each CPS instance has its own UserFolder. All users exists in the portal's UserFolder, but only exists in some CPMs UserFolders. Now the problem is that, due to acquisition, a member existing in the Portal but not in a given CPM can gain access to this CPM by faking

Re: [Zope] Using the set object within page templates

2005-09-27 Thread Dieter Maurer
Floyd May wrote at 2005-9-26 13:38 -0500: How can I use a set object within a page template? When I attempt to create a set (e.g. tal:define=myset python:set(some_list)), zope complains that the name 'set' is not defined. It is right, because set is not listed in

Re: [Zope] Vservers and ZOPE

2005-09-27 Thread Dieter Maurer
Benmania Guin wrote at 2005-9-27 16:01 +0200: ... I have some experience with Zope on my desktop pc with an WIN XP operating system. Now I want to order my own virtual server but I am unsure about the features I will need and I do not know how to install ZOPE on such a system at all. Can you

Re: [Zope] LAN access and session timeout?

2005-09-27 Thread Dieter Maurer
Please stay on the list. Readded... Benmania Guin wrote at 2005-9-27 16:08 +0200: ... Do you say that you can connect Zope from the first but not any more from the second computer? Exactly, it sometimes works then it wont work for a couple of minutes and then it will work again. It is really

Re: [Zope] Aquisition, UserFolder and security

2005-09-27 Thread Dieter Maurer
bruno modulix wrote at 2005-9-27 11:34 +0200: I have a little problem with aquisition and security. We have a project using multiple CPS instances (for those that don't know CPS, it's a CMF based groupware/CMS) running in the same Zope instance, and being siblings of each others [1]. One of these

Re: [Zope] Page Template security problem

2005-09-27 Thread Dieter Maurer
Chris Beaven wrote at 2005-9-27 16:54 +1200: I'm having a problem figuring out how to keep things secure while allowing a proxied script to call a page template correctly. /details/sendDetails Python script that is publicly available, receives an email address and sends that person thier

Re: [Zope] logging out (not zmi)

2005-09-27 Thread Lennart Regebro
On 9/27/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all, If i'm logged in as testuser and want to log in with a different user name, whats the right way of doing it? this is on zope 2.7 You select Log out of ZMI. :-) Unless you use CMF. Or some special user folder. Oh, and it won't

Re: [Zope] logging out (not zmi)

2005-09-27 Thread Robert Boyd
On 9/27/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:Hi all,If i'm logged in as testuser and want to log in with a different user name, whats the right way of doing it?this is on zope 2.7thankspaul How did you log in? Through an HTML form, with cookies? Through the HTTP Basic Auth pop-up window?

Re: [Zope] date problem

2005-09-27 Thread Peter Bengtsson
No doubt a Zope 2.8.0 bug because it should't happen. What does your datetime-format say in etc/zope.conf? 2005/12/02 is an ISO format I think. Exactly how are you creating the DateTime object? Have you tried creating it from this string: 2005-12-02? 2005/9/27, tyson [EMAIL PROTECTED]: Hi-

[Zope] date problem

2005-09-27 Thread tyson
The date is actually coming from a postgresql database. I checked the zope.conf file, and it's set for us. Now that you mentioned that, I tried creating a variable within dtml and when I do that, it works just fine. Now I guess I'm looking at a postgresql problem!

[Zope] Any hope of *merging* 2 'zope instance home's ??

2005-09-27 Thread seberino
I have 2 Zope/Plone sites each with their own 'zope instance home'. Any hope of *merging* these into *ONE* zope instance home so that I can do /search/ over both??? How merge both Data.fs's? Thanks! Chris ___ Zope maillist - Zope@zope.org

[Zope] possible to do /search/ over multiple zope instance homes?

2005-09-27 Thread seberino
possible to do *search* over multiple zope instance homes? (In case I can't merge 2 zope instance homes together?) chris ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related

[Zope-Coders] Zope tests: 8 OK

2005-09-27 Thread Zope tests summarizer
Summary of messages to the zope-tests list. Period Mon Sep 26 11:01:01 2005 UTC to Tue Sep 27 11:01:01 2005 UTC. There were 8 messages: 8 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux From: Zope Unit Tests Date: Mon Sep 26 22:25:57 EDT

[Zope-Coders] Re: Zope tests: 4 OK, 4 Failed

2005-09-27 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martijn Pieters wrote: Martijn Pieters wrote: The error occurs in Products/Five/tests/forms.txt, which means it needs to be fixed in the Five repository, not in the Zope repository (at least not permanently). Indeed nearly all the functional tests

[Zope-dev] inheritedAttribute - super

2005-09-27 Thread Florent Guillaume
Is there any problem if I change current Zope 2 trunk uses of inheritedAttribute into calls to super ? Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of RD +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ Zope-Dev

Re: [Zope-dev] Re: SVN: Zope/branches/Zope-2_8-branch/ - Collector #1879: applied patch by Dieter Maurer to fix a bug in

2005-09-27 Thread Dieter Maurer
Florent Guillaume wrote at 2005-9-26 18:31 +0200: This is the kind of thing that would *really* benefit from having unit tests... from Acquisition import Explicit class A(Explicit): x = 1 ... def test_aq_acquire(self): ac = A() a = A().__of__(ac) self.assertEqual(a.aq_acquire('x'), 1)