August 30th, 2005

wcmtools

Module Name: wcmtools
Committed By: bradfitz

Modified Files:
---------------
wcmtools/perlbal: CHANGES META.yml
wcmtools/perlbal/doc/hacking: todo.txt
wcmtools/perlbal/lib/Perlbal: ClientHTTPBase.pm

Log Message:
------------
+ -- avoid an occasional warning with dirindexing on unreadable directories
+

also rearrange lib/Perlbal/ClientHTTPBase.pm a bit.


To generate a diff of this commit:
cvs rdiff -r1.71 -r1.72 wcmtools/perlbal/CHANGES
http://cvs.danga.com/browse.cgi/wcmtools/perlbal/CHANGES.diff?r1=1.71&r2=1.72
cvs rdiff -r1.9 -r1.10 wcmtools/perlbal/META.yml
http://cvs.danga.com/browse.cgi/wcmtools/perlbal/META.yml.diff?r1=1.9&r2=1.10
cvs rdiff -r1.14 -r1.15 wcmtools/perlbal/doc/hacking/todo.txt
http://cvs.danga.com/browse.cgi/wcmtools/perlbal/doc/hacking/todo.txt.diff?r1=1.14&r2=1.15
cvs rdiff -r1.54 -r1.55 wcmtools/perlbal/lib/Perlbal/ClientHTTPBase.pm
http://cvs.danga.com/browse.cgi/wcmtools/perlbal/lib/Perlbal/ClientHTTPBase.pm.diff?r1=1.54&r2=1.55
potato

ljcom

Module Name: ljcom
Committed By: marksmith
Date: Wed Aug 31 00:29:41 UTC 2005

Modified Files:
---------------
ljcom/bin/upgrading/s2layers/smoothsailing: layout.s2

Log Message:
------------
http://zilla.livejournal.org/2463

Updates to Smooth Sailing by masterslacker.


To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 ljcom/bin/upgrading/s2layers/smoothsailing/layout.s2
http://cvs.livejournal.org/browse.cgi/ljcom/bin/upgrading/s2layers/smoothsailing/layout.s2.diff?r1=1.3&r2=1.4
potato

ljcom

Module Name: ljcom
Committed By: marksmith
Date: Wed Aug 31 00:43:16 UTC 2005

Modified Files:
---------------
ljcom/bin/upgrading/s2layers/3column: layout.s2

Log Message:
------------
http://zilla.livejournal.org/2436

Patch by wyntarvox to fix rendering issue with 3column.


To generate a diff of this commit:
cvs rdiff -r1.6 -r1.7 ljcom/bin/upgrading/s2layers/3column/layout.s2
http://cvs.livejournal.org/browse.cgi/ljcom/bin/upgrading/s2layers/3column/layout.s2.diff?r1=1.6&r2=1.7
potato

ljcom

Module Name: ljcom
Committed By: marksmith
Date: Wed Aug 31 00:45:21 UTC 2005

Modified Files:
---------------
ljcom/bin/upgrading/s2layers/anovelconundrum: layout.s2

Log Message:
------------
http://zilla.livejournal.org/2431

Patch by wyntarvox to fix print issue in A Novel Conundrum.


To generate a diff of this commit:
cvs rdiff -r1.1 -r1.2 ljcom/bin/upgrading/s2layers/anovelconundrum/layout.s2
http://cvs.livejournal.org/browse.cgi/ljcom/bin/upgrading/s2layers/anovelconundrum/layout.s2.diff?r1=1.1&r2=1.2
computer crap

livejournal

Module Name: livejournal
Committed By: whitaker
Date: Wed Aug 31 00:50:42 UTC 2005

Modified Files:
---------------
livejournal/cgi-bin: ljlib.pl

Log Message:
------------
New constraint on areas in the 'counter' table (LJ::alloc_global_counter)

* 0-9 are reserved for local (ljcom) use by hooks
* everything else is available to general lj code

2 new ljcom hooks:

-- map_global_counter_domain: given an area string, return the area (0-9)
to which it maps.

-- global_counter_init_value: when LJ::alloc_global_counter needs to
generate an initial value for an area on the 'counter' table, what
should it be?


To generate a diff of this commit:
cvs rdiff -r1.884 -r1.885 livejournal/cgi-bin/ljlib.pl
http://cvs.livejournal.org/browse.cgi/livejournal/cgi-bin/ljlib.pl.diff?r1=1.884&r2=1.885
computer crap

ljcom

Module Name: ljcom
Committed By: whitaker
Date: Wed Aug 31 00:58:45 UTC 2005

Modified Files:
---------------
ljcom/cgi-bin/LJ/Pay: Transaction.pm

Log Message:
------------
2 new methods on generic transaction modules:

-- get_config: returns a requested configuration key from the trans module

-- get_uniq_prefix: return a string prefix that is unique within the
merchant provider's systems. this is pretty wfg-esque, but hopefully
we'll be able to fill this in with a sane value for other providers
as well.


To generate a diff of this commit:
cvs rdiff -r1.1 -r1.2 ljcom/cgi-bin/LJ/Pay/Transaction.pm
http://cvs.livejournal.org/browse.cgi/ljcom/cgi-bin/LJ/Pay/Transaction.pm.diff?r1=1.1&r2=1.2
computer crap

ljcom

Module Name: ljcom
Committed By: whitaker
Date: Wed Aug 31 01:18:16 UTC 2005

Modified Files:
---------------
ljcom/cgi-bin: paylib.pl

Log Message:
------------
paylib changes for updated RecBill revoke/refund support

-- new LJ::Pay::remove_paid_time function
(similar to LJ::Pay::add_paid_time)

* allow units to be in month, day, and second granularity... while also
allowing an exact epoch time.

-- LJ::Pay::remove_paid_months is now a wrapper around remove_paid_time

-- make LJ::Pay::remove_paid_account properly disable recurring billing
for that item and deactivate the recbill account when it is revoked.

-- remove LJ::Pay::revoke_payitems as it will be moved to a combination
of LJ::Pay::Payment and LJ::Pay::Payment::PayItem modules.

-- modify LJ::Pay::remove_bonus_item to accept month, day, second time
granularity, as well as epoch.

* also properly handle recbill changes and promo deactivation


To generate a diff of this commit:
cvs rdiff -r1.129 -r1.130 ljcom/cgi-bin/paylib.pl
http://cvs.livejournal.org/browse.cgi/ljcom/cgi-bin/paylib.pl.diff?r1=1.129&r2=1.130
computer crap

ljcom

Module Name: ljcom
Committed By: whitaker
Date: Wed Aug 31 01:33:36 UTC 2005

Modified Files:
---------------
ljcom/cgi-bin/LJ/Pay: RecBill.pm

Log Message:
------------
Support for deactivating individual items and revoking their corresponding
promo entities.

-- new method call: deactivate_item. sets recflag 'off' and revokes any
promo items associated with it.

-- new promo APIs:

* revoke_promo_item: revokes promo status for a single promo_code,item.

* revoke_promo_item_multi: same as revoke_promo_item, but *gasp* multi.

* should_revoke_promo_item: given an item, promo code, and action,
returns whether the item should be revoked from the given promo if
the action is to be performed.

* promos_to_revoke_item: given an item and action, find all of the promo
codes from which the item should be revoked if the action is to be
performed.

-- add requisite revoke_item and should_revoke_item handlers for
'recbill_init_conv_05'


To generate a diff of this commit:
cvs rdiff -r1.7 -r1.8 ljcom/cgi-bin/LJ/Pay/RecBill.pm
http://cvs.livejournal.org/browse.cgi/ljcom/cgi-bin/LJ/Pay/RecBill.pm.diff?r1=1.7&r2=1.8
computer crap

ljcom

Module Name: ljcom
Committed By: whitaker
Date: Wed Aug 31 01:53:04 UTC 2005

Modified Files:
---------------
ljcom/cgi-bin/LJ/Pay/Payment: PayItem.pm

Log Message:
------------
Fix refund/revoke support for both RecBill and WFG/Authnet multiplexing

Payment changes:

-- move existing authnet refund logic from BML into a new
LJ::Pay::Payment->authnet_refund API (including its dependency on LWP,
which we use elsewhere in web land)

-- LJ::Pay::Payment->refund method for transaction module transactions (WFG).
Knows how to allocate a global counter ID to construct a settlement ID
and also saves response vars on the payment if it's called as an object
method.

-- when logging authcap vars, prefix var names with authcap:

-- LJ::Pay::Payment->refund_err_str method. returns a string version of
the refund response given a refund $rv

-- LJ::Pay::Payment->refund_is_success method which looks at a refund $rv
and decides if the refund was successful or not.

-- LJ::Pay::Payment->note_refund_vars. logs vars on a payment with the
refund: prefix, just like authcap:

-- LJ::Pay::Payment->payvar_guess_processor method. Used to look at a set
of payvars and decide (if possible) which payment processor was used on
the transaction. This is used when a refund needs to be done and we
need to extract the refund record from a payvar it was stored in.
Authorize.net had one way of doing this, WFG has another.

PayItems changes:

-- revoke_items method which takes a list of items in the payment and
revokes them by calling their individual ->revoke methods.

-- set_status function which sets the 'status' field in the payitems table.

-- product_name object method which simply wraps LJ::Pay::product_name for
ease of reading/writing

-- revoke method. mostly logic taken from paylib's old revoke_payitems
function. properly takes into account the granularity of recbill
transactions by looking recbill_log if necessary to determine how much
time should be revoked rather than relying on the 'qty' int field in
the payitems table, which isn 't nearly granular enough.


To generate a diff of this commit:
cvs rdiff -r1.1 -r1.2 ljcom/cgi-bin/LJ/Pay/Payment/PayItem.pm
http://cvs.livejournal.org/browse.cgi/ljcom/cgi-bin/LJ/Pay/Payment/PayItem.pm.diff?r1=1.1&r2=1.2
computer crap

ljcom

Module Name: ljcom
Committed By: whitaker
Date: Wed Aug 31 01:56:08 UTC 2005

Modified Files:
---------------
ljcom/htdocs/admin/accounts: paiddetails.bml rr.bml

Log Message:
------------
Admin changes for post-RecBill revoke/refund support

-- code-janitor mode for both rr.bml and paiddetails.bml

-- properly show what type of payment processor was used for cc transactions

-- do revokes with proper granularity.

-- etc.


To generate a diff of this commit:
cvs rdiff -r1.29 -r1.30 ljcom/htdocs/admin/accounts/paiddetails.bml
http://cvs.livejournal.org/browse.cgi/ljcom/htdocs/admin/accounts/paiddetails.bml.diff?r1=1.29&r2=1.30
cvs rdiff -r1.21 -r1.22 ljcom/htdocs/admin/accounts/rr.bml
http://cvs.livejournal.org/browse.cgi/ljcom/htdocs/admin/accounts/rr.bml.diff?r1=1.21&r2=1.22