file = object['use'][1]
row_num = object['use'][2]
+ pp = pprint.PrettyPrinter( indent = 4, depth = 6, width = 120 )
if 'templates' in object:
+ self.logger.debug( "Templates allready found, returning:\n\t{0}".format( pp.pformat( object['templates'] ) ) )
return object['templates']
object['templates'] = []
for name in self._retrieve_templates( object_type, template_name ):
names.append( name )
for name in names:
+ self.logger.debug( "Assigning template {0!r}.".format( name ) )
if name in object['templates_applied']:
self.logger.debug( "Template {0!r} for {1!r} allready applied.".format( name, object_type ) )
else:
object['templates'].append( name )
object['templates_applied'].add( name )
-
+
+ self.logger.debug( "Templates returning:\n\t{0}".format( pp.pformat( object['templates'] ) ) )
return object['templates']
#------------------------------------------------------