From 18a5839bfe8f39378f56409b2d1a67b095982d9b Mon Sep 17 00:00:00 2001
From: Nicolas Delaby <nicolas@nexedi.com>
Date: Wed, 12 May 2010 12:58:32 +0000
Subject: [PATCH] Extend Data propertysheet to handle size of files

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35211 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/PropertySheet/Data.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/product/ERP5/PropertySheet/Data.py b/product/ERP5/PropertySheet/Data.py
index 6de2f28614..54670fb3e1 100644
--- a/product/ERP5/PropertySheet/Data.py
+++ b/product/ERP5/PropertySheet/Data.py
@@ -1,6 +1,7 @@
+# -*- coding: utf-8 -*-
 ##############################################################################
 #
-# Copyright (c) 2006 Nexedi SARL and Contributors. All Rights Reserved.
+# Copyright (c) 2010 Nexedi SA and Contributors. All Rights Reserved.
 #          Jean-Paul Smets <jp@nexedi.com>
 #
 # WARNING: This program as such is intended to be used by professional
@@ -43,4 +44,9 @@ class Data:
       'type'        : 'string',
       'default'     : 'application/unknown',
       'mode'        : 'w' },
+    { 'id'          : 'size',
+      'description' : 'Size in bytes of the data',
+      'type'        : 'int',
+      'default'     : 0,
+      'mode'        : 'w' },
    )
-- 
2.30.9