- 06 Oct, 2017 40 commits
-
-
Vincent Pelletier authored
Avoid iterating over all columns known to catalog to then restrict to a single table by using SQLCatalog API. Only check for one range column suffix as code anyway relies on the triplet of columns to be consistently present. Document this in the code and get rid of now-unneeded range_column_set mechanism.
-
Julien Muchembled authored
-
Julien Muchembled authored
str.encode() first performs an implicit conversion to unicode using sys.getdefaultencoding(), which is usually 'ascii'. The 'isort' module changes the default encoding to utf-8, leading to UnicodeEncodeError instead of UnicodeDecodeError. Let's simplify all this.
-
Julien Muchembled authored
-
Julien Muchembled authored
-
Vincent Bechu authored
-
Vincent Bechu authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
These methods will be used in erp5 catalog view in restricted environment. Loosen the security on methods which we will use in erp5 catalog view in restricted environment.
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
-
Ayush Tiwari authored
Required as preparation for migrating to ERP5 catalog which itself has an accessor `isIndexable` which we plan to remain disabled all the time. So better to rely directly on isIndexable from erp5 site object.
-
Ayush Tiwari authored
This would also remove the need of evaluating the globals every time.
-
Julien Muchembled authored
-
Julien Muchembled authored
/reviewed-on nexedi/erp5!314
-
Julien Muchembled authored
-
Vincent Bechu authored
-
Vincent Bechu authored
-
Vincent Bechu authored
-
Vincent Bechu authored
-
Vincent Bechu authored
-
Nicolas Wavrant authored
-
Nicolas Wavrant authored
on Organisation and Person property sheets
-
Nicolas Wavrant authored
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
correct case is *validated*
-
Jérome Perrin authored
- get tools from portal, not context, to prevent slow acquisition - stop using abbreviated names (ctool, stool etc)
-
Jérome Perrin authored
-
Jérome Perrin authored
This is not public API and is not supposed to be used outside of catalog tool. Using getObject here is also wrong because it does not apply security and does not check provided argument type. To prevent retrieving too many documents, we usually pass limit=2 for safety. To detect inconsistencies, when only one result is expected we rely on `brain, = portal_catalog(limit=2)` style unpacking to fail if more than one result were found.
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
This was an error reported by pylint. This changes fixes the behavior, but should have been the original behavior;
-
Jérome Perrin authored
-
Jérome Perrin authored
to InternalInvoiceTransaction_getAuthenticatedUserSection. It was a violation of our naming conventions.
-
Jérome Perrin authored
This was a violation to our naming conventions
-
Jérome Perrin authored
-