From 6cc272049cead346d963e52e2437b54e39fa06e0 Mon Sep 17 00:00:00 2001 From: "Dharti Ratani (Open ERP)" Date: Mon, 25 Feb 2013 14:46:39 +0530 Subject: [PATCH 01/61] [IMP]Renaming google docs to google drive bzr revid: dhr@tinyerp.com-20130225091639-s0m5xd110yozak0q --- addons/google_docs/__openerp__.py | 2 +- addons/google_docs/google_docs.py | 10 +++++----- addons/google_docs/res_config_user_view.xml | 6 +++--- addons/google_docs/static/src/xml/gdocs.xml | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/addons/google_docs/__openerp__.py b/addons/google_docs/__openerp__.py index 2d064fdb8a9..21a56a5767c 100644 --- a/addons/google_docs/__openerp__.py +++ b/addons/google_docs/__openerp__.py @@ -20,7 +20,7 @@ ############################################################################## { - 'name': 'Google Docs integration', + 'name': 'Google Drive integration', 'version': '0.2', 'author': 'OpenERP SA', 'website': 'http://openerp.com', diff --git a/addons/google_docs/google_docs.py b/addons/google_docs/google_docs.py index cdb14de1de3..d2e746c33e7 100644 --- a/addons/google_docs/google_docs.py +++ b/addons/google_docs/google_docs.py @@ -126,7 +126,7 @@ class google_docs_ir_attachment(osv.osv): #copy the document you choose in the configuration copy_resource = client.copy_resource(doc, name_gdocs) except: - raise osv.except_osv(_('Google Docs Error!'), _("Your resource id is not correct. You can find the id in the google docs URL.")) + raise osv.except_osv(_('Google Drive Error!'), _("Your resource id is not correct. You can find the id in the google docs URL.")) # create an ir.attachment self.create(cr, uid, { 'res_model': res_model, @@ -150,7 +150,7 @@ class google_docs_ir_attachment(osv.osv): :return: the google document object created ''' if len(ids) != 1: - raise osv.except_osv(_('Google Docs Error!'), _("Creating google docs may only be done by one at a time.")) + raise osv.except_osv(_('Google Drive Error!'), _("Creating google drive may only be done by one at a time.")) res_id = ids[0] pool_ir_attachment = self.pool.get('ir.attachment') pool_gdoc_config = self.pool.get('google.docs.config') @@ -164,7 +164,7 @@ class google_docs_ir_attachment(osv.osv): try: name_gdocs = name_gdocs % model_fields_dic except: - raise osv.except_osv(_('Key Error!'), _("Your Google Doc Name Pattern's key does not found in object.")) + raise osv.except_osv(_('Key Error!'), _("Your Google Drive Name Pattern's key does not found in object.")) google_template_id = pool_gdoc_config.browse(cr, uid, google_docs_config[0], context=context).gdocs_resource_id google_document = pool_ir_attachment.copy_gdoc(cr, uid, res_model, res_id, name_gdocs, google_template_id, context=context) else: @@ -173,7 +173,7 @@ class google_docs_ir_attachment(osv.osv): class config(osv.osv): _name = 'google.docs.config' - _description = "Google Docs templates config" + _description = "Google Drive templates config" _columns = { 'model_id': fields.many2one('ir.model', 'Model', required=True), @@ -185,7 +185,7 @@ This is the id of the template document, on google side. You can find it thanks *for a drawing document with url like `https://docs.google.com/a/openerp.com/drawings/d/123456789/edit`, the ID is `drawings:123456789` ... ''', required=True), - 'name_template': fields.char('Google Doc Name Pattern', size=64, help='Choose how the new google docs will be named, on google side. Eg. gdoc_%(field_name)s', required=True), + 'name_template': fields.char('Google Drive Name Pattern', size=64, help='Choose how the new google drive will be named, on google side. Eg. gdoc_%(field_name)s', required=True), } _defaults = { diff --git a/addons/google_docs/res_config_user_view.xml b/addons/google_docs/res_config_user_view.xml index e6c4223735f..68cf074a4ff 100644 --- a/addons/google_docs/res_config_user_view.xml +++ b/addons/google_docs/res_config_user_view.xml @@ -8,7 +8,7 @@ google_docs.config.tree google.docs.config - + @@ -19,7 +19,7 @@ google_docs.config.form google.docs.config -
+