Hi All,

I am playing with reportlab and I would like to make a directory where I 
can place all of my projects as ___.py files.
A project file should be like this:
test.py--------
title="Test project"
duedate = '2007-02-28'
description = "description _________"
detailed="""
detaileddetaileddetaileddetaileddetaileddetaileddetailed
detaileddetaileddetaileddetaileddetaileddetaileddetailed
detaileddetaileddetaileddetaileddetaileddetaileddetailed
detaileddetaileddetaileddetaileddetaileddetaileddetailed
detaileddetaileddetaileddetaileddetaileddetaileddetailed
"""
test.py--------

I plan to make a python script, that collect all the projectfiles from 
that folder and render them as a report summary.
I planned to import these files as modules like 

for filename in glob.glob('*.py'):
    if '_' in filename: continue
    import filename
    render(filename)

Probably you have better ideas to do that.


Yours sincerely, 
______________________________
Janos Juhasz 

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to