RapidApp
view release on metacpan or search on metacpan
lib/RapidApp/DBIC/Component/TableSpec.pm view on Meta::CPAN
column_properties
column_properties_ordered
column_properties_defaults
);
my %col_prop_names = map {$_=>1} @col_prop_names;
# The TableSpec_set_conf method is overly complex to allow
# flexible arguments as either hash or hashref, and because of
# the special case of setting the nested 'column_properties'
# param, if specified as the first argument, and then be able to
# accept its sub params as either a hash or a hashref. In hindsight,
# allowing this was probably not worth the extra maintenace/code and
# was too fancy for its own good (since this case may or may not
# shift the key/value positions in the arg list) but it is a part
# of the API for now...
sub TableSpec_set_conf {
my $self = shift;
die "TableSpec_set_conf(): bad arguments" unless (scalar(@_) > 0);
# First arg can be a hashref - deref and call again:
if(ref($_[0])) {
lib/RapidApp/Template/Controller.pm view on Meta::CPAN
# --
# Only these TT plugins and filters will be allowed in Templates
# This is *very* important for security if non-admin users will
# have access to modify templates. These templates and filters
# are from the built-in list and are known to be safe. Examples
# of unsafe plugins are things like 'Datafile' and 'DBI', and
# examples of unsafe filters are things like 'eval', 'redirect', etc.
# It is critical that these types of things are never exposed
# to web interfaces. It is also important to note that TT was
# not originally designed with "limited" access in mind - it was
# only meant to be used by the programmer, not users. In hindsight,
# it might have been better to go with Text::Xslate for this reason
#
# (note: these get accessed/used within RapidApp::Template::Context)
has 'allowed_plugins', is => 'ro', default => sub {[qw(
Assert Date Dumper Format HTML Iterator
Scalar String Table URL Wrap
)]}, isa => 'ArrayRef';
has 'allowed_filters', is => 'ro', default => sub {[qw(
format upper lower ucfirst lcfirst trim collapse
( run in 2.269 seconds using v1.01-cache-2.11-cpan-71847e10f99 )