<s> from gluon import current <EOL> from s3 import * <EOL> from s3layouts import * <EOL> try : <EOL> from . layouts import * <EOL> except ImportError : <EOL> pass <EOL> import s3menus as default <EOL> red_cross_filter = { "<STR_LIT>" : "<STR_LIT>" } <EOL> class S3MainMenu ( default . S3MainMenu ) : <EOL> """<STR_LIT>""" <EOL> @ classmethod <EOL> def menu ( cls ) : <EOL> """<STR_LIT>""" <EOL> main_menu = MM ( ) ( <EOL> cls . menu_modules ( ) , <EOL> ) <EOL> current . menu . personal = cls . menu_personal ( ) <EOL> current . menu . lang = cls . menu_lang ( ) <EOL> current . menu . about = cls . menu_about ( ) <EOL> current . menu . org = cls . menu_org ( ) <EOL> return main_menu <EOL> @ classmethod <EOL> def menu_modules ( cls ) : <EOL> """<STR_LIT>""" <EOL> auth = current . auth <EOL> if len ( current . session . s3 . roles ) <= <NUM_LIT:2> : <EOL> return [ MM ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , <EOL> args = [ str ( auth . s3_logged_in_person ( ) ) ] , <EOL> vars = { "<STR_LIT>" : <NUM_LIT:1> } , <EOL> ) , <EOL> ] <EOL> has_role = auth . s3_has_role <EOL> system_roles = current . session . s3 . system_roles <EOL> ADMIN = system_roles . ADMIN <EOL> ORG_ADMIN = system_roles . ORG_ADMIN <EOL> s3db = current . s3db <EOL> s3db . inv_recv_crud_strings ( ) <EOL> inv_recv_list = current . response . s3 . crud_strings . inv_recv . title_list <EOL> def hrm ( item ) : <EOL> return has_role ( ORG_ADMIN ) or has_role ( "<STR_LIT>" ) or has_role ( "<STR_LIT>" ) or has_role ( "<STR_LIT>" ) or has_role ( "<STR_LIT>" ) <EOL> def inv ( item ) : <EOL> return has_role ( "<STR_LIT>" ) or has_role ( "<STR_LIT>" ) or has_role ( ORG_ADMIN ) <EOL> def basic_warehouse ( i ) : <EOL> if not ( has_role ( "<STR_LIT>" ) or has_role ( ORG_ADMIN ) ) : <EOL> return False <EOL> else : <EOL> return True <EOL> def multi_warehouse ( i ) : <EOL> if not ( has_role ( "<STR_LIT>" ) or has_role ( ORG_ADMIN ) ) : <EOL> return False <EOL> else : <EOL> return True <EOL> menu = [ <EOL> homepage ( "<STR_LIT>" , "<STR_LIT>" , name = "<STR_LIT>" , check = hrm ) ( <EOL> MM ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> MM ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , <EOL> vars = red_cross_filter ) , <EOL> MM ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" ) , <EOL> ) , <EOL> homepage ( "<STR_LIT>" , f = "<STR_LIT>" , name = "<STR_LIT>" , check = hrm ) ( <EOL> MM ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" ) , <EOL> MM ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" ) , <EOL> MM ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" ) , <EOL> MM ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" ) , <EOL> ) , <EOL> homepage ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , check = inv ) ( <EOL> MM ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" , check = multi_warehouse ) , <EOL> MM ( inv_recv_list , c = "<STR_LIT>" , f = "<STR_LIT>" , check = multi_warehouse ) , <EOL> MM ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , check = multi_warehouse ) , <EOL> MM ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , check = basic_warehouse ) , <EOL> MM ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , check = basic_warehouse ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , check = basic_warehouse ) ( ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , check = basic_warehouse ) ( ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" ) ( ) , <EOL> ) , <EOL> homepage ( "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" ) ( <EOL> MM ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> ) , <EOL> ] <EOL> if has_role ( "<STR_LIT>" ) or has_role ( "<STR_LIT>" ) : <EOL> menu . append ( <EOL> homepage ( "<STR_LIT>" , name = "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" , <EOL> vars = { "<STR_LIT>" : "<STR_LIT:2>" } ) ( <EOL> MM ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> MM ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> ) ) <EOL> return menu <EOL> @ classmethod <EOL> def menu_org ( cls ) : <EOL> """<STR_LIT>""" <EOL> OM = S3OrgMenuLayout <EOL> return OM ( ) <EOL> @ classmethod <EOL> def menu_lang ( cls ) : <EOL> s3 = current . response . s3 <EOL> menu_lang = ML ( "<STR_LIT>" , right = True ) <EOL> for language in s3 . l10n_languages . items ( ) : <EOL> code , name = language <EOL> menu_lang ( <EOL> ML ( name , translate = False , lang_code = code , lang_name = name ) <EOL> ) <EOL> return menu_lang <EOL> @ classmethod <EOL> def menu_personal ( cls ) : <EOL> """<STR_LIT>""" <EOL> auth = current . auth <EOL> s3 = current . response . s3 <EOL> settings = current . deployment_settings <EOL> if not auth . is_logged_in ( ) : <EOL> request = current . request <EOL> login_next = URL ( args = request . args , vars = request . vars ) <EOL> if request . controller == "<STR_LIT:default>" and request . function == "<STR_LIT:user>" and "<STR_LIT>" in request . get_vars : <EOL> login_next = request . get_vars [ "<STR_LIT>" ] <EOL> self_registration = settings . get_security_self_registration ( ) <EOL> menu_personal = MP ( ) ( <EOL> MP ( "<STR_LIT>" , c = "<STR_LIT:default>" , f = "<STR_LIT:user>" , <EOL> m = "<STR_LIT>" , check = self_registration ) , <EOL> MP ( "<STR_LIT>" , c = "<STR_LIT:default>" , f = "<STR_LIT:user>" , <EOL> m = "<STR_LIT>" , vars = dict ( _next = login_next ) ) , <EOL> MP ( "<STR_LIT>" , c = "<STR_LIT:default>" , f = "<STR_LIT:user>" , <EOL> m = "<STR_LIT>" ) , <EOL> ) <EOL> else : <EOL> has_role = auth . s3_has_role <EOL> is_org_admin = lambda i : has_role ( "<STR_LIT>" ) and not has_role ( "<STR_LIT>" ) <EOL> menu_personal = MP ( ) ( <EOL> MP ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT:index>" , <EOL> check = has_role ( "<STR_LIT>" ) ) , <EOL> MP ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT:user>" , <EOL> check = is_org_admin ) , <EOL> MP ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , <EOL> args = [ str ( auth . s3_logged_in_person ( ) ) ] , <EOL> vars = { "<STR_LIT>" : <NUM_LIT:1> } , <EOL> ) , <EOL> MP ( "<STR_LIT>" , c = "<STR_LIT:default>" , f = "<STR_LIT:user>" , <EOL> m = "<STR_LIT>" ) , <EOL> MP ( "<STR_LIT>" , c = "<STR_LIT:default>" , f = "<STR_LIT:user>" , <EOL> m = "<STR_LIT>" ) , <EOL> ) <EOL> return menu_personal <EOL> @ classmethod <EOL> def menu_about ( cls ) : <EOL> menu_about = MA ( c = "<STR_LIT:default>" ) ( <EOL> MA ( "<STR_LIT>" , f = "<STR_LIT>" ) , <EOL> MA ( "<STR_LIT>" , f = "<STR_LIT>" ) , <EOL> MA ( "<STR_LIT>" , f = "<STR_LIT>" ) , <EOL> MA ( "<STR_LIT>" , f = "<STR_LIT>" ) , <EOL> ) <EOL> return menu_about <EOL> class S3OptionsMenu ( default . S3OptionsMenu ) : <EOL> """<STR_LIT>""" <EOL> def admin ( self ) : <EOL> """<STR_LIT>""" <EOL> menu = super ( S3OptionsMenu , self ) . admin ( ) <EOL> menu ( M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT:index>" ) , <EOL> ) <EOL> return menu <EOL> def gis ( self ) : <EOL> """<STR_LIT>""" <EOL> if current . request . function == "<STR_LIT:index>" : <EOL> return None <EOL> else : <EOL> return super ( S3OptionsMenu , self ) . gis ( ) <EOL> def pr ( self ) : <EOL> """<STR_LIT>""" <EOL> if current . request . function == "<STR_LIT>" : <EOL> return self . hrm ( ) <EOL> else : <EOL> return super ( S3OptionsMenu , self ) . pr ( ) <EOL> @ staticmethod <EOL> def hrm ( ) : <EOL> """<STR_LIT>""" <EOL> if "<STR_LIT>" in current . request . get_vars : <EOL> return <EOL> has_role = current . auth . s3_has_role <EOL> s3 = current . session . s3 <EOL> ADMIN = s3 . system_roles . ADMIN <EOL> ORG_ADMIN = s3 . system_roles . ORG_ADMIN <EOL> settings = current . deployment_settings <EOL> if "<STR_LIT>" not in s3 : <EOL> current . s3db . hrm_vars ( ) <EOL> hrm_vars = s3 . hrm <EOL> manager_mode = lambda i : hrm_vars . mode is None <EOL> personal_mode = lambda i : hrm_vars . mode is not None <EOL> request = current . request <EOL> if request . function in ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , <EOL> "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , <EOL> "<STR_LIT>" ) or request . controller == "<STR_LIT>" : <EOL> return M ( ) ( M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" ) ( <EOL> ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" , p = "<STR_LIT>" , <EOL> restrict = [ ORG_ADMIN ] ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" , <EOL> check = manager_mode ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" , <EOL> check = manager_mode ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" , <EOL> check = manager_mode ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" , <EOL> check = manager_mode ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , <EOL> check = manager_mode ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" , <EOL> check = manager_mode ) ( <EOL> ) , <EOL> ) <EOL> else : <EOL> return M ( ) ( <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" , <EOL> check = manager_mode ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" , <EOL> restrict = [ ORG_ADMIN ] ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" , <EOL> check = manager_mode ) ( <EOL> ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , <EOL> f = "<STR_LIT>" , <EOL> vars = red_cross_filter , <EOL> check = manager_mode ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" , <EOL> vars = red_cross_filter <EOL> ) , <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" , p = "<STR_LIT>" , <EOL> restrict = [ ORG_ADMIN ] ) <EOL> ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , <EOL> check = manager_mode ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" , p = "<STR_LIT>" , <EOL> restrict = [ ORG_ADMIN ] ) , <EOL> ) , <EOL> ) <EOL> def org ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . hrm ( ) <EOL> @ staticmethod <EOL> def inv ( ) : <EOL> """<STR_LIT>""" <EOL> has_role = current . auth . s3_has_role <EOL> system_roles = current . session . s3 . system_roles <EOL> ADMIN = system_roles . ADMIN <EOL> ORG_ADMIN = system_roles . ORG_ADMIN <EOL> s3db = current . s3db <EOL> s3db . inv_recv_crud_strings ( ) <EOL> inv_recv_list = current . response . s3 . crud_strings . inv_recv . title_list <EOL> settings = current . deployment_settings <EOL> def basic_warehouse ( i ) : <EOL> if not ( has_role ( "<STR_LIT>" ) or has_role ( ORG_ADMIN ) ) : <EOL> return False <EOL> else : <EOL> return True <EOL> def multi_warehouse ( i ) : <EOL> if not ( has_role ( "<STR_LIT>" ) or has_role ( ORG_ADMIN ) ) : <EOL> return False <EOL> else : <EOL> return True <EOL> use_commit = lambda i : settings . get_req_use_commit ( ) <EOL> return M ( ) ( <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" , check = multi_warehouse ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" , p = "<STR_LIT>" ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , args = "<STR_LIT>" ) ( <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" <EOL> ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" <EOL> ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" , p = "<STR_LIT>" ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" ) ( <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" , <EOL> vars = { "<STR_LIT>" : "<STR_LIT:default>" } , <EOL> ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" , <EOL> vars = { "<STR_LIT>" : "<STR_LIT>" } , <EOL> ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" , <EOL> vars = { "<STR_LIT>" : "<STR_LIT>" } , <EOL> ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , <EOL> vars = dict ( report = "<STR_LIT>" ) ) , <EOL> ) , <EOL> M ( inv_recv_list , c = "<STR_LIT>" , f = "<STR_LIT>" , check = multi_warehouse ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , check = multi_warehouse ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" , check = basic_warehouse ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" , p = "<STR_LIT>" , restrict = [ ORG_ADMIN ] ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , check = basic_warehouse ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , <EOL> restrict = [ ORG_ADMIN ] ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" , p = "<STR_LIT>" , restrict = [ ORG_ADMIN ] ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" , t = "<STR_LIT>" ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , <EOL> restrict = [ ADMIN ] ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , check = use_commit ) ( <EOL> ) , <EOL> ) <EOL> def req ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . inv ( ) <EOL> @ staticmethod <EOL> def project ( ) : <EOL> """<STR_LIT>""" <EOL> system_roles = current . session . s3 . system_roles <EOL> ORG_ADMIN = system_roles . ORG_ADMIN <EOL> menu = M ( c = "<STR_LIT>" ) ( <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT:location>" ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT:location>" , m = "<STR_LIT>" ) ( <EOL> M ( "<STR_LIT>" , f = "<STR_LIT:location>" , m = "<STR_LIT>" ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" , p = "<STR_LIT>" , restrict = [ ORG_ADMIN ] ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" , p = "<STR_LIT>" ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" , <EOL> m = "<STR_LIT>" , p = "<STR_LIT>" ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT:location>" , <EOL> m = "<STR_LIT>" , p = "<STR_LIT>" ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , <EOL> vars = red_cross_filter ) ( <EOL> ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" , restrict = [ ORG_ADMIN ] ) , <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" , p = "<STR_LIT>" , restrict = [ ORG_ADMIN ] ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , f = "<STR_LIT>" ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> ) , <EOL> ) <EOL> return menu <EOL> @ staticmethod <EOL> def deploy ( ) : <EOL> """<STR_LIT>""" <EOL> return M ( ) ( M ( "<STR_LIT>" , <EOL> c = "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" , <EOL> vars = { "<STR_LIT>" : "<STR_LIT:2>" } ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , <EOL> c = "<STR_LIT>" , f = "<STR_LIT>" ) ( <EOL> M ( "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> M ( "<STR_LIT>" , <EOL> c = "<STR_LIT>" , f = "<STR_LIT>" , <EOL> p = "<STR_LIT>" , t = "<STR_LIT>" , <EOL> ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , <EOL> c = "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" <EOL> ) , <EOL> M ( "<STR_LIT>" , <EOL> c = "<STR_LIT>" , f = "<STR_LIT>" , restrict = [ "<STR_LIT>" ] , <EOL> ) , <EOL> M ( "<STR_LIT>" , <EOL> c = "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" ) ( <EOL> M ( "<STR_LIT>" , <EOL> c = "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" , <EOL> p = "<STR_LIT>" , t = "<STR_LIT>" , <EOL> ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT>" , m = "<STR_LIT>" ) , <EOL> ) , <EOL> M ( "<STR_LIT>" , c = "<STR_LIT>" , f = "<STR_LIT:index>" ) , <EOL> ) </s>
