Module Expr Str ImportFrom alias alias alias Import alias Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return DictComp SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Return ListComp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr CompareIn NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Return ListComp NameLoad comprehension TupleStore NameStore NameStore Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr CompareIn NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return ListComp SubscriptLoad NameLoad Index Str comprehension NameStore AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return ListComp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str For NameStore NameLoad body If CompareNotEq NameLoad AttributeLoad NameLoad attr body If BoolOpAnd CompareIn NameLoad AttributeLoad NameLoad attr CompareEq Str SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword SubscriptLoad NameLoad Index Str keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str decorator_list decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Dict Str NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Dict Str NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict Str NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Dict Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str If UnaryOpNot CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Dict Str Str NameLoad Str orelse If NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad keyword SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Dict Str Str NameLoad Str Return NameLoad decorator_list
N/A N/A 
core.languages.py
~~~~~~
The language module manages the languages you want
to use within application.

:copyright: (c) 2014 by @zizzamia
:license: BSD (See LICENSE for details)
 flask g request session N/A bombolone.model.languages N/A LIST_LANGUAGES N/A ar cn de en es fr gr it jp pt ru tr Languages N/A object N/A N/A  This class allows to  __init__ N/A N/A self N/A N/A N/A N/A self message None N/A N/A self status msg msg-error N/A available_lang N/A N/A self N/A N/A N/A  
        Get all available languages 
        {u'en': u'English', u'it': u'Italiano'}

         N/A N/A N/A x N/A code N/A N/A x N/A value N/A N/A x N/A code N/A x N/A N/A N/A N/A bombolone model languages find check True N/A property all_lang N/A N/A self N/A N/A N/A  
        Get all the languages.
        Return the entire collection sorted by code.

         N/A N/A N/A N/A N/A bombolone model languages find sorted_by code N/A property get_all_lang_by_code N/A N/A self code N/A N/A N/A  
        Get language with a specific code 
        Return all the language by my lang code
        {   u'code': u'en', 
               u'_id': ObjectId('123456'), 
             u'check': True, 
             u'value': {
                u'ru': u'Russian', 
                u'fr': u'French', 
                u'en': u'English', 
                u'cn': u'Chinese', 
                u'pt': u'Portuguese', 
                u'no': u'Norwegian', 
                u'tr': u'Turkish', 
                u'de': u'German', 
                u'jp': u'Japanese', 
                u'it': u'Italian', 
                u'ar': u'Arabic', 
                u'es': u'Spanish', 
                u'gr': u'Greek'
            }
        }

         N/A N/A N/A N/A N/A bombolone model languages find code code only_one True N/A available_lang_by_tuple N/A N/A self N/A N/A N/A  
        Get all available languages by a list of tuple.
        Return [(u'en', u'English'), (u'it', u'Italian')]

         N/A names N/A N/A self get_all_lang_by_code N/A g lang N/A list_languages N/A self available_lang N/A N/A N/A x y N/A N/A x y N/A sorted N/A N/A N/A names N/A value iteritems N/A x list_languages N/A property available_lang_code N/A N/A self N/A N/A N/A  
        Get all available languages code.
        Return [u'en', u'it']

         N/A names N/A N/A self get_all_lang_by_code N/A g lang N/A list_languages N/A self available_lang N/A N/A x N/A N/A x y N/A sorted N/A N/A N/A names N/A value iteritems N/A x list_languages N/A property all_lang_code N/A N/A self N/A N/A N/A  
        Get all languages code.
        Return [u'en', ..., u'it']

         N/A N/A N/A lang N/A code N/A lang N/A self all_lang N/A property all_lang_by_tuple N/A N/A self N/A N/A N/A  
        Get all languages by a list of tuple.
        Return 
        [   (u'ar', u'Arabic'), 
            (u'cn', u'Chinese'), 
            (u'de', u'German'), 
            (u'en', u'English'), 
            (u'es', u'Spanish'), 
            (u'fr', u'French'), 
            (u'gr', u'Greek'), 
            (u'it', u'Italian'), 
            (u'jp', u'Japanese'), 
            (u'no', u'Norwegian'), 
            (u'pt', u'Portuguese'), 
            (u'ru', u'Russian'), 
            (u'tr', u'Turkish')
        ]

         N/A names N/A N/A self get_all_lang_by_code N/A g lang N/A N/A N/A x y N/A N/A x y N/A sorted N/A N/A N/A names N/A value iteritems N/A property update N/A N/A self N/A N/A N/A Saves which languages to use in web application. N/A code LIST_LANGUAGES N/A N/A N/A code N/A g lang N/A N/A N/A N/A code N/A request form N/A on N/A N/A request form N/A code N/A N/A check True N/A N/A check False N/A language N/A N/A N/A N/A bombolone model languages find code code only_one True N/A N/A N/A N/A N/A bombolone model languages update language_id N/A language N/A _id check check N/A N/A self message N/A N/A g languages_msg success_update N/A N/A self status msg msg-success N/A N/A get_list N/A N/A N/A N/A N/A N/A lan_object N/A Languages N/A languages_list N/A lan_object all_lang N/A language_chosen N/A N/A lan_object get_all_lang_by_code N/A g lang N/A data N/A success languages chosen True languages_list language_chosen N/A data N/A show N/A N/A N/A N/A N/A N/A data N/A success True N/A data N/A new N/A N/A N/A N/A N/A N/A data N/A success True N/A data N/A update N/A N/A N/A N/A N/A N/A lan_object N/A Languages N/A N/A N/A lan_object update N/A message N/A lan_object message N/A status N/A lan_object status N/A data N/A success True N/A data N/A remove N/A N/A N/A N/A N/A N/A data N/A success True N/A data N/A change N/A N/A lang my_id N/A None None N/A N/A N/A N/A N/A lang N/A g available_languages N/A N/A data N/A result value False Error #1 N/A N/A my_id N/A N/A N/A N/A N/A N/A bombolone model users update item_id my_id lan lang language N/A N/A g available_languages N/A lang N/A N/A N/A session N/A language lang N/A data N/A result value True N/A data N/A