Peter Speltz wrote:
I made a few fixes to the demo. I put the SuperModel source up. That
link was dead in the source/list.

Doing so i noticed something that may be a bug: See the difference in
styles in :

http://doorstop.cafes.net:1088/maytech/source/Source
and
http://doorstop.cafes.net:1088/maytech/source/SuperModel

What is causing this difference is the fact that there is no
"SuperModel" action in Source.pm.  Since there is no action, the
custom templates in the "source" directory are not being used for the
SuperModel template. Not what i expected.  Maypole  nicely serves up
the template by the same named SuperModel even though there is no
SuperModel action but it is simply following the path and not
regarding any model class.

Hi Peter,

I'm not sure I understand you completely, but it seems that your URL causes is_applicable to decline to process a model and just treat the path as a plain template. This seems to be correct IMHO.

I'm using 2.09 still here and it may be fixed.  If not, I think it
would be nice to say:

/base/model/action_or_template/args.

I think the Maypole idiom is:

  /base/table/action/args

so if you want to process arbitrary templates with model-related data you would say:

  /base/table/please_process_this_template/template=fred&other=args

where 'please_process_this_template' is the name of a suitable action. I guess it would be more normal to just define each such template as an action:

  sub fred:Exported {}

like you already do for several things in your Source model.

gotta run
--
pjs

Cheers, Dave



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Maypole-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maypole-devel

Reply via email to