Sourced wnframework-modules from Google Code as erpnext
diff --git a/roles/Module Def/Roles/Roles.txt b/roles/Module Def/Roles/Roles.txt
new file mode 100644
index 0000000..80f1992
--- /dev/null
+++ b/roles/Module Def/Roles/Roles.txt
@@ -0,0 +1,71 @@
+[
+	{
+		'_last_update': None,
+		'creation': '2010-11-30 22:42:12',
+		'disabled': 'No',
+		'docstatus': 0,
+		'doctype': 'Module Def',
+		'doctype_list': None,
+		'file_list': None,
+		'idx': None,
+		'is_hidden': None,
+		'last_updated_date': '2010-11-29 12:02:02',
+		'modified': '2010-09-25 00:00:00',
+		'modified_by': 'Administrator',
+		'module_desc': 'Roles',
+		'module_icon': 'users.png',
+		'module_label': 'Roles',
+		'module_name': 'Roles',
+		'module_page': None,
+		'module_seq': None,
+		'name': 'Roles',
+		'owner': 'Administrator',
+		'parent': None,
+		'parentfield': None,
+		'parenttype': None,
+		'trash_reason': None,
+		'widget_code': None
+	},
+	{
+		'click_function': None,
+		'creation': '2010-11-30 22:42:12',
+		'description': None,
+		'display_name': 'Role',
+		'doc_name': 'Role',
+		'doc_type': 'Forms',
+		'docstatus': 0,
+		'doctype': 'Module Def Item',
+		'fields': None,
+		'hide': None,
+		'icon': None,
+		'idx': None,
+		'modified': '2011-03-24 15:04:47',
+		'modified_by': 'Administrator',
+		'name': 'MDI00208',
+		'owner': 'Administrator',
+		'parent': 'Roles',
+		'parentfield': 'items',
+		'parenttype': 'Module Def'
+	},
+	{
+		'click_function': None,
+		'creation': '2011-03-24 15:04:47',
+		'description': None,
+		'display_name': None,
+		'doc_name': 'Forms',
+		'doc_type': 'Separator',
+		'docstatus': 0,
+		'doctype': 'Module Def Item',
+		'fields': None,
+		'hide': None,
+		'icon': None,
+		'idx': None,
+		'modified': '2011-03-24 15:04:47',
+		'modified_by': 'Administrator',
+		'name': '000003097',
+		'owner': 'Administrator',
+		'parent': 'Roles',
+		'parentfield': 'items',
+		'parenttype': 'Module Def'
+	}
+]
\ No newline at end of file
diff --git a/roles/Role/Accounts Manager/Accounts Manager.txt b/roles/Role/Accounts Manager/Accounts Manager.txt
new file mode 100644
index 0000000..b347d61
--- /dev/null
+++ b/roles/Role/Accounts Manager/Accounts Manager.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Administrator', 'name': 'Accounts Manager', 'parent': None, 'creation': '2009-03-19 14:57:46', 'modified': '2009-03-19 14:57:46', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'Accounts Manager', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/Role/Accounts User/Accounts User.txt b/roles/Role/Accounts User/Accounts User.txt
new file mode 100644
index 0000000..67994a3
--- /dev/null
+++ b/roles/Role/Accounts User/Accounts User.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Guest', 'name': 'Accounts User', 'parent': None, 'creation': '2010-04-08 12:05:21', 'modified': '2010-04-08 12:05:21', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'Accounts User', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/Role/Administrator/Administrator.txt b/roles/Role/Administrator/Administrator.txt
new file mode 100644
index 0000000..283b1ff
--- /dev/null
+++ b/roles/Role/Administrator/Administrator.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Administrator', 'name': 'Administrator', 'parent': '', 'creation': '2009-03-12 12:01:57', 'modified': '2009-03-12 12:01:57', 'module': 'Roles', 'doctype': 'Role', 'idx': 0, 'parenttype': '', 'role_name': 'Administrator', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': ''}]
\ No newline at end of file
diff --git a/roles/Role/All/All.txt b/roles/Role/All/All.txt
new file mode 100644
index 0000000..1385f06
--- /dev/null
+++ b/roles/Role/All/All.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Administrator', 'name': 'All', 'parent': None, 'creation': '2009-03-12 14:40:07', 'modified': '2009-03-12 14:40:07', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'All', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/Role/Customer/Customer.txt b/roles/Role/Customer/Customer.txt
new file mode 100644
index 0000000..39d0d82
--- /dev/null
+++ b/roles/Role/Customer/Customer.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Administrator', 'name': 'Customer', 'parent': None, 'creation': '2009-06-26 14:42:33', 'modified': '2009-06-26 14:42:33', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'Customer', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/Role/Employee/Employee.txt b/roles/Role/Employee/Employee.txt
new file mode 100644
index 0000000..4b73c1a
--- /dev/null
+++ b/roles/Role/Employee/Employee.txt
@@ -0,0 +1,17 @@
+[
+	{
+		'creation': '2011-02-12 15:07:26',
+		'docstatus': 0,
+		'doctype': 'Role',
+		'idx': None,
+		'modified': '2011-02-14 14:05:55',
+		'modified_by': 'Administrator',
+		'module': 'Roles',
+		'name': 'Employee',
+		'owner': 'Administrator',
+		'parent': None,
+		'parentfield': None,
+		'parenttype': None,
+		'role_name': 'Employee'
+	}
+]
\ No newline at end of file
diff --git a/roles/Role/Guest/Guest.txt b/roles/Role/Guest/Guest.txt
new file mode 100644
index 0000000..9438a28
--- /dev/null
+++ b/roles/Role/Guest/Guest.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Administrator', 'name': 'Guest', 'parent': None, 'creation': '2009-10-03 16:59:07', 'modified': '2010-01-13 16:45:40', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'Guest', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}, {'modified_by': 'Administrator', 'name': 'DEF000069', 'parent': 'Guest', 'defvalue': '1', 'creation': '2009-10-03 16:59:07', 'defkey': 'hide_webnotes_toolbar', 'modified': '2010-01-13 16:45:40', 'doctype': 'DefaultValue', 'idx': 1, 'parenttype': 'Role', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': 'defaults'}, {'modified_by': 'Administrator', 'name': 'DEF000133', 'parent': 'Guest', 'defvalue': '1', 'creation': '2010-01-13 16:45:40', 'defkey': 'hide_sidebars', 'modified': '2010-01-13 16:45:40', 'doctype': 'DefaultValue', 'idx': 2, 'parenttype': 'Role', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': 'defaults'}]
\ No newline at end of file
diff --git a/roles/Role/HR Manager/HR Manager.txt b/roles/Role/HR Manager/HR Manager.txt
new file mode 100644
index 0000000..db31afc
--- /dev/null
+++ b/roles/Role/HR Manager/HR Manager.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Administrator', 'name': 'HR Manager', 'parent': None, 'creation': '2010-04-01 14:14:39', 'modified': '2010-04-01 10:19:09', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'HR Manager', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/Role/HR User/HR User.txt b/roles/Role/HR User/HR User.txt
new file mode 100644
index 0000000..e7134c5
--- /dev/null
+++ b/roles/Role/HR User/HR User.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Administrator', 'name': 'HR User', 'parent': None, 'creation': '2010-04-01 14:14:39', 'modified': '2010-04-01 10:18:55', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'HR User', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/Role/Maintenance Manager/Maintenance Manager.txt b/roles/Role/Maintenance Manager/Maintenance Manager.txt
new file mode 100644
index 0000000..4047171
--- /dev/null
+++ b/roles/Role/Maintenance Manager/Maintenance Manager.txt
@@ -0,0 +1 @@
+[{'modified_by': 'ashwini@webnotestech.com', 'name': 'Maintenance Manager', 'parent': None, 'creation': '2010-07-22 15:19:33', 'modified': '2010-07-22 15:19:33', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'Maintenance Manager', 'owner': 'ashwini@webnotestech.com', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/Role/Maintenance User/Maintenance User.txt b/roles/Role/Maintenance User/Maintenance User.txt
new file mode 100644
index 0000000..6f7a5ab
--- /dev/null
+++ b/roles/Role/Maintenance User/Maintenance User.txt
@@ -0,0 +1 @@
+[{'modified_by': 'ashwini@webnotestech.com', 'name': 'Maintenance User', 'parent': None, 'creation': '2010-07-22 15:19:19', 'modified': '2010-07-22 15:19:19', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'Maintenance User', 'owner': 'ashwini@webnotestech.com', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/Role/Material Manager/Material Manager.txt b/roles/Role/Material Manager/Material Manager.txt
new file mode 100644
index 0000000..9e3ba18
--- /dev/null
+++ b/roles/Role/Material Manager/Material Manager.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Administrator', 'name': 'Material Manager', 'parent': None, 'creation': '2009-03-12 12:09:44', 'modified': '2009-03-19 14:56:51', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'Material Manager', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/Role/Material Master Manager/Material Master Manager.txt b/roles/Role/Material Master Manager/Material Master Manager.txt
new file mode 100644
index 0000000..5f4666d
--- /dev/null
+++ b/roles/Role/Material Master Manager/Material Master Manager.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Administrator', 'name': 'Material Master Manager', 'parent': None, 'creation': '2010-04-08 13:49:58', 'modified': '2010-04-08 13:49:58', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'Material Master Manager', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/Role/Material User/Material User.txt b/roles/Role/Material User/Material User.txt
new file mode 100644
index 0000000..320e280
--- /dev/null
+++ b/roles/Role/Material User/Material User.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Administrator', 'name': 'Material User', 'parent': None, 'creation': '2010-04-08 12:08:13', 'modified': '2010-04-08 12:08:13', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'Material User', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/Role/Partner/Partner.txt b/roles/Role/Partner/Partner.txt
new file mode 100644
index 0000000..037d9f7
--- /dev/null
+++ b/roles/Role/Partner/Partner.txt
@@ -0,0 +1 @@
+[{'modified_by': 'yogesh@webnotestech.com', 'name': 'Partner', 'parent': None, 'creation': '2009-07-13 11:29:39', 'modified': '2009-07-13 11:29:39', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'Partner', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/Role/Production Manager/Production Manager.txt b/roles/Role/Production Manager/Production Manager.txt
new file mode 100644
index 0000000..b6cad1e
--- /dev/null
+++ b/roles/Role/Production Manager/Production Manager.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Administrator', 'name': 'Production Manager', 'parent': None, 'creation': '2009-09-23 16:35:34', 'modified': '2009-09-23 16:35:35', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'Production Manager', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/Role/Production User/Production User.txt b/roles/Role/Production User/Production User.txt
new file mode 100644
index 0000000..5d1e64e
--- /dev/null
+++ b/roles/Role/Production User/Production User.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Administrator', 'name': 'Production User', 'parent': None, 'creation': '2009-09-23 16:36:08', 'modified': '2009-09-23 16:36:08', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'Production User', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/Role/Projects User/Projects User.txt b/roles/Role/Projects User/Projects User.txt
new file mode 100644
index 0000000..53f1216
--- /dev/null
+++ b/roles/Role/Projects User/Projects User.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Administrator', 'name': 'Projects User', 'parent': None, 'creation': '2010-05-08 09:40:07', 'modified': '2010-05-08 09:40:07', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'Projects User', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}, {'modified_by': 'yogesh@webnotestech.com', 'name': 'DEF000253', 'parent': 'Projects User', 'defvalue': 'Public', 'creation': '2010-11-19 10:47:59', 'defkey': 'customer_group', 'modified': '2010-11-19 10:47:59', 'doctype': 'DefaultValue', 'idx': None, 'parenttype': 'Role', 'owner': 'yogesh@webnotestech.com', 'docstatus': 0, 'parentfield': 'defaults'}]
\ No newline at end of file
diff --git a/roles/Role/Purchase Manager/Purchase Manager.txt b/roles/Role/Purchase Manager/Purchase Manager.txt
new file mode 100644
index 0000000..0372549
--- /dev/null
+++ b/roles/Role/Purchase Manager/Purchase Manager.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Administrator', 'name': 'Purchase Manager', 'parent': None, 'creation': '2010-04-08 12:07:53', 'modified': '2010-04-08 12:07:53', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'Purchase Manager', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/Role/Purchase Master Manager/Purchase Master Manager.txt b/roles/Role/Purchase Master Manager/Purchase Master Manager.txt
new file mode 100644
index 0000000..5d516ce
--- /dev/null
+++ b/roles/Role/Purchase Master Manager/Purchase Master Manager.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Administrator', 'name': 'Purchase Master Manager', 'parent': None, 'creation': '2010-04-08 13:50:20', 'modified': '2010-04-08 13:50:20', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'Purchase Master Manager', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/Role/Purchase User/Purchase User.txt b/roles/Role/Purchase User/Purchase User.txt
new file mode 100644
index 0000000..94cb25e
--- /dev/null
+++ b/roles/Role/Purchase User/Purchase User.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Administrator', 'name': 'Purchase User', 'parent': None, 'creation': '2010-04-08 12:08:01', 'modified': '2010-04-08 12:08:01', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'Purchase User', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/Role/Quality Manager/Quality Manager.txt b/roles/Role/Quality Manager/Quality Manager.txt
new file mode 100644
index 0000000..aacf400
--- /dev/null
+++ b/roles/Role/Quality Manager/Quality Manager.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Administrator', 'name': 'Quality Manager', 'parent': None, 'creation': '2010-05-04 13:12:27', 'modified': '2010-05-04 13:12:27', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'Quality Manager', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/Role/Sales Manager/Sales Manager.txt b/roles/Role/Sales Manager/Sales Manager.txt
new file mode 100644
index 0000000..5136e7c
--- /dev/null
+++ b/roles/Role/Sales Manager/Sales Manager.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Administrator', 'name': 'Sales Manager', 'parent': None, 'creation': '2010-04-08 12:07:36', 'modified': '2010-04-08 12:07:36', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'Sales Manager', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/Role/Sales Master Manager/Sales Master Manager.txt b/roles/Role/Sales Master Manager/Sales Master Manager.txt
new file mode 100644
index 0000000..e973100
--- /dev/null
+++ b/roles/Role/Sales Master Manager/Sales Master Manager.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Administrator', 'name': 'Sales Master Manager', 'parent': None, 'creation': '2010-04-08 13:50:11', 'modified': '2010-04-08 13:50:11', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'Sales Master Manager', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/Role/Sales User/Sales User.txt b/roles/Role/Sales User/Sales User.txt
new file mode 100644
index 0000000..ce9f91c
--- /dev/null
+++ b/roles/Role/Sales User/Sales User.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Administrator', 'name': 'Sales User', 'parent': None, 'creation': '2010-04-08 12:07:44', 'modified': '2010-04-08 12:07:44', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'Sales User', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/Role/Supplier/Supplier.txt b/roles/Role/Supplier/Supplier.txt
new file mode 100644
index 0000000..ffae145
--- /dev/null
+++ b/roles/Role/Supplier/Supplier.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Administrator', 'name': 'Supplier', 'parent': None, 'creation': '2009-06-26 14:42:19', 'modified': '2009-06-26 14:42:19', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'Supplier', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/Role/Support Manager/Support Manager.txt b/roles/Role/Support Manager/Support Manager.txt
new file mode 100644
index 0000000..c0b0b4e
--- /dev/null
+++ b/roles/Role/Support Manager/Support Manager.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Administrator', 'name': 'Support Manager', 'parent': None, 'creation': '2010-12-28 15:17:40', 'modified': '2010-12-28 15:17:40', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'Support Manager', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/Role/Support Team/Support Team.txt b/roles/Role/Support Team/Support Team.txt
new file mode 100644
index 0000000..259b30a
--- /dev/null
+++ b/roles/Role/Support Team/Support Team.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Administrator', 'name': 'Support Team', 'parent': None, 'creation': '2010-12-28 15:19:11', 'modified': '2010-12-28 15:19:11', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'Support Team', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/Role/System Manager/System Manager.txt b/roles/Role/System Manager/System Manager.txt
new file mode 100644
index 0000000..37c4fb5
--- /dev/null
+++ b/roles/Role/System Manager/System Manager.txt
@@ -0,0 +1 @@
+[{'modified_by': 'Administrator', 'name': 'System Manager', 'parent': None, 'creation': '2009-03-12 13:53:20', 'modified': '2009-07-07 17:00:24', 'module': 'Roles', 'doctype': 'Role', 'idx': None, 'parenttype': None, 'role_name': 'System Manager', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': None}]
\ No newline at end of file
diff --git a/roles/__init__.py b/roles/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/roles/__init__.py
diff --git a/roles/doctype/__init__.py b/roles/doctype/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/roles/doctype/__init__.py
diff --git a/roles/doctype/role/__init__.py b/roles/doctype/role/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/roles/doctype/role/__init__.py
diff --git a/roles/doctype/role/role.js b/roles/doctype/role/role.js
new file mode 100644
index 0000000..672f4ac
--- /dev/null
+++ b/roles/doctype/role/role.js
@@ -0,0 +1,6 @@
+class DocType:
+  def __init__(self, d, dl):
+    self.doc, self.doclist = d, dl
+
+  def t1(self):
+    msgprint('role')
\ No newline at end of file
diff --git a/roles/doctype/role/role.py b/roles/doctype/role/role.py
new file mode 100644
index 0000000..4c9d7f5
--- /dev/null
+++ b/roles/doctype/role/role.py
@@ -0,0 +1,25 @@
+# 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
+
+  def t1(self):
+    msgprint('role')
\ No newline at end of file
diff --git a/roles/doctype/role/role.txt b/roles/doctype/role/role.txt
new file mode 100644
index 0000000..f6e3f6c
--- /dev/null
+++ b/roles/doctype/role/role.txt
@@ -0,0 +1 @@
+[{'section_style': 'Simple', 'is_transaction_doc': None, 'creation': '2009-03-12 12:01:55', 'search_fields': '', 'module': 'Roles', 'doctype': 'DocType', 'change_log': None, 'print_outline': '', 'owner': 'Administrator', 'in_dialog': None, 'in_create': None, 'read_only': 0, 'allow_email': 0, 'dt_template': None, 'hide_heading': 0, 'issingle': 0, 'allow_rename': None, 'smallicon': '', 'allow_attach': None, 'show_in_menu': 0, 'max_attachments': None, 'version': 7, 'menu_index': None, 'docstatus': 0, 'allow_copy': 0, 'istable': 0, 'description': '', 'parent': '', 'server_code': '', 'allow_trash': None, 'allow_print': 0, 'autoname': 'field:role_name', 'client_script_core': '', 'client_string': None, 'use_template': None, 'modified_by': 'Guest', 'document_type': None, 'name': 'Role', 'idx': 0, 'hide_toolbar': 0, 'colour': 'White:FFF', 'client_script': '', 'modified': '2010-09-20 14:06:57', 'server_code_error': ' ', 'name_case': '', 'parenttype': '', 'read_only_onload': None, 'server_code_core': '', 'server_code_compiled': None, 'parent_node': None, 'parentfield': ''}, {'cancel': 0, 'amend': None, 'execute': 0, 'modified_by': 'Guest', 'name': 'PERM00014', 'parent': 'Role', 'read': 1, 'create': 1, 'creation': '2009-03-12 12:01:57', 'modified': '2010-04-08 12:05:09', 'submit': 0, 'doctype': 'DocPerm', 'write': 1, 'idx': 1, 'parenttype': 'DocType', 'role': 'Administrator', 'owner': 'Administrator', 'docstatus': 0, 'permlevel': 0, 'match': '', 'parentfield': 'permissions'}, {'no_copy': None, 'oldfieldtype': 'Select', 'creation': '2009-03-17 12:09:47', 'doctype': 'DocField', 'oldfieldname': 'module', 'owner': 'Administrator', 'reqd': 1, 'in_filter': None, 'print_hide': None, 'modified_by': 'Guest', 'label': 'Module', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Role', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL01437', 'idx': 1, 'default': 'Roles', 'colour': None, 'modified': '2010-04-08 12:05:09', 'parenttype': 'DocType', 'fieldname': 'module', 'fieldtype': 'Select', 'options': 'link:Module Def', 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Data', 'creation': '2009-03-12 12:01:56', 'doctype': 'DocField', 'oldfieldname': 'role_name', 'owner': 'Administrator', 'reqd': 1, 'in_filter': None, 'print_hide': None, 'modified_by': 'Guest', 'label': 'Role Name', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Role', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL00194', 'idx': 2, 'default': None, 'colour': None, 'modified': '2010-04-08 12:05:09', 'parenttype': 'DocType', 'fieldname': 'role_name', 'fieldtype': 'Data', 'options': None, 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Table', 'creation': '2009-03-12 12:01:56', 'doctype': 'DocField', 'oldfieldname': 'defaults', 'owner': 'Administrator', 'reqd': 0, 'in_filter': 0, 'print_hide': None, 'modified_by': 'Guest', 'label': 'Defaults', 'width': '', 'trigger': '', 'depends_on': None, 'docstatus': 0, 'hidden': 0, 'permlevel': 0, 'description': None, 'parent': 'Role', 'search_index': 0, 'allow_on_submit': None, 'icon': None, 'name': 'FL00195', 'idx': 3, 'default': '', 'colour': '', 'modified': '2010-04-08 12:05:09', 'parenttype': 'DocType', 'fieldname': 'defaults', 'fieldtype': 'Table', 'options': 'DefaultValue', 'report_hide': None, 'parentfield': 'fields'}]
\ No newline at end of file