Ignore:
Timestamp:
Dec 10, 2015, 12:53:36 PM (11 years ago)
Author:
Pedro Gea <pgea@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
e87e769
Parents:
00d6ed4
Message:

Se modifica el uso que se hace del paquete trycatch para evitar incompatibilidades con tcl8.6:

+ No se importan los métodos del paquete
+ Se llaman las llamadas a try haciendo uso del namespace: ::trycatach::try

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@7096 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tolbase/lib/notebookdb/notebookdb.tcl

    r00d6ed4 r3634546  
    4242package require markupparser
    4343
    44 namespace eval ::notebookdb::notebookdb:: {
    45     namespace import -force ::trycatch::*
    46 }
     44#(pgea) Se utilizará trycatch sin importar sus métodos
     45#(pgea) para hacer el código compatible con tcl8.6
     46# namespace eval ::notebookdb::notebookdb:: {
     47#     namespace import -force ::trycatch::*
     48# }
    4749
    4850#-----------------------------------------------------------------------
    … …  
    109111            $self.loader alias page $self Loader.Page
    110112
    111             try {
    112                 try {
     113            ::trycatch::try {
     114                ::trycatch::try {
    113115                    $self.loader eval [list source $filename]
    114116                } catch -msg result {
    … …  
    175177        set fname $options(-dbfile)
    176178
    177         try {
     179        ::trycatch::try {
    178180            $self SaveDatabase $fname
    179181        } catch -msg errmsg {
Note: See TracChangeset for help on using the changeset viewer.