Skip Menu |

This queue is for tickets about the Rose-DBx-Object-Renderer CPAN distribution.

Report information
The Basics
Id: 39288
Status: resolved
Priority: 0/
Queue: Rose-DBx-Object-Renderer

People
Owner: Nobody in particular
Requestors: blackbird [...] webbird.de
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.28
Fixed in: (no value)



Subject: RDBO schema support
This is a very interesting module, but IMO it lacks predefined schema support. I have a very complex DB schema I don't wish to "autoload". (For performance and different other reasons.) So it would be most desirable to use this predefined schema as a base for the renderer. Is there a way to do this?
I've started to make Renderer "predefined-schema-friendly" from version 0.29+.You should be able to use Renderer's rendering methods for predefined schemas. See the "Rendering Methods" in the latest POD: package Company::Employee use Rose::DBx::Object::Renderer qw(:object); ... # For manager classes package Company::Employee::Manager use Rose::DBx::Object::Renderer qw(:manager); ... Without using Renderer's load() method, all you're missing is built-in column definitions and formatting methods. However, you can replicate the behaviours of column definition by using the 'fields' option in render_as_form, and the 'columns' option in render_as_table. For formatting methods, you can hand craft for your custom rdbo classes. It is a bit more work, but they are not mandatory. I will be releasing subsequent versions optimised that. Please let me know if you have any problems. Cheers, Danny