On Saturday 28 October 2006 12:22 pm, Jeremy Kloth wrote:
> > On Thursday 26 October 2006 3:43 pm, Richard Jones wrote:
> > > Someone has to write the code. I check it, commit it and install it.
This patch adds the information available for the 'files' action to the RPC
release_urls() command.
--
Jeremy Kloth
http://4suite.org/
Index: rpc.py
===================================================================
--- rpc.py (revision 430)
+++ rpc.py (working copy)
@@ -39,9 +39,10 @@
def release_urls(store, package_name, version):
result = []
for file in store.list_files(package_name, version):
- url = store.gen_file_url(file['python_version'],
- package_name, file['filename'])
- result.append({'url': url, 'packagetype': file['packagetype']})
+ info = file.as_dict()
+ info['url'] = store.gen_file_url(info['python_version'],
+ package_name, info['filename'])
+ result.append(info)
# TODO do something with release_urls when there is something to do
#info = store.get_package(package_name, version)
#if info['download_url']:
_______________________________________________
Catalog-sig mailing list
[email protected]
http://mail.python.org/mailman/listinfo/catalog-sig