#NEWLINE# def get_terms_from_meta( self , categories , tags ) : #NEWLINE# #INDENT# terms = [ ] #NEWLINE# if categories : #NEWLINE# #INDENT# for cat in categories : #NEWLINE# #INDENT# term = self . get_term ( 'category' , cat ) #NEWLINE# if ( not term ) : #NEWLINE# #INDENT# slog . error ( ( 'The category "%s" is not in wordpress. Please create it first.' % cat ) ) #NEWLINE# return None #NEWLINE# #UNINDENT# terms . append ( term ) #NEWLINE# #UNINDENT# #UNINDENT# if tags : #NEWLINE# #INDENT# for tag in tags : #NEWLINE# #INDENT# term = self . get_term ( 'post_tag' , tag ) #NEWLINE# if ( not term ) : #NEWLINE# #INDENT# slog . error ( ( 'The tag "%s" is not in wordpress.Please create it first' % tag ) ) #NEWLINE# return None #NEWLINE# #UNINDENT# terms . append ( term ) #NEWLINE# #UNINDENT# #UNINDENT# return terms