[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb: [1305] trunk
- Subject: SF.net SVN: ledger-smb: [1305] trunk
- From: ..hidden..
- Date: Fri, 22 Jun 2007 11:24:28 -0700
Revision: 1305
http://svn.sourceforge.net/ledger-smb/?rev=1305&view=rev
Author: einhverfr
Date: 2007-06-22 11:24:28 -0700 (Fri, 22 Jun 2007)
Log Message:
-----------
Request handler now working to the point that it properly handles a password that needs to be re-entered.
Modified Paths:
--------------
trunk/LedgerSMB.pm
trunk/UI/get_password.html
trunk/lsmb-request.pl
Modified: trunk/LedgerSMB.pm
===================================================================
--- trunk/LedgerSMB.pm 2007-06-22 17:33:11 UTC (rev 1304)
+++ trunk/LedgerSMB.pm 2007-06-22 18:24:28 UTC (rev 1305)
@@ -163,6 +163,7 @@
my $locale = LedgerSMB::Locale->get_handle($self->{_user}->{countrycode})
or $self->error(__FILE__.':'.__LINE__.": Locale not loaded: $!\n");
$self->{_locale} = $locale;
+ $self->{stylesheet} = $self->{_user}->{stylesheet};
if ( $self->{password} ) {
if (
!Session::password_check(
@@ -212,7 +213,7 @@
sub _get_password {
my ($self) = shift @_;
$self->{sessionexpired} = shift @_;
- @{$self->{hidden}};
+ @{$self->{hidden}} = [];
for (keys %$self){
next if $_ =~ /(^script$|^endsession$|^password$)/;
my $attr = {};
@@ -220,14 +221,15 @@
$attr->{value} = $self->{$_};
push @{$self->{hidden}}, $attr;
}
- my $template = Template->new(
+ my $template = LedgerSMB::Template->new(
user =>$self->{_user},
locale => $self->{_locale},
path => 'UI',
- template => 'get_password.html',
+ template => 'get_password',
format => 'HTML'
);
$template->render($self);
+ $template->output('http');
exit;
}
Modified: trunk/UI/get_password.html
===================================================================
--- trunk/UI/get_password.html 2007-06-22 17:33:11 UTC (rev 1304)
+++ trunk/UI/get_password.html 2007-06-22 18:24:28 UTC (rev 1305)
@@ -7,7 +7,6 @@
<meta http-equiv="Expires" content="-1" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="css/<?lsmb stylesheet ?>" type="text/css" />
- <link rel="stylesheet" href="UI/employee.css" type="text/css" />
<meta http-equiv="content-type"
content="text/html; charset=utf-8" />
@@ -39,6 +38,7 @@
<?lsmb FOREACH var = hidden ?>
<input name="<?lsmb var.name ?>" type="hidden" value="<?lsmb var.value ?>" />
+<?lsmb END ?>
</form>
</body>
Modified: trunk/lsmb-request.pl
===================================================================
--- trunk/lsmb-request.pl 2007-06-22 17:33:11 UTC (rev 1304)
+++ trunk/lsmb-request.pl 2007-06-22 18:24:28 UTC (rev 1305)
@@ -52,11 +52,11 @@
}
eval { require "scripts/$script" }
- || $request->error($locale->text('Unable to open script' . ": $!";
+ || $request->error($locale->text('Unable to open script') . ": $!");
$script =~ s/\.pl$//;
$script = "LedgerSMB::Scripts::$script";
$script->can($request->{action})
- || $request->error($locale->text("Action Not Defined: ") . $request->{action};
+ || $request->error($locale->text("Action Not Defined: ") . $request->{action});
$script->can($request->{action})->($request);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.