api functional! (except for authblobbusiness)

This commit is contained in:
seba 2011-09-29 23:41:48 +02:00
parent cf83f8def2
commit 9d674f82ca
2 changed files with 3 additions and 2 deletions

View File

@ -121,7 +121,8 @@ class TransactionTypeHandler(BaseHandler):
class AccountBalanceHandler(BaseHandler): class AccountBalanceHandler(BaseHandler):
allowed_methods = ('GET',) allowed_methods = ('GET',)
def read(self, request): def read(self, request):
pass balance = request.user.get_profile().balance
return {'balance': balance}
class AuthBlobHandler(BaseHandler): class AuthBlobHandler(BaseHandler):
# allowed_methods = ('GET', 'POST') # allowed_methods = ('GET', 'POST')

View File

@ -35,7 +35,7 @@ urlpatterns = patterns('',
url(r'account/transactions/transact/$', transactionTransactRes), url(r'account/transactions/transact/$', transactionTransactRes),
url(r'account/transfers/transfer/$', transactionTransactRes), url(r'account/transfers/transfer/$', transactionTransactRes),
url(r'account/transactions/types/$', transactionTypeRes), url(r'account/transactions/types/$', transactionTypeRes),
url(r'account/transfer/types/$', transactionTypeRes), url(r'account/transfers/types/$', transactionTypeRes),
url(r'account/balance/$', accountBalanceRes), url(r'account/balance/$', accountBalanceRes),
url(r'auth/blob/$', authBlobRes), url(r'auth/blob/$', authBlobRes),