moved directory structure

This commit is contained in:
Rushabh Mehta
2012-09-24 19:13:42 +05:30
parent e47a6779e9
commit 2fa2f7178d
1637 changed files with 47 additions and 11450 deletions

View File

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

View File

@@ -0,0 +1,25 @@
# ERPNext - web based ERP (http://erpnext.com)
# Copyright (C) 2012 Web Notes Technologies Pvt Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from __future__ import unicode_literals
class DocType:
def __init__(self, d, dl):
self.doc, self.doclist = d, dl
def on_trash(self):
import webnotes
webnotes.conn.sql("delete from tabAnswer where question=%s", self.doc.name)

View File

@@ -0,0 +1,158 @@
# DocType, Question
[
# These values are common in all dictionaries
{
'creation': '2012-03-27 14:36:01',
'docstatus': 0,
'modified': '2012-03-27 14:36:01',
'modified_by': u'Administrator',
'owner': u'Administrator'
},
# These values are common for all DocType
{
'allow_attach': 0,
'allow_trash': 1,
'autoname': u'QUES.#######',
'colour': u'White:FFF',
'doctype': 'DocType',
'in_create': 1,
'module': u'Utilities',
'name': '__common__',
'read_only': 1,
'section_style': u'Simple',
'server_code_error': u' ',
'show_in_menu': 0,
'version': 7
},
# These values are common for all DocField
{
'doctype': u'DocField',
'name': '__common__',
'parent': u'Question',
'parentfield': u'fields',
'parenttype': u'DocType',
'permlevel': 0
},
# These values are common for all DocPerm
{
'cancel': 1,
'create': 1,
'doctype': u'DocPerm',
'name': '__common__',
'parent': u'Question',
'parentfield': u'permissions',
'parenttype': u'DocType',
'permlevel': 0,
'read': 1,
'role': u'All',
'write': 1
},
# DocType, Question
{
'doctype': 'DocType',
'name': u'Question'
},
# DocPerm
{
'doctype': u'DocPerm'
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'question',
'fieldtype': u'Text',
'label': u'Question',
'oldfieldname': u'question',
'oldfieldtype': u'Text'
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'points',
'fieldtype': u'Int',
'hidden': 1,
'label': u'Points'
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'answer',
'fieldtype': u'Text Editor',
'label': u'Answer',
'oldfieldname': u'answer',
'oldfieldtype': u'Text Editor'
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'_user_tags',
'fieldtype': u'Data',
'hidden': 1,
'label': u'User Tags'
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'tag_1',
'fieldtype': u'Link',
'label': u'Tag 1',
'oldfieldname': u'tag_1',
'oldfieldtype': u'Link',
'options': u'Question Tag',
'search_index': 0
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'_users_voted',
'fieldtype': u'Text',
'label': u'Users Voted'
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'tag_2',
'fieldtype': u'Link',
'label': u'Tag 2',
'oldfieldname': u'tag_2',
'oldfieldtype': u'Link',
'options': u'Question Tag',
'search_index': 0
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'tag_3',
'fieldtype': u'Link',
'label': u'Tag 3',
'oldfieldname': u'tag_3',
'oldfieldtype': u'Link',
'options': u'Question Tag',
'search_index': 0
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'file_list',
'fieldtype': u'Text',
'hidden': 1,
'label': u'File List',
'oldfieldname': u'file_list',
'oldfieldtype': u'Text'
}
]