Comments (2)
If someone wants to take a stab at this:
is set
means some value is set. For nullable fields this means value isNone
or falsy like empty string. For numeric fields this doesn't make sense.is not set
is just opposite of it.
from frappe.
Anybody, pls add in
Line 1933 in 81785ae
line:
"is": lambda a, b: (a and (b == 'set')) or (not a and (b == 'not set')),
total:
operator_map = {
# startswith
"^": lambda a, b: (a or "").startswith(b),
# in or not in a list
"in": lambda a, b: operator.contains(b, a),
"not in": lambda a, b: not operator.contains(b, a),
# comparison operators
"=": operator.eq,
"!=": operator.ne,
">": operator.gt,
"<": operator.lt,
">=": operator.ge,
"<=": operator.le,
"not None": lambda a, b: a is not None,
"None": lambda a, b: a is None,
"like": sql_like,
"not like": lambda a, b: not sql_like(a, b),
"is": lambda a, b: (a and (b == 'set')) or (not a and (b == 'not set')),
}
from frappe.
Related Issues (20)
- Contact Details "Vertical" HOT 1
- frappe command to setup ldap
- Workflow permission by user (field value)
- The "Awesome Bar" is not calculating correctly. HOT 1
- !!client_script frappe.listview_settings filter dont work HOT 1
- Showing virtual fields in list view causes an exception
- Unable to Access Server API HOT 1
- "Click here to post bugs and suggestions" when doctype is Beta - always call https://github.com/frappe/{app_name}
- Display JS Not Working For Column Break
- internal Links in print formats
- JS deprecated document.write for loading scripts caused by `defer` missing
- Report view sorting for child table
- Bug in v15.24.1 using command add-to-hosts HOT 3
- Copy to Clipboard for doctype, Error: Mandatory field 'name' is missing HOT 2
- save_file adds hash to filename HOT 1
- Shortcut Not Working While Cursor is on Awesomebar Bar
- Fetch From, Need to Select Twice to Set Doctype
- Custom Function in HTML Field
- save_file creates unwanted duplicates in file system
- validation ignored while editing records from report view
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frappe.