oops stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Thu, 08 Oct 2009 12:00:58 +0200
branchstable
changeset 3618 ad04840ab25c
parent 3617 9036a8fbbd57
child 3621 1ec4452aa36f
oops
etwist/server.py
server/hooks.py
--- a/etwist/server.py	Thu Oct 08 11:58:19 2009 +0200
+++ b/etwist/server.py	Thu Oct 08 12:00:58 2009 +0200
@@ -167,7 +167,7 @@
                         datadir = self.config.locate_resource(segments[1])
                         if datadir is None:
                             return None, []
-                    #self.info('static file %s from %s', segments[-1], datadir)
+                    self.info('static file %s from %s', segments[-1], datadir)
                     if segments[0] == 'data':
                         return static.File(str(datadir)), segments[1:]
                     else:
--- a/server/hooks.py	Thu Oct 08 11:58:19 2009 +0200
+++ b/server/hooks.py	Thu Oct 08 12:00:58 2009 +0200
@@ -520,7 +520,6 @@
                 raise ValidationError(entity.eid, {'by_transition': msg})
             if not tr.has_input_state(fromstate):
                 msg = session._("transition isn't allowed")
-                print tr.name, fromstate.name, entity.by_transition
                 raise ValidationError(entity.eid, {'by_transition': msg})
             if not tr.may_be_fired(foreid):
                 msg = session._("transition may not be fired")