apparently, since version 2.8, psycopg2 does not install the binary
version by default (read source), and hence fails on setup with the
error:
Error: pg_config executable not found
since nobody can really be arsed to compile this binary on their own,
we'll stick to using psycopg2-binary instead.
source: https://www.postgresql.org/message-id/CA%2Bmi_8bd6kJHLTGkuyHSnqcgDrJ1uHgQWvXCKQFD3tPQBUa2Bw%40mail.gmail.com
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
* fix: Do not encode smtp server
Because it breaks in python 3
* fix: use cstr to change text_type to str
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
Co-authored-by: Chinmay Pai <chinmaydpai@gmail.com>
chardet requires input to be bytes or bytesarray, but sometimes
frappe.cstr() returns text_type of str without encoding it to utf-8
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
* fix: File duplicate check
By passing file name from file url instead of file name.
because file name can be different from actual file
if the same file is uploaded twice with different names.
* refactor: Remove unused code
* fix: Add updated datepicker; fixed seconds formatting bug.
Seconds between 0 and 9 were not zero-padded.
* feat: Add framework for time format
* feat: datetime server-side formatters.
* tests: Added server-side datetime formatter tests
* feat: Update client-side datetime formatters
* tests: Add Cypress client-side formatting tests.
* fix: JSON errors
* fix: Update to not hard-code admin password
* fix: Change to using bulk_update rather than the REST API
* tests: Use Custom doctype for testing, not Standard
* fix: Codacy style fixes
* fix: Commonify update_datetime_picker in date.js, datetime.js, time.js
Fix order of time_format in System Settings
Restore get_user_fmt in utils/datetime.js
* feat: Drastically reduce scale of Cypress testing (to make tests faster)
Full testing is possible by setting 'fast_mode' to false in the spec file.
* fix: Fix issues with datepicker/timepicker expansion
* fix: typo
* style: Various style fixes as requested by DeppSource: Python
* fix: Timepicker not hiding on 'now' button. Force hiding on click.
* style: Codacy style fixes.
* fix: Use datepicker from node_modules
* test: Refactor Datetime UI tests
- cy.get_field
- cy.set_value
- cy.insert_doc with ignore_duplicate
- Nominal datetime tests to cover most formats
- Formatting with prettier
* test: Datetime UI tests; wait for cur_frm.doc.datetime to update
* tests: Add whitespace to typed input
- Clear input only for Time field
* test: Wait timeout 200
* test: Fix form test
Co-authored-by: Faris Ansari <netchampfaris@users.noreply.github.com>