[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[3491] trunk



Revision: 3491
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3491&view=rev
Author:   einhverfr
Date:     2011-07-11 09:42:10 +0000 (Mon, 11 Jul 2011)

Log Message:
-----------
File attachment infrastructure nearly done

Modified Paths:
--------------
    trunk/LedgerSMB/File.pm

Added Paths:
-----------
    trunk/file.pl
    trunk/scripts/file.pl

Modified: trunk/LedgerSMB/File.pm
===================================================================
--- trunk/LedgerSMB/File.pm	2011-07-11 09:25:40 UTC (rev 3490)
+++ trunk/LedgerSMB/File.pm	2011-07-11 09:42:10 UTC (rev 3491)
@@ -252,6 +252,17 @@
     $self->x_info         ($ref->{dbobject}       || $self->x_info);
 }
 
+=item commit()
+
+Returns the value of DBI->commit
+
+=cut
+
+sub commit{
+    my ($self) = @_;
+    return $self->dbobject->{dbh}->commit;
+}
+
 =back
 
 =head1 COPYRIGHT

Copied: trunk/file.pl (from rev 3480, trunk/vouchers.pl)
===================================================================
--- trunk/file.pl	                        (rev 0)
+++ trunk/file.pl	2011-07-11 09:42:10 UTC (rev 3491)
@@ -0,0 +1,3 @@
+#!/usr/bin/perl
+
+require 'lsmb-request.pl';

Added: trunk/scripts/file.pl
===================================================================
--- trunk/scripts/file.pl	                        (rev 0)
+++ trunk/scripts/file.pl	2011-07-11 09:42:10 UTC (rev 3491)
@@ -0,0 +1,42 @@
+=pod
+
+=head1 NAME
+
+LedgerSMB:Scripts::file
+
+=head1 SYNOPSIS
+
+This supplies file retrival and attachment workflows
+    
+=head1 METHODS
+        
+=over
+
+=item get
+
+Retrieves a file and sends it to the web browser.
+
+=cut
+
+=item show_attachment_screen
+
+Show the attachment or upload screen.
+
+=cut
+
+=item attach
+        
+=cut
+
+=back
+
+=head1 COPYRIGHT
+
+Copyright (C) 2011 LedgerSMB Core Team.  This file is licensed under the GNU 
+General Public License version 2, or at your option any later version.  Please
+see the included License.txt for details.
+
+=cut
+
+
+1;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.