this is the Stripe integration example from the manual

from gluon.contrib.stripe import Stripe
stripe = Stripe(api_key)
d = stripe.charge(amount=100,
              currency='usd',
              card_number='4242424242424242',
              card_exp_month='5',
              card_exp_year='2012',
              card_cvc_check='123',
              description='the usual black shoes')
if d.get('paid',False):
    # payment accepted
elif:
    # error is in d.get('error','unknown')


i want to save the d recordset


Il giorno lunedì 21 luglio 2014 10:41:39 UTC+2, Massimo Di Pierro ha 
scritto:
>
> No without some work.
>
> You can create a database view and expose that as a web2py table (but I am 
> not sure sqlite supports table views).
> You can create a database in memory and copy the results of the select 
> there and use that as a new table.
>
>  But why?
>
> On Monday, 21 July 2014 02:24:27 UTC-5, ceriox wrote:
>>
>> Hi all,
>>
>> it is possible to create a table from a recordset?
>>
>> something like this for example:
>> db.define_table('t_log', log_results)
>>
>> thanks
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to