Example request

Prashanth Padmanabh <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
Hello,
I'm a beginner in YAML.
Is there an example written in python that I can follow to read a yaml
config file like the one below and process its data in my program. For
example use the data below to send an email to mail.foobar.net. How do I
extract the MAIL_SERVER value when writing a python script?

WEBSITE:
  - www.google.com
  - www.pyyaml.org
  - www.yahoo.com

MAIL_SERVER: mail.foobar.net
EMAIL_ADDRESS: [email protected]
STATUS_INTERVAL_MIN: 15
LOGFILE: webstat.log

-- 
With Regards
Prashanth Padmanabh.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.