~unifield-team/unifield-web/us-2156

« back to all changes in this revision

Viewing changes to addons/openerp/utils/tools.py

  • Committer: jf
  • Date: 2017-02-08 16:45:05 UTC
  • mfrom: (4827.7.10 unifield-web)
  • Revision ID: jfb@tempo-consulting.fr-20170208164505-ectui5xjnxgcqw84
US-1965 [IMP] Attachment: max upload size

lp:~fabien-morin/unifield-web/fm-us-1965

Show diffs side-by-side

added added

removed removed

Lines of Context:
232
232
        concurrency_info = [concurrency_info]
233
233
    return dict(ctx, __last_update=dict(concurrency_info))
234
234
 
 
235
def get_max_attachment_size():
 
236
    attachment = rpc.RPCProxy('ir.attachment')
 
237
    return attachment.get_attachment_max_size()
235
238
 
236
239
class TempFileName(str):
237
240
    '''A string representing a temporary file name that will be deleted when object is deleted'''