[Bps-public-commit] r11082 - in Net-Hiveminder: lib/Net

sartak at bestpractical.com sartak at bestpractical.com
Mon Mar 17 12:47:34 EDT 2008


Author: sartak
Date: Mon Mar 17 12:47:33 2008
New Revision: 11082

Modified:
   Net-Hiveminder/   (props changed)
   Net-Hiveminder/Changes
   Net-Hiveminder/lib/Net/Hiveminder.pm

Log:
 r52704 at onn:  sartak | 2008-03-17 12:47:13 -0400
 Allow extra arguments in create_task to set fields (e.g. due) directly


Modified: Net-Hiveminder/Changes
==============================================================================
--- Net-Hiveminder/Changes	(original)
+++ Net-Hiveminder/Changes	Mon Mar 17 12:47:33 2008
@@ -3,6 +3,7 @@
 0.05
         todo, create_task and braindump now use filters so you can have .hm
             files in your directories to have filters applied
+        Allow extra arguments in create_task to set fields (e.g. due) directly
 
 0.04    Thu Feb 07 08 21:17:59
         Add new scripts: todo, create, done

Modified: Net-Hiveminder/lib/Net/Hiveminder.pm
==============================================================================
--- Net-Hiveminder/lib/Net/Hiveminder.pm	(original)
+++ Net-Hiveminder/lib/Net/Hiveminder.pm	Mon Mar 17 12:47:33 2008
@@ -218,8 +218,13 @@
 sub create_task {
     my $self    = shift;
     my $summary = shift;
+    my %args    = @_;
 
-    $self->create(Task => summary => $summary, %{ $self->filter_config });
+    $self->create(Task =>
+        summary => $summary,
+        %{ $self->filter_config },
+        %args,
+    );
 }
 
 =head2 read_task LOCATOR



More information about the Bps-public-commit mailing list