Changeset 3366

Show
Ignore:
Timestamp:
07/25/07 10:47:36 (1 year ago)
Author:
carndt
Message:

Ran reindent.py on all .py files to remove extra line-ending space and add NL at eof

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/apigen/apigen/command.py

    r1484 r3366  
    7676        h2.text = "Subpackages" 
    7777        dl = ET.SubElement(body, "dl") 
    78          
     78 
    7979        for p in packages: 
    8080            dt = ET.SubElement(dl, "dt") 
     
    9090        h2.text = "Modules" 
    9191        dl = ET.SubElement(body, "dl") 
    92          
     92 
    9393        for f in files: 
    9494            f = os.path.splitext(f)[0] 
  • branches/1.0/apigen/setup.py

    r1325 r3366  
    4343    test_suite = 'nose.collector', 
    4444    ) 
    45      
  • branches/1.0/codename.py

    r1097 r3366  
    11#!/usr/bin/env python 
    2 names = ["aces", "astonishing", "astounding",  
    3     "best", "breathtaking", "cool",  
    4     "doozie", "extravagant", "fab", "fantastic",  
    5     "groovy",  
     2names = ["aces", "astonishing", "astounding", 
     3    "best", "breathtaking", "cool", 
     4    "doozie", "extravagant", "fab", "fantastic", 
     5    "groovy", 
    66    "immense", "in spades", "inconceivable", 
    7     "legendary", "marvelous", "mind-blowing", "out-of-this-world",  
    8     "outrageous", "phenomenal", "primo", "prodigious",  
    9     "remarkable", "spectacular", "striking",  
    10     "super", "superb", "terrific", "top drawer", "tops", "turn-on",  
     7    "legendary", "marvelous", "mind-blowing", "out-of-this-world", 
     8    "outrageous", "phenomenal", "primo", "prodigious", 
     9    "remarkable", "spectacular", "striking", 
     10    "super", "superb", "terrific", "top drawer", "tops", "turn-on", 
    1111    "unbelievable", "wicked", "wondrous"] 
    1212 
  • branches/1.0/ez_setup.py

    r2571 r3366  
    222222    else: 
    223223        main(sys.argv[1:]) 
    224  
    225  
    226  
    227  
    228  
  • branches/1.0/thirdparty/externals.py

    r3227 r3366  
    4646        print "You must run this script from the thirdparty directory." 
    4747        sys.exit(1) 
    48          
     48 
    4949    for proj in externals: 
    5050        if os.path.exists(proj): 
  • branches/1.0/turbogears/command/i18n.py

    r3358 r3366  
    5555        # why this isn't working with the config=True from above !?!! 
    5656        self.config = True 
    57          
     57 
    5858        parser = optparse.OptionParser(usage=""" 
    5959%prog [options] <command> 
     
    9090                action="store", dest="js_support", 
    9191                help="Extract messages from js-files.") 
    92         parser.add_option("", "--js-base-dir",  
     92        parser.add_option("", "--js-base-dir", 
    9393                          action="store", dest="js_base_dir", 
    9494                          default="static/javascript", 
     
    108108        if self.config: 
    109109            load_project_config() 
    110   
     110 
    111111        if turbogears.config.get("i18n.locale_dir"): 
    112112            self.locale_dir = turbogears.config.get("i18n.locale_dir") 
     
    118118        if os.path.exists(self.locale_dir) and \ 
    119119                not os.path.isdir(self.locale_dir): 
    120                     raise ProgramError, \ 
    121                             ('%s is not a directory' % self.locale_dir) 
     120            raise ProgramError, \ 
     121                    ('%s is not a directory' % self.locale_dir) 
    122122 
    123123        if not os.path.exists(self.locale_dir): 
     
    193193""" % locale 
    194194            footer = """ 
    195             ]; 
     195             ]; 
    196196 
    197197for(var i in _messages) { 
     
    235235        else: 
    236236            print "File %s exists, use --force to override" % targetfile 
    237              
     237 
    238238 
    239239    def _copy_moduletranslation(self, sourcefile, targetdir, language): 
     
    267267 
    268268            self._copy_file_withcheck(potfile, catalog_file) 
    269                  
    270  
    271          
    272          
     269 
     270 
     271 
     272 
    273273    def scan_source_files(self): 
    274274        source_files = [] 
     
    354354                    if el.tail is not None: 
    355355                        ents.append((False, el.tail.strip())) 
    356                     if el.attrib:  
     356                    if el.attrib: 
    357357                        ents.extend((True, v) for v in el.attrib.values()) 
    358358                    for is_attribute, k in ents: 
     
    391391        for i, line in enumerate(open(fname)): 
    392392            s = gettext_expr_re.search(line) 
    393             while s:                     
     393            while s: 
    394394                key = s.groupdict()['texta'] or s.groupdict()['textb'] 
    395395                pos = s.end() 
     
    405405        gettext_expr_re = re.compile(r"_\(('(?P<texta>[^']*)'|\"(?P<textb>[^\"]*)\")\)") 
    406406        for fname in files: 
    407             print 'Working on', fname             
     407            print 'Working on', fname 
    408408            k, m = self.get_strings_in_js(fname) 
    409409            keys.extend(k) 
     
    419419 
    420420 
    421      
    422      
     421 
     422 
    423423    def get_potfile_path(self): 
    424424        return os.path.join(self.locale_dir, '%s.pot' % self.domain) 
  • branches/1.0/turbogears/command/info.py

    r2793 r3366  
    33 
    44entrypoints = {"tg-admin Commands" : "turbogears.command", 
    5     "Template Engines" : "python.templating.engines",  
    6     "Widget Packages" : "turbogears.widgets",  
     5    "Template Engines" : "python.templating.engines", 
     6    "Widget Packages" : "turbogears.widgets", 
    77    "TurboGears Extensions" : "turbogears.extensions", 
    88    "Identity Providers" : "turbogears.identity.provider", 
     
    1313def retrieve_info(): 
    1414    """retrieve default and extension packages info""" 
    15      
     15 
    1616    # get default packages 
    1717    packages=['%s' % i for i in pkg_resources.require("Turbogears")] 
  • branches/1.0/turbogears/command/quickstart.py

    r3343 r3366  
    321321                if file  == "empty": 
    322322                    os.remove(os.path.join(base, file)) 
    323  
  • branches/1.0/turbogears/config.py

    r3151 r3366  
    5555            if level: 
    5656                level = eval(level, logging.__dict__) 
    57                 handler_obj.setLevel(level)                 
     57                handler_obj.setLevel(level) 
    5858        except KeyError: 
    5959            raise ConfigError("No class specified for logging " 
     
    7676        else: 
    7777            log = logging.getLogger() 
    78              
     78 
    7979        level = logger.get("level", None) 
    8080        if level: 
     
    8383            level = logging.NOTSET 
    8484        log.setLevel(level) 
    85          
     85 
    8686        propagate = logger.get("propagate", None) 
    8787        if propagate is not None: 
    8888            log.propagate = propagate 
    89          
     89 
    9090        cfghandlers = logger.get("handlers", None) 
    9191        if cfghandlers: 
     
    106106    because CherryPy doesn't like it there. Here are some of the Python 
    107107    examples converted to the format used here: 
    108      
     108 
    109109    [logging] 
    110110    [[loggers]] 
     
    122122    formatter="form01" 
    123123    args="(sys.stdout,)" 
    124      
     124 
    125125    [[formatters]] 
    126126    [[[form01]]] 
    127127    format="F1 *(asctime)s *(levelname)s *(message)s" 
    128128    datefmt= 
    129      
    130      
     129 
     130 
    131131    One notable format difference is that *() is used in the formatter 
    132132    instead of %() because %() is already used for config file 
     
    139139    formatters = logcfg.get("formatters", {}) 
    140140    _get_formatters(formatters) 
    141      
     141 
    142142    handlers = logcfg.get("handlers", {}) 
    143143    _get_handlers(handlers, formatters) 
    144      
     144 
    145145    loggers = logcfg.get("loggers", {}) 
    146146    _get_loggers(loggers, handlers) 
    147      
     147 
    148148    del config["logging"] 
    149149    config["global"]["tg.new_style_logging"] = True 
    150150 
    151 def config_defaults():     
     151def config_defaults(): 
    152152    current_dir_uri = os.path.abspath(os.getcwd()) 
    153153    if not current_dir_uri.startswith("/"): 
     
    164164        packagename = modulename[:lastdot] 
    165165        top_level_package = modulename[:firstdot] 
    166          
     166 
    167167        modname = modulename[lastdot+1:] 
    168         modfile = pkg_resources.resource_filename(packagename,  
     168        modfile = pkg_resources.resource_filename(packagename, 
    169169                                        modname + ".cfg") 
    170170        if not os.path.exists(modfile): 
    171             modfile = pkg_resources.resource_filename(packagename,  
     171            modfile = pkg_resources.resource_filename(packagename, 
    172172                                            modname) 
    173173        if os.path.isdir(modfile): 
     
    200200    """Updates the system configuration either from a ConfigObj 
    201201    (INI-style) config file, a module name specified in dotted notation 
    202     or both (the module name is assumed to have a ".cfg" extension).  
    203     If both are specified, the module is called first,  
     202    or both (the module name is assumed to have a ".cfg" extension). 
     203    If both are specified, the module is called first, 
    204204    followed by the config file. This means that the config file's options 
    205205    override the options in the module file.""" 
  • branches/1.0/turbogears/database.py

    r3325 r3366  
    8585    def _mysql_timestamp_converter(raw): 
    8686        """Convert a MySQL TIMESTAMP to a floating point number representing 
    87         the seconds since the Un*x Epoch. It uses custom code the input seems  
    88         to be the new (MySQL 4.1+) timestamp format, otherwise code from the  
     87        the seconds since the Un*x Epoch. It uses custom code the input seems 
     88        to be the new (MySQL 4.1+) timestamp format, otherwise code from the 
    8989        MySQLdb module is used.""" 
    9090        if raw[4] == '-': 
     
    9393            import MySQLdb.converters 
    9494            return MySQLdb.converters.mysql_timestamp_converter(raw) 
    95              
     95 
    9696 
    9797    class AutoConnectHub(ConnectionHub): 
     
    119119 
    120120        def _enable_timestamp_workaround(self, connection): 
    121             """Enable a workaround for an incompatible timestamp format change  
    122             in MySQL 4.1 when using an old version of MySQLdb. See trac ticket  
     121            """Enable a workaround for an incompatible timestamp format change 
     122            in MySQL 4.1 when using an old version of MySQLdb. See trac ticket 
    123123            #1235 - http://trac.turbogears.org/ticket/1235 for details.""" 
    124124            # precondition: connection is a MySQLConnection 
     
    129129                conversions[MySQLdb.constants.FIELD_TYPE.TIMESTAMP] = \ 
    130130                    _mysql_timestamp_converter 
    131                 # There is no method to use custom keywords when using  
     131                # There is no method to use custom keywords when using 
    132132                # "connectionForURI" in sqlobject so we have to insert the 
    133133                # conversions afterwards. 
     
    261261    class AutoConnectHub(object): 
    262262        pass 
    263      
     263 
    264264    class PackageHub(object): 
    265265        pass 
     
    395395    if columns is None: 
    396396        columns = {} 
    397     columns.update(filter(lambda i: i[0] != 'childName',  
     397    columns.update(filter(lambda i: i[0] != 'childName', 
    398398                          sqlclass.sqlmeta.columns.items())) 
    399399    if sqlclass._inheritable: 
  • branches/1.0/turbogears/docgen.py

    r1863 r3366  
    1313class GenSite(Command): 
    1414    "setuptools command to generate the TurboGears website" 
    15      
     15 
    1616    user_options = [ 
    1717        ("srcdirs=", "s", "directories containing the source files (default: docs)"), 
     
    2727        ("eggdir=", "g", "which directory has the eggs in it (default: '../thirdparty/eggs')") 
    2828    ] 
    29      
     29 
    3030    boolean_options=["force"] 
    31      
     31 
    3232    srcdirs = None 
    3333    destdir = "dist/site" 
     
    4141    eggdir = "../thirdparty/eggs" 
    4242    noprintable = False 
    43      
     43 
    4444    def initialize_options(self): 
    4545        pass 
    46          
     46 
    4747    def finalize_options(self): 
    4848        if self.srcdirs is None: 
     
    6262        self.ensure_string_list("nodelete") 
    6363        self.ensure_string_list("ignorefiles") 
    64          
     64 
    6565        regexes = [] 
    6666        for pat in self.ignorefiles: 
    6767            regexes.append(re.compile(pat)) 
    6868        self.ignorepatterns = regexes 
    69          
     69 
    7070        self.templates, self.templates_order = self._split_mapping(self.templates, True) 
    7171        self.copydirs = self._split_mapping(self.copydirs) 
    72              
     72 
    7373    def _split_mapping(self, valToSplit, preserve_order=False): 
    7474        mapping = {} 
     
    8383            return mapping, order 
    8484        return mapping 
    85          
     85 
    8686    def check_if_newer(self, src, dest): 
    8787        srcmtime = os.path.getmtime(src) 
     
    9191            destmtime = 0 
    9292        return srcmtime > destmtime 
    93          
     93 
    9494    def copy_if_newer(self, src, dest): 
    9595        if self.force or self.check_if_newer(src, dest): 
     
    9898                os.makedirs(d) 
    9999            self.copy_file(src, dest) 
    100              
     100 
    101101    def render_template(self, src, dest, depth): 
    102102        if not self.force and not self.check_if_newer(src, dest): 
     
    107107            log.info("skipping rendering %s" % dest) 
    108108            return 
    109          
     109 
    110110        template = kid.load_template(src, cache=False) 
    111111        template.Template.serializer = self.serializer 
     
    119119        destfile.write(output) 
    120120        destfile.close() 
    121          
     121 
    122122    def update_site_files(self, srcdir, processTemplates = True, destroot=None): 
    123123        if not destroot: 
     
    140140                else: 
    141141                    log.info("skipping creating directory %s" % (destdir)) 
    142                  
     142 
    143143            for file in files: 
    144144                ignore = False 
     
    150150                if ignore: 
    151151                    continue 
    152                  
     152 
    153153                for tempfile in self.templates.values(): 
    154154                    if tempfile == abs: 
     
    157157                if ignore: 
    158158                    continue 
    159                  
     159 
    160160                ext = os.path.splitext(file)[1] 
    161161                dest = os.path.join(destdir, file) 
    162162                self.currentfiles.add(dest) 
    163163                if not processTemplates or ext != ".html": 
    164                     self.copy_if_newer(os.path.join(root, file),  
     164                    self.copy_if_newer(os.path.join(root, file), 
    165165                        dest) 
    166166                else: 
    167                     self.render_template(os.path.join(root, file),  
     167                    self.render_template(os.path.join(root, file), 
    168168                        dest, depth) 
    169169 
     
    193193            log.info("creating %s" % destdir) 
    194194            os.makedirs(destdir) 
    195              
     195 
    196196        for name in self.templates_order: 
    197197            filename = self.templates[name] 
    198198            log.info("template %s loaded as %s" % (filename, name)) 
    199199            kid.load_template(filename, name=name) 
    200          
     200 
    201201        if self.eggdir: 
    202202            if not self.eggdir.endswith("/"): 
     
    214214        for dest, src in self.copydirs.items(): 
    215215            if os.path.isdir(src): 
    216                 self.update_site_files(src, processTemplates=False,  
     216                self.update_site_files(src, processTemplates=False, 
    217217                                   destroot=os.path.join(self.destdir, dest)) 
    218218            else: 
     
    222222        self.printable_tutorial() 
    223223        self.delete_excess_files() 
    224          
     224 
    225225    def printable_tutorial(self): 
    226226        if self.noprintable: 
     
    228228        self._make_printable(os.path.join("docs", "tutorials", "wiki20"), 3) 
    229229        self._make_printable(os.path.join("docs", "wiki20")) 
    230      
     230 
    231231    def _make_printable(self, tutdir, up_to_root=2): 
    232232        endpath = tutdir 
     
    239239 <meta content="text/html; charset=UTF-8" http-equiv="content-type" /> 
    240240 <link rel="stylesheet" type="text/css" href="../../default.css" py:attrs="href=root+'default.css'"/> 
    241  <link type="text/css" rel="stylesheet" href="../../sh/SyntaxHighlighter.css" py:attrs="href=root+'sh/SyntaxHighlighter.css'"></link>  
     241 <link type="text/css" rel="stylesheet" href="../../sh/SyntaxHighlighter.css" py:attrs="href=root+'sh/SyntaxHighlighter.css'"></link> 
    242242 <title>TurboGears: 20 Minute Wiki Tutorial</title> 
    243243</head> 
     
    257257            bodytext = bodytext.replace('<html:body xmlns:html="http://www.w3.org/1999/xhtml">', "") 
    258258            masterdoc += bodytext 
    259              
     259 
    260260        masterdoc += """<script src="../../sh/shCore.js" py:attrs="src=root+'sh/shCore.js'"></script> 
    261261<script src="../../sh/shBrushPython.js" py:attrs="src=root+'sh/shBrushPython.js'"></script> 
     
    263263<script src="../../sh/shBrushJScript.js" py:attrs="src=root+'sh/shBrushJScript.js'"></script> 
    264264<script language="javascript"> 
    265        dp.SyntaxHighlighter.HighlightAll('code'); 
     265        dp.SyntaxHighlighter.HighlightAll('code'); 
    266266</script> 
    267267</body></html>""" 
     
    269269        template = kid.Template(source=masterdoc, root="../" * up_to_root) 
    270270        template.serializer = self.serializer 
    271          
     271 
    272272        destend = os.path.join(self.destdir, endpath) 
    273273        if not os.path.exists(destend): 
     
    281281        outfile.close() 
    282282        self.currentfiles.add(outfn) 
    283          
  • branches/1.0/turbogears/feed/feed.py

    r2372 r3366  
    2020        date = date.strftime("%a, %d %b %Y %H:%M:%S GMT") 
    2121        return date 
    22      
     22 
    2323    def depr_entrys(self, feed): 
    2424        if "entrys" in feed: 
  • branches/1.0/turbogears/i18n/format.py

    r3076 r3366  
    11""" 
    22Localized formatting functions. These functions extract localization data 
    3 from config files located in the data/directory.   
     3from config files located in the data/directory. 
    44""" 
    55 
     
    2929        if not is_locale_format(locale): 
    3030 
    31            locale = locale[:2] 
     31            locale = locale[:2] 
    3232 
    3333        name = "turbogears.i18n.data.%s" %locale 
     
    4545    locale = get_locale(locale) 
    4646    mod = get_locale_module(locale) 
    47      
     47 
    4848    return getattr(mod, name, default) 
    4949 
     
    5656    countries = get(locale, "countries", {}).items() 
    5757    countries.sort(lambda x,y:cmp(x[1], y[1])) 
    58     return countries   
     58    return countries 
    5959 
    6060def get_country(key, locale=None): 
     
    7373    languages = get(locale, "languages", {}).items() 
    7474    languages.sort(lambda x,y:cmp(x[1], y[1])) 
    75     return languages   
     75    return languages 
    7676 
    7777def get_language(key, locale=None): 
     
    133133def format_decimal(value, num_places, locale=None): 
    134134    """ 
    135     Returns number formatted with grouping for thousands and correct  
     135    Returns number formatted with grouping for thousands and correct 
    136136    notation, e.g. 5000000.898>5,000,000.898 
    137137    """ 
    138138 
    139139    format = "%%.%df"%num_places 
    140     str = format%value         
     140    str = format%value 
    141141    num, decimals = str.split(".") 
    142142    return unicode( 
     
    220220        'abbrdayname':get_abbr_weekday_names(locale)[weekday], 
    221221    } 
    222  
  • branches/1.0/turbogears/i18n/__init__.py

    r3294 r3366  
    1212    format_decimal, format_currency, parse_number, parse_decimal 
    1313from turbogears.i18n.kidutils import translate, i18n_filter 
    14  
  • branches/1.0/turbogears/i18n/sogettext/__init__.py

    r3076 r3366  
    4949        results = TG_Message.selectBy(domain=domain) 
    5050        for message in results: 
    51             locale = message.locale     
     51            locale = message.locale 
    5252            messages = catalog.get(locale, {}) 
    5353            messages[message.name] = message.text 
     
    8585        for k, v in catalog.items(): 
    8686 
    87             TG_Message(domain=domain, locale=locale, name=k, text=v)  
    88   
     87            TG_Message(domain=domain, locale=locale, name=k, text=v) 
     88 
    8989def dump_so_catalogs(locales): 
    90     """Takes all domains and messages and creates message catalogs  
     90    """Takes all domains and messages and creates message catalogs 
    9191    """ 
    9292    localedir = turbogears.config.get("i18n.locale_dir", "locales") 
     
    128128 
    129129            f.close() 
    130  
  • branches/1.0/turbogears/i18n/utils.py

    r1960 r3366  
    6060    if not request_available(): 
    6161        return config.get("i18n.default_locale", "en") 
    62      
     62 
    6363    if config.get("session_filter.on", False): 
    6464        locale_key = config.get("i18n.session_key", "locale") 
     
    8989    """ 
    9090    cherrypy.session[config.get("i18n.session_key", "locale")] = locale 
    91  
    92  
    93  
  • branches/1.0/turbogears/identity/conditions.py

    r2845 r3366  
    233233                if predicate is None or \ 
    234234                   predicate.eval_with_object(current, errors): 
    235                    return fn(self, *args, **kwargs) 
     235                    return fn(self, *args, **kwargs) 
    236236            except IdentityException, e: 
    237237                errors= [str(e)] 
     
    254254            if predicate is None or \ 
    255255               predicate.eval_with_object( current, errors ): 
    256                return fn( self, *args, **kwargs ) 
     256                return fn( self, *args, **kwargs ) 
    257257        except IdentityException, e: 
    258258            errors= [str(e)] 
  • branches/1.0/turbogears/identity/exceptions.py

    r2250 r3366  
    2828               "outside of a request." 
    2929 
    30          
     30 
    3131class IdentityManagementNotEnabledException(IdentityException): 
    3232    """ User forgot to enable Identity management """ 
    33      
     33 
    3434    def __str__(self): 
    3535        return "An attempt was made to use a facility of the TurboGears " \ 
    3636               "Identity Management framework but identity management hasn't " \ 
    3737               "been enabled in the config file [via identity.on]." 
    38      
    39      
     38 
     39 
    4040class IdentityConfigurationException(IdentityException): 
    4141    ''' 
     
    4646    def __init__(self, message): 
    4747        self.message= message 
    48          
     48 
    4949    def __str__(self): 
    5050        return self.message 
  • branches/1.0/turbogears/identity/soprovider.py

    r2826 r3366  
    3939        self.old_name= old_name 
    4040        self.new_name= new_name 
    41      
     41 
    4242    def __get__(self, obj, type=None): 
    4343        warnings.warn( "%s has been deprecated in favour of %s" % 
     
    5050        return setattr( obj, self.new_name, value ) 
    5151 
    52          
     52 
    5353# Global class references -- these will be set when the Provider is initialised. 
    5454user_class= None 
     
    6262            self._user= user 
    6363        self.visit_key= visit_key 
    64      
     64 
    6565    def _get_user(self): 
    6666        try: 
     
    8585            return None 
    8686    user= property(_get_user) 
    87      
     87 
    8888    def _get_user_name(self): 
    8989        if not self.user: 
     
    9595        return not self.user 
    9696    anonymous= property(_get_anonymous) 
    97      
     97 
    9898    def _get_permissions(self): 
    9999        try: 
     
    108108        return self._permissions 
    109109    permissions= property(_get_permissions) 
    110      
     110 
    111111    def _get_groups(self): 
    112112        try: 
     
    139139        identity.set_current_identity( anon ) 
    140140 
    141      
     141 
    142142class SqlObjectIdentityProvider(object): 
    143143    ''' 
    144144    IdentityProvider that uses a model from a database (via SQLObject). 
    145145    ''' 
    146      
     146 
    147147    def __init__(self): 
    148148        super(SqlObjectIdentityProvider, self).__init__() 
    149149        get=turbogears.config.get 
    150          
     150 
    151151        global user_class, group_class, permission_class, visit_class 
    152          
    153         user_class_path= get( "identity.soprovider.model.user",  
     152 
     153        user_class_path= get( "identity.soprovider.model.user", 
    154154                              __name__ + ".TG_User" ) 
    155155        #log.debug('userclassp:%s'% user_class_path) 
     
    168168        if group_class: 
    169169            log.info("Succesfully loaded \"%s\"" % group_class_path) 
    170              
     170 
    171171        permission_class_path= get( "identity.soprovider.model.permission", 
    172172                                    __name__ + ".TG_Permission" ) 
     
    174174        if permission_class: 
    175175            log.info("Succesfully loaded \"%s\"" % permission_class_path) 
    176          
     176 
    177177        visit_class_path= get( "identity.soprovider.model.visit", 
    178178                                __name__ + ".TG_VisitIdentity" ) 
     
    180180        if visit_class: 
    181181            log.info("Succesfully loaded \"%s\"" % visit_class_path) 
    182          
    183              
     182 
     183 
    184184        # Default encryption algorithm is to use plain text passwords 
    185185        algorithm = get("identity.soprovider.encryption_algorithm", None) 
    186186        self.encrypt_password = lambda pw: \ 
    187187                                    identity._encrypt_password(algorithm, pw) 
    188              
     188 
    189189    def create_provider_model( self ): 
    190190        # create the database tables 
     
    205205        Look up the identity represented by user_name and determine whether the 
    206206        password is correct. 
    207