[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[6225] addons/1.3/wxPOS/scripts
- Subject: SF.net SVN: ledger-smb:[6225] addons/1.3/wxPOS/scripts
- From: ..hidden..
- Date: Wed, 6 Nov 2013 06:32:27 +0000
Revision: 6225
http://sourceforge.net/p/ledger-smb/code/6225
Author: einhverfr
Date: 2013-11-06 06:32:26 +0000 (Wed, 06 Nov 2013)
Log Message:
-----------
Making use of enhancements to PGObject::Simple::Role 0.12
Modified Paths:
--------------
addons/1.3/wxPOS/scripts/Login.pm
addons/1.3/wxPOS/scripts/WXPOS/User.pm
Modified: addons/1.3/wxPOS/scripts/Login.pm
===================================================================
--- addons/1.3/wxPOS/scripts/Login.pm 2013-11-05 12:28:16 UTC (rev 6224)
+++ addons/1.3/wxPOS/scripts/Login.pm 2013-11-06 06:32:26 UTC (rev 6225)
@@ -75,8 +75,7 @@
);
if ( $self->{sesion}->{ldb} ) {
- my $uhandle = WXPOS::User->new();
- $self->{sesion}->{user_info} = $uhandle->get_current;
+ $self->{sesion}->{user_info} = WXPOS::User->get_current;
if ($self->{sesion}->{user_info}) {
$self->EndModal(0);
}
Modified: addons/1.3/wxPOS/scripts/WXPOS/User.pm
===================================================================
--- addons/1.3/wxPOS/scripts/WXPOS/User.pm 2013-11-05 12:28:16 UTC (rev 6224)
+++ addons/1.3/wxPOS/scripts/WXPOS/User.pm 2013-11-06 06:32:26 UTC (rev 6225)
@@ -84,10 +84,11 @@
sub get_current {
my ($self) = @_;
- my ($ref)
- = $self->call_dbmethod(funcname => 'get_current', funcschema => 'public');
+ my ($ref) = __PACKAGE__->call_dbmethod(
+ funcname => 'get_current', funcschema => 'public'
+ );
$ref->{defaults} = _process_defaults($ref->{defaults}) if $ref->{defaults};
- return $self->new(%$ref);
+ return __PACKAGE__->new(%$ref);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits