added unicode_literals import at start of each file

This commit is contained in:
Anand Doshi 2012-07-19 13:40:39 +05:30
parent bfc56dcd09
commit bab9f3c7ef
130 changed files with 130 additions and 0 deletions

View file

@ -1,6 +1,7 @@
# app configuration
# database config
from __future__ import unicode_literals
db_name = 'yourdbname'
db_password = 'yourdbpassword'

View file

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

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
verbose = True
force_rebuild = False
no_minify = False

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
if __name__=='__main__':
import sys, os
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)), '..'))

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
from minify import JavascriptMinify
class Bundle:

View file

@ -22,6 +22,7 @@
from __future__ import unicode_literals
import os, os.path, shutil
# This code is original from jsmin by Douglas Crockford, it was translated to

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
verbose = False
import os

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
install_docs = [
{'doctype':'Module Def', 'name': 'Core', 'module_name':'Core'},

View file

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

View file

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

View file

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

View file

@ -21,6 +21,7 @@
#
# Please edit this list and import only required elements
from __future__ import unicode_literals
import webnotes
from webnotes.utils import cint, flt

View file

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

View file

@ -21,6 +21,7 @@
#
# Please edit this list and import only required elements
from __future__ import unicode_literals
import webnotes
from webnotes.utils import cint, cstr, flt, formatdate, now

View file

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

View file

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

View file

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

View file

@ -20,6 +20,7 @@
# 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
Thus providing a better UI from user perspective

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -21,6 +21,7 @@
#
# Please edit this list and import only required elements
from __future__ import unicode_literals
import webnotes
from webnotes.utils import now, cint

View file

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

View file

@ -21,6 +21,7 @@
#
# Please edit this list and import only required elements
from __future__ import unicode_literals
import webnotes
from webnotes.utils import cint, cstr, default_fields, flt, formatdate, get_defaults, getdate, now, nowdate, replace_newlines, set_default

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
"""
record of files

View file

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

View file

@ -21,6 +21,7 @@
#
# Please edit this list and import only required elements
from __future__ import unicode_literals
import webnotes
from webnotes import msgprint

View file

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

View file

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

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
import webnotes
class DocType:

View file

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

View file

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

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
import webnotes
class DocType:

View file

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

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
import webnotes, json
from webnotes.utils import cint

View file

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

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
import webnotes
class DocType:

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -21,6 +21,7 @@
#
# Please edit this list and import only required elements
from __future__ import unicode_literals
import webnotes
from webnotes.utils import cint

View file

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

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
import webnotes
from webnotes.utils import cint, flt

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import webnotes
@webnotes.whitelist()

View file

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

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
"""
globals attached to webnotes module
+ some utility functions that should probably be moved

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
import webnotes
import webnotes.db
import webnotes.utils

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
"""
bootstrap client session
"""

View file

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

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
"""
Generate RSS feed for blog
"""

View file

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

View file

@ -22,6 +22,7 @@
# to generate sitemaps
from __future__ import unicode_literals
frame_xml = """<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">%s
</urlset>"""

View file

@ -23,6 +23,7 @@
# Database Module
# --------------------
from __future__ import unicode_literals
import MySQLdb
import webnotes
import conf

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
import sys, os
import webnotes
import webnotes.utils

View file

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

View file

@ -23,6 +23,7 @@
# called from wnf.py
# lib/wnf.py --install [rootpassword] [dbname] [source]
from __future__ import unicode_literals
import os,sys
class Installer:

View file

@ -21,6 +21,7 @@
#
# model __init__.py
from __future__ import unicode_literals
import webnotes
no_value_fields = ['Section Break', 'Column Break', 'HTML', 'Table', 'FlexTable', 'Button', 'Image', 'Graph']

View file

@ -20,6 +20,7 @@
# 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
standardized `DocType` class that has the methods of any DocType. When an object is instantiated using the

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
"""
Syncs a database table to the `DocType` (metadata)

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
"""
Contains the Document class representing an object / record
"""

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
"""docfield utililtes"""
import webnotes

View file

@ -20,6 +20,7 @@
# 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
objects for a transaction with main and children.

View file

@ -24,6 +24,7 @@
# Patch: Remove DocFormat
# imports
from __future__ import unicode_literals
import webnotes
import webnotes.model
import webnotes.model.doc

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
import webnotes
def import_docs(docs = []):

View file

@ -22,6 +22,7 @@
# metadata
from __future__ import unicode_literals
import webnotes
#=================================================================================

View file

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import webnotes
def rename_doc(doctype, old, new, is_doctype=0, debug=0):

View file

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

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
"""
Model utilities, unclassified functions
"""

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
"""
Utilities for using modules
"""

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
"""get diff bettween txt files and database records"""
import webnotes

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
"""
Export files to modules
"""

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
"""
Execute Patch Files

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
def listfolders(path, only_name=0):
"""
Returns the list of folders (with paths) in the given path,

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
import webnotes
class Profile:

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
"""
Boot session from cache or build

View file

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

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
"""
Tests for modules:

View file

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import unittest, sys
sys.path.append('lib/py')

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
"""
test with erpnext
"""

View file

@ -22,6 +22,7 @@
# util __init__.py
from __future__ import unicode_literals
import webnotes
user_time_zone = None

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
import webnotes
sql = webnotes.conn.sql

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
"""
This module handles the On Demand Backup utility

View file

@ -20,6 +20,7 @@
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from __future__ import unicode_literals
"""
Simple Caching:

View file

@ -1,5 +1,6 @@
#!/usr/bin/python
from __future__ import unicode_literals
"""
Utilty to review DocType fields:

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