first cut for lazy loading framework

This commit is contained in:
Rushabh Mehta
2011-09-05 18:43:09 +05:30
parent 09938bda69
commit 66ac2b018a
1512 changed files with 832 additions and 0 deletions

View File

@@ -1,22 +0,0 @@
# Please edit this list and import only required elements
import webnotes
from webnotes.utils import add_days, add_months, add_years, cint, cstr, date_diff, default_fields, flt, fmt_money, formatdate, generate_hash, getTraceback, get_defaults, get_first_day, get_last_day, getdate, has_common, month_name, now, nowdate, replace_newlines, sendmail, set_default, str_esc_quote, user_format, validate_email_add
from webnotes.model import db_exists
from webnotes.model.doc import Document, addchild, removechild, getchildren, make_autoname, SuperDocType
from webnotes.model.doclist import getlist, copy_doclist
from webnotes.model.code import get_obj, get_server_obj, run_server_obj, updatedb, check_syntax
from webnotes import session, form, is_testing, msgprint, errprint
set = webnotes.conn.set
sql = webnotes.conn.sql
get_value = webnotes.conn.get_value
in_transaction = webnotes.conn.in_transaction
convert_to_lists = webnotes.conn.convert_to_lists
# -----------------------------------------------------------------------------------------
class DocType:
def __init__(self,d,dl):
self.doc, self.doclist = d, dl

View File

@@ -1,73 +0,0 @@
# DocType, Feed
[
# These values are common in all dictionaries
{
'creation': '2011-04-08 10:50:41',
'docstatus': 0,
'modified': '2011-04-05 09:16:57',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all DocType
{
'autoname': '_FEED.#####',
'colour': 'White:FFF',
'doctype': 'DocType',
'module': 'Home',
'name': '__common__',
'section_style': 'Simple',
'show_in_menu': 0,
'version': 1
},
# These values are common for all DocField
{
'doctype': 'DocField',
'fieldtype': 'Data',
'name': '__common__',
'parent': 'Feed',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0
},
# DocType, Feed
{
'doctype': 'DocType',
'name': 'Feed'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'doc_type',
'idx': 1,
'label': 'Doc Type'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'doc_name',
'idx': 2,
'label': 'Doc Name'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'subject',
'idx': 3,
'label': 'Subject'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'color',
'idx': 4,
'label': 'Color'
}
]