Re: [Catalyst] Failing tests in Catalyst::Controller::SOAP

2008-11-11 Thread Ian Sillitoe
Just a gentle nudge on this - anyone know if C::C::SOAP is still actively
developed/supported?

I'm in the process of poking around since fixing C::C::SOAP seems like a
better long term solution than downgrading XML::Compile. I've got to here:

Catalyst::Controller::SOAP (version 1.10, line 216, sub _parse_SOAP__atr)

  $self-decoders-{$name} = sub {
my $body = shift;
my @nodes = grep { UNIVERSAL::isa($_, 'XML::LibXML::Element') }
$body-childNodes();
return
  {
map {
  my $data = $_-{compiled_reader}-(shift
@nodes);
  $_-{name} = $data;
} @{$input_parts}
  }, @nodes;
  };

When running t/PostApp.t (test 4) the compiled reader seems to be returning
undef:

  my $data = $_-{compiled_reader}-(shift @nodes);

From the docs of XML::Compile::Schema, I'm guessing this should return the
data structure of the compiled SOAP request.

I'm up against a deadline so I haven't got a great deal more time to spend
on this - any pointers from anyone who knows their way around X::C would be
very welcome - otherwise I'll probably just have to downgrade X::C and
postpone the problem for a rainy day.

Cheers,

Ian




2008/9/25 Drew Taylor [EMAIL PROTECTED]

 On Wed, Sep 24, 2008 at 10:43 AM, Adam Bartosik [EMAIL PROTECTED]
 wrote:
  I'll try to take a look at the test errors soon, but I'm pretty
  swamped at $work for the near future. That said, I'm using the latest
  C:C::SOAP in production without any problems. :-)
 
  Hi Drew,
  Which versions of XML::Compile, XML::Compile::SOAP do you use there?

 I'm no longer on the cutting edge: X::C 0.86, X::C::SOAP 0.73. I
 remember from the changelog in recent versions of XML::Compile that
 there were some changes to attributes(?). I'm guessing this is what
 causes the tests to fail, but it's just a guess at this point.

 Drew
 --
 
  Drew Taylor *  Web development  consulting
  Email: [EMAIL PROTECTED]  *  Site implementation  hosting
  Web  : www.drewtaylor.com   *  perl/mod_perl/DBI/mysql/postgres
  

 ___
 List: Catalyst@lists.scsys.co.uk
 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
 Searchable archive:
 http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
 Dev site: http://dev.catalyst.perl.org/




-- 
Dr Ian Sillitoe
CATH Team -- http://cathdb.info
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Filtering tables from model scaffolding

2008-11-11 Thread Eric Wright
Eden this worked perfectly! Thanks again for steering me in the right
direction.

-Eric

On Fri, Nov 7, 2008 at 1:23 PM, Eden Cardim [EMAIL PROTECTED] wrote:

 On Fri, Nov 7, 2008 at 12:46 PM, Rapid Synergy [EMAIL PROTECTED]
 wrote:
  We've recently started using Catalyst on one of our projects and so far I
 am
  very happy with its capabilities. One question I have is related to the
  scaffolding script used for generating a DBIC model. In particular, we
 have
  thousands of tables in our MySQL database that are auto generated but not
  core to our Catalyst application. Everytime a change is made to the
 schema,
  the scaffolding creates thousands of unneeded objects that I end up
 needing
  to delete. Is there a way to filter the tables generated by this script?
  Perhaps a better method exists for this sort of thing?

 See DBIx::Class::Schema::Loader, particularly, the make_schema_at()
 function and the constraint and exclude options.

 --
   Eden Cardim   Need help with your Catalyst or DBIx::Class project?
  Code Monkeyhttp://www.shadowcat.co.uk/catalyst/
  Shadowcat Systems Ltd.  Want a managed development or deployment platform?
 http://edenc.vox.com/http://www.shadowcat.co.uk/servers/

 ___
 List: Catalyst@lists.scsys.co.uk
 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
 Searchable archive:
 http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
 Dev site: http://dev.catalyst.perl.org/




-- 
---
Eric Wright
Rapid Synergy LLC
Web Development, Software  Consulting
V: 203.758.9270  F: 203.725.0853
http://www.rapidsynergy.com
---
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Failing tests in Catalyst::Controller::SOAP

2008-11-11 Thread Ian Sillitoe
 otherwise I'll probably just have to downgrade X::C and postpone the
 problem for a rainy day.


Hmmm... it appears that versions of XML::Compile older than 0.93 have been
cleared off CPAN. I was able to find older versions of X::C and X::C::SOAP
by Googling around but it does make it more of an issue, especially for new
users. I'll carry on poking around...

Cheers,

Ian
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/