Browse Source

added unicode_literals import at start of each file

version-14
Anand Doshi 13 years ago
parent
commit
bab9f3c7ef
100 changed files with 100 additions and 0 deletions
  1. +1
    -0
      conf/conf.py
  2. +1
    -0
      py/__init__.py
  3. +1
    -0
      py/build/__init__.py
  4. +1
    -0
      py/build/__main__.py
  5. +1
    -0
      py/build/bundle.py
  6. +1
    -0
      py/build/minify.py
  7. +1
    -0
      py/build/project.py
  8. +1
    -0
      py/core/__init__.py
  9. +1
    -0
      py/core/doctype/__init__.py
  10. +1
    -0
      py/core/doctype/comment/__init__.py
  11. +1
    -0
      py/core/doctype/control_panel/__init__.py
  12. +1
    -0
      py/core/doctype/control_panel/control_panel.py
  13. +1
    -0
      py/core/doctype/custom_field/__init__.py
  14. +1
    -0
      py/core/doctype/custom_field/custom_field.py
  15. +1
    -0
      py/core/doctype/custom_script/__init__.py
  16. +1
    -0
      py/core/doctype/custom_script/custom_script.py
  17. +1
    -0
      py/core/doctype/customize_form/__init__.py
  18. +1
    -0
      py/core/doctype/customize_form/customize_form.py
  19. +1
    -0
      py/core/doctype/customize_form_field/__init__.py
  20. +1
    -0
      py/core/doctype/default_home_page/__init__.py
  21. +1
    -0
      py/core/doctype/defaultvalue/__init__.py
  22. +1
    -0
      py/core/doctype/docfield/__init__.py
  23. +1
    -0
      py/core/doctype/docperm/__init__.py
  24. +1
    -0
      py/core/doctype/doctype/__init__.py
  25. +1
    -0
      py/core/doctype/doctype/doctype.py
  26. +1
    -0
      py/core/doctype/doctype_mapper/__init__.py
  27. +1
    -0
      py/core/doctype/doctype_mapper/doctype_mapper.py
  28. +1
    -0
      py/core/doctype/event/__init__.py
  29. +1
    -0
      py/core/doctype/event_role/__init__.py
  30. +1
    -0
      py/core/doctype/event_user/__init__.py
  31. +1
    -0
      py/core/doctype/field_mapper_detail/__init__.py
  32. +1
    -0
      py/core/doctype/file_data/__init__.py
  33. +1
    -0
      py/core/doctype/file_data/file_data.py
  34. +1
    -0
      py/core/doctype/letter_head/__init__.py
  35. +1
    -0
      py/core/doctype/letter_head/letter_head.py
  36. +1
    -0
      py/core/doctype/module_def/__init__.py
  37. +1
    -0
      py/core/doctype/page/__init__.py
  38. +1
    -0
      py/core/doctype/page/page.py
  39. +1
    -0
      py/core/doctype/page_role/__init__.py
  40. +1
    -0
      py/core/doctype/print_format/__init__.py
  41. +1
    -0
      py/core/doctype/print_format/print_format.py
  42. +1
    -0
      py/core/doctype/profile/__init__.py
  43. +1
    -0
      py/core/doctype/profile/profile.py
  44. +1
    -0
      py/core/doctype/property_setter/__init__.py
  45. +1
    -0
      py/core/doctype/property_setter/property_setter.py
  46. +1
    -0
      py/core/doctype/report/__init__.py
  47. +1
    -0
      py/core/doctype/report/report.py
  48. +1
    -0
      py/core/doctype/role/__init__.py
  49. +1
    -0
      py/core/doctype/sandbox/__init__.py
  50. +1
    -0
      py/core/doctype/search_criteria/__init__.py
  51. +1
    -0
      py/core/doctype/search_criteria/search_criteria.py
  52. +1
    -0
      py/core/doctype/system_console/__init__.py
  53. +1
    -0
      py/core/doctype/system_console/system_console.py
  54. +1
    -0
      py/core/doctype/table_mapper_detail/__init__.py
  55. +1
    -0
      py/core/doctype/tag/__init__.py
  56. +1
    -0
      py/core/doctype/todo/__init__.py
  57. +1
    -0
      py/core/doctype/userrole/__init__.py
  58. +1
    -0
      py/core/page/__init__.py
  59. +1
    -0
      py/core/page/data_import_tool/__init__.py
  60. +1
    -0
      py/core/page/data_import_tool/data_import_tool.py
  61. +1
    -0
      py/core/page/login_page/__init__.py
  62. +1
    -0
      py/webnotes/__init__.py
  63. +1
    -0
      py/webnotes/auth.py
  64. +1
    -0
      py/webnotes/boot.py
  65. +1
    -0
      py/webnotes/cms/__init__.py
  66. +1
    -0
      py/webnotes/cms/feed.py
  67. +1
    -0
      py/webnotes/cms/make.py
  68. +1
    -0
      py/webnotes/cms/sitemap.py
  69. +1
    -0
      py/webnotes/db.py
  70. +1
    -0
      py/webnotes/handler.py
  71. +1
    -0
      py/webnotes/install_lib/__init__.py
  72. +1
    -0
      py/webnotes/install_lib/install.py
  73. +1
    -0
      py/webnotes/model/__init__.py
  74. +1
    -0
      py/webnotes/model/code.py
  75. +1
    -0
      py/webnotes/model/db_schema.py
  76. +1
    -0
      py/webnotes/model/doc.py
  77. +1
    -0
      py/webnotes/model/docfield.py
  78. +1
    -0
      py/webnotes/model/doclist.py
  79. +1
    -0
      py/webnotes/model/doctype.py
  80. +1
    -0
      py/webnotes/model/import_docs.py
  81. +1
    -0
      py/webnotes/model/meta.py
  82. +1
    -0
      py/webnotes/model/rename_doc.py
  83. +1
    -0
      py/webnotes/model/sync.py
  84. +1
    -0
      py/webnotes/model/utils.py
  85. +1
    -0
      py/webnotes/modules/__init__.py
  86. +1
    -0
      py/webnotes/modules/diff.py
  87. +1
    -0
      py/webnotes/modules/export_module.py
  88. +1
    -0
      py/webnotes/modules/patch_handler.py
  89. +1
    -0
      py/webnotes/modules/utils.py
  90. +1
    -0
      py/webnotes/profile.py
  91. +1
    -0
      py/webnotes/session_cache.py
  92. +1
    -0
      py/webnotes/tests/__init__.py
  93. +1
    -0
      py/webnotes/tests/modules.py
  94. +1
    -0
      py/webnotes/tests/test_docfield.py
  95. +1
    -0
      py/webnotes/tests/test_patch.py
  96. +1
    -0
      py/webnotes/utils/__init__.py
  97. +1
    -0
      py/webnotes/utils/archive.py
  98. +1
    -0
      py/webnotes/utils/backups.py
  99. +1
    -0
      py/webnotes/utils/cache.py
  100. +1
    -0
      py/webnotes/utils/editdoctype.py

+ 1
- 0
conf/conf.py View File

@@ -1,6 +1,7 @@
# app configuration # app configuration


# database config # database config
from __future__ import unicode_literals
db_name = 'yourdbname' db_name = 'yourdbname'
db_password = 'yourdbpassword' db_password = 'yourdbpassword'




+ 1
- 0
py/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/build/__init__.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
verbose = True verbose = True
force_rebuild = False force_rebuild = False
no_minify = False no_minify = False

+ 1
- 0
py/build/__main__.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
if __name__=='__main__': if __name__=='__main__':
import sys, os import sys, os
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)), '..')) sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)), '..'))


+ 1
- 0
py/build/bundle.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
from minify import JavascriptMinify from minify import JavascriptMinify


class Bundle: class Bundle:


+ 1
- 0
py/build/minify.py View File

@@ -22,6 +22,7 @@






from __future__ import unicode_literals
import os, os.path, shutil import os, os.path, shutil


# This code is original from jsmin by Douglas Crockford, it was translated to # This code is original from jsmin by Douglas Crockford, it was translated to


+ 1
- 0
py/build/project.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
verbose = False verbose = False
import os import os




+ 1
- 0
py/core/__init__.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
install_docs = [ install_docs = [
{'doctype':'Module Def', 'name': 'Core', 'module_name':'Core'}, {'doctype':'Module Def', 'name': 'Core', 'module_name':'Core'},




+ 1
- 0
py/core/doctype/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/comment/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/control_panel/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/control_panel/control_panel.py View File

@@ -21,6 +21,7 @@
# #


# Please edit this list and import only required elements # Please edit this list and import only required elements
from __future__ import unicode_literals
import webnotes import webnotes


from webnotes.utils import cint, flt from webnotes.utils import cint, flt


+ 1
- 0
py/core/doctype/custom_field/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/custom_field/custom_field.py View File

@@ -21,6 +21,7 @@
# #


# Please edit this list and import only required elements # Please edit this list and import only required elements
from __future__ import unicode_literals
import webnotes import webnotes


from webnotes.utils import cint, cstr, flt, formatdate, now from webnotes.utils import cint, cstr, flt, formatdate, now


+ 1
- 0
py/core/doctype/custom_script/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/custom_script/custom_script.py View File

@@ -19,6 +19,7 @@
# CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE # CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #
from __future__ import unicode_literals
import webnotes import webnotes


class DocType: class DocType:


+ 1
- 0
py/core/doctype/customize_form/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/customize_form/customize_form.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
""" """
Customize Form is a Single DocType used to mask the Property Setter Customize Form is a Single DocType used to mask the Property Setter
Thus providing a better UI from user perspective Thus providing a better UI from user perspective


+ 1
- 0
py/core/doctype/customize_form_field/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/default_home_page/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/defaultvalue/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/docfield/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/docperm/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/doctype/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/doctype/doctype.py View File

@@ -21,6 +21,7 @@
# #


# Please edit this list and import only required elements # Please edit this list and import only required elements
from __future__ import unicode_literals
import webnotes import webnotes


from webnotes.utils import now, cint from webnotes.utils import now, cint


+ 1
- 0
py/core/doctype/doctype_mapper/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/doctype_mapper/doctype_mapper.py View File

@@ -21,6 +21,7 @@
# #


# Please edit this list and import only required elements # Please edit this list and import only required elements
from __future__ import unicode_literals
import webnotes import webnotes


from webnotes.utils import cint, cstr, default_fields, flt, formatdate, get_defaults, getdate, now, nowdate, replace_newlines, set_default from webnotes.utils import cint, cstr, default_fields, flt, formatdate, get_defaults, getdate, now, nowdate, replace_newlines, set_default


+ 1
- 0
py/core/doctype/event/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/event_role/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/event_user/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/field_mapper_detail/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/file_data/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/file_data/file_data.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
""" """
record of files record of files




+ 1
- 0
py/core/doctype/letter_head/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/letter_head/letter_head.py View File

@@ -21,6 +21,7 @@
# #


# Please edit this list and import only required elements # Please edit this list and import only required elements
from __future__ import unicode_literals
import webnotes import webnotes
from webnotes import msgprint from webnotes import msgprint




+ 1
- 0
py/core/doctype/module_def/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/page/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/page/page.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
import webnotes import webnotes


class DocType: class DocType:


+ 1
- 0
py/core/doctype/page_role/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/print_format/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/print_format/print_format.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
import webnotes import webnotes


class DocType: class DocType:


+ 1
- 0
py/core/doctype/profile/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/profile/profile.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
import webnotes, json import webnotes, json
from webnotes.utils import cint from webnotes.utils import cint




+ 1
- 0
py/core/doctype/property_setter/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/property_setter/property_setter.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
import webnotes import webnotes


class DocType: class DocType:


+ 1
- 0
py/core/doctype/report/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/report/report.py View File

@@ -1,3 +1,4 @@
from __future__ import unicode_literals
class DocType: class DocType:
def __init__(self, doc, doclist): def __init__(self, doc, doclist):
self.doc, self.doclist = doc, doclist self.doc, self.doclist = doc, doclist


+ 1
- 0
py/core/doctype/role/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/sandbox/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/search_criteria/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/search_criteria/search_criteria.py View File

@@ -21,6 +21,7 @@
# #


# Please edit this list and import only required elements # Please edit this list and import only required elements
from __future__ import unicode_literals
import webnotes import webnotes
from webnotes.utils import cint from webnotes.utils import cint




+ 1
- 0
py/core/doctype/system_console/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/system_console/system_console.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
import webnotes import webnotes


from webnotes.utils import cint, flt from webnotes.utils import cint, flt


+ 1
- 0
py/core/doctype/table_mapper_detail/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/tag/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/todo/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/doctype/userrole/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/page/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/page/data_import_tool/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/core/page/data_import_tool/data_import_tool.py View File

@@ -1,3 +1,4 @@
from __future__ import unicode_literals
import webnotes import webnotes


@webnotes.whitelist() @webnotes.whitelist()


+ 1
- 0
py/core/page/login_page/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/webnotes/__init__.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
""" """
globals attached to webnotes module globals attached to webnotes module
+ some utility functions that should probably be moved + some utility functions that should probably be moved


+ 1
- 0
py/webnotes/auth.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
import webnotes import webnotes
import webnotes.db import webnotes.db
import webnotes.utils import webnotes.utils


+ 1
- 0
py/webnotes/boot.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
""" """
bootstrap client session bootstrap client session
""" """


+ 1
- 0
py/webnotes/cms/__init__.py View File

@@ -1,3 +1,4 @@
from __future__ import unicode_literals
def get_home_page(user=None): def get_home_page(user=None):
"""get home page for user""" """get home page for user"""
if not user: if not user:


+ 1
- 0
py/webnotes/cms/feed.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
""" """
Generate RSS feed for blog Generate RSS feed for blog
""" """


+ 1
- 0
py/webnotes/cms/make.py View File

@@ -1,3 +1,4 @@
from __future__ import unicode_literals
""" """
make index, wn.js, wn.css pages make index, wn.js, wn.css pages
- rebuild all pages on change of website settings (toolbar) - rebuild all pages on change of website settings (toolbar)


+ 1
- 0
py/webnotes/cms/sitemap.py View File

@@ -22,6 +22,7 @@


# to generate sitemaps # to generate sitemaps


from __future__ import unicode_literals
frame_xml = """<?xml version="1.0" encoding="UTF-8"?> frame_xml = """<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">%s <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">%s
</urlset>""" </urlset>"""


+ 1
- 0
py/webnotes/db.py View File

@@ -23,6 +23,7 @@
# Database Module # Database Module
# -------------------- # --------------------


from __future__ import unicode_literals
import MySQLdb import MySQLdb
import webnotes import webnotes
import conf import conf


+ 1
- 0
py/webnotes/handler.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
import sys, os import sys, os
import webnotes import webnotes
import webnotes.utils import webnotes.utils


+ 1
- 0
py/webnotes/install_lib/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/webnotes/install_lib/install.py View File

@@ -23,6 +23,7 @@
# called from wnf.py # called from wnf.py
# lib/wnf.py --install [rootpassword] [dbname] [source] # lib/wnf.py --install [rootpassword] [dbname] [source]


from __future__ import unicode_literals
import os,sys import os,sys


class Installer: class Installer:


+ 1
- 0
py/webnotes/model/__init__.py View File

@@ -21,6 +21,7 @@
# #


# model __init__.py # model __init__.py
from __future__ import unicode_literals
import webnotes import webnotes


no_value_fields = ['Section Break', 'Column Break', 'HTML', 'Table', 'FlexTable', 'Button', 'Image', 'Graph'] no_value_fields = ['Section Break', 'Column Break', 'HTML', 'Table', 'FlexTable', 'Button', 'Image', 'Graph']


+ 1
- 0
py/webnotes/model/code.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
""" """
This is where all the plug-in code is executed. The standard method for DocTypes is declaration of a This is where all the plug-in code is executed. The standard method for DocTypes is declaration of a
standardized `DocType` class that has the methods of any DocType. When an object is instantiated using the standardized `DocType` class that has the methods of any DocType. When an object is instantiated using the


+ 1
- 0
py/webnotes/model/db_schema.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
""" """
Syncs a database table to the `DocType` (metadata) Syncs a database table to the `DocType` (metadata)




+ 1
- 0
py/webnotes/model/doc.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
""" """
Contains the Document class representing an object / record Contains the Document class representing an object / record
""" """


+ 1
- 0
py/webnotes/model/docfield.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
"""docfield utililtes""" """docfield utililtes"""


import webnotes import webnotes


+ 1
- 0
py/webnotes/model/doclist.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
""" """
Transactions are defined as collection of classes, a DocList represents collection of Document Transactions are defined as collection of classes, a DocList represents collection of Document
objects for a transaction with main and children. objects for a transaction with main and children.


+ 1
- 0
py/webnotes/model/doctype.py View File

@@ -24,6 +24,7 @@
# Patch: Remove DocFormat # Patch: Remove DocFormat


# imports # imports
from __future__ import unicode_literals
import webnotes import webnotes
import webnotes.model import webnotes.model
import webnotes.model.doc import webnotes.model.doc


+ 1
- 0
py/webnotes/model/import_docs.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
import webnotes import webnotes


def import_docs(docs = []): def import_docs(docs = []):


+ 1
- 0
py/webnotes/model/meta.py View File

@@ -22,6 +22,7 @@


# metadata # metadata


from __future__ import unicode_literals
import webnotes import webnotes
#================================================================================= #=================================================================================


+ 1
- 0
py/webnotes/model/rename_doc.py View File

@@ -1,3 +1,4 @@
from __future__ import unicode_literals
import webnotes import webnotes


def rename_doc(doctype, old, new, is_doctype=0, debug=0): def rename_doc(doctype, old, new, is_doctype=0, debug=0):


+ 1
- 0
py/webnotes/model/sync.py View File

@@ -1,3 +1,4 @@
from __future__ import unicode_literals
""" """
Sync's doctype and docfields from txt files to database Sync's doctype and docfields from txt files to database
perms will get synced only if none exist perms will get synced only if none exist


+ 1
- 0
py/webnotes/model/utils.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
""" """
Model utilities, unclassified functions Model utilities, unclassified functions
""" """


+ 1
- 0
py/webnotes/modules/__init__.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
""" """
Utilities for using modules Utilities for using modules
""" """


+ 1
- 0
py/webnotes/modules/diff.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
"""get diff bettween txt files and database records""" """get diff bettween txt files and database records"""


import webnotes import webnotes


+ 1
- 0
py/webnotes/modules/export_module.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
""" """
Export files to modules Export files to modules
""" """


+ 1
- 0
py/webnotes/modules/patch_handler.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
""" """
Execute Patch Files Execute Patch Files




+ 1
- 0
py/webnotes/modules/utils.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
def listfolders(path, only_name=0): def listfolders(path, only_name=0):
""" """
Returns the list of folders (with paths) in the given path, Returns the list of folders (with paths) in the given path,


+ 1
- 0
py/webnotes/profile.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
import webnotes import webnotes


class Profile: class Profile:


+ 1
- 0
py/webnotes/session_cache.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
""" """
Boot session from cache or build Boot session from cache or build




+ 1
- 0
py/webnotes/tests/__init__.py View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

+ 1
- 0
py/webnotes/tests/modules.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
""" """
Tests for modules: Tests for modules:


+ 1
- 0
py/webnotes/tests/test_docfield.py View File

@@ -1,3 +1,4 @@
from __future__ import unicode_literals
import unittest, sys import unittest, sys


sys.path.append('lib/py') sys.path.append('lib/py')


+ 1
- 0
py/webnotes/tests/test_patch.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
""" """
test with erpnext test with erpnext
""" """


+ 1
- 0
py/webnotes/utils/__init__.py View File

@@ -22,6 +22,7 @@


# util __init__.py # util __init__.py


from __future__ import unicode_literals
import webnotes import webnotes


user_time_zone = None user_time_zone = None


+ 1
- 0
py/webnotes/utils/archive.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
import webnotes import webnotes


sql = webnotes.conn.sql sql = webnotes.conn.sql


+ 1
- 0
py/webnotes/utils/backups.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
""" """
This module handles the On Demand Backup utility This module handles the On Demand Backup utility


+ 1
- 0
py/webnotes/utils/cache.py View File

@@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #


from __future__ import unicode_literals
""" """
Simple Caching: Simple Caching:




+ 1
- 0
py/webnotes/utils/editdoctype.py View File

@@ -1,5 +1,6 @@
#!/usr/bin/python #!/usr/bin/python


from __future__ import unicode_literals
""" """
Utilty to review DocType fields: Utilty to review DocType fields:




Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save