mirror of
https://github.com/jeffknupp/sandman2.git
synced 2026-04-25 00:25:49 +03:00
[GH-ISSUE #48] Counter-intuitive naming #32
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
pull-request
question
refactoring
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/sandman2-jeffknupp#32
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sjbrown on GitHub (Oct 4, 2016).
Original GitHub issue: https://github.com/jeffknupp/sandman2/issues/48
Originally assigned to: @jeffknupp on GitHub.
Hi, sorry for the brevity - just something I noticed that irked me:
error_message = is_valid_method(self.__model__, resource)I would expect a functioned named
is_valid_method(...)to returnTrueif the endpoint usage was valid. Instead, if it returns anerror_message(which evaluates toTrue), that indicates it wasn't a valid usage.Maybe a name like
validation_errorsorvalidate_methodwould be more intuitive.