Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias identifier alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad Call AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr Str body If BoolOpOr UnaryOpNot NameLoad Call AttributeLoad NameLoad attr Str body Continue Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr If CompareNotEq Call NameLoad NameLoad Num body Continue If CompareNotEq SubscriptLoad NameLoad Index Num Str body Continue Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr body If CompareNotIn AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num keyword NameLoad keyword Call NameLoad Str Assign NameStore Call NameLoad ClassDef bases body Assign NameStore Str decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num keyword Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword Call NameLoad Str keyword NameLoad ClassDef bases body Assign NameStore ListLoad Str Assign NameStore Str decorator_list FunctionDef arguments args NameParam defaults body Return ListLoad Dict Str Str Str Str Call NameLoad Str Str Dict Str Str Str Str AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr ListLoad Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr For NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareNotEq Call NameLoad NameLoad Num body Raise Call NameLoad Call NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Call AttributeLoad SubscriptLoad NameLoad Index Num attr keyword Str keyword CompareIn Call AttributeLoad SubscriptLoad NameLoad Index Num attr ListLoad Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Assign TupleStore AttributeStore NameLoad attr NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad SubscriptLoad NameLoad Index Num attr Assign AttributeStore NameLoad attr CompareIn Call AttributeLoad SubscriptLoad NameLoad Index Num attr ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list decorator_list Expr Call AttributeLoad NameLoad attr NameLoad
N/A N/A Relay domain related models. django.db models django.db.models.manager Manager django.utils.translation ugettext _ ugettext_lazy reversion revisions reversion modoboa.admin models admin_models modoboa.lib parameters modoboa.lib.exceptions BadRequest ServiceManager N/A Manager N/A load_from_master_cf N/A N/A self N/A N/A N/A Load services from the master.cf file.

        Parse the configuration file to update the service table. New
        entries are saved and outdated ones (ie. present in the
        database but not in the file) are removed.
         N/A N/A open N/A N/A parameters get_admin MASTER_CF_PATH fp N/A N/A content N/A N/A fp read N/A services N/A N/A line N/A N/A content split N/A N/A N/A N/A line N/A N/A line startswith # N/A N/A N/A parts N/A N/A N/A N/A line strip split N/A N/A N/A len parts 8 N/A N/A N/A N/A N/A parts N/A 7 smtp N/A N/A N/A N/A srv created N/A N/A self get_or_create name N/A parts N/A 0 N/A N/A N/A services append N/A parts N/A 0 N/A to_delete N/A N/A service N/A N/A self all N/A N/A N/A N/A service name services N/A N/A N/A N/A to_delete append N/A service name N/A N/A N/A N/A N/A N/A Service objects filter name__in to_delete delete N/A N/A Service N/A N/A models Model N/A N/A Postfix service. N/A name N/A N/A models CharField N/A ugettext_lazy name max_length 100 unique True help_text N/A ugettext_lazy The service name N/A objects N/A ServiceManager Meta N/A N/A N/A db_table postfix_relay_domains_service N/A __str__ N/A N/A self N/A N/A N/A N/A self name N/A N/A RelayDomain N/A N/A admin_models AdminObject N/A N/A Relay domain.

    A relay domain differs from a usual domaine because its final
    destination is not reached yet. It must be accepted by the MTA but
    it will then be transfered to another one.
     N/A domain N/A N/A models OneToOneField admin.Domain null True N/A target_host N/A N/A models CharField N/A ugettext_lazy target host max_length 255 help_text N/A ugettext_lazy Remote destination of this domain N/A service N/A N/A models ForeignKey Service N/A verify_recipients N/A N/A models BooleanField N/A ugettext_lazy verify recipients help_text N/A ugettext_lazy Check for valid recipients default False Meta N/A N/A N/A ordering N/A domain__name N/A db_table postfix_relay_domains_relaydomain N/A tags N/A N/A self N/A N/A N/A N/A N/A name label type relaydomain N/A _ Relay Domain dom N/A name label type color N/A N/A self service name N/A %s: N/A N/A self service name srv info N/A property __str__ N/A N/A self N/A N/A N/A N/A N/A self domain name N/A to_csv N/A N/A self csvwriter N/A N/A N/A Export this relay domain to CSV.

        :param csvwriter:
         N/A N/A N/A csvwriter writerow N/A relaydomain N/A N/A self domain name N/A self target_host N/A N/A self service name N/A N/A self domain enabled N/A self verify_recipients N/A dalias N/A N/A N/A N/A self domain domainalias_set all N/A N/A N/A N/A dalias to_csv csvwriter N/A from_csv N/A N/A self user row N/A N/A N/A Import a relay domain from CSV.

        :param user: user importing the relay domain
        :param str row: relay domain definition
         N/A N/A N/A len row 6 N/A N/A N/A BadRequest N/A _ Invalid line N/A N/A self domain N/A N/A admin_models Domain name N/A N/A N/A row N/A 1 strip type relaydomain enabled N/A N/A N/A N/A row N/A 4 strip N/A True 1 yes y N/A N/A N/A N/A self domain save creator user N/A N/A self target_host N/A N/A N/A row N/A 2 strip N/A N/A N/A self service created N/A N/A N/A Service objects get_or_create name N/A N/A N/A row N/A 3 strip N/A N/A self verify_recipients N/A N/A N/A N/A row N/A 5 strip N/A True 1 yes y N/A N/A N/A self save creator user N/A N/A N/A N/A N/A reversion register RelayDomain