Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

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)
Man Page

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Remove First and Last Record from a file

Hi All, Could some one help me how to delete first & last record from a file Thanks in Advance....... Regards Cherrry (1 Reply)
Discussion started by: ravikuc
1 Replies

2. Shell Programming and Scripting

Testing Next Record before processing is done on that Record

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)
Discussion started by: timj123
7 Replies

3. Solaris

Extract substring from a string

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)
Discussion started by: jadoo_c2
5 Replies

4. Shell Programming and Scripting

Separate lines from text file

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)
Discussion started by: ramse8pc
3 Replies

5. Shell Programming and Scripting

Split a record based on particular match

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)
Discussion started by: mksuneel
5 Replies

6. UNIX for Dummies Questions & Answers

922’ Code does not exist on ‘03’ Record, ‘901’ Code will be there instead, move ‘03’ Record to Outpu

01,011600033,011600033,110516,0834,2,90,,2/ 02,011600033,011103093,1,110317,0834,,2/ 03,105581,,015,+00000416418,,,901,+00000000148,,,922,+000000 00354,,/ 03,113806,,015,+00000559618,,,901,+00000000096,,,922,+000000 00621,,/ 88,902,+0000000025218,,/... (1 Reply)
Discussion started by: sgoud
1 Replies

7. Shell Programming and Scripting

[Solved] Finding the next line when a pattern matches

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)
Discussion started by: mr_manii
3 Replies

8. Shell Programming and Scripting

Need Help writing Bulk-Compiling Script

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)
Discussion started by: GingerGiant
11 Replies

9. IP Networking

SIGUP Exceptions during the execution

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)
Discussion started by: Deepthi.Prakash
1 Replies