Re: config -> data overloading (was Re: docs: how to upgrade plugins for 1.2)

Steven Armstrong <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
On 03/01/05 00:05, Steven Armstrong wrote:
> ps: I'll download all plugins I can find and do some grep'ing on them. I
> was wondering anyway how meny plugins will be affected by the changes we
> allready made for v1.2.

This is a grep over all plugins that exist in the registry.

$ grep -e "config\[.*\] *=" *
booklist.py:    config['num_entries'] = 9999
comments.py:        config['comment_dir'] =
os.path.join(config['datadir'],'comments')
comments.py:        config['comment_ext'] = 'cmt'
comments.py:        config['comment_draft_ext'] = config['comment_ext']
contact.py:        config[TRIGGER_KEY] = TRIGGER
plugininfo.py:    config['num_entries'] = 9999
pyguest.py:        config['num_entries'] = len(files_list)
pystaticfile.py:    config["datadir"] = newdatadir
pystaticfile.py:    config["datadir"] = datadir
registry.py:            config['base_url'] = 'http://%s%s' %
(pyhttp['HTTP_HOST'], pyhttp['SCRIPT_NAME'])
registry.py:        config['base_url'] = config.get('base_url', '')
registry.py:    config['base_url'] = config['base_url'] + TRIGGER
registry.py:            config['base_url'] = 'http://%s%s' %
(pyhttp['HTTP_HOST'], pyhttp['SCRIPT_NAME'])
registry.py:        config['base_url'] = config.get('base_url', '')
registry.py:    config['base_url'] = config['base_url'] + TRIGGER
registry.py:            config['num_entries'] = 9999
registry.py:            config['num_entries'] = 9999
wbgpager.py:    config["paging_num_entries"] = ne
wbgpager.py:    config["num_entries"] = 0
wbgrecent.py:    config['num_entries'] = 9999



A grep for sys.stdin, sys.stdout, os.environ will follow shortly :-)

cheers
Steven


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.