The license.txt file has been replaced with LICENSE for quite a while
now. INAL but it didn't seem accurate to say "hey, checkout license.txt
although there's no such file". Apart from this, there were
inconsistencies in the headers altogether...this change brings
consistency.
* Remove six for PY2 compatability since our dependencies are not, PY2
is legacy.
* Removed usages of utils from future/past libraries since they are
deprecated. This includes 'from __future__ ...' and 'from past...'
statements.
* Removed compatibility imports for PY2, switched from six imports to
standard library imports.
* Removed utils code blocks that handle operations depending on PY2/3
versions.
* Removed 'from __future__ ...' lines from templates/code generators
* Used PY3 syntaxes in place of PY2 compatible blocks. eg: metaclass
On mobile view, window.close would block rendering the print view.
Increasing the timeout to 10s from 1s helps
(cherry picked from commit b341167ffc37b1b93bdf1d712406c1d730746fd6)
Python 3 interprets string literals as Unicode strings, and therefore \( is treated as an escaped Unicode character.
Declare RegEx pattern as a raw string instead by prepending r
* Added Pashto language to the rtl list.
Pashto (ps) writing is based on Arabic script, so it is a right to left language. Therefore, added the "ps" to the rtl languages list in the following line of code.
is_rtl(lang=null) {
return ["ar", "he", "fa", "ps"].includes(lang || frappe.boot.lang);
}
* fix: ps to rtl languages list in printview.py
* fix(minor): Changed error message display in printview
* fix: Check for HTML on creation of Print Format
The printview will remain as it is.
Validation of HTML while Custom Format is checked and Raw Printing isn't checked in Print Format.
* fix: Improved handling of no template found in Printview
User will see 'No preview found' instead of error prompt with path in it
Validation on Print Format refactored slightly.
* Codacy fixes
* feat: Access log doctype for logging information about private file
downloads, backups downloads, printing and exporting data
* updated: access log
* updated: formattted access_log.js
* access logging: print/pdf/pvt files/export/backup
client side implementation: treeview, query_report
server side implementation on the rest
* fixes: codacy errors
* Update response.py
* Update response.py
* Update response.py
* codacy: please
* travis fixes
* changes:filters=>_filters(lol this works @ times?)
added: tests for access_log, make_access_log formatting, form ui added
buttons
* this hopefully fixes em tests
* changes: fixed indents, session.user, formatting
* fixes: tests, refactor, permissions
emerging from exporter.py => reference doctype in export_data (check
format!)
* fixes: convert dict to json
* changes: added more tests, wrote lesser code?
switched js to display depends on
* fixes: codacy and hopefully travis
* fix: tests? and polishing up
* added column field, removed tracked views
changed access log in exporter.py > export_data
added access log in reportview.py > export_query
* style: Fix indentation
* style: Fix indentation
* fix: Remove problematic string replace
It may replace quotes in the actual filter values which can result in invalid JSON
* fix: Remove filter string conversion
* fix: Error due to quote escapes
TODO: Check for a better way
> fixing confusing naming in the UI and calling it "Raw Print"
> used import for sha256 library
> changed the Print Preview message for raw print
> same possible codacy fixes
- Replace all occurences of manual imports with this utility
- Also enable extras
- fenced-code-blocks
- tables with class 'table table-bordered'
- header-ids
* Add jinja support to leader_head.content and letter_head.footer
Add jinja support to leader_head.content and letter_head.footer
* Fix
convert_markdown(doc, meta) was missing my mistake
* Update printview.py
Considering that letter_head could be empty and cleaner code
* Update printview.py
* Update printview.py
* Update printview.py
* Update printview.py
Remove trailing whitespace