Re: [Zope] Re: Output only the first or a particular record using TAL

2005-09-27 Thread Tino Wildenhain
Am Mittwoch, den 28.09.2005, 16:32 +1000 schrieb Julian Yap: > --- Chris Withers <[EMAIL PROTECTED]> wrote: ... > > Now, if you really can't stop your sql returning more than one > > row > > (LIMIT 1 anyone?) then how about: > > > > > tal:condition="customer"> > > > >Customer: > >

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

[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 http://mai

[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! ___

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

[Zope] date problem

2005-09-27 Thread tyson
Hi- I upgraded from (Zope 2.7.3-0, python 2.3.4, linux2) to (Zope 2.8.0-final, python 2.4.1, linux2). If I use the fmt="%m/%d", then the date is incorrect. If I don't use the fmt, then my date is logically correct, just not formatted the way I want it. For some reason when I use the

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

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 d

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 the

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 r

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

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 "RestrictedPython.Guards

Re: [Zope] Vservers and ZOPE

2005-09-27 Thread Peter Bengtsson
Whatever goes for hosting a Zope under linux goes for hosting a Zope under a vserver. If the vserver guy has does his job, to you it should be like any other linux server. Most of our server linuxes are in fact vservers. 2005/9/27, Benmania Guin <[EMAIL PROTECTED]>: > > Hi guys, > > I have some ex

[Zope] logging out (not zmi)

2005-09-27 Thread paul . hendrick
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 thanks paul ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HT

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 fak

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

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

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

2005-09-27 Thread Matthew White
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: Queue Template Goes Here

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: Queue Template Goes Here you're using a python notation without declaring it as such. Try... jens ___ Zope maillist

[Zope] including a ZPT inside a repeat loop

2005-09-27 Thread Matthew White
Hello, I've got this following bit of ZPT:

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

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 expressi

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

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

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 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. ) in 'somemethod' check to make sure that it was invoked by 'method1' (use a

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 gouvernemen

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

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

Re: [Zope] Aquisition, UserFolder and security

2005-09-27 Thread Jonathan
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 existing LDAP branche

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

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

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 contr

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 euphem

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 faki

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 mydom

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

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 ;-) cheer

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 fil

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