|
From: <di...@us...> - 2007-01-26 20:35:49
|
Revision: 309
http://safekeep.svn.sourceforge.net/safekeep/?rev=309&view=rev
Author: dimi
Date: 2007-01-26 12:35:46 -0800 (Fri, 26 Jan 2007)
Log Message:
-----------
Less confusing name
Modified Paths:
--------------
safekeep/trunk/safekeep
Modified: safekeep/trunk/safekeep
===================================================================
--- safekeep/trunk/safekeep 2007-01-26 20:28:01 UTC (rev 308)
+++ safekeep/trunk/safekeep 2007-01-26 20:35:46 UTC (rev 309)
@@ -152,11 +152,11 @@
raise ConfigException('Empty ' + clude_el.tagName)
return { 'type' : clude_el.tagName, 'path' : path, 'glob' : glob, 'regexp' : regexp }
-def parse_config(backup_el, filename):
+def parse_config(backup_el, dflt_id):
if backup_el.tagName != 'backup':
raise ConfigException('Invalid config file, the top level element must be <backup>')
id = backup_el.getAttribute('id')
- if not id: id = filename
+ if not id: id = dflt_id
host_el = backup_el.getElementsByTagName('host')
if host_el:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|