ludwig: utils/testing many_addresses.py, NONE, 1.1 many_tasks.py, NONE, 1.1
cvs at kolab.org
cvs at kolab.org
Tue May 22 15:03:06 CEST 2007
Author: ludwig
Update of /kolabrepository/utils/testing
In directory doto:/tmp/cvs-serv17409
Added Files:
many_addresses.py many_tasks.py
Log Message:
Ludwig Reiter:
Added to small scripts. Many_addresses.py is used to create a lot of
test contacts, so someone can import them into kontact.
Many_tasks.py is used to create a lot of tasks.
--- NEW FILE: many_addresses.py ---
#!/bin/env python
"""Create many addresses for testing the KDE Kolab Client.
Redirect the output in a file and import this from the KDE Kolab Client.
You need to adapt the script.
This script is Free Software under the GNU General Public License >=v2.
ludwig.reiter at intevation.de
"""
how_many=100
addressfrm="""BEGIN:VCARD
BDAY:1975-03-04T00:00:00Z
EMAIL:%s
FN:Testy%d
N:Tester%d;Testy%d;;;
UID:lakak.101010.Tester%d
VERSION:2.1
END:VCARD
"""
for i in range(how_many):
address = addressfrm % ("test"+str(i)+"@test.hq",i,i,i,i)
print address
--- NEW FILE: many_tasks.py ---
#!/bin/env python
"""Create many ical events for testing the KDE Kolab Client.
Redirect the output in a file and import this from the KDE Kolab Client.
You need to adapt the script.
This script is Free Software under the GNU General Public License >=v2.
ludwig.reiter at intevation.de
"""
import time
how_many=5000
header="""
BEGIN:VCALENDAR
PRODID:-//K Desktop Environment//NONSGML libkcal 3.5//EN
VERSION:1.0"""
footer="""END:VCALENDAR"""
eventfrm="""BEGIN:VTODO
DCREATED:%s
UID:libkcal-126710415.1028.%s
SEQUENCE:0
LAST-MODIFIED:20070515T121704Z
X-ORGANIZER:MAILTO:ltest1 at test.hq
SUMMARY:%s
STATUS:NEEDS_ACTION
PRIORITY:0
END:VTODO
"""
eventtime="20070515T121704Z"
eventname="test #"
print header
for i in range(how_many):
event = eventfrm % (eventtime, eventname + str(i), eventname+ str(i))
print event
print footer
More information about the commits
mailing list