Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier alias Import alias alias alias alias ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If BoolOpAnd UnaryOpNot CompareIs NameLoad NameLoad Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Raise Call AttributeLoad NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareLt Call NameLoad AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Raise Call AttributeLoad NameLoad attr Call NameLoad Str TryFinally body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Slice Num Num Assign AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Raise Call AttributeLoad NameLoad attr Call NameLoad Str finalbody Expr Call AttributeLoad NameLoad attr orelse If CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Str Str body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If BoolOpOr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Call NameLoad Str orelse Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr ListLoad Call NameLoad Str Return AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign SubscriptStore NameLoad Index Num Str Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr If CompareGt Call AttributeLoad NameLoad attr Num body If UnaryOpNot SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr ListLoad Call NameLoad Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr ListLoad Call NameLoad Str Return AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad NameLoad Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr orelse Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If CompareIs NameLoad NameLoad body If CompareEq SubscriptLoad NameLoad Index Num NameLoad body Return NameLoad orelse Return Call AttributeLoad Call AttributeLoad Str attr NameLoad attr orelse Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Return Call AttributeLoad Call AttributeLoad Str attr BinOpAdd ListLoad NameLoad SubscriptLoad NameLoad Slice Num attr handlers ExceptHandler type NameLoad name NameStore body Raise Call AttributeLoad NameLoad attr Call NameLoad Str decorator_list decorator_list
N/A N/A 
Define the forms used by the redistricting app.

The forms in redistricting.forms define the UI forms used in the 
application. Each class relates to a form used to capture user input
in the application.

This file is part of The Public Mapping Project
https://github.com/PublicMapping/

License:
    Copyright 2010-2012 Micah Altman, Michael McDonald

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

Author: 
    Andrew Jennings, David Zwarg, Kenny Shepard
 models * tasks verify_count django forms django.core.files.uploadedfile UploadedFile django.utils.translation ugettext _ get_language N/A os tempfile csv re SubjectUploadForm N/A N/A forms Form N/A N/A 
    A form that accepts a subject file for upload that contains new Subject data.
     N/A subject_upload N/A N/A forms FileField required False N/A uploaded_file N/A N/A forms CharField required False widget N/A forms HiddenInput N/A processing_file N/A N/A forms CharField required False widget N/A forms HiddenInput N/A subject_name N/A N/A forms CharField required False widget N/A forms HiddenInput N/A force_overwrite N/A N/A forms BooleanField required False widget N/A forms HiddenInput N/A task_uuid N/A N/A forms CharField required False widget N/A forms HiddenInput N/A ul_file None N/A ps_file None N/A temp_subject_name N/A temp_path_re N/A N/A re compile ^\/tmp\/.*$ N/A dotdot_path_re N/A N/A re compile .*\.\..* clean N/A N/A self N/A N/A N/A 
        Check the validity of the form. If all immediate fields are present,
        this method kicks off a celery task to verify the counts of elements
        in the uploaded file.
         N/A subject_upload N/A N/A self cleaned_data N/A subject_upload N/A N/A N/A N/A subject_upload None N/A isinstance subject_upload UploadedFile N/A N/A N/A self ul_file N/A subject_upload name N/A task_id N/A sup N/A SubjectUpload upload_filename N/A subject_upload name status UL N/A N/A N/A sup save N/A N/A N/A localstore N/A N/A tempfile NamedTemporaryFile mode w+ delete False N/A chunk N/A N/A subject_upload chunks N/A N/A N/A N/A localstore write chunk N/A N/A N/A Exception N/A ex N/A N/A N/A sup status ER N/A N/A N/A sup save N/A N/A N/A forms ValidationError N/A _ Could not store uploaded Subject template. N/A N/A sup processing_filename N/A self ps_file N/A localstore name N/A N/A N/A sup save N/A N/A N/A localstore seek 0 N/A reader N/A N/A csv DictReader localstore N/A N/A N/A len N/A reader fieldnames 2 N/A N/A N/A N/A localstore close N/A N/A sup status ER N/A N/A N/A sup save N/A N/A N/A forms ValidationError N/A _ The uploaded file is missing subject data. N/A N/A N/A N/A N/A clean_name N/A N/A self _clean_name N/A N/A N/A reader fieldnames N/A 1 N/A 0 50 N/A N/A sup subject_name N/A self temp_subject_name clean_name N/A N/A N/A sup save N/A N/A N/A Exception N/A ex N/A N/A N/A N/A forms ValidationError N/A _ The new subject name could not be determined. N/A N/A N/A N/A localstore close N/A N/A N/A N/A N/A self cleaned_data N/A processing_file N/A N/A N/A self ps_file N/A N/A self cleaned_data N/A processing_file N/A N/A self ul_file N/A N/A self cleaned_data N/A uploaded_file N/A N/A self temp_subject_name N/A N/A self _clean_name N/A N/A self cleaned_data N/A subject_name N/A sup N/A N/A N/A SubjectUpload objects get upload_filename N/A self ul_file processing_filename N/A self ps_file N/A N/A N/A N/A N/A N/A self temp_path_re match N/A self ps_file N/A N/A N/A self dotdot_path_re match N/A self ps_file N/A N/A N/A N/A os path exists N/A self ps_file N/A N/A N/A N/A forms ValidationError N/A _ Uploaded file cannot be found. N/A N/A N/A N/A self _errors N/A subject_upload N/A N/A self error_class N/A N/A _ Uploaded file is required. N/A N/A self cleaned_data N/A pathspec N/A N/A N/A settings WEB_TEMP split / N/A N/A pathspec N/A -1 data N/A pathspec N/A N/A / join pathspec N/A saved_ul N/A %s/%s N/A pathspec N/A self temp_subject_name N/A collisions N/A N/A N/A Subject objects filter name N/A self temp_subject_name N/A N/A N/A N/A collisions count 0 N/A N/A N/A N/A N/A self cleaned_data N/A force_overwrite N/A N/A N/A self temp_subject_name N/A sup subject_name N/A N/A self _errors N/A N/A N/A N/A self _errors N/A subject_name N/A N/A self error_class N/A N/A _ Please specify a unique subject name. N/A N/A N/A self _errors N/A force_overwrite N/A N/A self error_class N/A N/A _ Check this box to overwrite the existing subject with the same name. N/A N/A self cleaned_data N/A saved_ul N/A %s_%s.csv N/A saved_ul N/A str N/A N/A collisions N/A 0 version N/A N/A saved_ul N/A %s_1.csv saved_ul N/A N/A N/A os rename N/A self ps_file saved_ul N/A N/A sup processing_filename N/A self ps_file saved_ul N/A N/A sup subject_name N/A self temp_subject_name N/A N/A sup status CH N/A N/A N/A sup save N/A task N/A N/A verify_count delay N/A sup id N/A self ps_file language N/A get_language N/A N/A sup task_id N/A task task_id N/A N/A N/A sup save N/A N/A N/A self cleaned_data N/A task_uuid N/A sup task_id N/A N/A N/A self cleaned_data N/A processing_file N/A sup upload_filename N/A N/A self cleaned_data N/A _clean_name N/A N/A self inputname N/A N/A N/A N/A N/A cmp1 N/A N/A re match [^a-zA-Z_]+?([a-zA-Z_]+) inputname N/A cmp2 N/A N/A re findall [\w]+ inputname N/A N/A cmp1 None N/A N/A N/A N/A cmp2 N/A 0 inputname N/A N/A inputname N/A N/A N/A N/A N/A N/A _ join cmp2 lower N/A N/A cmp1 N/A N/A N/A cmp1 groups N/A 0 N/A N/A N/A N/A N/A _ join N/A N/A cmp1 N/A cmp2 N/A 1 lower N/A N/A N/A Exception N/A ex N/A N/A N/A N/A forms ValidationError N/A _ Uploaded file contains an invalid subject name. N/A N/A