Add some dummy configuration to dummypython, and then show it.

This commit is contained in:
Teo Mrnjavac 2014-07-18 14:35:42 +02:00
parent d9f4c74537
commit 4516213b0b
2 changed files with 22 additions and 3 deletions

View File

@ -24,8 +24,9 @@ from time import gmtime, strftime
def calamares_main():
os.system( "/bin/sh -c \"touch ~/calamares-dummypython\"" )
accumulator = strftime( "%Y-%m-%d %H:%M:%S", gmtime() ) + "\n"
accumulator += "Calamares version: " + libcalamares.VERSION_SHORT + "\n"
accumulator += "This job's name: " + libcalamares.job.prettyName() + "\n"
accumulator += "This job's path: " + libcalamares.job.workingPath() + "\n"
accumulator += "Calamares version: " + libcalamares.shortVersion + "\n"
accumulator += "This job's name: " + libcalamares.job.prettyName + "\n"
accumulator += "This job's path: " + libcalamares.job.workingPath + "\n"
accumulator += str( libcalamares.job.configuration )
return accumulator

View File

@ -6,3 +6,21 @@ name: "dummypython"
interface: "python"
requires: []
script: "main.py" #assumed relative to the current directory
configuration:
syntax: "YAML map of anything"
example:
whats_this: "module-specific configuration"
from_where: "module.conf"
a_list:
- "item1"
- "item2"
- "item3"
- "item4"
a_list_of_maps:
- name: "an Item"
contents:
- "an element"
- "another element"
- name: "another item"
contents:
- "not much"