I got it to work.. thank a lot everyone, couldn't hav done it without you guys.
- Original Message
From: Andreas Jung <[EMAIL PROTECTED]>
To: Maciej Wisniowski <[EMAIL PROTECTED]>; Allen Huang <[EMAIL PROTECTED]>
Cc: Zope
Sent: Wednesday, January 3, 2007 3:13:48 PM
Subject: Re: [Zope] T
It turned out, actually to be easier than I though to correct this - I ended
up trapping the exception whenever one occurred.
Thanks for all the input.
Katie
-Original Message-
From: Dieter Maurer [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 17, 2006 4:25 AM
To: Kate Legere
Cc: z
Hi,
I'm trying to do a batch add of users to the standard acl_users folder.
Note quite a total success or total failure just yet.
First I made a text file (usr_pwd.txt) in the form of password space username.
and placed it (temporarily) in the Extensions
directory.
Then an external method (Loa
readlines returns also the terminating \n.
you have to strip it
hth
rr
Sean Duffy wrote:
> Hi,
>
> I'm trying to do a batch add of users to the standard acl_users folder.
>
> Note quite a total success or total failure just yet.
>
> First I made a text file (usr_pwd.txt) in the form of password spa
Hi,
Thanks to Robert & Alexis I have a working solution:
First I made a text file (usr_pwd.txt) in the form of password space username,
and placed it (temporarily) in the Extensions
directory.
Then an external method (LoadUsers) to read it:
def LoadUsers(self):
f=open('/var/lib/zope/Extensi
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
- --On 3. Januar 2007 14:42:58 -0600 Sean Duffy <[EMAIL PROTECTED]> wrote:
> y=context.LoadUsers()
> p=[]
> for x in y:
> z=x.split(' ')
> z0=z[0]
> z1=z[1]
> z1=z1[:-1]
^
Don't do that. Python strings have a strip() method.
Hi,
Andreas has pointed out that my personal os.bias module has prevented me from
producing pythonically correct code.
Please note the replacement of z1[:-1] with z1.strip() below.
Then an external method (LoadUsers) to read it:
def LoadUsers(self):
f=open('/var/lib/zope/Extensions/usr_pwd
Dieter Maurer wrote:
> Maybe, you have a look at "LocalFS".
It seems to be not compatible with zope 2.9.6
I have copied the LocalFS-1.3-andreas.tar.gz into the products, but
it's not even shown in Control Panel -> Product Management list.
Have i missed anything?
Thank you
--
Pol
__
I don't know much about the status of LocalFS but another product you
might want to look at is here:
http://www.plope.com/software/blob/
On Jan 3, 2007, at 5:31 PM, pol wrote:
Dieter Maurer wrote:
Maybe, you have a look at "LocalFS".
It seems to be not compatible with zope 2.9.6
I have c
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
- --On 3. Januar 2007 23:31:27 +0100 pol <[EMAIL PROTECTED]> wrote:
> Dieter Maurer wrote:
>> Maybe, you have a look at "LocalFS".
>
>
> It seems to be not compatible with zope 2.9.6
> I have copied the LocalFS-1.3-andreas.tar.gz into the products,
10 matches
Mail list logo