From 7b549d0ce332cf7ca00df99d3bd734becd5bbcf7 Mon Sep 17 00:00:00 2001 From: Frederic Peters Date: Tue, 29 Apr 2008 12:08:27 +0000 Subject: [project @ fpeters@0d.be-20080325172346-eitu3onvzps4b30z] merging benjamin stuff and adding --enable-id-wsf when id-wsf is asked Original author: Frederic Peters Date: 2008-03-25 18:23:46.535000+01:00 --- bindings/lang_php5_helpers/php_code.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bindings/lang_php5_helpers/php_code.py') diff --git a/bindings/lang_php5_helpers/php_code.py b/bindings/lang_php5_helpers/php_code.py index d24b3305..5c175f87 100644 --- a/bindings/lang_php5_helpers/php_code.py +++ b/bindings/lang_php5_helpers/php_code.py @@ -144,6 +144,7 @@ function getRequestTypeFromSoapMsg($mesg) { print >> self.fd, '' print >> self.fd, ' public function __construct(%s) {' % php_args print >> self.fd, ' $this->_cptr = %s(%s);' % (m.name, c_args) + print >> self.fd, ' if (is_null($this->_cptr)) { throw new Exception("Constructor for ', klass.name, ' failed "); }' print >> self.fd, ' }' print >> self.fd, '' @@ -422,7 +423,7 @@ class Lasso%sError extends Lasso%sError {} continue cat, detail = m.groups() cat = cat.title().replace('_', '') - detail = detail.title().replace('_', '') + detail = (cat + '_' + detail).title().replace('_', '') if not cat in done_cats: done_cats.append(cat) for exc_cat in self.binding_data.overrides.findall('exception/category'): @@ -475,5 +476,6 @@ class LassoError extends Exception { def generate_footer(self): print >> self.fd, '''\ + lasso_init(); ?>''' -- cgit