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 zope@zope.org
Sent: Wednesday, January 3, 2007 3:13:48 PM
Subject: Re:
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:
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
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 space
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):
-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):
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
-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, but
it's
Summary of messages to the zope-tests list.
Period Tue Jan 2 12:00:00 2007 UTC to Wed Jan 3 12:00:00 2007 UTC.
There were 7 messages: 7 from Zope Unit Tests.
Tests passed OK
---
Subject: OK : Zope-2.6 Python-2.1.3 : Linux
From: Zope Unit Tests
Date: Tue Jan 2 21:11:47 EST 2007
10 matches
Mail list logo