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

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

Serving Software Downloads in 976 Categories, Downloaded 29.547.682 Times

Catalyst::Controller::Constraints 0.10_02

  Date Added: March 12, 2010  |  Visits: 688

Catalyst::Controller::Constraints

Report Broken Link
Printer Friendly Version


Product Homepage
Download (72 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...
 
Business  -  Evosys Smart Self Service 1.7
Evosys - Approvals for Manager enables managers to take immediate actions easily and securely. Offers a highly intuitive user interface built as a ios native application to conveniently access pending actions related to HR absence, Ticket...
3.5 MB  
Development Tools  -  0-1 Knapsack 1.0
Please let others rate your work. Rating your own stuff highly says nothing about the code, but perhaps drops you closer to the level of a spammer on the FEX like Marco. So let the rating system do its job. I know that you think your stuff is...
10 KB  
Email  -  Signature Script 0.14
Ever wanted to have witty and pithy sigs attached to your e-mail and news postings, but got tired having the same old one attached every time? That's where signature comes in. signature is a free, open-source producer of dynamic signatures for...
 
Modules  -  Node Agreement 6.x-1.x-de
This module is useful to publish nodes that require an agreement to be signed by each user before they can access the content. Examples of agreements include Non-Disclosure Agreements, End-User License Agreements, etc. Nodes of any type can be...
10 KB  
Business  -  RCI Insurance Group HD 1.0
RCI Insurance Group is on your side when it comes to protecting what matters most to you. Now with our mobile app, we can serve you even better! With the touch of a button, submit policy changes and claims with pictures, signatures and GPS...
23.5 MB  
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  
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  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
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  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB