Fix regressions in library API

Introduced in commit 93a8bfc7cb
This commit is contained in:
Nicola Soranzo
2017-10-24 19:36:19 +01:00
parent 0e698813a9
commit 9791dd22d4
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
"""
from __future__ import absolute_import
import ntpath
import ntpath # noqa: I100 See https://github.com/PyCQA/flake8-import-order/pull/115
import sys
from . import _build_self
@@ -277,7 +277,6 @@ class LibraryCommon( BaseUIController, UsesFormDefinitionsMixin, UsesExtendedMet
status=escape( status ) )
@web.expose
@web.require_admin
def create_folder( self, trans, cntrller, parent_id, library_id, **kwd ):
message = escape( kwd.get( 'message', '' ) )
status = kwd.get( 'status', 'done' )
@@ -802,7 +801,6 @@ class LibraryCommon( BaseUIController, UsesFormDefinitionsMixin, UsesExtendedMet
status=escape( status ) )
@web.expose
@web.require_admin
def upload_library_dataset( self, trans, cntrller, library_id, folder_id, **kwd ):
message = escape( kwd.get( 'message', '' ) )
status = kwd.get( 'status', 'done' )