Philipp von Weitershausen wrote:
Jürgen Kartnaller wrote: 2 try/except
They are there because it is possible that a table already exists when trying to create it or doesn't exist when trying to delete it. As I remember when I wrote this I couldn't find a better way, but I'm there is a better way in the latest version of sqlalchemy.

Good to know. 2 try/except
get speaks for itself, it think!

Yes, those aren't bare excepts. Those make sense to me :)

__len__ contains it to be able to view the container even if there is no database connection. Otherwise if the database connection is lost you even can not view the container in zmi.

So tons == 4 :)

Okay, okay, I was exaggerating :). But there are some bare excepts in the tests as well:

  $ grep -nH -rI except: *    except:    except:

Maybe one can figure out which exception we need to catch here.

  testing/        except:
  tests/    except:
  tests/    except:
  tests/    except:

Yes these stupid except's are because of windows :(
I wrote the first version on windows and had the problem that windows didn't let me delete the files.


Zope3-dev mailing list

Reply via email to