[Zorba-coders] [Bug 867112] Re: Diagnostic Handler not working in API Bindings

2012-06-12 Thread Dana Florescu
** Changed in: zorba
   Status: Fix Committed = Fix Released

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/867112

Title:
  Diagnostic Handler not working in API Bindings

Status in Zorba - The XQuery Processor:
  Fix Released

Bug description:
  When I run this code in python the diagnostic handler method is never
  called.

  class MyDiagnosticHandler(zorba_api.DiagnosticHandler): 
def error(self, *args):
  print Error args: , args

  def test(zorba, diagnosticHandler):
try:
  xquery = zorba.compileQuery(1 div 0, diagnosticHandler)
  print xquery.execute()
except Exception, e:
  print Cought error: , e
return

  
  store = zorba_api.InMemoryStore_getInstance()
  zorba = zorba_api.Zorba_getInstance(store)
  diagnosticHandler = MyDiagnosticHandler()

  print Running: Compile query string using Diagnostic Handler
  test(zorba, diagnosticHandler)
  print Success

  
  zorba.shutdown()
  zorba_api.InMemoryStore_shutdown(store)

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/867112/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 867112] Re: Diagnostic Handler not working in API Bindings

2012-04-19 Thread Rodolfo Ochoa
** Changed in: zorba
   Status: In Progress = Fix Committed

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/867112

Title:
  Diagnostic Handler not working in API Bindings

Status in Zorba - The XQuery Processor:
  Fix Committed

Bug description:
  When I run this code in python the diagnostic handler method is never
  called.

  class MyDiagnosticHandler(zorba_api.DiagnosticHandler): 
def error(self, *args):
  print Error args: , args

  def test(zorba, diagnosticHandler):
try:
  xquery = zorba.compileQuery(1 div 0, diagnosticHandler)
  print xquery.execute()
except Exception, e:
  print Cought error: , e
return

  
  store = zorba_api.InMemoryStore_getInstance()
  zorba = zorba_api.Zorba_getInstance(store)
  diagnosticHandler = MyDiagnosticHandler()

  print Running: Compile query string using Diagnostic Handler
  test(zorba, diagnosticHandler)
  print Success

  
  zorba.shutdown()
  zorba_api.InMemoryStore_shutdown(store)

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/867112/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 867112] Re: Diagnostic Handler not working in API Bindings

2012-04-18 Thread Matthias Brantner
** Changed in: zorba
Milestone: None = 2.5

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/867112

Title:
  Diagnostic Handler not working in API Bindings

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  When I run this code in python the diagnostic handler method is never
  called.

  class MyDiagnosticHandler(zorba_api.DiagnosticHandler): 
def error(self, *args):
  print Error args: , args

  def test(zorba, diagnosticHandler):
try:
  xquery = zorba.compileQuery(1 div 0, diagnosticHandler)
  print xquery.execute()
except Exception, e:
  print Cought error: , e
return

  
  store = zorba_api.InMemoryStore_getInstance()
  zorba = zorba_api.Zorba_getInstance(store)
  diagnosticHandler = MyDiagnosticHandler()

  print Running: Compile query string using Diagnostic Handler
  test(zorba, diagnosticHandler)
  print Success

  
  zorba.shutdown()
  zorba_api.InMemoryStore_shutdown(store)

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/867112/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 867112] Re: Diagnostic Handler not working in API Bindings

2012-04-17 Thread Rodolfo Ochoa
** Branch linked: lp:~zorba-coders/zorba/bug867112

** Changed in: zorba
   Status: New = In Progress

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/867112

Title:
  Diagnostic Handler not working in API Bindings

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  When I run this code in python the diagnostic handler method is never
  called.

  class MyDiagnosticHandler(zorba_api.DiagnosticHandler): 
def error(self, *args):
  print Error args: , args

  def test(zorba, diagnosticHandler):
try:
  xquery = zorba.compileQuery(1 div 0, diagnosticHandler)
  print xquery.execute()
except Exception, e:
  print Cought error: , e
return

  
  store = zorba_api.InMemoryStore_getInstance()
  zorba = zorba_api.Zorba_getInstance(store)
  diagnosticHandler = MyDiagnosticHandler()

  print Running: Compile query string using Diagnostic Handler
  test(zorba, diagnosticHandler)
  print Success

  
  zorba.shutdown()
  zorba_api.InMemoryStore_shutdown(store)

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/867112/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp