Denis Lins

Results 5 comments of Denis Lins

+1 to that. I'm writing a somewhat complex grammar, and I'm stuck for three days in a really strange problem. Adding this would certainly help people in this same situation.

It's very simple, actually: ```python class CreateCustomer: def __init__(self, data): self.data = data def execute(self): with db.transaction(): customer = self._create_customer() self._create_emails(customer) def _create_customer(self): return Customer.create(self.data['customer']) ... ```

I managed to solve the problem with a hacky fix: ![image](https://cloud.githubusercontent.com/assets/832802/7566662/8591fc76-f7ce-11e4-8ceb-7b37f095ef2f.png) I added the highlighted line, and it works now. It works because `request.url` is a string, but an "object...

Yes, I meant exactly that. To be even clearer, `request.url` in this context is an instance of the class String, and `request.url instanceof String` returns `true`. This is why `typeof...