[gold-users] gdeposit and new allocation description
Kevin Van Workum
vanw at sabalcore.com
Wed Dec 21 07:58:43 MST 2011
When using gdeposit to make a new allocation, I would like the new
allocation's Description to be the description provided to gdeposit via the
-d option. Currently the new allocation has no description, only the
deposit's transaction. I have modified Bank.pm to do this, but was
wondering if you could foresee any problems with this change? So far it
seems to be working, but I haven't done anything close to a full test.
[root at jman Gold]# diff -c Bank.pm.orig Bank.pm
*** Bank.pm.orig 2011-12-21 09:52:46.000000000 -0500
--- Bank.pm 2011-12-21 09:50:39.000000000 -0500
***************
*** 4635,4640 ****
--- 4635,4641 ----
my $database = $request->getDatabase();
my $dbh = $database->{_handle};
my $amount = $request->getOptionValue("Amount");
+ my $description = $request->getOptionValue("Description");
my $id = $request->getOptionValue("Id");
my $allocation = $request->getOptionValue("Allocation");
my $creditLimit = $request->getOptionValue("CreditLimit") || 0;
***************
*** 4946,4951 ****
--- 4947,4956 ----
value => $creditLimit
),
new Gold::Assignment(
+ name => "Description",
+ value => $description
+ ),
+ new Gold::Assignment(
name => "Active",
value => $activeness
)
--
Kevin Van Workum, PhD
Sabalcore Computing Inc.
Run your code on 500 processors.
Sign up for a free trial account.
www.sabalcore.com
877-492-8027 ext. 11
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.supercluster.org/pipermail/gold-users/attachments/20111221/686f9a73/attachment.html
More information about the gold-users
mailing list