Skip to content

Commit

Permalink
Better method and URL names
Browse files Browse the repository at this point in the history
  • Loading branch information
knabar committed Jul 24, 2024
1 parent 6f6d818 commit c581586
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions omeroweb/webgateway/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,21 +604,21 @@
"""


perform_get_where_list = re_path(
table_get_where_list = re_path(
r"^table/(?P<fileid>\d+)/rows/$",
views.perform_get_where_list,
name="webgateway_perform_get_where_list",
views.table_get_where_list,
name="webgateway_table_get_where_list",
kwargs=COMPACT_JSON,
)
"""
Query a table specified by fileid and return the matching rows
"""


perform_slice = re_path(
table_slice = re_path(
r"^table/(?P<fileid>\d+)/slice/$",
views.perform_slice,
name="webgateway_perform_slice",
views.table_slice,
name="webgateway_table_slice",
kwargs=COMPACT_JSON,
)
"""
Expand Down Expand Up @@ -684,6 +684,6 @@
object_table_query,
open_with_options,
# low-level table API
perform_get_where_list,
perform_slice,
table_get_where_list,
table_slice,
]
4 changes: 2 additions & 2 deletions omeroweb/webgateway/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3478,7 +3478,7 @@ def get_image_rdefs_json(request, img_id=None, conn=None, **kwargs):

@login_required()
@jsonp
def perform_get_where_list(request, fileid, conn=None, **kwargs):
def table_get_where_list(request, fileid, conn=None, **kwargs):
"""
Retrieves matching row numbers for a table query
Expand Down Expand Up @@ -3549,7 +3549,7 @@ def perform_get_where_list(request, fileid, conn=None, **kwargs):

@login_required()
@jsonp
def perform_slice(request, fileid, conn=None, **kwargs):
def table_slice(request, fileid, conn=None, **kwargs):
"""
Performs a table slice
Expand Down

0 comments on commit c581586

Please sign in to comment.