Author: pekka.klarck
Date: Sun Apr 5 07:45:18 2009
New Revision: 1674
Modified:
trunk/src/robot/serializing/outputserializers.py
trunk/src/robot/serializing/statserializers.py
Log:
cleanup
Modified: trunk/src/robot/serializing/outputserializers.py
==============================================================================
--- trunk/src/robot/serializing/outputserializers.py (original)
+++ trunk/src/robot/serializing/outputserializers.py Sun Apr 5 07:45:18
2009
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+
from robot.output import XmlLogger
Modified: trunk/src/robot/serializing/statserializers.py
==============================================================================
--- trunk/src/robot/serializing/statserializers.py (original)
+++ trunk/src/robot/serializing/statserializers.py Sun Apr 5 07:45:18 2009
@@ -149,8 +149,8 @@
def _get_link_attributes(self, stat):
target = '%s_%s' % (stat.type, stat.get_link(self._split_level))
- return { 'href': '#' + target,
- 'onclick': "set_element_visible('%s')" % target }
+ return {'href': '#' + target,
+ 'onclick': "set_element_visible('%s')" % target}
class LogStatSerializer(_BaseLogStatSerializer):
@@ -172,8 +172,8 @@
if not stat.should_link_to_sub_log(self._split_level):
return _BaseLogStatSerializer._get_link_attributes(self, stat)
self._link_target = self._namegen.get_name()
- return { 'href': '%s#%s_%s' % (self._link_target, stat.type,
- stat.get_link(self._split_level)) }
+ return {'href': '%s#%s_%s' % (self._link_target, stat.type,
+ stat.get_link(self._split_level))}
class ReportStatSerializer(_StatSerializer):
@@ -182,9 +182,9 @@
return stat.type in ['suite', 'tag'] and 'a' or 'span'
def _get_link_attributes(self, stat):
- return { 'href': '#%s_%s' % (stat.type, stat.get_link()) }
-
-
+ return {'href': '#%s_%s' % (stat.type, stat.get_link())}
+
+
class SummaryStatSerializer(_StatSerializer):
def _get_element_name(self, stat):