Merge ERPNext Schools into ERPNext
diff --git a/erpnext/templates/pages/announcements.py b/erpnext/templates/pages/announcements.py
new file mode 100644
index 0000000..4a61fc8
--- /dev/null
+++ b/erpnext/templates/pages/announcements.py
@@ -0,0 +1,18 @@
+# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
+# License: GNU General Public License v3. See license.txt
+
+from __future__ import unicode_literals
+import frappe
+
+def get_context(context):
+	announcement = frappe.get_doc('Announcement', frappe.form_dict.announcement)
+	context.no_cache = 1
+	context.show_sidebar = True
+	announcement.has_permission('read')
+	context.doc = announcement
+	attachments = frappe.db.sql("""select file_url, file_name from tabFile as file
+								where file.attached_to_name=%s """,(announcement.name), as_dict = True)
+
+	context.attached_files = attachments
+
+