remove sql =

This commit is contained in:
Pratik Vyas 2013-09-18 11:10:59 +05:30
parent 20a8b1302d
commit e55fbfc090
51 changed files with 1 additions and 53 deletions

View File

@ -7,7 +7,6 @@ import webnotes
from webnotes.utils import flt, fmt_money
from webnotes import msgprint, _
sql = webnotes.conn.sql
get_value = webnotes.conn.get_value
class DocType:

View File

@ -10,7 +10,6 @@ from webnotes.model.doc import addchild
from webnotes.model.bean import getlist, copy_doclist
from webnotes import msgprint
sql = webnotes.conn.sql

View File

@ -8,7 +8,6 @@ from webnotes.utils import flt, fmt_money, getdate
from webnotes.model.code import get_obj
from webnotes import msgprint, _
sql = webnotes.conn.sql
class DocType:
def __init__(self,d,dl):

View File

@ -11,7 +11,6 @@ from webnotes import session, msgprint
import webnotes.defaults
sql = webnotes.conn.sql
from accounts.utils import get_balance_on, get_fiscal_year

View File

@ -11,7 +11,6 @@ from webnotes.model.bean import copy_doclist
from webnotes.model.code import get_obj
from webnotes import msgprint
sql = webnotes.conn.sql

View File

@ -12,7 +12,6 @@ from setup.utils import get_company_currency
import webnotes.defaults
sql = webnotes.conn.sql
from controllers.buying_controller import BuyingController
class DocType(BuyingController):

View File

@ -8,7 +8,6 @@ from webnotes.model import db_exists
from webnotes.model.bean import copy_doclist
from webnotes.model.code import get_obj
sql = webnotes.conn.sql

View File

@ -10,7 +10,6 @@ from webnotes import msgprint, _
from buying.utils import get_last_purchase_details
sql = webnotes.conn.sql
from controllers.buying_controller import BuyingController
class DocType(BuyingController):

View File

@ -9,7 +9,6 @@ from webnotes.model.bean import getlist
from webnotes.model.code import get_obj
from webnotes import msgprint
sql = webnotes.conn.sql
from controllers.buying_controller import BuyingController
class DocType(BuyingController):

View File

@ -9,7 +9,6 @@ from webnotes.utils import cint
from webnotes import msgprint, _
from webnotes.model.doc import make_autoname
sql = webnotes.conn.sql
from utilities.transaction_base import TransactionBase

View File

@ -7,7 +7,6 @@ import webnotes
from webnotes.model import db_exists
from webnotes.model.bean import copy_doclist
sql = webnotes.conn.sql

View File

@ -7,7 +7,6 @@ import webnotes
from webnotes.utils import getdate, nowdate
from webnotes import msgprint, _
sql = webnotes.conn.sql
class DocType:
def __init__(self, doc, doclist=[]):

View File

@ -8,7 +8,6 @@ from webnotes.utils import getdate, validate_email_add, cstr
from webnotes.model.doc import make_autoname
from webnotes import msgprint, _
sql = webnotes.conn.sql
class DocType:
def __init__(self,doc,doclist=[]):

View File

@ -10,7 +10,6 @@ from webnotes.model.doc import addchild, make_autoname
from webnotes.model.bean import copy_doclist
from webnotes import msgprint
sql = webnotes.conn.sql
import datetime

View File

@ -5,7 +5,6 @@ from __future__ import unicode_literals
import webnotes
from webnotes.utils import cint, flt
from webnotes import msgprint
sql = webnotes.conn.sql
class DocType:
def __init__(self, doc, doclist):

View File

@ -9,7 +9,6 @@ from webnotes.model.doc import Document
from webnotes.model.code import get_obj
from webnotes import msgprint
sql = webnotes.conn.sql

View File

@ -11,7 +11,6 @@ from webnotes.model.bean import getlist, copy_doclist
from webnotes.model.code import get_obj
from webnotes import msgprint
sql = webnotes.conn.sql

View File

@ -11,7 +11,6 @@ from webnotes.model.code import get_obj
from webnotes import msgprint, _
from setup.utils import get_company_currency
sql = webnotes.conn.sql
from utilities.transaction_base import TransactionBase

View File

@ -8,7 +8,6 @@ from webnotes.utils import cstr, flt
from webnotes.model.doc import addchild, make_autoname
from webnotes import msgprint, _
sql = webnotes.conn.sql
class DocType:
def __init__(self,doc,doclist=[]):

View File

@ -9,7 +9,6 @@ from webnotes.model.bean import getlist
from webnotes.model.code import get_obj
from webnotes import msgprint, _
sql = webnotes.conn.sql
class DocType:

View File

@ -8,7 +8,6 @@ from webnotes.utils import cstr, flt, nowdate
from webnotes.model.code import get_obj
from webnotes import msgprint, _
sql = webnotes.conn.sql
class OverProductionError(webnotes.ValidationError): pass

View File

@ -9,7 +9,6 @@ from webnotes.model.bean import getlist
from webnotes.model.code import get_obj
from webnotes import msgprint, _
sql = webnotes.conn.sql
class DocType:
def __init__(self, doc, doclist=[]):

View File

@ -8,7 +8,6 @@ from webnotes.utils import flt
from webnotes.model import db_exists
from webnotes.model.bean import copy_doclist
sql = webnotes.conn.sql

View File

@ -9,7 +9,6 @@ from webnotes.model import db_exists
from webnotes.model.bean import copy_doclist
from webnotes import msgprint
sql = webnotes.conn.sql
class DocType:
def __init__(self,doc,doclist=[]):

View File

@ -9,7 +9,6 @@ from webnotes.model.doc import Document, make_autoname
from webnotes import msgprint, _
import webnotes.defaults
sql = webnotes.conn.sql
from utilities.transaction_base import TransactionBase

View File

@ -7,7 +7,6 @@ from webnotes import _
from webnotes.utils import cstr, validate_email_add, cint, extract_email_id
from webnotes import session, msgprint
sql = webnotes.conn.sql
from controllers.selling_controller import SellingController

View File

@ -8,7 +8,6 @@ from webnotes.utils import cstr, getdate, cint
from webnotes.model.bean import getlist
from webnotes import msgprint
sql = webnotes.conn.sql
from utilities.transaction_base import TransactionBase

View File

@ -9,7 +9,6 @@ from webnotes.model.bean import getlist
from webnotes.model.code import get_obj
from webnotes import _, msgprint
sql = webnotes.conn.sql
from controllers.selling_controller import SellingController

View File

@ -11,7 +11,6 @@ from webnotes.model.code import get_obj
from webnotes import msgprint
from webnotes.model.mapper import get_mapped_doclist
sql = webnotes.conn.sql
from controllers.selling_controller import SellingController

View File

@ -10,7 +10,6 @@ from webnotes.model.bean import copy_doclist
from webnotes.model.code import get_obj
from webnotes import msgprint
sql = webnotes.conn.sql
# ----------

View File

@ -9,7 +9,6 @@ from webnotes.model.bean import getlist
from webnotes import session, msgprint
from setup.utils import get_company_currency
sql = webnotes.conn.sql
from utilities.transaction_base import TransactionBase

View File

@ -9,7 +9,6 @@ from webnotes.model import db_exists
from webnotes.model.bean import copy_doclist
from webnotes import msgprint
sql = webnotes.conn.sql

View File

@ -10,7 +10,6 @@ from webnotes.model.doc import Document
from webnotes.model.code import get_obj
import webnotes.defaults
sql = webnotes.conn.sql
class DocType:
def __init__(self,d,dl):

View File

@ -5,7 +5,6 @@ from __future__ import unicode_literals
import webnotes
from webnotes import msgprint
sql = webnotes.conn.sql
from webnotes.utils.nestedset import DocTypeNestedSet
class DocType(DocTypeNestedSet):

View File

@ -3,7 +3,6 @@
from __future__ import unicode_literals
import webnotes
sql = webnotes.conn.sql
from webnotes.utils import cint

View File

@ -8,7 +8,6 @@ from webnotes.utils import cstr
from webnotes import msgprint
import webnotes.model.doctype
sql = webnotes.conn.sql
class DocType:
def __init__(self, d, dl):

View File

@ -6,7 +6,6 @@ import webnotes
from webnotes import msgprint
sql = webnotes.conn.sql
class DocType:
def __init__(self,d,dl):

View File

@ -7,7 +7,6 @@ import webnotes
from webnotes.model import db_exists
from webnotes.model.bean import copy_doclist
sql = webnotes.conn.sql

View File

@ -5,7 +5,6 @@ from __future__ import unicode_literals
import webnotes
from webnotes.utils import cint, cstr, filter_strip_join
sql = webnotes.conn.sql
class DocType:
def __init__(self, doc, doclist=None):

View File

@ -5,7 +5,6 @@ from __future__ import unicode_literals
import webnotes
from webnotes.utils import add_days, cint,flt, nowdate, get_url_to_form, formatdate
from webnotes import msgprint, _
sql = webnotes.conn.sql
import webnotes.defaults

View File

@ -13,7 +13,6 @@ from webnotes.model.mapper import get_mapped_doclist
sql = webnotes.conn.sql
from controllers.selling_controller import SellingController

View File

@ -9,7 +9,6 @@ from webnotes.model.bean import getlist
from webnotes.model.code import get_obj
from webnotes import msgprint
sql = webnotes.conn.sql
class DocType:

View File

@ -10,7 +10,6 @@ from webnotes.model.code import get_obj
from webnotes import msgprint
import webnotes.defaults
sql = webnotes.conn.sql
from controllers.buying_controller import BuyingController
class DocType(BuyingController):

View File

@ -15,7 +15,6 @@ from stock.stock_ledger import get_previous_sle
from controllers.queries import get_match_cond
import json
sql = webnotes.conn.sql
class NotUpdateStockError(webnotes.ValidationError): pass
class StockOverReturnError(webnotes.ValidationError): pass

View File

@ -11,7 +11,6 @@ from webnotes.model.code import get_obj
from webnotes import session, msgprint
from stock.utils import get_valid_serial_nos
sql = webnotes.conn.sql
class DocType:
def __init__(self, doc, doclist=[]):

View File

@ -10,7 +10,6 @@ from webnotes.model.bean import copy_doclist
from webnotes.model.code import get_obj
from webnotes import msgprint, _
sql = webnotes.conn.sql
class DocType:
def __init__(self, d, dl=[]):

View File

@ -8,7 +8,6 @@ from webnotes.utils import flt, validate_email_add
from webnotes.model.code import get_obj
from webnotes import msgprint
sql = webnotes.conn.sql
class DocType:
def __init__(self, doc, doclist=[]):

View File

@ -7,7 +7,6 @@ import webnotes
from webnotes import session, msgprint
from webnotes.utils import today
sql = webnotes.conn.sql
from utilities.transaction_base import TransactionBase

View File

@ -9,7 +9,6 @@ from webnotes.model.doc import addchild
from webnotes.model.bean import getlist
from webnotes import msgprint
sql = webnotes.conn.sql
from utilities.transaction_base import TransactionBase, delete_events

View File

@ -8,7 +8,6 @@ from webnotes.utils import cstr
from webnotes.model.bean import getlist
from webnotes import msgprint
sql = webnotes.conn.sql
from utilities.transaction_base import TransactionBase

View File

@ -10,8 +10,6 @@ from webnotes.model.doc import Document
from webnotes import msgprint
from webnotes.model.bean import getlist, copy_doclist
sql = webnotes.conn.sql
class DocType:
def __init__(self, doc, doclist=[]):
self.doc = doc
@ -119,4 +117,4 @@ class DocType:
sl.message = arg['message']
sl.no_of_requested_sms = len(arg['receiver_list'])
sl.no_of_sent_sms = sent_sms
sl.save(new=1)
sl.save(new=1)