[Erp5-report] r31341 fabien - in /erp5/trunk/products: ERP5/Document/ ERP5Form/ ERP5OOo/

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Dec 16 16:40:09 CET 2009


Author: fabien
Date: Wed Dec 16 16:40:08 2009
New Revision: 31341

URL: http://svn.erp5.org?rev=31341&view=rev
Log:
remove useless white space

reviewed and approved by Romain

Modified:
    erp5/trunk/products/ERP5/Document/Image.py
    erp5/trunk/products/ERP5Form/ImageField.py
    erp5/trunk/products/ERP5OOo/FormPrintout.py

Modified: erp5/trunk/products/ERP5/Document/Image.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Image.py?rev=31341&r1=31340&r2=31341&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Image.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/Image.py [utf8] Wed Dec 16 16:40:08 2009
@@ -160,7 +160,7 @@
   security.declareProtected(Permissions.AccessContentsInformation, 'getWidth')
   def getWidth(self):
     """
-      Tries to get the width from the image data. 
+      Tries to get the width from the image data.
     """
     self._upradeImage()
     if self.get_size() and not self.width: self._update_image_info()

Modified: erp5/trunk/products/ERP5Form/ImageField.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/ImageField.py?rev=31341&r1=31340&r2=31341&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ImageField.py [utf8] (original)
+++ erp5/trunk/products/ERP5Form/ImageField.py [utf8] Wed Dec 16 16:40:08 2009
@@ -43,7 +43,7 @@
 
 class ImageFieldWidget(Widget.TextWidget):
     """ImageField widget.
-    
+
     Renders an HTML <img> element where the src is the 'default' field value.
     The 'description' field value is used as 'alt' attribute.
     The image size is calculated using 'image_display'.

Modified: erp5/trunk/products/ERP5OOo/FormPrintout.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/FormPrintout.py?rev=31341&r1=31340&r2=31341&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/FormPrintout.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/FormPrintout.py [utf8] Wed Dec 16 16:40:08 2009
@@ -94,14 +94,14 @@
 class FormPrintout(Implicit, Persistent, RoleManager, Item):
   """Form Printout
 
-  FormPrintout is one of a reporting system in ERP5. 
-  It enables to create a Printout, using an Open Document Format(ODF) 
-  document as its design, an ERP5Form as its contents. 
+  FormPrintout is one of a reporting system in ERP5.
+  It enables to create a Printout, using an Open Document Format(ODF)
+  document as its design, an ERP5Form as its contents.
 
   WARNING: The Form Printout currently supports only ODT format document.
 
   The functions status:
-  
+
   Fields -> Paragraphs:      supported
   ListBox -> Table:          supported
   Report Section
@@ -111,7 +111,7 @@
   styles.xml:                supported
   meta.xml:                  not supported yet
   """
-  
+
   meta_type = "ERP5 Form Printout"
   icon = "www/form_printout_icon.png"
 
@@ -186,7 +186,7 @@
     self.strategy = self._createStrategy(content_type)
     printout = self.strategy.render(extra_context=extra_context)
     return self._oooConvertByFormat(printout,
-                                    content_type=content_type, 
+                                    content_type=content_type,
                                     extra_context=extra_context,
                                     REQUEST=REQUEST)
 
@@ -368,8 +368,8 @@
     Keyword arguments:
     element_tree -- the element tree object which have an xml document in an ODF document.
     extra_context -- the extra context
-    report_method -- the report method object which is used in an ReportBox 
-    base_name -- the name of a ReportBox field which is used to specify the target 
+    report_method -- the report method object which is used in an ReportBox
+    base_name -- the name of a ReportBox field which is used to specify the target
     ooo_builder -- the OOo Builder object which has ODF document.
     """
     if report_method is None:
@@ -472,7 +472,7 @@
     Replace an ODF frame using an ERP5Form form box field.
 
     Note: This method is incompleted yet. This function is intended to
-    make an frame hide/show. But it has not such a feature currently. 
+    make an frame hide/show. But it has not such a feature currently.
     """
     field_id = field.id
     enabled = field.get_value('enabled')
@@ -595,14 +595,14 @@
                                                            has_header_rows=has_header_rows)
     # create style-name and table-row dictionary if a reference name is set
     style_name_row_dictionary = self._createStyleNameRowDictionary(table_row_list)
-    # clear original table 
+    # clear original table
     parent_paragraph = target_table.getparent()
-    # clear rows 
+    # clear rows
     [newtable.remove(table_row) for table_row in table_row_list]
 
     listboxline_list = listbox.get_value('default',
                                          render_format='list',
-                                         REQUEST=REQUEST, 
+                                         REQUEST=REQUEST,
                                          render_prefix=None)
     # if ODF table has header rows, does not update the header rows
     # if does not have header rows, insert the listbox title line
@@ -666,7 +666,7 @@
       row_middle = deepcopy(table_row_list[1])
       row_bottom = deepcopy(table_row_list[-1])
 
-    # remove office attribute if create a new header row 
+    # remove office attribute if create a new header row
     removeOfficeAttribute(row_top)
     return (row_top, row_middle, row_bottom)
 
@@ -844,7 +844,7 @@
     ooo_builder -- the OOoBuilder object which have an ODF document.
     iteration_index -- the index which is used when iterating the group of items using ReportSection.
     """
-    field_list = form.get_fields(include_disabled=1) 
+    field_list = form.get_fields(include_disabled=1)
     REQUEST = here.REQUEST
     for (count, field) in enumerate(field_list):
       if isinstance(field, ListBox):




More information about the Erp5-report mailing list