#NEWLINE# def regenerate_publish_signals( now = None ) : #NEWLINE# #INDENT# if ( now is None ) : #NEWLINE# #INDENT# now = timezone . now ( ) #NEWLINE# #UNINDENT# qset = Publishable . objects . filter ( publish_from__lt = now , published = True ) . exclude ( publish_to__lt = now ) #NEWLINE# for p in qset : #NEWLINE# #INDENT# content_published . send ( sender = p . content_type . model_class ( ) , publishable = p )