jifty::action::record::bulk(3pm) [debian man page]
Jifty::Action::Record::Bulk(3pm) User Contributed Perl Documentation Jifty::Action::Record::Bulk(3pm)NAME
Jifty::Action::Record::Bulk - Perform multiple record actions
SYNOPSIS
use strict;
use warnings;
package MyApp::Action::BulkUpdateFoo;
use base qw/ Jifty::Action::Record::Bulk /;
__PACKAGE__->add_action('MyApp::Action::DeleteFoo' => { trigger => 'delete', final => 1 });
__PACKAGE__->add_action('MyApp::Action::UpdateFoo');
METHODS
add_action CLASS [, OPTIONS]
Merges the given action class into this one. Will "die" if the "action_class" in Jifty::Action::Record of the given "CLASS" doesn't match
previously added classes.
OPTIONS should be a hash reference of additional options. The existing options are:
trigger
Only run if this argument is provided
final
If this action runs, run only this action.
arguments
Merges together arguments from all of the actions added with "add_action". The record IDs to act on are stored (comma-separated) in an
argument named "ids", by default.
perform_action CLASS, IDS
Performs the given action "CLASS" on the given record "ID"s, which should be an array reference.
take_action
Completes the actions on all of the IDs given.
report_success
Reports "Bulk update successful".
perl v5.14.2 2010-09-25 Jifty::Action::Record::Bulk(3pm)
Check Out this Related Man Page
Jifty::Action::Record::Search(3pm) User Contributed Perl Documentation Jifty::Action::Record::Search(3pm)NAME
Jifty::Action::Record::Search - Automagic search action
DESCRIPTION
The class is a base class for Jifty::Actions that serve to provide an interface to general searches through Jifty::Record objects. To use
it, subclass it and override the "record_class" method to return the fully qualified name of the model to do searches over.
METHODS
arguments
Remove validators from arguments, as well as ``mandatory'' restrictions. Remove any arguments that render as password fields, or refer to
collections.
Generate additional search arguments for each field based on the following criteria:
"text", "char" or "varchar" fields
Create "field"_contains and "field"_lacks arguments
"date", or "timestamp" fields
Create "field"_before, "field"_after, "field"_since and "field"_until arguments.
"integer", "float", "double", "decimal" or "numeric" fields
Generate "field"_lt, "field"_gt, "field"_le and "field"_ge arguments, as well as a "field"_dwim field that accepts a prefixed
comparison operator in the search value, such as ">100" and "!100".
take_action
Return a collection with the result of the search specified by the given arguments.
We interpret a "undef" argument as SQL "NULL", and ignore empty or non-present arguments.
SEE ALSO
Jifty::Action::Record, Jifty::Collection
LICENSE
Jifty is Copyright 2005-2010 Best Practical Solutions, LLC. Jifty is distributed under the same terms as Perl itself.
perl v5.14.2 2010-12-10 Jifty::Action::Record::Search(3pm)
I am trying to see if there is a way in awk to test the next record before processing.
All I am trying to do is see if the next line equal something then turn a flag off.
Example:
Problem
Cron
IneedThis
KeyOnThis
somemoredata
somemoredata
Cron
somemoredata
somemoredata
IneedThis... (7 Replies)
i have srtring i.e. "NAME,CLASS,AGE" (length of string is not constant) and from this string i've extract each word delimited by "," (comma).
INPUT: "NAME,CLASS,AGE"
OUTPUT: NAME
CLASS
AGE
how can i do that?
i have tried some string manipulation function like... (5 Replies)
I have a text file with lot of rows like..
Action & Adventure|2012: Supernova NR|2009-11-01 00:01:00|2010-05-01 23:59:00|Active|3
Action & Adventure|50 Dead Men Walking|2010-01-05 00:01:00|2010-06-30 23:59:00|Active|3
Action & Adventure|Afterwards|2009-11-26 00:01:00|2010-03-26... (3 Replies)
Hi ,
I have a requirement to split the record based on particular match using UNIX.
Case1:
Input Record :
10.44.48.63;"Personals/Dating;sports";1441
Output Records :
10.44.48.63;Personals/Dating;1441;Original
10.44.48.63;sports;1441;Dummy
Case2:
Input Record : ... (5 Replies)
Hi I have a file like this
Record 182: Rejected
No Data found
Record 196: Rejected
File Not Found
Record 202: Rejected
Invalid argument
Record 212: Rejected
Bad data
My requirement is to search for the value "Record" and if found, then return the next line of it.
So,... (3 Replies)
I'm trying to write a script that can compile my students' homework submissions in bulk. My students' c code is buried in a file path that looks like this:
./Homework\ X/Doe, John/Submission\ Attachments
Where I'm struggling is determining how to navigate to each of the submission attachment... (11 Replies)
hello,
I am getting SIGUP Exceptions during an execution of a procedure. Below is the log:
Type: SignalException Message: SIGHUP Backtrace: 12:38 PM Action threw an exception: SIGHUP 12:38 PM Action threw an exception: SIGHUP
E, ERROR -- : Type: SignalException Message: SIGHUP... (1 Reply)