<s> """<STR_LIT>""" <EOL> import os <EOL> from django . contrib . gis import utils <EOL> from django . core . management import base <EOL> from django . db . models import F <EOL> from django . db . models . expressions import ExpressionNode <EOL> from lands import models <EOL> FILE = "<STR_LIT>" <EOL> class Command ( base . NoArgsCommand ) : <EOL> def handle_noargs ( self , ** options ) : <EOL> verbosity = bool ( int ( options . get ( "<STR_LIT>" , <NUM_LIT:1> ) ) ) <EOL> filename = os . path . join ( os . path . dirname ( __file__ ) , FILE ) <EOL> layermapping = utils . LayerMapping ( models . Land , filename , <EOL> models . land_layermap ) <EOL> layermapping . save ( strict = True , verbose = verbosity ) <EOL> models . Land . objects . filter ( name = "<STR_LIT>" ) . update ( <EOL> name = Concat ( "<STR_LIT>" ) . concat ( F ( "<STR_LIT:id>" ) ) ) <EOL> class Concat ( ExpressionNode ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , prefix ) : <EOL> super ( Concat , self ) . __init__ ( None , None , False ) <EOL> self . prefix = prefix <EOL> def concat ( self , other ) : <EOL> return self . _combine ( other , "<STR_LIT>" , False ) <EOL> def evaluate ( self , evaluator , qn , connection ) : <EOL> return u"<STR_LIT:%s>" , ( self . prefix , ) </s>
