Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.001.096 Times

Catalyst::Controller::Constraints 0.10_02

  Date Added: March 12, 2010  |  Visits: 989

Catalyst::Controller::Constraints

Report Broken Link
Printer Friendly Version


Product Homepage
Download (89 downloads)



Catalyst::Controller::Constraints contains Constraint Signatures for Controller Actions. SYNOPSIS package MyApp::Controller::Foo; ... use base qw(Catalyst::Controller::Constraints); __PACKAGE__->config( constraints => { # allow only digits for type Integer Integer => qr/^d+$/, # allow only word chars for type Word Word => sub { /^w+$/ }, # validate user id and inflate to object User => { # check the user id check => sub { my ( $self, $c, $id ) = @_; return $c->is_valid_user_id( $id ); }, # forward to this action if the validation failed on_fail => invalid_user, # if value is valid, run it through this filter # afterwards post_filter => sub { my ( $self, $c, $id ) = @_; $c->fetch_user_by_id( $id ); }, } # inheritance HighInteger => { inherit_from => Integer, check => sub { $_ > 22 }, }, # collapse multiple arguments MyDate => { # take three integers and return one value takes => 3, gives => 1, # inflate to a datetime object post_filter => sub { my ( $self, $c, $y, $m, $d ) = @_; DateTime->new( year => $y, month => $m, day => $d ); } } } ); # add two integers, just throws exception on constraint failure sub add : Local Args(2) Constraints(Integer a, Integer b) { my ( $self, $c ) = @_; $c->res->body( $_{a} + $_{b} ); } # puts the word into the stash, under the key foo sub stashword : Local Args(1) Constraints( Word foo* ) { } # user_obj ends as a user object in the stash sub view_user : Local Args(1) Constraints( User user_obj* ) { } sub invalid_user : Private { # handle invalid userid } 1;.

Requirements: No special requirements
Platforms: Linux
Keyword: Catalystcontrollerconstraints Constraint Constraint Signatures Constraint Signatures Controller Actions Id Integer Libraries Local Args Programming Sub User Word
Users rating: 0/10

License: Freeware Size: 25.6 KB
USER REVIEWS
More Reviews or Write Review


CATALYST::CONTROLLER::CONSTRAINTS RELATED
Modules  -  Views Actions Links 1.0
Each action is fully permissioned, meaning that you can have one view allow different sets of actions based on the roles to which a user is assigned.Installation - Unpack in your modules folder (usually /sites/all/modules/) and enable under...
 
Libraries  -  Yet Another Swing Library 1.0
Yet Another Swing Library (YASL in short) provides a light-weight framework for developing Swing-based applications along with a library of Swing components and utilities. Swing is a much-maligned but rich library for developing Java-based gui...
245.76 KB  
Networking Tools  -  SMBGate 1.0
SMBGate provides a gateway and firewall with authentication managed by a Samba Primary Domain Controller. The firewall rules are set on a per-user basis.. Get Samba Authenticated Gateway at SourceForge.net. Fast, secure and free downloads from the...
15.36 KB  
Development Editors  -  DB Solo for Mac OS 3.8.2
A cross-platform database development and management tool for developers and admins. DB Solo supports all major DBMS products available today, including Oracle, SQL Server 2000 and 2005, DB2, Sybase, H2, Postgres, MySQL and Solid. Key Features...
24.5 MB  
Code Management Tools  -  Kelbt 0.12
Kelbt project can generate backtracking LALR parsers. Standard LALR parser generators emit an error upon encountering a conflict in the parse tables. Kelbt forges onward, generating parsers which handle conflicts by backtracking at runtime. Kelbt...
215.04 KB  
File Cataloguers  -  Areca 7.2.5
Areca is an Open Source file backup software developped in Java. Here are some key features of "Areca": ?*A* Archives Compression (Zip format) ?*A* Archives Encryption (Triple DES encryption algorithm) ?*A* Source...
2.25 MB  
Utilities  -  vTask Studio 7.80
vTask Studio provides advanced automation for Microsoft Windows. vTask Studio gives you the opportunity to control every aspect of your computer, such as the keyboard, mouse and web actions, without needing to write any programming code. vTask...
 
Utilities  -  Shutdown Timer 64bit 3.3.4
Shutdown Timer is a utlity that will allow you to perform certain actions relating to shutting down the system. The user interface is easy to use and understand and you should be able to get to grips with it. What are the main features of...
3 MB  
Modules  -  Path Rules 6.x-1.1
Path Rules implements Rules conditions for checking the URL against a given string for triggering actions.Eg.Setup a rule with the event 'User is going to view a page', add 'Check path' condition with path 'project' and Operator 'Begins with'.The...
10 KB  
Boot Managers  -  System Tracker 2.1
System Tracker is a powerful, full-featured utility that audits the programs running on your machine and provides the user complete control over active processes on the computer. Detailed information about processes you may find is available from...
286.72 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB