[Stoq-devel] Re: [POS-commit] r4038 - in stoq/trunk: bin
Henrique Romano
henrique at async.com.br
Mon Jul 31 15:40:52 BRT 2006
Johan Dahlin escreveu:
> Modified: stoq/trunk/stoq/lib/configparser.py
> ==============================================================================
> --- stoq/trunk/stoq/lib/configparser.py (original)
> +++ stoq/trunk/stoq/lib/configparser.py Mon Jul 31 15:34:53 2006
> @@ -185,24 +185,46 @@
> (self._filename, name))
>
> def _get_rdbms_name(self):
> + if not self._has_option('rdbms', section='Database'):
> + return 'postgres'
> return self._get_option('rdbms', section='Database')
>
> def _get_port(self):
> + if not self._has_option('port', section='Database'):
> + return '5432'
> return self._get_option('port', section='Database')
>
> def _get_dbname(self):
> + if not self._has_option('dbname', section='Database'):
> + return self._get_username()
> return self._get_option('dbname', section='Database')
>
... why the _get_option() can't accept a parameter "default"?
> @@ -277,6 +299,10 @@
> @rtype: id
> """
>
> + # XXX: Remove
> + if not self._has_option('station_id', section='General'):
> + return 0
> +
>
remove?
Henrique
More information about the Stoq-devel
mailing list