[REM] Removed todo, slug feature supported in addons.website.ir_http
bzr revid: fme@openerp.com-20140127132752-par38qbtnf21yzfs
This commit is contained in:
parent
a969be4c38
commit
bfeec4808b
|
@ -41,9 +41,6 @@ class ModelsConverter(werkzeug.routing.BaseConverter):
|
||||||
self.regex = '([0-9,]+)'
|
self.regex = '([0-9,]+)'
|
||||||
|
|
||||||
def to_python(self, value):
|
def to_python(self, value):
|
||||||
# TODO:
|
|
||||||
# - raise routing.ValidationError() if no browse record can be createdm
|
|
||||||
# - support slug
|
|
||||||
return request.registry[self.model].browse(request.cr, UID_PLACEHOLDER, [int(i) for i in value.split(',')], context=request.context)
|
return request.registry[self.model].browse(request.cr, UID_PLACEHOLDER, [int(i) for i in value.split(',')], context=request.context)
|
||||||
|
|
||||||
def to_url(self, value):
|
def to_url(self, value):
|
||||||
|
|
Loading…
Reference in New Issue