<s> from sellmo . core import chaining <EOL> from sellmo . apps . customer . routines import customer_from_request <EOL> @ chaining . link ( customer_from_request , takes_result = True ) <EOL> def _customer_from_request ( customer , request , ** kwargs ) : <EOL> if request . user . is_authenticated ( ) and getattr ( request . user , '<STR_LIT>' , <EOL> None ) is not None : <EOL> customer = request . user . customer <EOL> yield customer </s>
