[Erp5-report] r13638 - /erp5/trunk/products/ERP5/Document/Document.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Mar 26 14:14:08 CEST 2007
Author: jp
Date: Mon Mar 26 14:14:07 2007
New Revision: 13638
URL: http://svn.erp5.org?rev=13638&view=rev
Log:
Initialise result var.
Modified:
erp5/trunk/products/ERP5/Document/Document.py
Modified: erp5/trunk/products/ERP5/Document/Document.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Document.py?rev=13638&r1=13637&r2=13638&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Document.py (original)
+++ erp5/trunk/products/ERP5/Document/Document.py Mon Mar 26 14:14:07 2007
@@ -896,15 +896,18 @@
# Start with everything until content - build a dictionary according to the order
kw = {}
for order_id in order_list:
+ result = None
if order_id not in VALID_ORDER_KEY_LIST:
# Prevent security attack or bad preferences
raise AttributeError, "%s is not in valid order key list" % order_id
method_id = 'getPropertyDictFrom%s' % convertToUpperCase(order_id)
method = getattr(self, method_id)
if order_id == 'file_name':
- if file_name is not None: result = method(file_name)
+ if file_name is not None:
+ result = method(file_name)
elif order_id == 'user_login':
- if user_login is not None: result = method(user_login)
+ if user_login is not None:
+ result = method(user_login)
else:
result = method()
if result is not None:
@@ -1146,4 +1149,4 @@
Serious refactoring of Alarm, Periodicity and CalendarPeriod
classes is needed.
"""
- return DateTime() + .1
+ return DateTime() + 10
More information about the Erp5-report
mailing list