Can't batch lists of non-entries
Bug #393779 reported by
Julian Edwards
This bug report is a duplicate of:
Bug #677671: batching collections containing basic python types.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lazr.restful |
Triaged
|
Low
|
Unassigned |
Bug Description
I am trying to add a custom method that returns a collection of plain text URL strings.
However, this breaks in the batching as it tries to call checkPermission on a string. If I hack the batch() method to not call checkPermission on strings, it still bails out:
File "/home/
self.entry = IEntry(context)
TypeError: ('Could not adapt', 'http://
which indicates the deeper problem of not being able to return collections of non-entries.
Changed in lazr.restful: | |
status: | New → Triaged |
importance: | Undecided → Low |
To post a comment you must log in.