On 12/21/05, Kim Ryan <[EMAIL PROTECTED]> wrote: > Thanks to all this is clear to me now. > > It does raise an idea though. Being a Maypole novice, I have found several > issues like this where Maypole assumes a certain convention is configured to > some default behaviour, but I have only found this through trial and error. > These include: > > Table names with under scores must use Camel case for it's class definition > Primary key name is assumed to be 'id' > All tables must have a primary key (even if you never join to them) > When displaying a joined tables, default to displaying the column called > 'name' > Tables display columns in alphabetical order by default > ... probably more > > Perhaps it could be worth listing these in the documentation area of the > web site. > Not sure if FAQ is the best place for this, maybe a section called > Defaults and > then headings for database, templates etc. > > Kim >
Definitely a good idea and a good start on the list. I'd say put it up on the Wiki where you tihnk it would be best and post where you put it and everyone can add to it. thanks. > > Thomas, Mark - BLS CTR wrote: > > >Dave Howorth wrote: > > > > > >>I don't think there is a bug, at least reading Kim's latest mail. > >>I think there was a misunderstanding. > >> > >> > > > >Yes, this is just the way CDBI::L works. From the module's perldocs: > > > > > > > >>class names are defined by table names and namespace option. > >> > >> +-----------+-----------+-----------+ > >> | table | namespace | class | > >> +-----------+-----------+-----------+ > >> | foo | Data | Data::Foo | > >> | foo_bar | | FooBar | > >> +-----------+-----------+-----------+ > >> > >> > > > >A table name foo_bar corresponds to a FooBar class. > > > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Maypole-users mailing list > Maypole-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/maypole-users > -- pjs ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Maypole-users mailing list Maypole-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/maypole-users