[Maypole] Odd (lack of) inheritence issue

CUMMING, Joe, FM Joe.CUMMING@rbos.com
Mon, 26 Jul 2004 09:26:21 +0100


Nick,

I had a similar problem and I fixed it by forcing all of my model classes to
be "required".

Either do it explicitly in your base web file or in the maypole setup
routine add

	$subclass->require;

in the subclass loop.

I hope this fixes it.

Joe

-----Original Message-----
From: maypole-admin@lists.netthink.co.uk
[mailto:maypole-admin@lists.netthink.co.uk] On Behalf Of Nic Gibson
Sent: 24 July 2004 22:21
To: Maypole
Subject: [Maypole] Odd (lack of) inheritence issue

Whilst tracking down a problem last night I discovered that I don't appear
to be able to override :Exported methods defined in Maypole::Model::CDBI. 
Now, it's entirely possible that I'm doing something dumb here. 

I have a model class. It overrides do_edit very simply - I've added an
include path to the constructor for CGI::Untaint so that we can get
at some custom 'untainters'. So, it's basically the same as the 
original in Maypole::Model::CDBI but I've added a line or so.

However, it doesn't get called. I'm relatively certain I'm doing 
something blindingly stupid. However, I'm having a trees and wood problem
right now. I've attached my model class. Can anyone see where I've
gone wrong?

It's probably important to note that my table classes are all in 
separate modules and there's a 

BEGIN {PMR->setup...}

at the start of the driver module, just before the 'use PMR::BaseOnModel'
lines.

Heyulp?

nic
-- 
the revolution will not be not rerun brothers
the revolution will be live



***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312.  Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.                                      
Authorised and regulated by the Financial Services Authority     
 
This e-mail message is confidential and for use by the                      
addressee only. If the message is received by anyone other             
than the addressee, please return the message to the sender          
by replying to it and then delete the message from your                    
computer. Internet e-mails are not necessarily secure. The               
Royal Bank of Scotland plc does not accept responsibility for          
changes made to this message after it was sent.                              
                                                                                                        
Whilst all reasonable care has been taken to avoid the                   
transmission of viruses, it is the responsibility of the recipient to        
ensure that the onward transmission, opening or use of this             
message and any attachments will not adversely affect its               
systems or data.  No responsibility is accepted by The Royal           
Bank of Scotland plc in this regard and the recipient should carry   
out such virus and other checks as it considers appropriate.           
                                                                                                               Visit our websites at:                                                                          
http://www.rbs.co.uk/CBFM                                                        
http://www.rbsmarkets.com                                                         
                                                                                                       ********************************************************************************