logo       

Re: 2 New(?) Ideas: msg#00009

Subject: Re: 2 New(?) Ideas
On Fri, Dec 03, 2004 at 03:52:17PM -0500, Jason Purdy wrote:
> While I'm thinking about this, what do you guys think about these?
> 
> 1) Class::DBI Integration
> I'm just starting to pick up CDBI (I know, I'm late to the party ;)) and 
> it's kind of frustrating to get the data into the template.  Or it could 
> be made easier.  I'm not sure if we're talking Plugin or an update to 
> the core, but what would be really cool is to accept CDBI objects in the 
> 'associate' parameter:

  This can/should happen in your code - simply create a CDBI-derived
CDBI::Extended object which has a CGI/HT compatible "params" method,
and pass that to associate.  Hey presto!

  If you're wanting to create a bunch of CDBI subclasses, then you just
subclass that CDBIE instead.  Done.  If you think this would be really
useful to a lot of people then encapsulate the CDBIE neatly and publish
it in CPAN.

  (Alternatively, you could subclass HT, but since HT already has a
well-defined interface for feeding params in, which already
interoperates with some Perl modules, it seems more logical to add it
on the other side.)

  -- Clifton

-- 
          Clifton Royston  --  cliftonr@xxxxxxxxxxxxxxxxxxxx 
         Tiki Technologies Lead Programmer/Software Architect
Did you ever fly a kite in bed?  Did you ever walk with ten cats on your head?
  Did you ever milk this kind of cow?  Well we can do it.  We know how.
If you never did, you should.  These things are fun, and fun is good.
                                                                 -- Dr. Seuss


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe