[Schevo-devel] Re: [Schevo-commit] r1916 - Schevo/trunk/schevo/script

Matthew Scott mscott at springfieldtech.com
Fri Mar 24 11:42:06 EST 2006


Please, please put these changes into the "evolving-evo" branch, and
preferrably, revert the changes in trunk.  If you don't revert the
trunk, don't worry, I will get around to that :)

schevo-commit at lists.orbtech.com wrote:
> Author: lazaridis_com
> Date: Fri Mar 24 11:25:19 2006
> New Revision: 1916
> 
> Modified:
>    Schevo/trunk/schevo/script/db_evolve.py
> Log:
> #45, added default for DBFILE (<dirname>.db)
> 
> Modified: Schevo/trunk/schevo/script/db_evolve.py
> ==============================================================================
> --- Schevo/trunk/schevo/script/db_evolve.py	(original)
> +++ Schevo/trunk/schevo/script/db_evolve.py	Fri Mar 24 11:25:19 2006
> @@ -46,6 +46,10 @@
>                   )    
>      return p
>  
> +def default_db_filename():
> +    filename = os.path.basename( os.getcwd() ) +  '.db'
> +    # add further default possibilities
> +    return filename
>  
>  class Evolve(Command):
>  
> @@ -58,8 +62,10 @@
>          parser = _parser()
>          options, args = parser.parse_args(list(args))
>          if len(args) != 1:
> -            parser.error('Please specify DBFILE.')
> -        db_filename = args[0]
> +            #parser.error('Please specify DBFILE.')
> +            db_filename = default_db_filename()
> +        else:    
> +            db_filename = args[0]
>          # Process paths.  Start with app_path option and populate
>          # schema_path and icon_path based on it if it is set, then use
>          # icon_path and schema_path options to override.
> _______________________________________________
> Schevo-commit mailing list
> Schevo-commit at lists.orbtech.com
> http://lists.orbtech.com/mailman/listinfo/schevo-commit


-- 
Matthew Scott
Springfield Technology



More information about the Schevo-devel mailing list