I have fixed the first error too but not sure where the second comes from.
Can you help?
On Sunday, 13 January 2013 09:25:13 UTC-6, DenesL wrote:
>
> Thank you, it still needs more work:
>
> Traceback (most recent call last):
> File "C:\w2p\trunk\gluon\restricted.py", line 212, in restricted
> exec ccode in environment
> File "C:\w2p\trunk\applications\test\controllers/rest.py", line 28, in
> <module>
> File "C:\w2p\trunk\gluon\globals.py", line 193, in <lambda>
> self._caller = lambda f: f()
> File "C:\w2p\trunk\gluon\globals.py", line 157, in f
> return rest_action(*_self.args, **_self.vars)
> File "C:\w2p\trunk\applications\test\controllers/rest.py", line 12, in GET
> parser = b1.parse_as_rest(patterns,args,vars)
> File "C:\w2p\trunk\gluon\dal.py", line 7221, in parse_as_rest
> tokens = pattern.split('/')
> AttributeError: 'tuple' object has no attribute 'split'
>
> I tried fixing it by adding the basequery handling code there too but then
> it fails with:
>
> Traceback (most recent call last):
> File "C:\w2p\trunk\gluon\restricted.py", line 212, in restricted
> exec ccode in environment
> File "C:\w2p\trunk\applications\test\controllers/rest.py", line 28, in
> <module>
> File "C:\w2p\trunk\gluon\globals.py", line 193, in <lambda>
> self._caller = lambda f: f()
> File "C:\w2p\trunk\gluon\globals.py", line 163, in f
> raise e
> TypeError: Incorrect padding
>
>
> Denes
>
>
> On Wednesday, January 9, 2013 11:44:38 AM UTC-5, Massimo Di Pierro wrote:
>>
>> I have implemented what you requested:
>>
>> patterns = [ ('/dogs[pet]', db.pet.kind=='dog') ]
>>
>> Can you please check it?
>>
>
--