Re: [Maypole] Wish-list

From: n.a (n.a at ad.wakwak.com)
Date: Mon Sep 27 2004 - 02:23:37 BST


Sorry for my poor quotation and thread handling.
I've just enlistted myself to the list. So it may be improved next time.

simonflk:
> You are doing something wrong here...
> Model Class Modules should be as easy as this (note that i'm using the
  ...
I use the recent CPAN version and obey example of ex/BeerDB.pm which
come with the Maypole-1.7 itself.

> package BeerDB;
> use base 'Apache::MVC';
> use Class::DBI::Loader::Relationship;
> BeerDB->set_database("dbi:SQLite:t/beerdb.db");
> ...
This style seems to be already obsolate.

> See Maypole::Config::YAML
I should be aware this module.

# BTW, I'm very happy now because I found M* , V*, C* sub-dirs
# in my Maypole dir :-)

My wish-list item reduces to

  Extend Maypole::Config::YAML to handle
        'has_a' and 'has_many' relations
        untaint_columns
        display_tables
        display_columns (for each table)
        column_names (for each table)

The discussions here can be
  - How to harmonize with MVC-separating policy.:
   Above configs belong to different categories:
        model(relations between tables and column validation patterns),
        view (column_names, display_tables ,display_columns) and
        control(display_tables and display_tables also
         come here?)
  - Whether to provide a auto-assign mechanism
    or just to leave it to end-programer's responsibility to code
         MyApp->setup(MyApp->config->{dsn},...);
  or such.

simonflk:
> Along similar lines, it'd be nice to be able to configure the mapping between
> the URI action and the model action. For example I'd like to be able to map,
> '/brewery/add' to &BeerDB::Brewery::Maypole_add rather than &BeerDB::Brewery::
> add.
  I hope to keep a context-data with the mapping you mentioned,
just like other event-driven programming styles such
as Tk and POE.
  This may enable us to reduce codes by sharing among several URI actions,
and even among actions for different tables.

N.A.

-- 

_______________________________________________ maypole mailing list maypole at lists.netthink.co.uk http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT