Changeset 7 for trunk

Show
Ignore:
Timestamp:
10/17/08 10:27:52 (3 years ago)
Author:
lasarux
Message:
  • config.py:
  • config.pyc:
  • config.yaml:
  • misc/yaml/README:
  • misc/yaml/init.py:
  • misc/yaml/composer.py:
  • misc/yaml/constructor.py:
  • misc/yaml/cyaml.py:
  • misc/yaml/dumper.py:
  • misc/yaml/emitter.py:
  • misc/yaml/error.py:
  • misc/yaml/events.py:
  • misc/yaml/loader.py:
  • misc/yaml/nodes.py:
  • misc/yaml/parser.py:
  • misc/yaml/reader.py:
  • misc/yaml/representer.py:
  • misc/yaml/resolver.py:
  • misc/yaml/scanner.py:
  • misc/yaml/serializer.py:
  • misc/yaml/tokens.py: Fixed dependence from python-syck. YAML module is in misc directory now.
Location:
trunk
Files:
20 added
1 removed
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/config.py

    r3 r7  
    11# -*- coding: utf-8 -*- 
    2 import syck 
     2from misc import yaml 
    33 
    44GLADEDIR = "glade" 
    5 CONFIG = syck.load(file("config.yaml").read()) 
     5CONFIG = yaml.load(file("config.yaml").read()) 
    66HOSTS = CONFIG["hosts"] 
    77USERS = CONFIG["users"] 
  • trunk/config.yaml

    r3 r7  
    1717    lasarux: 
    1818        name: Pedro Gracia 
    19         password: "" 
     19        password: 
    2020        status: on 
    2121    vfernandez: 
    2222        name: Victor Fernandez 
    23         password: "" 
     23        password: 
    2424        status: on 
    2525    test: 
     
    3333        default: auxwww 
    3434        headlines: 1 
    35         regex: "(?P<user>[\w]+)\s+\ 
     35        regex: (?P<user>[\w]+)\s+\ 
    3636                (?P<pid>[\d]+)\s+\ 
    3737                (?P<cpu>[\d.]+)\s+\ 
     
    4343                (?P<started>[\w:]+)\s+\ 
    4444                (?P<time>[\w:.]+)\s+\ 
    45                 (?P<command>[\w\s\/.:-]+)\n" 
     45                (?P<command>[\w\s\/.:-]+)\n 
    4646    uname: 
    4747        default: -a 
     
    4949        default: -h 
    5050        headlines: 1 
    51         regex: "(?P<filesystem>[\w\/\[\]<>-]+|automount -[\w]+ \[[\d]+\])\s+\ 
     51        regex: (?P<filesystem>[\w\/\[\]<>-]+|automount -[\w]+ \[[\d]+\])\s+\ 
    5252                (?P<size>[\w,.]+)\s+\ 
    5353                (?P<used>[\w,.]+)\s+\ 
    5454                (?P<avail>[\w,.]+)\s+\ 
    5555                (?P<capacity>[\w,.%]+)\s+\ 
    56                 (?P<mountedon>[\w\/.-]+)" 
     56                (?P<mountedon>[\w\/.-]+) 
    5757    mount: 
    5858        default: 
     
    6161            command: dpkg -l | cat 
    6262            columns: [status, name, description] 
    63             regex: "(?P<status>[\w]+)\s+\ 
     63            regex: (?P<status>[\w]+)\s+\ 
    6464                    (?P<name>[\w-.]+)\s+\ 
    65                     (?P<description>[\w\s]+)" 
     65                    (?P<description>[\w\s]+) 
    6666    info: [ ps, uname ] 
    6767plugins: [ info ]